rotate = function() {
	var sfEls = document.getElementById("rotation_controller").getElementsByTagName("li");

	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			elId = this.id;
			index = elId.indexOf("_");
			elIdNum = elId.substring(index+1);
			elImgId = "image_" + elIdNum;
			
			this.className="active"
			document.getElementById(elImgId).className="";
			
			for (var j=0; j<sfEls.length; j++) {
				if(sfEls[j] != this) {
					elId = sfEls[j].id;
					index = elId.indexOf("_");
					elIdNum = elId.substring(index+1);
					elImgId = "image_" + elIdNum
					sfEls[j].className="";
					document.getElementById(elImgId).className="hide";
				}
			}		
			
		}
	}
}
if (window.addEventListener) //DOM method for binding an event
		window.addEventListener("load", rotate, false)
		else if (window.attachEvent) //IE exclusive method for binding an event
		window.attachEvent("onload", rotate)
		else if (document.getElementById) //support older modern browsers
		window.onload=rotate// JavaScript Document