// Set the slideshow speed (in milliseconds)
var SlideShowSpeed = 4000;
// Set the duration of crossfade (in seconds)
var CrossFadeDuration = 0;
var Picture = new Array(); // don't change this
var Caption = new Array(); // don't change this

// Specify the image files...
// To add more images, just continue
// the pattern, adding to the array below.
// To use fewer images, remove lines
// starting at the end of the Picture array.
// Caution: The number of Pictures *must*
// equal the number of Captions!
Picture[1]  = 'images/img1.jpg';
Picture[2]  = 'images/img2.jpg';
Picture[3]  = 'images/img3.jpg';
Picture[4]  = 'images/img4.jpg';

var tss;
var iss;
var jss = 1;
var pss = Picture.length-1;
var preLoad = new Array();
for (iss = 1; iss < pss+1; iss++){
preLoad[iss] = new Image();
preLoad[iss].src = Picture[iss];}
speed=1;
speednew=5;
function ttt()
{
}

function lightup_1(opt)
{
	document.images.PictureBox.style.MozOpacity=opt/100;
	if(opct==50)
	{
		opct=opt+1;
		setTimeout('lightup_1('+opct+')', speed);
	} else {
		if(opct<=100)
		{
			opct=opt+1;
			setTimeout('lightup_1('+opct+')', speednew);
		} else {
			setTimeout('ttt',0);
		}
	}
}
function runSlideShow(){
if(navigator.appName=='Netscape') {
	
	opct=50;
	setTimeout('lightup_1('+opct+')', speed);
	//setTimeout('',0);
	document.images.PictureBox.src = preLoad[jss].src;
	
	
} else {
	if (document.all){
	document.images.PictureBox.style.filter="blendTrans(duration=50)";
	document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)";
	document.images.PictureBox.filters.blendTrans.Apply();
	}
	document.images.PictureBox.src = preLoad[jss].src;
	document.images.PictureBox.filters.blendTrans.Play();
}
jss = jss + 1;
if (jss > (pss)) jss=1;
tss = setTimeout('runSlideShow()', SlideShowSpeed);
}
