function menuFix() 
{
	var sfEls = document.getElementById("nav").getElementsByTagName("li");
	reaction(sfEls);
	//var lang = document.getElementById("lang").getElementsByTagName("li");
	//reaction(lang);
}
function reaction(sfEls)
{
	for (var i=0; i<sfEls.length; i++) 
	{
		sfEls[i].onmouseover=function() {
			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() {
			this.className=this.className.replace(new RegExp("( ?|^)sfhover\\b"),"");
			//alert(this.className);
			}
	}	
}
startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}
if(navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.match(/6./i)=='6.')
{
	window.onload=menuFix;
}
else
{
	window.onload=startList;
}
function setHeaderSearch()
{
	if(document.formheaderSearch.keyword.value=="")
	{
		alert("please input search keyword");
		return false;
	}

	if(document.formheaderSearch.searchType.value=="1")
	{
		document.formheaderSearch.action = "/virus/search.asp";
	}
	else
	{
		document.formheaderSearch.action = "/en/search_result.asp";
	}
}