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

/*// transition loop max 23
function applyeffect() {
	if (document.all && photoslider.filters) {
		photoslider.filters.revealTrans.Transition=Math.floor(Math.random()*23)
		photoslider.filters.revealTrans.stop()
		photoslider.filters.revealTrans.apply()
	}
}
*/
// specific transition by changing the number 
function applyeffect() {
	if (document.all && photoslider.filters) {
		photoslider.filters.revealTrans.Transition=6
		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 goImage(idx) {
	which = idx
	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]
}

