// ===========================================================================
// This file, contents.js, must be provided for each contents.htm.
// Each contents.js file contains the settings and content for one contents.
// Each contents should be in a separate directory (folder).
// Each contents directory should contain one and only one contents.htm file.
//
// Lines beginning "//" are comments for authors. They are ignored by JTAT.
// ===========================================================================

  // ========== SECTION I: PROVIDE SLIDERS? ============

  // These control whether this Contents has a Slab ("Cut")
  // slider, in addition to a Zoom slider, or neither.
  // You cannot have a Slab slider without also having the Zoom slider.
  // The label on the slab slider (typically "Cut" or "Slab")
  // is defined in _jsutil/config2.js
showZoomSlider = true;
showSlabSlider = false;

  // ========== SECTION II: TITLE, INTRODUCTION, CONTENTS, DETAILS ============

  // CONTENTS TITLE IS REQUIRED
chapterTitle = 'Background Color.';

  // CONTENTS SUBTITLE IS OPTIONAL
chapterSubtitle = '';

  // OPTIONAL INTRODUCTION FOR CONTENTS
	// Be sure to enclose paragraphs in <p>...</p>, or you will lose margins.
chapterIntro =
'<span class="aboutJTATwb"><p> \n\
JTAT supports only two background colors: black and white. \
Authors are free to choose whichever background color they prefer \
for each Chapter. (Although not recommended, it is possible to \
have molecular views with different background colors in the \
same Chapter.) \
</p><p> \
Colors should be chosen to stand out well on the background. \
The control panel (and its color-keyed text) will \
have the same background color as the molecular views. \
</p></span> \n\
';

contentsText = 
	'<ol class="contents"> \n\
 \n\
   	<li> <a href="../ch_white/chapter.htm">White Background (Chapter 1)</a></li> \n\
 \n\
   	<li> <a href="../ch_mix/chapter.htm">Mixed Background (Chapter 4)</a></li> \n\
 \n\
	</ol> \n\
';

	// OPTIONAL DETAILS (IF BLANK '', DETAILS LINK WILL NOT APPEAR.)
contentsDetailsTitle = '';
contentsDetailsText = '';

	// OPTIONAL BOTTOM TEXT
chapterConclusion =
'<p> \n\
	<ul> \n\
	<li> \n\
	<span class="aboutJTATwb"> \n\
The background of the control panel text is automatically \n\
set to be the same as the molecular view. If there are multiple molecular \n\
views with different backgrounds (not recommended), the text background \n\
is set to black, unless there are more molecules on white backgrounds \n\
than on black backgrounds. \n\
	</span> \n\
	</li><br><li> \n\
	<span class="forAuthorswb"> \n\
Background color is designated by a parameter in the setupButton() \n\
function call, which must be either <i>blackBackground</i> \n\
(<i>backgroundBlack</i> is synonymous) or \n\
<i>whiteBackground</i> (<i>backgroundWhite</i> is synonymous). \n\
	</span> \n\
	</li><br><li> \n\
	<span class="forAuthorswb"> \n\
You should never put a "background &lt;color&gt;" \n\
command in a script. Instead, use the parameters mentioned \n\
previously. \n\
	</span> \n\
	</li><br><li> \n\
	<span class="aboutJTATwb"> \n\
Note that JTAT supports having sub-contents pages, such as this one. \n\
The link <i>Background Color</i> in the main contents goes to this \n\
page, which is also a contents page (<q>sub-contents</q>) with links to chapters. \n\
	</span> \n\
	<span class="forAuthorswb"> \n\
To create a sub-contents page, authors need only copy the folder jtat/template/contents \n\
(with all the files it contains) \n\
into the new jtat/<i>tutorial_name</i> folder, and rename the copy of <i>contents</i> \n\
to the desired <i>chapter_name</i>. The <i>chapter_name</i> \n\
folders linked into the sub-contents page should be at the same level \n\
as the contents and all the other chapters; that is, no chapter should be \n\
two folder levels below the <i>tutorial_name</i> folder. For example, this page \n\
is jtat/jtatdemo/ch_bkg/contents.htm, and the two pages it links are \n\
jtat/jtatdemo/ch_white/chapter.htm and jtat/jtatdemo/ch_mix/chapter.htm. \n\
	</span> \n\
	</li></ul> \n\
</p> \n\
';

  // ========== SECTION III: NAVIGATION (NEXT, PREVIOUS, CONTENTS, RESET) ============

  // The 3 URL's below must be relative to the current contents.
  // The position and style of the navigation bar are set in config.js

  // Leave blank since this IS the Contents.
contentsButtonGoesTo = '../contents/contents.htm';

provideResetButton = false; // ignored when isContents.

  // Leave blank since this is Contents.
previousChapterButtonGoesTo = "../ch_drums/chapter.htm";

  // Leave blank if this is the last chapter.
nextChapterButtonGoesTo = "";

  // ========== SECTION IV: MOLECULAR VIEW FOR CONTENTS ============

// Molecular View Button ===== ===== ===== ===== ===== ===== ===== ===== =====
// Although no "View 1" button will appear when isContents is true, 
// the molecular view is nevertheless specified as though it were a button.
// Multiple-molecule (multiple-Jmol) views are supported.

setupButton(
	1,  // NUMBER OF MOLECULES
	'../molecules4all/1d66.pdb', // ATOMIC COORDINATE FILE
	'script initial-view.spt', // SCRIPT FOR MOLECULAR VIEW
	whiteBackground, // BACKGROUND (blackBackground or whiteBackground)
	spinningStart); // spinningStart, spinningOn, spinningSame, or spinningOff

  // ========== END OF contents.js ============
