<!--
var delay = 5000;
var run;
var iImg1 = 3
var iLastRnd = -1

function chgImg()
{
	var oSlideshow
	var iRnd
	var iImg

	for (var counter = 0; counter <= 50; counter++)
	{
		//iRnd = Math.round(iNumberOfImages * Math.random()) + 1
		iRnd = Math.floor(Math.random() * iNumberOfImages + 1)
		if (iRnd != iImg1 ) {break}
	}

	iImg = iRnd

	for (var counter = 0; counter <= 50; counter++)
	{
		iRnd = Math.round(1 * Math.random())
		if (iRnd != iLastRnd) {break}
	}

	iLastRnd = iRnd

	oSlideshow = document.getElementById("slide1"); iImg1 = iImg

	if (document.images)
	{
		if (document.all)
		{
			oSlideshow.style.filter = "blendTrans(duration=2)"
			oSlideshow.filters.blendTrans.Apply()
		}
		oSlideshow.src = '/images/' + sImgPrefix + iImg + '.jpg';
		if (document.all) {oSlideshow.filters.blendTrans.Play()}
	}
}

function auto()
{
	run = setInterval("chgImg()", delay)
}

auto()
-->