// JavaScript Document


var SlideShowSpeed = 3000;
// Set the duration of crossfade (in seconds)
var CrossFadeDuration = 3;
var tss;
var iss;
var jss = 1;


function runSlideShow(){
//var pss = 3;//picture length
var pss = document.getElementById('lengths').value;
if (document.all){
document.images.PictureBox.style.filter="blendTrans(duration=2)";
document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.PictureBox.filters.blendTrans.Apply();}
for(pp=1;pp<=pss;pp++){
	if(jss==1){
		//document.images.PictureBox.src = preLoad[jss].src;
		document.images.PictureBox.src = document.getElementById('x1').value;
	}
	if(jss==2){
		document.images.PictureBox.src = document.getElementById('x2').value;
	}
	if(jss==3){
		document.images.PictureBox.src = document.getElementById('x3').value;
	}
	if(jss==4){
		document.images.PictureBox.src = document.getElementById('x4').value;
	}
	if(jss==5){
		document.images.PictureBox.src = document.getElementById('x5').value;
	}
	if(jss==6){
		document.images.PictureBox.src = document.getElementById('x6').value;
	}
	if(jss==7){
		document.images.PictureBox.src = document.getElementById('x7').value;
	}
	if(jss==8){
		document.images.PictureBox.src = document.getElementById('x8').value;
	}
	if(jss==9){
		document.images.PictureBox.src = document.getElementById('x9').value;
	}
	if(jss==10){
		document.images.PictureBox.src = document.getElementById('x10').value;
	}
}
if (document.all) document.images.PictureBox.filters.blendTrans.Play();
//alert(jss);
//alert(preLoad[jss].src);
jss = jss + 1;
if (jss > (pss)) jss=1;
tss = setTimeout('runSlideShow()', SlideShowSpeed);
}


