top_hover = function() {	
	var sfEls = document.getElementById("top_nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" top_hover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" top_hover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", top_hover);

secondHover = function() {
	if(document.getElementById("second_nav_list") != null){
	var sfEls = document.getElementById("second_nav_list").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		//if (this.parentElement.id=="") {	
			sfEls[i].onmouseover=function() {
				this.className+=" second_hover";
			}
			sfEls[i].onmouseout=function() {
				this.className=this.className.replace(new RegExp(" second_hover\\b"), "");
			}
		//}	
	}
	}
}
if (window.attachEvent) window.attachEvent("onload", secondHover);

subHover = function() {
	if(document.getElementById("sub") != null){
	var sfEls = document.getElementById("sub").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		//if (this.parentElement.id=="") {	
			sfEls[i].onmouseover=function() {
				this.className+=" second_hover";
			}
			sfEls[i].onmouseout=function() {
				this.className=this.className.replace(new RegExp(" second_hover\\b"), "");
			}
		//}	
	}
	}
}
if (window.attachEvent) window.attachEvent("onload", subHover);
