//Specify whether images should be linked or not (1=linked)
var linkornot;
var slidehight;
if (linkornot==undefined) linkornot=1;
if (linkornot==1)
	document.write('<a href="javascript:transport()">')
if(slidehight == undefined ) slidehight=250;
document.write('<img src="'+photos[0]+'" name="photoslider" height=' + slidehight + ' style="filter:revealTrans(duration=2,transition=23)" border=0>')
if (linkornot==1)
	document.write('</a>')


/***********************************************
* 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
***********************************************/



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--
	}
	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]
}
