function f_GoMenu(code) {
	switch (code) {
		// flash URL
		case 100 :
			location.href = "/01-notice/index_01-01.php";
			break;
		case 110 :			
			location.href = "/01-notice/index_01-02.php";
			break;
		case 120 :
			location.href = "/01-notice/index_01-03.php";
			break;
		case 130 :
			location.href = "/01-notice/index_01-04.php";
			break;
		case 200 :
			location.href = "/02-guide/index_02-01.php";
			break;
		case 210 :
			location.href = "/02-guide/index_02-02.php";
			break;
		case 220 :
			location.href = "/02-guide/index_02-03.php";
			break;
		case 230 :
			location.href = "/02-guide/index_02-04.php";
			break;
		case 240 :
			location.href = "/02-guide/index_02-05.php";
			break;
		case 250 :
			location.href = "/02-guide/index_02-06.php";
			break;
		case 260 :
			location.href = "/02-guide/index_02-07.php";
			break;
		case 300 :	
			location.href = "http://www.on9g.com/en/forumdisplay.php?fid=235";
			break;
		case 310 :
			location.href = "/03-community/index_03-01.php";
			break;
        case 320 :
			location.href = "/03-guide/index_03.php";
			break;
        case 330 :
			location.href = "/03-guide/index_04.php";
			break;
		case 340 :
			location.href = "/03-guide/index_05-1.php";
			break;
		case 350 :
			location.href = "/03-guide/index_06-1.php";
			break;	
		case 400 :
			location.href = "/04-ranking/index_04-01.php";
			break;
		case 410 :
			location.href = "/04-ranking/index_04-01.php";
			break;
        case 420 :
			location.href = "/04-newplayer/index_03.php";
			break;
        case 430 :
			location.href = "/04-newplayer/index_04.php";
			break;	
		case 500 :
			location.href = "/05-club/index_05-01.php";
			break;
		case 510 :
			location.href = "/05-club/index_05-01.php";
			break;
		case 600 :
			location.href = "/06-download/index_06-01.php";
			break;
		case 610 :
			location.href = "/06-download/index_06-02.php";
			break;
        case 620 :
			location.href = "/06-download/index_06-03.php";
			break;
        case 630 :
			location.href = "preparing/";
			break;
		case 700 :
			location.href = "/07-support/index_07-01.php";
			break;
		case 710 :
			location.href = "https://www.runup.com.sg/service/";
			break;
        case 720 :
			location.href = "/07-support/index_07-03.php";
			break;
		case 800 :
			location.href = "/top.php";
			break;
		case 810 :
			location.href = "/08-support/index_02.php";
			break;
        case 820 :
			location.href = "/08-support/index_03.php";
			break;
        case 830 :
			location.href = "/08-support/index_04.php";
			break;
        case 840 :
			location.href = "/08-support/index_05-1.php";
			break;
        case 850 :
			location.href = "https://v1.runup.com.tw/service/";
			break;
		case 860 :
			location.href = "/08-support/index_07.php";
			break;
		case 870 :
			location.href = "/08-support/index_08.php";
			break;
		case 900 :
			location.href = "/top.php";
			break;
		case 1000 :
			location.href = "/top.php";
			break;
		case 1100 :
			location.href = "/top.php";
			break;
		default :
			location.href = "/";
	}
}

function f_GoViewList (frm, strUrl) { 
	eval(frm).action = strUrl;
	eval(frm).submit();
}

function f_GoPageNum (frm, strUrl,pageNum) { 
	eval(frm).action = strUrl;
	eval(frm).cP.value = pageNum;
	eval(frm).submit();
}

function f_ReadArticle(frm,cId){
	eval(frm).cIdx.value = cId;
	eval(frm).submit(); 
}

function f_GoMain()
{
	location.href="#";
}

function f_GoPage(strUrl)
{
	location.href = strUrl;
}

function f_GoLogin(strUrl)
{
	location.href = "#" + strUrl;
}

function f_GoOpenPage(strUrl)
{
	opener.location.href = strUrl;
}

//¶}±Òµøµ¡

function over() {
	var targetid, srcElement, targetElement;
	var submenus;

	srcElement=window.event.srcElement.parentElement;
	
	if(event.srcElement.parentElement.className.indexOf("outline") >= 0) 
	{
		targetid=srcElement.id + "d";
	
		submenus = document.all.submenupanel;
		var child;
	
		for (i = 0; i < submenus.children.length; i++) {
			child = submenus.children.item(i);
			if (child.id == targetid) {
				child.style.display = "";
			}
			else{
				child.style.display = "none";
			}
		}
	}
}

function MouseOver() {
	if(event.srcElement.className == "rollover") {
		var imgSrc = event.srcElement.src;
		var newImgSrc = imgSrc.replace(".gif", "_on.gif");
		event.srcElement.src = newImgSrc;
	}
}

function MouseOut() {
	if(event.srcElement.className == "rollover") {
		var imgSrc = event.srcElement.src;
		var newImgSrc = imgSrc.replace("_on.gif", ".gif");
		event.srcElement.src = newImgSrc;
	}
}

function f_Init() {
	document.body.attachEvent("onmouseover", MouseOver);
	document.body.attachEvent("onmouseout", MouseOut);
}
//document.onmouseover=over;

function processKey() 
{ 
	if( (event.ctrlKey == true && (event.keyCode == 78 || event.keyCode == 82)) || 	(event.keyCode >= 112 && event.keyCode <= 123) || event.keyCode == 8) 
	{ 
		event.keyCode = 0; 
		event.cancelBubble = true; 
		event.returnValue = false; 
	} 
} 

//document.onkeydown = processKey; 

//if(parent.frames.length <= 0 ){top.location.href="http://";}