	var aRotatingImages = new Array();

	var iImageCount = 0;
	var aImages = new Array();
	for (var k = 0; k < document.images.length; k++)
	{
		if (document.images[k].id == "rotatingImgImage")
		{
			aImages[iImageCount] = document.images[k];
			iImageCount++;
		}
	}

	var iNumImages = 0;	
	for (var j = 0; j < document.forms.length ; j++)
	{
		if (document.forms[j].rotatingImgList != null)
		{	
			aRotatingImages[iNumImages] = new Array();
			
			aRotatingImages[iNumImages][0] = document.forms[j];
			
			aRotatingImages[iNumImages][1] = aImages[iNumImages];
			aRotatingImages[iNumImages][2] = document.forms[j].rotatingImgList;
			aRotatingImages[iNumImages][3] = document.forms[j].rotatingImgList.length;
			aRotatingImages[iNumImages][4] = document.forms[j].rotatingImgList.selectedIndex;
			
			iNumImages++;
		}
	}
	
	var oTimer;
	var iCycleMilliSeconds = 3000;
	window.clearInterval(oTimer);
	oTimer=window.setInterval(scrollPicture,iCycleMilliSeconds);

	var iImageRotations = 0;
		
	function scrollPicture()
	{
		var iImage = iImageRotations % aRotatingImages.length;
		
		aRotatingImages[iImage][4] 								= (aRotatingImages[iImage][4] + 1) % aRotatingImages[iImage][3];
		
		aRotatingImages[iImage][2].selectedIndex	= aRotatingImages[iImage][4];
		aRotatingImages[iImage][1].src						= aRotatingImages[iImage][2].value;
		
		iImageRotations++;
		
		window.clearInterval(oTimer);
		oTimer=window.setInterval(scrollPicture,iCycleMilliSeconds);
	}
	
	function stopRotation(oForm, cSrc)
	{
		for (var i = 0; aRotatingImages.length; i++)
		{
			if (aRotatingImages[i][0] == oForm)
			{
					aRotatingImages[i][1].src = cSrc;
					window.clearInterval(oTimer);
					break;
			}
		}
	}
	
	function setIntervalTime(iCycleTime)
	{
		iCycleMilliSeconds = iCycleTime;
	}