// JavaScript Document


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

//Specify whether images should be linked or not (1=linked)
var linkornot=0

//define images. You can have as many as you want:
photos[0]="banner/mintra1.jpg"
photos[1]="banner/mintra2.jpg"
photos[2]="banner/mintra3.jpg"
photos[3]="banner/mintra4.jpg"
photos[4]="banner/mintra5.jpg"
photos[5]="banner/mintra6.jpg"
photos[6]="banner/mintra7.jpg"
photos[7]="banner/mintra8.jpg"
photos[8]="banner/mintra9.jpg"
photos[9]="banner/mintra10.jpg"

//Set corresponding URLs for above images.
photoslink[0]=""
photoslink[1]=""
photoslink[2]=""


//do NOT edit pass this line
timeVar = setTimeout("forward()",19000)

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()*19)
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()
		}else{
			which =9
			applyeffect()			
			document.images.photoslider.src=photos[photos.length-1]
			playeffect()
			keeptrack()			
		}
}


function forward(){
	    clearTimeout(timeVar)
 	    timeVar = setTimeout("forward()",10000)
		if (which<photos.length-1){
			which++
			applyeffect()
			document.images.photoslider.src=photos[which]
			playeffect()
			keeptrack()
		}else{
			which =0;
			applyeffect()
			document.images.photoslider.src=photos[0]
			playeffect()
			keeptrack()			
		}

}