function applyToAll(arrLis,sClass)
		{
			var i;
			for(i in arrLis)
			{		
				//alert(arrLis[i].className)		
				arrLis[i].className += " " + sClass;				
			}					
		}
		
		function doRotation(rowNo)
		{
			//alert(rowNo);
			var currRows  = arrRows[rowNo];
			var currIndex = arrCurrIndex[rowNo]
			var i;
			if (currIndex>=currRows.length)
			{
				currIndex =0;
				arrCurrIndex[rowNo] = 0;
			}
			for (i=0;i<currRows.length;i++)
			{
				if(i==currIndex)
					currRows[i].style.display="block";
				else
					currRows[i].style.display="none";
			}
			
			//Increment for next round
			arrCurrIndex[rowNo] = currIndex+1;
			if (currRows.length>1)					
				setTimeout ("doRotation(" + rowNo +");",2000);
		}
      
		function initImages()
		{
			var oFeatures = document.getElementById("features");
			var oFeatures1 = document.getElementById("features1");
			
			if(oFeatures)oFeatures.className= "features";			
			if(oFeatures1)oFeatures1.className= "features1";
			var i,key;
			arrRows[1]= getElementsByClass("image1",oFeatures,"li");
			arrRows[2]= getElementsByClass("image2",oFeatures,"li");
			arrRows[3]= getElementsByClass("image3",oFeatures,"li");
			
			arrRows[4]= getElementsByClass("image4",oFeatures1,"li");
			arrRows[5]= getElementsByClass("image5",oFeatures1,"li");
			arrRows[6]= getElementsByClass("image6",oFeatures1,"li");	
			//init the indexes
			for (i=1;i<7;i++)
			{
				arrCurrIndex[i] = 0;
			}
			//Init the backgrounds
			for (key in arrBackgrounds)
			{
				//break;
				
				document.getElementById(key).getElementsByTagName("A")[0].style.backgroundImage = "url(" + arrBackgrounds[key] + ")"; 
				//childNodes[0]
			}
			
			//arrBackgrounds["feature01"]
							
			applyToAll(arrRows[1],"topLi hideText");
			applyToAll(arrRows[2],"topLi hideText");
			applyToAll(arrRows[3],"topLi rightLi hideText");
			applyToAll(arrRows[4],"hideText")
			applyToAll(arrRows[5],"hideText")
			applyToAll(arrRows[6],"hideText rightLi")
			for (i=1;i<7;i++)
				doRotation(i);
		}