<!--
var ImgNum = 0;
var ImgLength = preLoad.length - 1;
var delay = 3000; //Time delay between Slides in milliseconds
var lock = false;
var run;
var autoPlay = false;

function chgImg(direction)
{
	if (document.images)
	{
		ImgNum = ImgNum + direction;
		if (ImgNum > ImgLength) 
		{
			ImgNum = 0;
		}
		if (ImgNum < 0)
		{
			ImgNum = ImgLength;
		}
		document.slideshow.style.filter = "blendTrans(duration=2)"
		document.slideshow.style.filter = "blendTrans(duration=crossFadeDuration)"
		document.slideshow.filters.blendTrans.Apply()
		document.slideshow.src = preLoad[ImgNum].src;
		document.slideshow.filters.blendTrans.Play()
		slideshowCap.style.filter = "blendTrans(duration=2)"
		slideshowCap.style.filter = "blendTrans(duration=crossFadeDuration)"
		slideshowCap.filters.blendTrans.Apply()
		slideshowCap.innerHTML = NewCap[ImgNum];
		slideshowCap.filters.blendTrans.Play()
	}
}

function auto()
{
	if (lock == true)
	{
		lock = false;
		autoPlay = false;
		window.clearInterval(run);
	}
	else if (lock == false)
	{
		lock = true;
		autoPlay = true;
		run = setInterval("chgImg(1)", delay);
	}
}
-->
