<!--
var delay = 5000;
var run;
var iImg = 1;

function chgImg()
{
	var oSlideshow
	var iRnd

	if (iImg == iNumberOfImages)
		{iImg = 1;}
	else
		{iImg = iImg + 1;}
			
	oSlideshow = document.getElementById("slide1");

	if (document.images)
	{
		if (document.all)
		{
			oSlideshow.style.filter = "blendTrans(duration=2)"
			oSlideshow.filters.blendTrans.Apply()
		}
		oSlideshow.src = 'http://www.thecastlebb.com/images/' + sImgPrefix + iImg + '.jpg';
		if (document.all) {oSlideshow.filters.blendTrans.Play()}
	}
}

function auto()
{
	run = setInterval("chgImg()", delay)
}

auto()
-->