window.onload = ( window.onload == "function" )?
	function(){ window.onload(); hoverfix() }:
	function(){ hoverfix(); };

function hoverfix() {

	var myLis = document.getElementById("aheader").getElementsByTagName("ul")[0].getElementsByTagName("li");
	
	for( var i = 0; i < myLis.length; i++ ) {
		li = myLis[i];
		cName = li.className;
		li.onmouseover = function() { this.className = cName + " hover" };
		li.onmouseout = hoverOff(cName); 		
	}
	
	function hoverOff( cName ) {
		return function() {
			this.className = cName;
		};
	}

	// Firstchild-fix
	//document.getElementById("bar").getElementsByTagName("ul")[0].getElementsByTagName("li")[0].className = "first";

}

