/*------------------------------------------------------------------ Web Gallery Wizard Copywright KOMOTION, Inc. 2003,2004 ------------------------------------------------------------------*/ var cSlideShowTimeout = 4000; var iSlideCurrent = -1; var timeoutid = ""; var g_fIEBrowser = (window.navigator.userAgent.toLowerCase().indexOf('msie') != -1); var g_fApplyFilterToImage = g_fIEBrowser; function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i= 0 && (i+iDir) < oMainDoc.images.length) { resetImageOnObject(oMainDoc.images.item(i)); oMainDoc.images.item(i+iDir).parentNode.focus(); if (g_fIEBrowser) { oMainDoc.images.item(i+iDir).click(); } else { window.open(oMainDoc.images.item(i+iDir).parentNode.href,"_self"); } break; } } } } function GetFileName(strFileName) { var rgData = strFileName.split("/"); if (rgData.length > 0) return rgData[rgData.length-1]; else return ""; } function StopSlideShow() { var SlideShowPlay = document.getElementById("SlideShowPlay"); parent.window.fSlideShow = false; SlideShowPlay.src = "../../Site/images/WGW_SlidePlay.gif"; iSlideCurrent = -1; } function runSlides() { var SlideShowPlay = document.getElementById("SlideShowPlay"); if (parent.window.fSlideShow == true) { SlideShowPlay.src = "../../Site/images/WGW_SlideStop.gif"; timeoutid = setTimeout("Ticker()", cSlideShowTimeout); } else { SlideShowPlay.src = "../../Site/images/WGW_SlidePlay.gif"; if (timeoutid != "") clearTimeout(timeoutid); } } function SlideShow() { var SlideShowPlay = document.getElementById("SlideShowPlay"); // toggle the existing state parent.window.fSlideShow = !parent.window.fSlideShow; // start or stop the slide show if (parent.window.fSlideShow == true) { SlideShowPlay.src = "../../Site/images/WGW_SlideStop.gif"; NavigateSlideShow(); timeoutid = setTimeout("Ticker()", cSlideShowTimeout); } else { SlideShowPlay.src = "../../Site/images/WGW_SlidePlay.gif"; if (timeoutid != "") clearTimeout(timeoutid); } } function Ticker() { if (g_fIEBrowser) { if (document.readyState == "complete") { // navigate to the next image in album and set another timer NavigateSlideShow(); } } else { NavigateSlideShow(); } timeoutid = setTimeout("Ticker()", cSlideShowTimeout); } function NavigateSlideShow() { if (parent.window.fSlideShow == false) { StopSlideShow(); return; } var strSource = GetFileName(document.getElementById("MainImage").src); var oMainDoc = window.parent.document; if (iSlideCurrent == -1) { for (i = 0; i