﻿function startRotate()
{
	for(var Counter = 0; Counter < divArray.length; ++Counter)
	{
		if(divArray[Counter].style.display == "")
		{
			divArray[Counter].style.display = "none";
			
			if(Counter == divArray.length -1)
				divArray[0].style.display = "";
			else
				divArray[Counter+1].style.display = "";
			break;
		}
	}
	setTimeout("startRotate()", 10000);
}

 var divArray = new Array ();

function startClientSide()
{ 
	var divArrayTemp = document.getElementById('RHS_Rotate').getElementsByTagName('DIV');
	
	for(var counter2=0; counter2<divArrayTemp.length;++counter2)
	{
		if(divArrayTemp[counter2].parentNode.id == "RHS_Rotate")
			divArray.push(divArrayTemp[counter2]);
	}
	
	
	if(divArray.length > 0) 
 	{
		document.getElementById('RHS_Rotate').className = "aboutRHS_Box2";
 	
 		if(divArray.length == 1)
		{
			divArray[0].className = "aboutRHS_Item";
		 	divArray[0].style.display = "";	
		}
 		else
 		{
 			for(var Counter = 0; Counter < divArray.length; ++Counter)
 			{
				if(Counter > 0)
				{
 					divArray[Counter].style.display = 'none';
 				}
 				divArray[Counter].className = "aboutRHS_Item";
 			}
 			startRotate();
 		}
 	}
}

