/*
DHTML slideshow script- 
© Dynamic Drive (www.dynamicdrive.com)
For full source code, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/



//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 Link(){
	//alert('links to ' + photoslink[which]);
	var winlink=window.open(photoslink[which],'winLink','width=600,height=480,resizable=1');

}




function applyeffect(){
if (document.all){
var iCurTransCode = Math.floor(Math.random()*23);
if (iCurTransCode==4){iCurTransCode=3}
if (iCurTransCode==10){iCurTransCode=12}
if (iCurTransCode==18){iCurTransCode=3}
if (iCurTransCode==15){iCurTransCode=12}
if (iCurTransCode==0){iCurTransCode=12}
if (iCurTransCode==2){iCurTransCode=8}
if (iCurTransCode==9){iCurTransCode=12}
if (iCurTransCode==10){iCurTransCode=12}
if (iCurTransCode==11){iCurTransCode=21}
window.status=iCurTransCode;
photoslider.filters.revealTrans.Transition=iCurTransCode
photoslider.filters.revealTrans.stop()
photoslider.filters.revealTrans.apply()
}
}



function playeffect(){
if (document.all)
photoslider.filters.revealTrans.play()
}

function keeptrack(){
	if (descornot){
	
		if (bolDisplayImageTitle)
		{
			window.document.frmInfo.txtTitle.value=photostitle[which]
		}
		if (bolDisplayImageDescription)
		{
			window.document.frmInfo.txtDescription.value=photosdescription[which]
		}	
	}
}


function backward(){
	if (which>0)
	{
		which--
		applyeffect()
		//document.images.photoslider.width=300
		//document.images.photoslider.height=300
		document.images.photoslider.src=escape(photos[which])
		if (bolDisplayImageTitle)
		{
			window.document.frmInfo.txtTitle.value=photostitle[which]
		}
		if (bolDisplayImageDescription)
		{
			window.document.frmInfo.txtDescription.value=photosdescription[which]
		}	
		playeffect()
		//keeptrack()
	}
	else
	{
		which=iImageCount;
		applyeffect()
		document.images.photoslider.src=photos[which]
		if (bolDisplayImageTitle)
		{
			window.document.frmInfo.txtTitle.value=photostitle[which]
		}
		if (bolDisplayImageDescription)
		{
			window.document.frmInfo.txtDescription.value=photosdescription[which]
		}	
		playeffect()
		//keeptrack()		
	}
}


function goSpecific(iWhich){
//alert('play '+which)
which=iWhich
applyeffect()
document.images.photoslider.src=photos[which]
		if (bolDisplayImageTitle)
		{
			window.document.frmInfo.txtTitle.value=photostitle[which]
		}
		if (bolDisplayImageDescription)
		{
			window.document.frmInfo.txtDescription.value=photosdescription[which]
		}	
playeffect()
//keeptrack()
}


function forward(){
	if (which<photos.length-1)
	{
		which++
		applyeffect()
		document.images.photoslider.src=photos[which]
		if (bolDisplayImageTitle)
		{
			window.document.frmInfo.txtTitle.value=photostitle[which]
		}
		if (bolDisplayImageDescription)
		{
			window.document.frmInfo.txtDescription.value=photosdescription[which]
		}	
		playeffect()
		//keeptrack()
	}
	else
	{
		which=0;
		applyeffect()
		document.images.photoslider.src=photos[which]
		if (bolDisplayImageTitle)
		{
			window.document.frmInfo.txtTitle.value=photostitle[which]
		}
		if (bolDisplayImageDescription)
		{
			window.document.frmInfo.txtDescription.value=photosdescription[which]
		}	
		playeffect()
		//keeptrack()
	}
}

function transport(){
window.location=photoslink[which]
}


