/*
DHTML slideshow script- 
© Dynamic Drive (www.dynamicdrive.com)
For full source code, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/

var photos=new Array()
var photoslink=new Array()
var which=0

//define images. You can have as many as you want. Images MUST be of the same dimensions (for NS's sake)
photos[0]="/images/demo/slide01.gif"
photos[1]="/images/demo/slide02.gif"
photos[2]="/images/demo/slide03.gif"
photos[3]="/images/demo/slide04.gif"
photos[4]="/images/demo/slide05.gif"
photos[5]="/images/demo/slide06.gif"
photos[6]="/images/demo/slide07.gif"
photos[7]="/images/demo/slide08.gif"
photos[8]="/images/demo/slide09.gif"
photos[9]="/images/demo/slide10.gif"
photos[10]="/images/demo/slide11.gif"
photos[11]="/images/demo/slide12.gif"
photos[12]="/images/demo/slide13.gif"
photos[13]="/images/demo/slide14.gif"
photos[14]="/images/demo/slide15.gif"
photos[15]="/images/demo/slide16.gif"



//Specify whether images should be linked or not (1=linked)
var linkornot=0

//Set corresponding URLs for above images. Define ONLY if variable linkornot equals "1"
photoslink[0]=""
photoslink[1]=""
photoslink[2]=""
photoslink[3]=""
photoslink[4]=""

var preloadedimages=new Array()
for (i=0;i<photos.length;i++){
preloadedimages[i]=new Image()
preloadedimages[i].src=photos[i]
}

function applyeffect(){
if (document.all){
slider.filters.revealTrans.Transition=5;
slider.filters.revealTrans.stop()
slider.filters.revealTrans.apply()
}
}



function playeffect(){
if (document.all)
slider.filters.revealTrans.play()
}

function keeptrack(){
window.status="Slide "+(which+1)+" of "+photos.length
}


function backward(){
if (which>0){
which--
applyeffect()
document.images.slider.src=photos[which]
playeffect()
keeptrack()
}
}

function forward(){
if (which<photos.length-1){
which++
applyeffect()
document.images.slider.src=photos[which]
playeffect()
keeptrack()
}
}

function transport(){
window.location=photoslink[which]
}