');
// insert the current image here
parent.frames[0].document.write('
');
// insert the caption here
parent.frames[0].document.write('');
parent.frames[0].document.write( cap[slide_count] + '
');
// 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('');
}
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 == true) {
changeImage()
} else {
timerID = clearTimeout(timerID);
}
}
//--------------------------------------------------------
// AUTOMATIC SLIDE SHOW
// Controls autoadvance of slides by using Javascript timer
// functions
function changeImage() {
// 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);
}
//--------------------------------------------------------
// SETUP
// initializes variables for loading and reloading
function setUp() {
// 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();
if (light_mode) {
parent.frames[0].document.write('
');
parent.frames[0].document.write('