again<\/b>, Rangitoto. I made it look antique-like in PhotoShop'; cap[74] = 'Claire talks it up in the middle of this rowdy bunch'; cap[75] = 'The whole crew poses, someone cannot resist the old "hand over head" stunt'; cap[76] = 'A bit better behavior on this photo, thanks guys!'; // ------------- end of captions -----------------------// //-------------------------------------------------------- // (4) SET THE AUTOSHOW DELAY TIME // This is the amount of time between changing of slides // when we are in automatic mode. Values are in // milliseconds, multiple the number of seconds desired // by 1000. If you are unsure, try a value of 8000. var delay_time = 12000; //-------------------------------------------------------- // (5) SET THE BACKGROUND MODE // This variable indicates whether to use a light background // for the slide screen (light_mode = true;) or a dark // background (light_mode = false;) var light_mode = true; //-------------------------------------------------------- // (6) SET THE CAPTION LOCATION // This variable controls the placement of the caption // relative to the picture. Valid values are // 1 above the picture // 2 left of the picture // 3 right of the picture // 4 below the picture var cap_align = 3; //-------------------------------------------------------- // END OF CONFIGURATION AREA // The rest of the code should not be edited! //-------------------------------------------------------- //-------------------------------------------------------- // SET READY FLAG // Called when both images have been loaded on main display // and sets the graphic to indicate state (loaded=1) function ready_state (s_flag) { if (s_flag == 0) { imgLoaded = 0; } else { imgLoaded+=s_flag; } if (document.images) { if (imgLoaded > 1) { document.images.lstat.src = ready_y.src; } else { document.images.lstat.src = ready_n.src; } } } //-------------------------------------------------------- // SLIDE ADVANCER // Called from a click on one of the slide buttons // wDirection is either 1 or -1 function slideClick (wDirection) { slide_count = slide_count + wDirection; if (slide_count < 0 ) { slide_count = 0; } else { playSlide(); } } //-------------------------------------------------------- // SLIDE MENU JUMPER // Go to arbitrary slide from menu selection function goSlide () { // Update the slide counter based upon the menu item selected slide_count = document.control.gomenu.selectedIndex; if (slide_count == 0) { // First menu item resets the show setUp() } else { // Play the selected slide playSlide(); } } //-------------------------------------------------------- // SLIDE PLAYER // Called from several functions to set up the requested // slide. Finds the appropriate image file, caption file function playSlide () { // Check if we tried to go before the first slide if (slide_count == 0) { slide_count = 1; alert ('This is the very first slide!'); } else { // Check if we went past the last slide if (slide_count == slides.length) { slide_count = slides.length - 1; alert ('This is the very last slide!'); } else { // Set state of "loading..." ready_state(0); // Set left button image if (slide_count == 1) { if (document.images) { document.images.leftb.src = leftb_off.src; } } else { if (document.images) { document.images.leftb.src = leftb_on.src; } } // Set right button image if (slide_count == slides.length - 1) { if (document.images) { document.images.rightb.src = rightb_off.src; } } else { if (document.images) { document.images.rightb.src = rightb_on.src; } } // Re-write screen new content parent.frames[0].document.clear(); // Use appropriate background colors if (light_mode) { parent.frames[0].document.write(''); } else { parent.frames[0].document.write(''); } // store the caption in a var my_cap = '' + cap[slide_count] + ''; parent.frames[0].document.write('
'); if (cap_align == 1) { parent.frames[0].document.write( ''); } else if (cap_align == 2) { parent.frames[0].document.write( ''); } // insert the current image here parent.frames[0].document.write(''); } if (cap_align == 4) { parent.frames[0].document.write( ''); } else { parent.frames[0].document.write( ''); } parent.frames[0].document.write( '
' + my_cap + '
' + my_cap + ''); if (cap_align == 3) { parent.frames[0].document.write( '' + my_cap + '
' + my_cap + '
'); // pre-load the next image, if there is one, by inserting it as a 1x1 image if (slide_count != slides.length - 1) { parent.frames[0].document.write(''); } else { parent.frames[1].ready_state(1); } parent.frames[0].document.write('

'); parent.frames[0].document.close(); // update the clicker menu document.control.gomenu.options[slide_count].selected = true; } } } //-------------------------------------------------------- // AUTOMATIC SLIDE SHOW // Turns on or off the automatic advance of slides by // activation of the checkbox on the jClicker function autoShow() { if (document.control.auto.checked) { changeImage(); } else { timerID = clearTimeout(timerID); } } //-------------------------------------------------------- // AUTOMATIC SLIDE SHOW // Controls autoadvance of slides by using Javascript timer // functions function changeImage() { if (imgLoaded > 1) { // all images are loaded // increment the counter, check for loop at last slide slide_count++; if (slide_count == slides.length) { slide_count = 1; } playSlide(); timerID=setTimeout('changeImage()',delay_time); } else { // images still loading, reset timer timerID=setTimeout('changeImage()',1500); } } //-------------------------------------------------------- // SETUP // initializes variables for loading and reloading function setUp() { imgLoaded = 0; // set the left button to the "off" graphic if (document.images) { document.images.leftb.src = leftb_off.src; } // reset the slide counter & menu selection slide_count = 0; document.control.gomenu.options[0].selected = true; // rebuild the title page parent.frames[0].document.clear(); // use appropriate background colors if (light_mode) { parent.frames[0].document.write(''); parent.frames[0].document.write('
slide tray

'); } else { parent.frames[0].document.write(''); parent.frames[0].document.write('

slide tray

'); } parent.frames[0].document.write('' + showTitle + '

'); parent.frames[0].document.write(''); parent.frames[0].document.write(showCredits); parent.frames[0].document.write('
' + (slides.length - 1) + ' images to see!'); parent.frames[0].document.write('

'); parent.frames[0].document.close(); } // End Hiding -->