// JavaScript Document
var timeoutID='';
function menuFix() {
	var sfEls = document.getElementById("nav").getElementsByTagName("li");
	for (var i = 0; i < sfEls.length; i++) {
		//if(sfEls[i].id != ''){
			sfEls[i].onmouseover = function () {
				//alert(timeoutID);
				this.className += (this.className.length > 0 ? " " : "") + "sfhover";
			};
			sfEls[i].onMouseDown = function () {
				this.className += (this.className.length > 0 ? " " : "") + "sfhover";
			};
			sfEls[i].onMouseUp = function () {
				this.className += (this.className.length > 0 ? " " : "") + "sfhover";
			};
			sfEls[i].onmouseout = function () {
				//clearTimeout(timeoutID);
				//if(this.id != ''){
					timeoutID = setTimeout("hoverEven2("+this.id+")", 400);
				//}
				//this.className = this.className.replace(new RegExp("( ?|^)sfhover\\b"), "");
			};
		//}
	}
	onSearch(0);
}

function hoverEven(objId){
	var obj = document.getElementById(objId);
	obj.className += (obj.className.length > 0 ? " " : "") + "sfhover";
}

function hoverEven2(objId){
	var obj = document.getElementById(objId);
	if(obj == null){
	}else{
		obj.className = obj.className.replace(new RegExp("( ?|^)sfhover\\b"), "");
	}
}
