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

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

  // These control whether this Chapter 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 = false;
showSlabSlider = false;

  // ========== SECTION II: CHAPTER TITLE, INTRODUCTION ============

  // CHAPTER TITLE IS REQUIRED
chapterTitle = 'Spin Control.';

  // CHAPTER SUBTITLE IS OPTIONAL
chapterSubtitle = '';

  // OPTIONAL INTRODUCTION FOR THIS CHAPTER
// Be sure to include paragraphs within <p></p> tags. This gives them margins.
chapterIntro =
	'<p> \n\
	<span class="aboutJTAT"> \n\
This is a copy of Chapter 6 on Spin Control, modified to have \n\
two views use a white background. This page illustrates the \n\
possibility of having views with different backgrounds on the \n\
same page. \n\
Although supported, mixing background \n\
colors on the same page is not generally recommended. \n\
The background color for the title and footer of the \n\
page is automatically set to match the background of the majority \n\
of views on the page, but remains black when the numbers are equal, \n\
as they are here. \n\
	</span> \n\
	<\/p> \n\
';

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

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

  // Leave blank if there is only one chapter, and no contents page.
contentsButtonGoesTo = "../contents/contents.htm";

  // If the View buttons define the orientation/zoom, 
  // no Reset button is needed, so provideResetButton should be false.
  // In contrast, some chapters are designed to maintain the orientation and
  // zoom set previously by the user when a new view is displayed.
  // These need a Reset button, so provideResetButton should be true.
  // When provided, a Reset button runs reset.spt in the chapter's directory.
  // It allows Reset to do something different than the "View 1" button does.
provideResetButton = true; // ignored when isContents.

  // Leave blank if this is the first chapter.
previousChapterButtonGoesTo = "../ch_bkg/contents.htm";

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


  // ========== SECTION IV: MOLECULAR VIEW BUTTONS ============

// Molecular View Button ===== ===== ===== ===== ===== ===== ===== ===== =====

	setupButton(1,  // NUMBER OF MOLECULES
		"../molecules4all/1d66.pdb", // ATOMIC COORDINATE FILE
		"script view01.spt;", // VIEW SCRIPT
		blackBackground, // BACKGROUND (blackBackground or whiteBackground)
		spinningStart); // SPINNING (spinningStart/On/Same/Off)

	// MOLECULAR VIEW DESCRIPTION
	buttons[buttonNumber][iButtonText] =
'<font color="#00ffff">This view</font> starts out spinning \
the first time it is displayed. If re-displayed, it inherits \
the spinning status of the view that was showing immediately beforehand. \
In most cases, this option should be used for the first view in each \
chapter. \
';

	// MOLECULAR VIEW DETAILS
	buttons[buttonNumber][iDetailsTitle] = "Why Offer This Option?";
	buttons[buttonNumber][iDetailsText] =
'In most cases, the first view in a chapter should start spinning. \
(See below <i>Details: What Lecturers Often Forget</i>.) \
However, if the user toggles spinning off, perhaps we don\'t want to \
force it back on, should the user re-visit the first view. \
';

// Molecular View Button ===== ===== ===== ===== ===== ===== ===== ===== =====

	setupButton(1,  // NUMBER OF MOLECULES
		"../molecules4all/1d66.pdb", // ATOMIC COORDINATE FILE
		"script view01a.spt;", // VIEW SCRIPT
		whiteBackground, // BACKGROUND (blackBackground or whiteBackground)
		spinningOn); // SPINNING (spinningStart/On/Same/Off)

	// MOLECULAR VIEW DESCRIPTION
	buttons[buttonNumber][iButtonText] =
'<font color="#006000">This view</font> will always start out spinning. \
';

	// MOLECULAR VIEW DETAILS
	buttons[buttonNumber][iDetailsTitle] = "What Lecturers Often Forget..";
	buttons[buttonNumber][iDetailsText] =
'Lecturers often forget to move a molecule while speaking. \
This leaves the audience unable to grasp the 3D nature of the structure. \
This is why we strongly recommend that each chapter start \
with spinning on. However, the option shown in View 1 above is typically \
recommended for the first view. \
';

// Molecular View Button ===== ===== ===== ===== ===== ===== ===== ===== =====

	setupButton(1,  // NUMBER OF MOLECULES
		"../molecules4all/1d66.pdb", // ATOMIC COORDINATE FILE
		"script view02.spt;", // VIEW SCRIPT
		blackBackground, // BACKGROUND (blackBackground or whiteBackground)
		spinningSame); // SPINNING (spinningStart/On/Same/Off)

	// MOLECULAR VIEW DESCRIPTION
	buttons[buttonNumber][iButtonText] =
'<font color="yellow">This view</font> inherits the spinning status \
of the view that was showing immediately beforehand. \
Clicking this view button neither starts nor stops spinning. \
This option is appropriate for most views, aside from the first view. \
';

// Molecular View Button ===== ===== ===== ===== ===== ===== ===== ===== =====

	setupButton(1,  // NUMBER OF MOLECULES
		"../molecules4all/1d66.pdb", // ATOMIC COORDINATE FILE
		"script view03.spt;", // VIEW SCRIPT
		whiteBackground, // BACKGROUND (blackBackground or whiteBackground)
		spinningOff); // SPINNING (spinningStart/On/Same/Off)

	// MOLECULAR VIEW DESCRIPTION
	buttons[buttonNumber][iButtonText] =
'<font color="red">This view</font> will always start out NOT spinning. \
This is useful when the author wants to show a particular perspective. \
In the perspective shown here, the major and minor grooves in the DNA \
double helix can be appreciated. \
';

	// MOLECULAR VIEW DETAILS
	buttons[buttonNumber][iDetailsTitle] = "Implementation..";
	buttons[buttonNumber][iDetailsText] =
'<span class="forAuthorswb">The initial spinning status for each View \
button is specified with a parameter \
in the setupButton() function call. The parameter must be one of \
three options: <i>spinningStart, spinningOn, spinningSame</i>, or \
<i>spinningOff</i>. '
+ noIdea +
'</span>\
';


// End of View Buttons ===== ===== ===== ===== ===== ===== ===== ===== =====

	// CHAPTER CONCLUSION
	chapterConclusion = '';
//	'<p> \n\
//	<\/p> \n\
//';

  // ========== END OF chapter.js ============
