<!--
var photos=new Array()
var photoslink=new Array()
var images = new Array()
var which=0
var totalPhotos, i

//The total No of Photos 
totalPhotos = 11

//put images inside an array
images[0]= "mimages/bed01.jpg" 
images[1]= "mimages/F01.jpg" 
images[2] = "mimages/k04.jpg" 
images[3] = "mimages/p04.jpg" 
images[4] = "mimages/F03.jpg" 
images[5] = "mimages/T01.jpg" 
images[6] = "mimages/F02.jpg" 
images[7] = "mimages/k05.jpg" 
images[8] = "mimages/p03.jpg" 
images[9] = "mimages/k03.jpg" 
images[10] = "mimages/un01.jpg" 

var linkornot=0

//define images.  
for (i=0; i < totalPhotos; i++)	{ 
	photos[i]= images[i]
}
		
//set no link 
for (i=0; i < totalPhotos; i++)	{ 	
	photoslink[i]=""
	}
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.revealTrans.Transition=Math.floor(Math.random()*23)
photoslider.filters.revealTrans.stop()
photoslider.filters.revealTrans.apply()
}
}

function playeffect(){
if (document.all)
photoslider.filters.revealTrans.play()
}

function keeptrack(){
window.status="Image "+(which+1)+" of "+photos.length
}

function backward(){
	if (which>0){
		which--
	}
	else	{
		which = photos.length - 1
	}
	applyeffect()
	document.images.photoslider.src=photos[which]
	playeffect()
	keeptrack()
}

function forward(){
	if (which<photos.length-1){
		which++
	}
	else	{
		which = 0
	}
	applyeffect()
	document.images.photoslider.src=photos[which]
	playeffect()
	keeptrack()
}

function transport(){
window.location=photoslink[which]
}
//-->
