// ===========================================================================
// 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 = true;
showSlabSlider = true;
slabSliderLabel = "Cut";

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

  // CHAPTER TITLE IS REQUIRED
chapterTitle = 'Sliders for Zoom and Slab/Cut';

  // CHAPTER SUBTITLE IS OPTIONAL
chapterSubtitle = '';

  // OPTIONAL INTRODUCTION FOR THIS CHAPTER
chapterIntro =
'<span class="aboutJTAT"><p> \n\
The slider is at the lower right corner of this window. \n\
Each chapter can have: \n\
	</p> \n\
	<ul> \n\
		<li>No sliders (Example: Chapter 6)</li> \n\
		<li>A Zoom slider (Example: Chapter 1)</li> \n\
		<li>Both Zoom and Slab/Cut sliders (This Chapter)</li> \n\
	</ul> \n\
	<p> \n\
Having a Slab/Cut slider without a Zoom slider \n\
is not supported. \n\
	</span></p> \n\
	<p><span class="aboutJTAT"><small> \n\
The term &quot;Slab&quot; is used inappropriately in RasMol and \n\
Chime, where there is only one cut plane. It takes two cut \n\
planes to make a true &quot;slab&quot;. Jmol supports true slabbing, \n\
but the slider controls only the front cut plane. Hence, a better \n\
name for the slider is a &quot;Cut Slider&quot;, and this is the \n\
default name in JTAT. \n\
	</small> \n\
	<\/span><span class="forAuthors"> \n\
	<small> \n\
The labels can be changed to &quot;Slab&quot; in jtat/_jsutil/config2.js. \n\
	</small> \n\
	<\/span></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_comp/chapter.htm";

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


  // ========== 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, // blackBackground or whiteBackground
		spinningOff);  // spinningStart, spinningOn, spinningSame, or spinningOff

	// MOLECULAR VIEW DESCRIPTION
	buttons[buttonNumber][iButtonText] =
'Each amino acid in the yeast gal4 protein is colored \n\
<span class="nonpolar">hydrophobic</span> \n\
or \n\
<span class="polar">polar</span>. \n\
<span class="dna">DNA</span> is shown as a cartoon. \n\
';

	// MOLECULAR VIEW DETAILS
	buttons[buttonNumber][iDetailsTitle] = 'What To Look For..';
	buttons[buttonNumber][iDetailsText] =
'With the appropriate cut plane position, you should be able to see a \n\
<span class="nonpolar">hydrophobic</span> \n\
strip between the two alpha helices that point away from the \n\
<span class="dna">DNA</span>. \n\
';

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

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

	// MOLECULAR VIEW DESCRIPTION
	buttons[buttonNumber][iButtonText] =
'Here the protein is shown as a secondary structure schematic \n\
&quot;cartoon&quot;, to remind you where the two longest \n\
alpha helices are. \n\
';

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

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

	// MOLECULAR VIEW DESCRIPTION
	buttons[buttonNumber][iButtonText] =
'One of the two protein chains is translucent, which helps one to see the \n\
amphipathic nature of the alpha helices. \n\
';

chapterConclusion =
	'<p><span class="aboutJTAT"> \n\
The Zoom Slider does not follow zooms done with the mouse. After zooming \n\
with the mouse, if you move the slider, the zoom will snap to the slider\'s \n\
setting and then follow the slider. It is planned that in a future version \n\
of JTAT, the Zoom Slider will follow the mouse. \n\
	</span></p> \n\
';

/* POLLING PERMANENTLY DISABLED
	'<p><span class="aboutJTAT"> \n\
The Zoom Slider automatically follows zooms performed with the mouse. \n\
	</span><span class="forAuthors"> \n\
This involves polling Jmol once per second for the current zoom value. \n\
The polling may cause problems; notably, it clutters Jmol\'s console. \n\
Polling may be stopped by either of two methods: \n\
	<ul> \n\
		<li>Open the console and enter this command:<br> \n\
		<tt><big>javascript disablePolling=false</big></tt> \n\
		<br>This can be done with tutorials online or in local files.</li> \n\
		 \n\
		<li>Set <tt><big>disablePolling</big></tt> to false in jtat/_jsutil/config2.js. \n\
		This can be done only when the tutorial is in local files, or when \n\
		you have write access to the server.</li> \n\
	</ul> \n\
	</span></p> \n\	
';
*/

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