function initLeftMenu()
{
	menu = document.getElementById("sub-menu").getElementsByTagName("LI");

	// set current menu
	loc = window.location.href;
	menuSeq = -1;
	if (loc.indexOf("/about.asp") != -1) {
		menuSeq = 0;
	} else if (loc.indexOf("/guide.asp") != -1) {
		menuSeq = 1;
//	} else if (loc.indexOf("/ratings/fundamental.asp") != -1) {
//		menuSeq = 3;
//	} else if (loc.indexOf("/ratings/structured.asp") != -1) {
//		menuSeq = 4;
//	} else if (loc.indexOf("/watch/fundamental.asp") != -1) {
//		menuSeq = 6;
//	} else if (loc.indexOf("/watch/structured.asp") != -1) {
//		menuSeq = 7;
	} else if (loc.indexOf("/definition") != -1) {
		menuSeq = 3;
	} else if (loc.indexOf("/research.asp") != -1) {
		menuSeq = 4;
	} else if (loc.indexOf("/method.asp") != -1) {
		menuSeq = 5;
	} else if (loc.indexOf("/product.asp") != -1) {
		menuSeq = 6;
	} else if (loc.indexOf("/Event") != -1) {
		menuSeq = 7;
	} else if (loc.indexOf("/contact.asp") != -1) {
		menuSeq = 9;
	} else if (loc.indexOf("/contact_asia.asp") != -1) {
		menuSeq = 10;
	}
	if (menuSeq != -1) {
		menu.item(menuSeq).className = "select";
	}

	// set mouse action
	for(i = 0; i < menu.length; i++) {
		menu.item(i).onmouseover = function menuOver() {
			if (this.className == "") {
				this.className = "over";
			} else if (this.className == "select") {
				this.className = "select over";
			}
		}
		menu.item(i).onmouseout = function menuOut() {
			if (this.className == "over") {
				this.className = "";
			} else if (this.className == "select over") {
				this.className = "select";
			}
		}
	}
}

function showLayer(sLayerName) {
    var oLayer = null;
	oLayer = document.getElementById(sLayerName).style;
	oLayer.visibility = (oLayer.visibility == 'visible' ? 'hidden' : 'visible');
}