var photos=new Array();
var photoslink=new Array();
var which=0;
var linkornot=0;

//define images. You can have as many as you want:
photos[0]="images/slideshow/01.JPG";
photos[1]="images/slideshow/02.JPG";
photos[2]="images/slideshow/03.JPG";
photos[3]="images/slideshow/04.JPG";
photos[4]="images/slideshow/05.JPG";
photos[5]="images/slideshow/06.JPG";
photos[6]="images/slideshow/07.JPG";
photos[7]="images/slideshow/08.JPG";
photos[8]="images/slideshow/09.JPG";
photos[9]="images/slideshow/10.JPG";
photos[10]="images/slideshow/11.JPG";
photos[11]="images/slideshow/12.JPG";
photos[12]="images/slideshow/13.JPG";
photos[13]="images/slideshow/14.JPG";
photos[14]="images/slideshow/15.JPG";
photos[15]="images/slideshow/16.JPG";
photos[16]="images/slideshow/17.JPG";
photos[17]="images/slideshow/18.JPG";
photos[18]="images/slideshow/19.JPG";
photos[19]="images/slideshow/20.JPG";
photos[20]="images/slideshow/21.JPG";
photos[21]="images/slideshow/22.JPG";
photos[22]="images/slideshow/23.JPG";
photos[23]="images/slideshow/24.JPG";
photos[24]="images/slideshow/25.JPG";
photos[25]="images/slideshow/26.JPG";
photos[26]="images/slideshow/27.JPG";
photos[27]="images/slideshow/28.JPG";
photos[28]="images/slideshow/29.JPG";
photos[29]="images/slideshow/30.JPG";
photos[30]="images/slideshow/31.JPG";
photos[31]="images/slideshow/32.JPG";
photos[32]="images/slideshow/33.JPG";
photos[33]="images/slideshow/34.JPG";
photos[34]="images/slideshow/35.JPG";
photos[35]="images/slideshow/36.JPG";
photos[36]="images/slideshow/38.JPG";
photos[37]="images/slideshow/39.JPG";
photos[38]="images/slideshow/40.JPG";
photos[39]="images/slideshow/41.JPG";
photos[40]="images/slideshow/42.JPG";
photos[41]="images/slideshow/43.JPG";
photos[42]="images/slideshow/44.JPG";
photos[43]="images/slideshow/45.JPG";
photos[44]="images/slideshow/46.JPG";
photos[45]="images/slideshow/47.JPG";
photos[46]="images/slideshow/48.JPG";
photos[47]="images/slideshow/49.JPG";
photos[48]="images/slideshow/50.JPG";
photos[49]="images/slideshow/51.JPG";

//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]
}