


showZoomSlider = true;
showSlabSlider = false;

  // CONTENTS TITLE IS REQUIRED
chapterTitle = 'Tests for clickable echo:';

  // CONTENTS SUBTITLE IS OPTIONAL
chapterSubtitle = '';

chapterIntro = ' \n\
<p> \n\
Show History to see the command block for "echo centerButton". It will \n\
be at the bottom of the history. \n\
</p><p>\n\
(Obviously this green arrow is not the graphic I intend to use if I can get this to work. \n\
This is a .gif file with a transparent background. The planned button will be \n\
an image of a button labeled "Center All".) \n\
</p><p> \n\
Problems: \n\
<ol> \n\
<li>Graphic is not centered horizontally. I used "set echo centerButton center"\n\
which has some effect, but not enough. I\'m guessing it doesn\'t know the width \n\
of the echo. \n\
</li><br> \n\
 \n\
<li>I don\'t know how to get the graphic to be above the bottom edge of Jmol in a window-size independent fashion. \n\
Currently Y is 10%. In small windows, the graphic is partly out of view.\n\
</li><br> \n\
 \n\
<li>I don\'t know how to get the graphic to be its normal size, shown here: \n\
<img src="../../_imgutil/green_arrow_small_transparent_l.gif"> \n\
I tried "font echo 25" to no effect. \n\
</li><br> \n\
 \n\
<li>Clicking the image executes its attached script "select protein; color red;" \n\
only when you hit a tiny sweet spot right in the middle of Jmol. Again, \n\
seems that echo doesn\'t know the size of the image. \n\
</li><br> \n\
<li>Clicking the translucent yellow background rectangle does \n\
 execute its attached \n\
script "select protein; color magenta;". \n\
</li><br> \n\
<li>Both the yellow background rectangle and the graphic are set at 50% 10%, \n\
but they do not co-align. If I could get them to co-align in different sized \n\
windows, I could make the background invisible (fully translucent) to \n\
expand the clickable area. \n\
</li> \n\
 \n\
</ol> \n\
';

var contentsText = '<p> \n\
<a href="../test2/contents.htm"><font \n\
color="black">TEST #2 WITH NON-GRAPHIC ECHO BUTTON</font></a></p> \n\
<p> \n\
<font color="red">Ignore everything below here.</font> \n\
</p> \n\
';

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

contentsButtonGoesTo = '';

provideResetButton = false; // ignored when isContents.

previousChapterButtonGoesTo = "";

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

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