// JavaScript Document
function nav_sel(){
	
	var navItem=document.getElementById("menu").getElementsByTagName("li");
	
		switch(nav){
		case "home":
			navItem[0].firstChild.className="current";
			break;
		case "promotion":
			navItem[1].firstChild.className="current";
			break;
		case "products":
			navItem[2].firstChild.className="current";
			break;
		case "download":
			navItem[3].firstChild.className="current";
			break;
		case "support":
			navItem[4].firstChild.className="current";
			break;
		case "cooperation":
			navItem[5].firstChild.className="current";
			break;
					case "company":
			navItem[6].firstChild.className="current";
			break;
		}
}


// JavaScript Document
function menuFix() {
var sfEls = document.getElementById("nav").getElementsByTagName("li");
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"), 

"");
}
}
}

function loadfun(){
	nav_sel();
	menuFix();
	}
	window.onload = loadfun;

