// ===========================================================================</a>
// 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 = false;

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

  // CHAPTER TITLE IS REQUIRED
chapterTitle = 'Color Schemes: DRuMS';

  // 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\
Careful selection of colors can help your structural views communicate \n\
effectively, and enhance their attractiveness. Except when there are \n\
compelling reasons to do otherwise, we recommend that you use the standard \n\
color schemes built into JTAT, which are based upon a standard named \n\
<a href="jtatdocs.htm#drums" \n\
target="_blank">DRuMS</a>. \n\
Below are examples illustrating these color schemes. \n\
</span> \n\
</p><p> \n\
<span class="forAuthors"> \n\
JTAT makes it easy to use these color schemes by providing scripts to \n\
color your molecules, ready-made color keys to explain your molecular \n\
views, and style sheets so you can apply the standard colors to text by \n\
naming them. For details on how to use these, please see the \n\
<a href="../../_docs/jtatdocs.htm#drums" \n\
target="_blank">Instructions for Authors</a>. \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 = false; // ignored when isContents.

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

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


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

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

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

//+ composition_key(".") +

	// MOLECULAR VIEW DESCRIPTION
	buttons[buttonNumber][iButtonText] =
'Composition: \n\
<div id="jcontrol1"> \n\
</div> \n\
';

	// MOLECULAR VIEW DETAILS
	buttons[buttonNumber][iDetailsTitle] = 'What Is This Molecule? Checkboxes.';
	buttons[buttonNumber][iDetailsText] =
'Not very many molecules in the \n\
<a href="http://proteopedia.org/wiki/index.php/Protein_Data_Bank" \n\
target="_blank">Protein Data Bank</a> \n\
have all five of protein, DNA, RNA, ligand, and solvent. This one \n\
is bacteriophage \n\
<a href="http://proteopedia.org/wiki/index.php/1s0v" \n\
target="_blank">T7 DNA-dependent RNA polymerase (1s0v)</a>. \n\
In this crystal structure, the \n\
<a href="http://proteopedia.org/wiki/index.php/Asymmetric_Unit" \n\
target="_blank">asymmetric unit</a> \n\
contained four copies. Shown here is \n\
<a href="http://www.ebi.ac.uk/msd-srv/pqs/pqs-bin/macmol.pl?filename=1S0V" \n\
target="_blank">copy 2</a>, \n\
separated by \n\
<a href="http://pqs.ebi.ac.uk/" \n\
target="_blank">EBI\'s Probable Quaternary Structure Server</a>. \n\
<br><br> \n\
<span class="forAuthors"> \n\
Checkboxes to modify a view are an advanced option of JTAT. \n\
See \n\
<a href="../../_docs/jtatdocs.htm#jcontrol" \n\
target="_blank">Jmol Controls</a>. \n\
Because the checkbox labels serve as a color key, the javascript \n\
function composition_key() was not used here. \n\
</span> \n\
';

	// TEXT AFTER MOLECULAR VIEW DESCRIPTION
	buttons[buttonNumber][iPostButtonText] =
'<div class="forAuthors lmarg"> \n\
Script: script ../../_drums/composition.spt \n\
<br> \n\
Color Key: composition_key(".") \n\
</div> \n\
';

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

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

	// MOLECULAR VIEW DESCRIPTION
	buttons[buttonNumber][iButtonText] =
'Chemical Element: '
+ element_key("c,alphac,n,o,s,fe,cu,ni,xe", "", ".");

	// MOLECULAR VIEW DETAILS
	buttons[buttonNumber][iDetailsTitle] = 'What Is This Molecule?';
	buttons[buttonNumber][iDetailsText] =
'This amazing cluster occurs in carbon monoxide \n\
dehydrogenase/acetyl-CoA synthase(CODH/ACS, \n\
<a href="http://proteopedia.org/wiki/index.php/2z8y" \n\
target="_blank">PDB code 2z8y</a>) \n\
from <i>Moorella thermoacetica</i>. It contains two active sites \n\
connected by a one of the longest known intramolecular channels \n\
(138 &Aring;). The first site produces CO from carbon dioxide. \n\
The CO is used at the second site in the synthesis of acetyl-CoA. Xenon was used to \n\
confirm the location of this channel. To see the channel, view \n\
<a href="http://proteopedia.org/wiki/index.php/2z8y" \n\
target="_blank">2z8y in Proteopedia</a>, and click on Xe under Ligands. \n\
';

	// TEXT AFTER MOLECULAR VIEW DESCRIPTION
	buttons[buttonNumber][iPostButtonText] =
'<div class="forAuthors lmarg"> \n\
Script: script ../../_drums/element.spt \n\
<br> \n\
(Could have been simply "color cpk" except for the darker alpha carbons.) \n\
<br> \n\
Color Key: element_key("c,alphac,n,o,s,fe,cu,ni,xe", "", "."); \n\
</div> \n\
';

//Color Key: element_key("c,o,n,s,fe,ni,cu,xe", ".") \n\


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

	setupButton(1,  // NUMBER OF MOLECULES
		"../molecules4all/1acf.pdb.gz", // 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] =
'Secondary Structure: '
+ sst_key(".");

	// MOLECULAR VIEW DETAILS
	buttons[buttonNumber][iDetailsTitle] = 'Profilin; Turns?';
	buttons[buttonNumber][iDetailsText] =
'The molecule shown here is profilin \n\
(<a href="http://proteopedia.org/wiki/index.php/1acf" \n\
target="_blank">1acf</a>), \n\
an actin-binding protein involved in microfilament dyanamics. \n\
It is unusual that the authors of this model designated the \n\
<span class="turn">turns</span>. While it is routine for authors \n\
of protein models to designate <span class="helix">alpha helices</span>\n\
and <span class="strand">beta strands</span>, <span class="turn">turns</span> \n\
are specified in only about 4% of models in the PDB. Jmol shows \n\
secondary structure according to the HELIX, SHEET, and TURN records \n\
placed in the PDB file header by its authors. As of summer, 2008, \n\
Jmol\'s internal calculation of secondary structure is flawed. The best \n\
way to color turns in models lacking TURN records is to add such records. \n\
';

	// TEXT AFTER MOLECULAR VIEW DESCRIPTION
	buttons[buttonNumber][iPostButtonText] =
'<div class="forAuthors lmarg"> \n\
Script: color structure \n\
<br> \n\
Color Key (with <q>Turn</q>): sst_key(".") \n\
<br> \n\
Color Key (without <q>Turn</q>): ss_key(".") \n\
</div> \n\
';

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

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

	// MOLECULAR VIEW DESCRIPTION
	buttons[buttonNumber][iButtonText] =
'Potassium channel (1r3j): \n\
<br><span style="margin-left: 25px;"> \n\ '
+ polarity2_key(".") +
'</span> \n\
';

	// MOLECULAR VIEW DETAILS
	buttons[buttonNumber][iDetailsTitle] = 'Rationale.';
	buttons[buttonNumber][iDetailsText] =
'<span class="aboutJTAT"> \n\
Hydrophobic protein atoms are carbon (and occasionally sulfur), \n\
so are given the <span class="c">gray color of carbon</span>. \n\
Polar protein atoms are a mixture of positive (<span \n\
class="n">nitrogen</span>) and \n\
negative (<span class="o">oxygen</span>) full and partial charges.  \n\
Since the combination of  \n\
<span class="n">blue</span> and <span class="o">red</span> \n\
makes <span class="polar">magenta</span>, that color is used \n\
for <span class="polar">polar</span>. \n\
';

	// TEXT AFTER MOLECULAR VIEW DESCRIPTION
	buttons[buttonNumber][iPostButtonText] =
'<div class="forAuthors lmarg"> \n\
Script: script ../../_drums/polarity2.spt \n\
<br> \n\
Color Key: polarity2_key(".") \n\
</div> \n\
';

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

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

	// MOLECULAR VIEW DESCRIPTION
	buttons[buttonNumber][iButtonText] =
'Potassium channel (1r3j) showing how the extensive hydrophobic \n\
region encircling the molecule fits between the predicted \n\
<span class="o">extracellular</span> and \n\
<span class="n">intracellular</span> lipid membrane/water boundaries. \n\
';

	// MOLECULAR VIEW DETAILS
	buttons[buttonNumber][iDetailsTitle] = 'Membrane Planes';
	buttons[buttonNumber][iDetailsText] =
'Prediction of the membrane planes was done by the <i>Orientations \n\
of Proteins in Membranes (OPM) Server</i>, courtesy of the University \n\
of Michigan. This model, containing pseudo-atoms representing the \n\
predicted membrane planes, was downloaded from \n\
<a href="http://opm.phar.umich.edu/protein.php?pdbid=1r3j" \n\
target="_blank">OPM\'s page on the potassium channel</a>. \n\
';

	// TEXT AFTER MOLECULAR VIEW DESCRIPTION
	buttons[buttonNumber][iPostButtonText] =
	'<br> \n\
<span class="forAuthors"> \n\
For instructions on how to apply \n\
<span class="o">arbitrary</span> \n\
<span class="n">colors</span> \n\
to text, please see the \n\
<a href="../../_docs/jtatdocs.htm#drumskeys" \n\
target="_blank">Instructions for Authors</a>. \n\
</span> \n\
';

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

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

	// MOLECULAR VIEW DESCRIPTION
	buttons[buttonNumber][iButtonText] =
'Protein charge (on Gal4, 1d66): \n\
<br><span style="margin-left: 25px;"> \n\ '
+ aacharge_key(", ") + dna_key(".") +
'</span> \n\
<br> \n\
Please notice that the protein surface contacting the \n\
<span class="dna">DNA</span> has only \n\
<span class="n">positive</span> charges, complementing \n\
the negatively charged phosphate backbone of the \n\
<span class="dna">DNA</span>. \n\
';

	// MOLECULAR VIEW DETAILS
	buttons[buttonNumber][iDetailsTitle] = 'Entire sidechains';
	buttons[buttonNumber][iDetailsText] =
'<span class="aboutJTAT"> \n\
Entire sidechains are colored because quite often, the charged \n\
atoms at the ends of sidechains are missing due to <a \n\
href="http://proteopedia.org/wiki/index.php/Disorder" \n\
target="_blank">disorder</a> in the protein crysal. \n\
<br><br> \n\
Note that this script colors \n\
<span class="n">His</span> \n\
in addition to \n\
<span class="n">Lys</span>, \n\
<span class="n">Arg</span>, \n\
<span class="o">Asp</span>, \n\
and \n\
<span class="o">Glu</span> \n\
even though \n\
<span class="n">His</span> \n\
has only a partial positive charge at neutral pH. \n\
</span> \n\
';

	// TEXT AFTER MOLECULAR VIEW DESCRIPTION
	buttons[buttonNumber][iPostButtonText] =
'<div class="forAuthors lmarg"> \n\
Script: script ../../_drums/aacharge.spt \n\
<br> \n\
Color Keys: aacharge_key(", ") + dna_key(".") \n\
</div> \n\
';

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

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

	// MOLECULAR VIEW DESCRIPTION
	buttons[buttonNumber][iButtonText] =
'Protein charge and polarity in 4 colors: \n\
<div style="margin-left: 25px;"> \n\ '
+ polarity4_key(", ") + dna_key(".") +
'</div> \n\
';

	// MOLECULAR VIEW DETAILS
	buttons[buttonNumber][iDetailsTitle] = 'Entire residues are colored.';
	buttons[buttonNumber][iDetailsText] =
'<span class="aboutJTAT"> \n\
In this <i>Polarity4</i> color scheme, entire amino acids are colored according to the \n\
charges of their sidechains, in order to avoid needing a fifth color \n\
for backbone (see Polarity5, next). \n\
</span> \n\
';

	// TEXT AFTER MOLECULAR VIEW DESCRIPTION
	buttons[buttonNumber][iPostButtonText] =
'<div class="forAuthors lmarg"> \n\
Script: script ../../_drums/polarity4.spt \n\
<br> \n\
Color Keys: polarity4_key(", ") + dna_key(".") \n\
</div> \n\
';


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

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

	// MOLECULAR VIEW DESCRIPTION
	buttons[buttonNumber][iButtonText] =
'Protein charge and polarity in 5 colors: \n\
<div style="margin-left: 25px;"> \n\ '
+ polarity5_key(", ") + dna_key(".") +
'</div> \n\
';

	// MOLECULAR VIEW DETAILS
	buttons[buttonNumber][iDetailsTitle] = 'Sidechains are colored. Rationale.';
	buttons[buttonNumber][iDetailsText] =
'<span class="aboutJTAT"> \n\
In this <i>Polarity5</i> color scheme, amino acid sidechains are colored \n\
by charge/polarity/hyrophobicity, while backbone (main chain) atoms are \n\
given a distinct 5th color. \n\
<br><br> \n\
Backbone, while it is <q>polar, uncharged</q>, is given a distinct color \n\
because most of its hydrogen bonding needs are met internally by \n\
secondary structure interactions. Therefore, on average, it is less available \n\
for hydrogen bonding with non-backbone atoms than are polar sidechain atoms. \n\
</span> \n\
';

	// TEXT AFTER MOLECULAR VIEW DESCRIPTION
	buttons[buttonNumber][iPostButtonText] =
'<div class="forAuthors lmarg"> \n\
Script: script ../../_drums/polarity5.spt \n\
<br> \n\
Color Keys: polarity5_key(", ") + dna_key(".") \n\
</div> \n\
';

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

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

	// MOLECULAR VIEW DESCRIPTION
	buttons[buttonNumber][iButtonText] =
'Nucleic acid sequence: \n\
<div style="margin-left: 25px;"> \n\ '
+ nucbases_key(".") +
'</div> \n\
This view shows only the DNA and RNA from the T7 polymerase shown \n\
in View 1 (1s0v). Can you tell which chain is RNA? (Look for the \n\
single <span class="u">Uracil</span>.) \n\
';

	// TEXT AFTER MOLECULAR VIEW DESCRIPTION
	buttons[buttonNumber][iPostButtonText] =
'<div class="forAuthors lmarg"> \n\
Script: script ../../_drums/nucbases.spt \n\
<br> \n\
Color Key: nucbases_key(".") \n\
<br> \n\
Below: \n\
<br> \n\
Color Key: nucbasesmnemonic_key(".") \n\
</div> \n\
<br> \n\
The above colors were chosen in part because they can be remembered \n\
like this:  \n\
' + nucbasesmnemonic_key(".");

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

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

	// MOLECULAR VIEW DESCRIPTION
	buttons[buttonNumber][iButtonText] =
'Nucleic acid base sequence vs. backbone: \n\
<div style="margin-left: 25px;"> \n\ '
+ nucbasesbb_key(".") +
'</div> \n\
';

	// TEXT AFTER MOLECULAR VIEW DESCRIPTION
	buttons[buttonNumber][iPostButtonText] =
'<div class="forAuthors lmarg"> \n\
Script: script ../../_drums/nucbasesbb.spt \n\
<br> \n\
Color Key: nucbasesbb_key(".") \n\
</div> \n\
';

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

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

	// MOLECULAR VIEW DESCRIPTION
	buttons[buttonNumber][iButtonText] =
'Purines vs. pyrimidines: \n\
<div style="margin-left: 25px;"> \n\ '
+ purpyr_key(".") +
'</div> \n\
';

	// TEXT AFTER MOLECULAR VIEW DESCRIPTION
	buttons[buttonNumber][iPostButtonText] =
'<div class="forAuthors lmarg"> \n\
Script: script ../../_drums/purpyr.spt \n\
<br> \n\
Color Key: purpyr_key(".") \n\
</div> \n\
';

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

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

	// MOLECULAR VIEW DESCRIPTION
	buttons[buttonNumber][iButtonText] =
'Nucleic acid base sequence vs. backbone: \n\
<div style="margin-left: 25px;"> \n\ '
+ purpyr_key(", ") + dna_backbone_key(", ") + rna_backbone_key(".") +
'</div > \n\
';

	// TEXT AFTER MOLECULAR VIEW DESCRIPTION
	buttons[buttonNumber][iPostButtonText] =
'<div class="forAuthors lmarg"> \n\
Script: script ../../_drums/purpyrbb.spt \n\
<br> \n\
Color Key: purpyr_key(", ") + dna_backbone_key(", ") + rna_backbone_key(".") \n\
</div> \n\
';

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

	// CHAPTER CONCLUSION
	chapterConclusion = '';

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