not<\/i> say "Toshiba")'; cap[58] = 'Fuel prices look cheap.... but that is Kiwi dollars per liter, making it US$1.93/gallon'; cap[59] = 'View of the Overlander, our 11 hour journey from Wellington to Auckland'; cap[60] = 'The train is ready!'; cap[61] = 'The main drag through Parnell where we we stayed for our last part of the trip'; cap[62] = 'A view of downton from the Parnell Rise'; cap[63] = 'Alan provides a stiff pose on Queen Street'; cap[64] = 'Nintendo brings its services to the streets of Auckland'; cap[65] = 'The bustling Loaded Hog restaurant at the waterfront'; cap[66] = 'A fine pint of Loaded Hog Wheat'; cap[67] = 'One of the monster yachts that ply the Auckland harbor'; cap[68] = 'Oneroa beach on Waiheke Island'; cap[69] = 'Reflection of the beach front homes in Oneroa'; cap[70] = 'A rocky view of the Hauraki Gulf and Rangitoto looms beyond'; cap[71] = 'One of the small but active wineries on Waiheke'; cap[72] = 'Lovely roadside flowers on a side road'; cap[73] = 'We found this art gallery listed on the tourist maps...'; cap[74] = '... but the gallery had folded, unless this is an art statement we do not understand'; cap[75] = 'Our last night dinner again at Ignauca'; // ------------- 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 -->