function gotoPage(num){
	switch(num){
		case 0:
			toPage("company");
			break;
		case 1:
			toPage("product");
			break;
		case 2:
			toPage("tradeinfo");
			break;
		case 3:
			toPage("contact");
			break;
		case 4:
			toPage("link");
			break;
		case 5:
			toPage("index");
			break;
		case 6:
			toPage("search");
			break;
		case 7:
			toPage("news");
			break;

		case 20:
			var a_tag = document.createElement("a");
			a_tag.style.behavior='url(#default#homepage)';
			a_tag.sethomepage(window.top.location);
			break;
		case 21:
			window.external.addFavorite(window.top.location, document.getElementsByTagName("title")[0].innerText);
			break;

		default:
			toPage("index");
	}
}
function toPage(purl){
	var pageurl = "" + purl + ".aspx";
	window.location = "" + pageurl;
}


function showDiv(obj) {
	if (obj.style.display == "none") {
		obj.style.display = "block";
	} else {
		obj.style.display = "none";
	}
}
startList = function() {
	try {
		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", "");
					}
				}
			}
		}
	} catch (e) {
		return;
	}
}
window.onload=startList;
