// JavaScript Document

/***********************************************
* DHTML slideshow script-  © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice must stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var photos=new Array()
var photoslink=new Array()
var which=0

//define images. You can have as many as you want:
photos[0]="images/conv_photos/09-1.jpg"
photos[1]="images/conv_photos/09-2.jpg"
photos[2]="images/conv_photos/09-3.jpg"
photos[3]="images/conv_photos/09-4.jpg"
photos[4]="images/conv_photos/09-5.jpg"
photos[5]="images/conv_photos/09-6.jpg"
photos[6]="images/conv_photos/09-7.jpg"
photos[7]="images/conv_photos/09-8.jpg"
photos[8]="images/conv_photos/09-9.jpg"
photos[9]="images/conv_photos/09-10.jpg"

photos[10]="images/conv_photos/09-11.jpg"
photos[11]="images/conv_photos/09-12.jpg"
photos[12]="images/conv_photos/09-13.jpg"
photos[13]="images/conv_photos/09-14.jpg"
photos[14]="images/conv_photos/09-15.jpg"
photos[15]="images/conv_photos/09-16.jpg"
photos[16]="images/conv_photos/09-17.jpg"
photos[17]="images/conv_photos/09-18.jpg"
photos[18]="images/conv_photos/09-19.jpg"
photos[19]="images/conv_photos/09-20.jpg"

photos[20]="images/conv_photos/09-21.jpg"
photos[21]="images/conv_photos/09-22.jpg"
photos[22]="images/conv_photos/09-23.jpg"
photos[23]="images/conv_photos/09-24.jpg"
photos[24]="images/conv_photos/09-25.jpg"
photos[25]="images/conv_photos/09-26.jpg"
photos[26]="images/conv_photos/09-27.jpg"
photos[27]="images/conv_photos/09-28.jpg"
photos[28]="images/conv_photos/09-29.jpg"
photos[29]="images/conv_photos/09-30.jpg"

photos[30]="images/conv_photos/09-31.jpg"
photos[31]="images/conv_photos/09-32.jpg"
photos[32]="images/conv_photos/09-33.jpg"
photos[33]="images/conv_photos/09-34.jpg"
photos[34]="images/conv_photos/09-35.jpg"
photos[35]="images/conv_photos/09-36.jpg"
photos[36]="images/conv_photos/09-37.jpg"
photos[37]="images/conv_photos/09-38.jpg"
photos[38]="images/conv_photos/09-39.jpg"
photos[39]="images/conv_photos/09-40.jpg"

photos[40]="images/conv_photos/09-41.jpg"
photos[41]="images/conv_photos/09-42.jpg"
photos[42]="images/conv_photos/09-43.jpg"
photos[43]="images/conv_photos/09-44.jpg"
photos[44]="images/conv_photos/09-45.jpg"
photos[45]="images/conv_photos/09-46.jpg"
photos[46]="images/conv_photos/09-47.jpg"
photos[47]="images/conv_photos/09-48.jpg"
photos[48]="images/conv_photos/09-49.jpg"
photos[49]="images/conv_photos/09-50.jpg"

photos[50]="images/conv_photos/09-51.jpg"
photos[51]="images/conv_photos/09-52.jpg"
photos[52]="images/conv_photos/09-53.jpg"
photos[53]="images/conv_photos/09-54.jpg"
photos[54]="images/conv_photos/09-55.jpg"
photos[55]="images/conv_photos/09-56.jpg"
photos[56]="images/conv_photos/09-57.jpg"
photos[57]="images/conv_photos/09-58.jpg"
photos[58]="images/conv_photos/09-59.jpg"
photos[59]="images/conv_photos/09-60.jpg"
photos[60]="images/conv_photos/09-61.jpg"

//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]=""

//do NOT edit pass this line

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 && photoslider.filters){
photoslider.filters.revealTrans.Transition=Math.floor(Math.random()*23)
photoslider.filters.revealTrans.stop()
photoslider.filters.revealTrans.apply()
}
}

function playeffect(){
if (document.all && photoslider.filters)
photoslider.filters.revealTrans.play()
}

function keeptrack(){
window.status="Image "+(which+1)+" of "+photos.length
}

function backward(){
if (which>0){
which--
applyeffect()
document.images.photoslider.src=photos[which]
playeffect()
keeptrack()
}
}

function forward(){
if (which<photos.length-1){
which++
applyeffect()
document.images.photoslider.src=photos[which]
playeffect()
keeptrack()
}
}

function transport(){
window.location=photoslink[which]
}