


sfHover = function() {
	var sfEls = document.getElementById("sidebar_menu").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover ";
		}
		sfEls[i].onmouseout=function() {
			var re=/sfhover/;
			var r=this.className.replace(re," ");
			this.className=r;
		}
	}
}
activemenu = function() {

		if(document.getElementById(i)) document.getElementById(i).className=m+"active ";
	}
if (window.addEventListener) { //DOM method for binding an event
	window.addEventListener("load", sfHover, false);
	window.addEventListener("load", activemenu, false);
}
else if (window.attachEvent) { //IE exclusive method for binding an event
	window.attachEvent("onload", sfHover);
	window.attachEvent("onload", activemenu);
}
else if (document.getElementById) {//support older modern browsers
	window.onload=sfHover;
	window.onload=activemenu;
}



