var images = new Array(); images[0]='photos/004.jpg'; images[1]='photos/AB1.jpg'; images[2]='photos/AB2.jpg'; images[3]='photos/AB3.jpg'; images[4]='photos/AB4.jpg'; images[5]='photos/AB5.jpg'; images[6]='photos/AB6.jpg'; images[7]='photos/AB7.jpg'; images[8]='photos/AB8.jpg'; images[9]='photos/AB9.jpg'; images[10]='photos/ABC1.jpg'; images[11]='photos/ABC2.jpg'; images[12]='photos/ABC4.jpg'; images[13]='photos/ABC5.jpg'; images[14]='photos/ABC6.jpg'; images[15]='photos/ABC7.jpg'; images[16]='photos/ABC8.jpg'; images[17]='photos/Acapulco1.jpg'; images[18]='photos/acommodation01.jpg'; images[19]='photos/AE1.jpg'; images[20]='photos/AE2.jpg'; images[21]='photos/AE3.jpg'; images[22]='photos/AE4.jpg'; images[23]='photos/AE5.jpg'; images[24]='photos/AE6.jpg'; images[25]='photos/AE8.jpg'; images[26]='photos/Aerealpoolview7.jpg'; images[27]='photos/AGC1.jpg'; images[28]='photos/AGC2.jpg'; images[29]='photos/AGC3.jpg'; images[30]='photos/AGC4.jpg'; images[31]='photos/AGC5.jpg'; images[32]='photos/AGC6.jpg'; images[33]='photos/AGC7.jpg'; images[34]='photos/AGC8.jpg'; images[35]='photos/AGPbunglow.jpg'; images[36]='photos/AGPdining.jpg'; images[37]='photos/AGPfishtank.jpg'; images[38]='photos/AGProom.jpg'; images[39]='photos/AGProom2.jpg'; images[40]='photos/AGProom3.jpg'; images[41]='photos/AGPwpark.jpg'; images[42]='photos/AGPwpark2.jpg'; images[43]='photos/bahama3.jpg'; images[44]='photos/bahamas2.jpg'; images[45]='photos/bahamascruise.jpg'; images[46]='photos/bahamaTown.jpg'; images[47]='photos/BEBIDAS.jpg'; images[48]='photos/dolphin.jpg'; images[49]='photos/DSC04132.jpg'; images[50]='photos/DSC04133.jpg'; images[51]='photos/DSC04137.jpg'; images[52]='photos/DSC04138.jpg'; images[53]='photos/EN02.jpg'; images[54]='photos/EN03.jpg'; images[55]='photos/EN04.jpg'; images[56]='photos/EN07.jpg'; images[57]='photos/EN08.jpg'; images[58]='photos/EN10.jpg'; images[59]='photos/EN11.jpg'; images[60]='photos/EN12.jpg'; images[61]='photos/EN15.jpg'; images[62]='photos/EN18.jpg'; images[63]='photos/EN19.jpg'; images[64]='photos/EN24.jpg'; images[65]='photos/EN25.jpg'; images[66]='photos/EN26.jpg'; images[67]='photos/EN28.jpg'; images[68]='photos/EN33.jpg'; images[69]='photos/EN34.jpg'; images[70]='photos/IN01.jpg'; images[71]='photos/IN03.jpg'; images[72]='photos/IN04.jpg'; images[73]='photos/IN05.jpg'; images[74]='photos/IN10.jpg'; images[75]='photos/IN11.jpg'; images[76]='photos/IN12.jpg'; images[77]='photos/night-view.jpg'; images[78]='photos/Picture-023-2.jpg'; images[79]='photos/Picture-037.jpg'; images[80]='photos/Picture-050.jpg'; images[81]='photos/Picture-054.jpg'; images[82]='photos/Picture-060.jpg'; images[83]='photos/Picture-077-2.jpg'; images[84]='photos/Picture-093.jpg'; images[85]='photos/Picture-095-2.jpg'; images[86]='photos/Picture-099.jpg'; images[87]='photos/reef-club-isla1.jpg'; images[88]='photos/reef-club-isla10.jpg'; images[89]='photos/reef-club-isla11.jpg'; images[90]='photos/reef-club-isla12.jpg'; images[91]='photos/reef-club-isla14.jpg'; images[92]='photos/Reef-Club-isla16.jpg'; images[93]='photos/reef-club-isla3.jpg'; images[94]='photos/reef-club-isla4.jpg'; images[95]='photos/reef-club-isla7.jpg'; images[96]='photos/reef-club-isla9.jpg'; images[97]='photos/show1.jpg'; images[98]='photos/ViewCabo.jpg'; images[99]='photos/IN02.jpg'; var slideShowSpeed = 5500; // Set slideShowSpeed (milliseconds) var crossFadeDuration = 1; // Duration of crossfade (seconds) var t; // used for timeout (pause) var j = 0; var p = images.length; var preLoad = new Array(); var toggle = "auto"; // preload images /*for (i = 0; i < p; i++) { preLoad[i] = new Image(); preLoad[i].src = images[i]; }*/ // run the slideshow function runSlideShow() { if (toggle == "manual") return; if (document.all) { document.images.slideshow.style.filter="blendTrans(duration=2)"; document.images.slideshow.style.filter="blendTrans(duration=crossFadeDuration)"; document.images.slideshow.filters.blendTrans.Apply(); } j = j + 1; // go to next pic if (j > (p - 1)) j = 0; // if at end of image array, go to first document.images.slideshow.src = images[j]; if (document.all) { document.images.slideshow.filters.blendTrans.Play(); } t = setTimeout('runSlideShow()', slideShowSpeed); // pauses before changing images } function toggleAutoManual() { if (toggle == "auto") { // then toggle to manual document.getElementById("TDprevious").innerHTML = ""; document.getElementById("TDnext").innerHTML = ""; document.getElementById("slideshowtext").innerHTML = "
Manual Slideshow
(Click here to switch to Auto)
"; document.getElementById("slideshowtext").style.fontWeight = "bold"; document.getElementById("slideshowtext").style.color = "#000000"; document.getElementById("slideshowtext").style.textDecoration = "none"; // document.toggleImage.src = "manual.gif"; toggle = "manual"; } else if (toggle == "manual") { // then toggle to auto document.getElementById("TDprevious").innerHTML = " "; document.getElementById("TDnext").innerHTML = " "; // document.toggleImage.src = "auto.gif"; document.getElementById("slideshowtext").innerHTML = "
Auto Slideshow
(Click here to switch to Manual)
"; document.getElementById("slideshowtext").style.fontWeight = "bold"; document.getElementById("slideshowtext").style.color = "#000000"; document.getElementById("slideshowtext").style.textDecoration = "none"; toggle = "auto"; runSlideShow(); } } function toggleOver() { /* if (toggle == "auto") document.toggleImage.src = "auto-over.gif"; else if (toggle == "manual") document.toggleImage.src = "manual-over.gif"; */ } function toggleOut() { /* if (toggle == "auto") document.toggleImage.src = "auto.gif"; else if (toggle == "manual") document.toggleImage.src = "manual.gif"; */ } function nextImage() { j = j + 1; // go to next pic if (j > (p - 1)) j = 0; // if at end of image array, go to first document.images.slideshow.src = images[j]; } function previousImage() { j = j - 1; // go to prev pic if (j < 0) j = p-1; // if at beginning of image array, go to last document.images.slideshow.src = images[j]; } runSlideShow();