<!--

var ImgNum = 0;
var ImgLength = preLoad.length - 1;
var delay = 5000; //Time delay between Slides in milliseconds
var run;
var iPlayed = 0;

function chgImg()
{
	var oSlideshowPic = document.getElementById('slideshow')
	//alert(oSlideshowPic.src)

	if (iPlayed > 10)
	{
		window.clearInterval(run);
	}
	else
	{
		if (document.images)
		{
			ImgNum = ImgNum + 1;
			if (ImgNum > ImgLength) 
			{
				ImgNum = 0;
				iPlayed = iPlayed + 1
			}
			if (ImgNum < 0)
			{
				ImgNum = ImgLength;
			}

			if (document.all)
			{
				oSlideshowPic.style.filter = "blendTrans(duration=5)"
				oSlideshowPic.style.filter = "blendTrans(duration=crossFadeDuration)"
				oSlideshowPic.filters.blendTrans.Apply()
			}

			oSlideshowPic.src = preLoad[ImgNum].src;

			if (document.all) {oSlideshowPic.filters.blendTrans.Play()}
		}
	}
}

function auto()
{
	run = setInterval("chgImg()", delay);
}

auto()

-->
