/*This script bases on:Photo Slider II- By Kevin Adams (kadams@kyk.net)For this script and moreVisit http://www.javascriptkit.comIt has been edited and transformed enormousley by SwissalpS@SwissalpS.wsSwissalpS will not guaranty any service, If you have a problem with this scriptand you have not paid for it: goto the links above and other sites discussingJavaScript.Legal user of this script is: einseilbahn.ch© 29.11.2004*/var interval=4  // added by SwissalpS to make true a Slideshowvar photos=new Array()var text=new Array()var which=0var what=0// added by SwissalpS to make this viewable on localhostvar LZ_baseURL=<base href="file:///Luke's%20Other%20HD/Users/luke/Sites/GoLive%20Sites/SWISSROPE/SkyExpress.ch%20%c4/SkyExpress.ch/";//Change the below variables to reference your own images. You may have as many images in the slider as you wishphotos[0]=LZ_baseURL+"img/1018-10_37.jpg"photos[1]=LZ_baseURL+"img/1018-10_40.jpg"photos[2]=LZ_baseURL+"img/1018-10_42.jpg"photos[3]=LZ_baseURL+"img/1022-14_49.jpg"photos[4]=LZ_baseURL+"img/1022-14_49b.jpg"photos[5]=LZ_baseURL+"img/1022-14_49c.jpg"photos[6]=LZ_baseURL+"img/1022-14_50.jpg"photos[7]=LZ_baseURL+"img/021129_001.jpg"photos[8]=LZ_baseURL+"img/021129_003.jpg"photos[9]=LZ_baseURL+"img/021129_004.jpg"//change coresponding descriptiontext[0]="SkyExpress_1"text[1]="SkyExpress_2"text[2]="SkyExpress_3"text[3]="SkyExpress_4"text[4]="SkyExpress_5"text[5]="SkyExpress_6"text[6]="SkyExpress_7"text[7]="SkyExpress_8"text[8]="SkyExpress_9"text[9]="SkyExpress_10"											// two actions added by SwissalpS to display the setted values at startupwindow.onload=new Function("document.rotater.description.value=text[0]; document.rotater.textint.value=interval; document.rotater.texttot.value=photos.length")// This function has been added by SwissalpSfunction changeInterval(){  alert("Interval Changed!!");  interval=document.rotater.textint.value;}// This function has been added by SwissalpSfunction beginningward(){  clearInterval(runit)    which=0;    what=0;    document.images.photoslider.src=photos[which];    document.rotater.description.value=text[what];    document.rotater.textnow.value=which+1;}// This function has been edited by SwissalpSfunction backward(){  clearInterval(runit)  if (which>0){    which--    what--    document.images.photoslider.src=photos[which];    document.rotater.description.value=text[what];    document.rotater.textnow.value=which+1;  } else {    which=photos.length-1;    what=photos.length-1;    document.images.photoslider.src=photos[which];    document.rotater.description.value=text[what];    document.rotater.textnow.value=which+1;  }  runit=setInterval("backward()",interval*1000)}// This function has been added by SwissalpSfunction stepb(){  clearInterval(runit)  if (which>0){    which--    what--    document.images.photoslider.src=photos[which];    document.rotater.description.value=text[what];    document.rotater.textnow.value=which+1;  } else {    which=photos.length-1;    what=photos.length-1;    document.images.photoslider.src=photos[which];    document.rotater.description.value=text[what];    document.rotater.textnow.value=which+1;  }}// This function has been added by SwissalpSfunction stopward(){  clearInterval(runit)}// This function has been added by SwissalpSfunction jumpto(){  clearInterval(runit)  if (document.rotater.textnow.value != which+1 && document.rotater.textnow.value > 0 && document.rotater.textnow.value <= photos.length) {    which=document.rotater.textnow.value-1;    what=document.rotater.textnow.value-1;    document.images.photoslider.src=photos[which];    document.rotater.description.value=text[what];    document.rotater.textnow.value=which+1;  } else {    document.rotater.textnow.value=which+1  }}// This function has been edited by SwissalpSfunction forward(){  clearInterval(runit)  if (which<photos.length-1){    which++    what++    document.images.photoslider.src=photos[which];    document.rotater.description.value=text[what];    document.rotater.textnow.value=which+1;  }  else {    which=0;    what=0;    document.images.photoslider.src=photos[which];    document.rotater.description.value=text[what];    document.rotater.textnow.value=which+1;  }  runit=setInterval("forward()",interval*1000)}// This function has been added by SwissalpSfunction stepf(){  clearInterval(runit)  if (which<photos.length-1){    which++    what++    document.images.photoslider.src=photos[which];    document.rotater.description.value=text[what];    document.rotater.textnow.value=which+1;  }  else {    which=0;    what=0;    document.images.photoslider.src=photos[which];    document.rotater.description.value=text[what];    document.rotater.textnow.value=which+1;  }}// This function has been added by SwissalpSfunction endward(){  clearInterval(runit)    which=photos.length-1;    what=photos.length-1;    document.images.photoslider.src=photos[which];    document.rotater.description.value=text[what];    document.rotater.textnow.value=which+1;}function type()	{	alert("This textbox will only display default comments")	}// This line has been added by SwissalpSrunit=setInterval("forward()",interval*1000)