var OKAY=false;var cPATH="photos/";var cPREFIX="100_";var cSUFFIX="";var cEXT=".jpg";var iSTARTNUM=1;var iENDNUM=24;var iFILSIZE=1.267;var aFILNAMS=[];var iTOTALFILS=iENDNUM-iSTARTNUM+1;var iTOTALFILSIZE=Math.round(iTOTALFILS*iFILSIZE);var oIMAGES1={};function nextImg(){var iNext,the_image_src;iNext=this.ndx+1;if(iNext==this.names.length)iNext=0;the_image_src=this.names[iNext].src;document.IMAGE01.src=the_image_src;this.ndx=iNext};function prevImg(){var iNext,the_image_src;iNext=this.ndx-1;if(iNext==-1)iNext=this.names.length-1;the_image_src=this.names[iNext].src;document.IMAGE01.src=the_image_src;this.ndx=iNext}function ImgConstr(aNames,iNdx){this.names=aNames||[];this.ndx=iNdx||0;this.disp=nextImg;this.prev=prevImg};function imagesSet(cPath,aFilNames,preLd){var aImagesSrc;if(document.images){if(preLd){window.status='Loading images into memory...';aImagesSrc=preLoad(aFilNames,cPath)}else{aImagesSrc=AddPath(cPath,aFilnames)}oIMAGES1=new ImgConstr(aImagesSrc,0);OKAY=true}window.status=""};function createNames(cPrefix,cSuffix,iStartnum,iEndnum,cExt){var aString=new Array();var iNum=iEndnum-iStartnum+1;var j=iStartnum;for(var i=0;i<iNum;i++){aString[i]=cPrefix+j++ +cSuffix+cExt}return aString};function AddPath(cPath,aFilnams){for(var i=0;i<k;i++){aFilnams[i].src=cPath+aFilnams[i]}return aFilnams};function preLoad(aImgNames,cPath){var k=aImgNames.length;var aImgSrc=new Array(k-1);if(window.document.images){for(var i=0;i<k;i++){aImgSrc[i]=new Image();aImgSrc[i].src=cPath+aImgNames[i]}}else{who("Image swaps or rollovers cannot work.")}return aImgSrc};function accessImage(theImage){var ptheImg=document.getElementById(theImage);var sMsg=" Image Properties ";sMsg+=" Src = "+window.document.ptheImg.src;alert(sMsg);return false};var the_TIMEOUT=0;var the_SECS=1000;var the_WIDTH=0;function prevslide(){oIMAGES1.prev()};function nextslide(){oIMAGES1.disp()};function startShow(){oIMAGES1.disp();the_TIMEOUT=setTimeout("startShow();",the_SECS)};function slideShow(secs){if(secs){the_SECS=secs*1000}if(the_WIDTH){window.document.IMAGE01.width=the_WIDTH}if(the_TIMEOUT){clearTimeout(the_TIMEOUT);the_TIMEOUT=""}else{startShow()}};function chgTimeDelay(iSecs){if(iSecs!=0)the_SECS=iSecs*1000;return the_SECS};function wedone(){defaultStatus="";clearTimeout(the_TIMEOUT);the_TIMEOUT="";self.status='';return true};function setup(){var aImagesSrc,aFilNames;iTOTALFILS=iENDNUM-iSTARTNUM+1;iTOTALFILSIZE=Math.round(iTOTALFILS*iFILSIZE);chgTxt("mymsg",'Creating Filenames...',sCLASS,1);window.status='Creating Filenames ...';if(aFILNAMS.length>0){aFilNames=aFILNAMS}else{aFilNames=createNames(cPREFIX,cSUFFIX,iSTARTNUM,iENDNUM,cEXT)}if(document.images){window.status='Loading images into memory...';chgTxt("mymsg",'Loading images into memory...',sCLASS,1);aImagesSrc=preLoad(aFilNames,cPATH);oIMAGES1=new ImgConstr(aImagesSrc,0);OKAY=true}window.status="";chgTxt("mymsg",'!',sCLASS,1);hideDiv("mymsg");return 0};function who(msg){var code,app,version,iver,ua;var sMsg="";if(msg)sMsg=msg+"\n";with(navigator){code=appCodeName;app=appName;version=appVersion;iver=parseInt(version);ua=userAgent}sMsg+="This works in Mozilla 3+."+"\nAppCodeName = "+code+"\nAppName = "+app+"\nAppVersion = "+version+"\nVersionNo. = "+iver+"\nUserAgent = "+ua+"\nUsable Browser = "+OKAY;alert(sMsg);return 0};
