// Copyright Parmenio Limited 2002 All rights reserved
//slideshow body code
//set step here if you want to randomise the start

var step=0
var whichimage=0
var RandomStarted=false

<!--

function slideit(){

  if (ie4||dom){
	if (DoSlide==true){		
		if (!document.images)
		return
		if (document.all)
		slide.filters.blendTrans.apply()
		
		//if (step>=arImageList.length) {
		//	arImageList[step] = new Image();
		//	arImageList[step].src = arImageSrc[step];
		//	alert(arImageSrc[step]);
		//}
		//alert(step)
	
		if (document.all){
	
		document.images.slide.src=eval("arImageList["+step+"].src")
		slide.filters.blendTrans.play()
		adaMainPicDesc.innerHTML= eval("arImageDesc["+step+"]")
		
		
		whichimage=step
		}
		
		if (step<number_of_images-1){
			if (step==1 && RandomisePics==true && RandomStarted==false){
				RandomStarted=true
				step=rand(number_of_images)
			}
			else
				step++
		}
		else {
			step=0
		}
	 }
	 startCountDown();
  }	
}

function stopSlide(){
	DoSlide=false
}

function startSlide(){
		DoSlide=true
}

function startCountDown(){
	 //clearTimeOut(curTimeOut);
	 if (document.images && DoSlide)
			curTimeOut=setTimeout("slideit()",speed*1000+3000)
	 else
			curTimeOut=setTimeout("slideit()",speed*1000)
		
}


//-->


