function f_GoMenu(code) {
	switch (code) {
		// À§µå»õ¼Ò½Ä
		case 100 :
			location.href = "/news/news_list.asp?nK=notice";
			break;
		case 110 :			
			location.href = "/news/news_list.asp?nK=update";
			break;
		case 120 :			
			location.href = "/news/event_list.asp";
			break;
			
		// À§µå¼Ò°³
		case 200 :
			location.href = "/intro/prologue.asp";
			break;
		case 210 :
			location.href = "/intro/about_wyd.asp";
			break;
		case 220 :
			location.href = "/intro/ch01.asp";
			break;
		case 221 :
			location.href = "/intro/ch02.asp";
			break;
		case 222 :
			location.href = "/intro/ch03.asp";
			break;
		case 223 :
			location.href = "/intro/ch04.asp";
			break;
		case 224 :
			location.href = "/intro/ch05.asp";
			break;
		case 225 :
			location.href = "/intro/ch06.asp";
			break;
			case 226 :
			location.href = "/intro/chtest.asp";
			break;
		case 230 :
			location.href = "/intro/monster01.asp";
			break;
		case 231 :
			location.href = "/intro/monster02.asp";
			break;
		case 232 :
			location.href = "/intro/monster03.asp";
			break;
		case 233 :
			location.href = "/intro/monster04.asp";
			break;
		case 240 :
			location.href = "/intro/item_option.asp";
			break;
		case 241 :
			location.href = "/intro/item_weapon01.asp";
			break;
		case 242 :
			location.href = "/intro/item_armor.asp";
			break;
		case 243 :
			location.href = "/intro/item_js01.asp";
			break;
		case 244 :
			location.href = "/intro/item_leg_armor.asp";
			break;
		case 245 :
			location.href = "/intro/item_accessary.asp";
			break;
		case 246 :
			location.href = "/intro/item_consumer.asp";
			break;
		case 247 :
			location.href = "/intro/item_event.asp";
			break;
		case 248 :
			location.href = "/intro/item_mount.asp";
			break;
		case 249 :
			location.href = "/intro/item_mount2.asp";
			break;
		case 250 :
			location.href = "/intro/map.asp";
			break;
		case 260 :
			location.href = "/intro/quest.asp";
			break;
		case 261 :
			location.href = "/intro/quest_256.asp";
			break;
		case 262 :
			location.href = "/intro/quest_event.asp";
			break;
		case 263 :
			location.href = "/intro/quest_js.asp";
			break;
		
		//°ÔÀÓ°¡ÀÌµå
		case 300 :
			location.href = "/guide/tutorial01.asp";
			break;
		case 301 :
			location.href = "/guide/tutorial02.asp";
			break;
		case 302 :
			location.href = "/guide/tutorial03.asp";
			break;
		case 303 :
			location.href = "/guide/tutorial04.asp";
			break;
		case 304 :
			location.href = "/guide/tutorial05.asp";
			break;
		case 305 :
			location.href = "/guide/tutorial06.asp";
			break;
		case 306 :
			location.href = "/guide/tutorial07.asp";
			break;
		case 307 :
			location.href = "/guide/tutorial08.asp";
			break;
		case 308 :
			location.href = "/guide/tutorial09.asp";
			break;
		case 309 :
			location.href = "/guide/tutorial10.asp";
			break;
		case 3019 :
			location.href = "/guide/tutorial10_a.asp";
			break;
		case 310 :
			location.href = "/guide/intermediate01.asp";
			break;
		case 311 :
			location.href = "/guide/intermediate02.asp";
			break;
		case 312 :
			location.href = "/guide/intermediate03.asp";
			break;
		case 313 :
			location.href = "/guide/intermediate04.asp";
			break;
		case 314 :
			location.href = "/guide/intermediate05.asp";
			break;
		case 315 :
			location.href = "/guide/intermediate05a.asp";
			break;
		case 316 :
			location.href = "/guide/intermediate08.asp";
			break;
		case 317 :
			location.href = "/guide/intermediate09.asp";
			break;
			
			
		case 320 :
			location.href = "/guide/advanced01.asp";
			break;
		case 321 :
			location.href = "/guide/advanced02.asp";
			break;
		case 322 :
			location.href = "/guide/advanced03.asp";
			break;
		case 3221 :
			location.href = "/guide/advanced004.asp";
			break;
		case 323 :
			location.href = "/guide/advanced04.asp";
			break;
		case 330 :
			location.href = "/guide/pvpguide01.asp";
			break;
		case 331 :
			location.href = "/guide/pvpguide02.asp";
			break;
		case 332 :
			location.href = "/guide/pvpguide03.asp";
			break;
		case 333 :
			location.href = "/guide/pvpguide04.asp";
			break;
		case 334 :
			location.href = "/guide/pvpguide05.asp";
			break;
		case 335 :
			location.href = "/guide/pvpguide06_old.asp";
			break;
		case 336 :			
			location.href = "/guide/pvpguide06.asp";
			break;	
		
		//ÀÚ·á½Ç
		case 400 :
			location.href = "/downloads/client.asp";
			break;
		case 410 :
			location.href = "/downloads/driver.asp";
			break;
		case 420 :
			location.href = "/downloads/videoclip.asp";
			break;
		case 421 :
			location.href = "/downloads/wallpapers.asp";
			break;		
		case 430 :
			location.href = "/downloads/scrshot.asp";
			break;
//		case 431 :
//			location.href = "/downloads/scrshot02.asp";
//			break;
//		case 432 :
//			location.href = "/downloads/scrshot03.asp";
//			break;
//		case 433 :
//			location.href = "/downloads/scrshot04.asp";
//			break;
//		case 434 :
//			location.href = "/downloads/scrshot05.asp";
//			break;
//		case 435 :
//			location.href = "/downloads/scrshot06.asp";
//			break;


//Ä¿¹Â´ÏÆ¼
		case 500 :
			location.href = "/community/forum_list.asp";
			break;
		case 510 :
			location.href = "/community/guildmark_list.asp";
			break;
		case 520 :
			location.href = "/community/fansite.asp";
			break;
		case 530 :
			location.href = "/community/ranking.asp";
			break;
		case 540 :
			location.href = "/community/usershot_list.asp";
			break;
		case 541 :
			location.href = "/community/bestshot_list.asp";
			break;
		case 542 :
			f_OpenWindow('http://www.supremedestiny.in/images/guinness_details.jpg','Guiness','width=955,height=600,location=yes, toolbar=yes, menubar=yes, scrollbars=yes, resizable=yes, status=yes');
			break;

//ÇÁ¸®¹Ì¾öÁ¸
		case 600 :
			//location.href = "/premium/payment_agree.asp";
 		    location.href = "http://games.vibrant3g.com/vmoney_topup.jsp";
			break;
		case 601 :
			location.href = "/premium/fillup_history.asp";
			break;
		case 602 :
			location.href = "/premium/purchase_history.asp";
			break;
		case 603 :
			location.href = "/premium/payment_policy.asp";
			break;
		/*case 610 :
			location.href = "/premium/best_item.asp";
			break;*/
		case 610 :
			location.href = "http://games.vibrant3g.com/sd_itemstore.jsp";
			break;
		case 611 :
			location.href = "/premium/bigsale_item.asp";
			break;
		case 612 :
			location.href = "/premium/armia_item.asp";
			break;			
		case 613 :
			location.href = "/premium/azran_item.asp";
			break;			
		case 614 :
			location.href = "/premium/eriyon_item.asp";
			break;	
		case 615 :
			location.href = "/premium/erion_item.asp?sh=2";
			break;
		case 620 :
			location.href = "/premium/verified_by_visa.asp";
			break;
		case 621 :
			location.href = "/premium/verified_by_master.asp";
			break;
		
//°í°´Áö¿ø
		case 700 :
			location.href = "/support/faq.asp";
			break;
		case 710 :
			location.href = "/support/ask.asp"; 
			
			break;
		case 720 :
			location.href = "/support/report_list.asp";
			break;
	

//membership
		case 900 :
			location.href = "/member/wydian_login.asp";
			break;
		case 901 :
			location.href = "/member/wydian_logout.asp";
			break;
		case 910 :
			//location.href = "/member/join_agree.asp";
		    location.href = "http://games.vibrant3g.com/web1/registration.jsp?fwdPage=SD";
			break;
		case 920 :
			//location.href = "/member/findpw.asp";
            location.href ="http://games.vibrant3g.com/forgot_Password.jsp";
			break;
		case 930 :
			//location.href = "/member/modify_input.asp";
 		    //location.href = "http://games.vibrant3g.com/website/changePassword.jsp?FwdPage=SD";
			location.href = "http://games.vibrant3g.com/web1/editProfile.jsp?fwdPage=SD";
			break;						
//		case 940 :
//			location.href = "/member/modify_pw.asp";
//			break;							
//		case 950 :
//			location.href = "/member/leave.asp";
//			break;		
								


//±âÅ¸
		case 980 :
			location.href = "/sitemap/sitemap.asp";
			break;
        case 990:
			 //location.href = "http://games.vibrant3g.com";
		      f_OpenWindow('http://games.vibrant3g.com', 'protection', 'width=700,height=500,location=yes, toolbar=yes, menubar=yes, scrollbars=yes, resizable=yes, status=yes');
	         break;
 		case 991:
			 //location.href = "http://www.vibrantgames.in";
		     f_OpenWindow('http://games.vibrant3g.com', 'protection', 'width=700,height=500,location=yes, toolbar=yes, menubar=yes, scrollbars=yes, resizable=yes, status=yes');
		     break;
        case 992:
			 //location.href = "http://www.vibrantgames.in";
		     f_OpenWindow('http://www.vibrantvideos.com', 'protection', 'width=700,height=500,location=yes, toolbar=yes, menubar=yes, scrollbars=yes, resizable=yes, status=yes');
		     break;
		case 993:
			 //location.href = "http://www.vibrantgames.in";
		     f_OpenWindow('http://games.vibrant3g.com', 'protection', 'width=700,height=500,location=yes, toolbar=yes, menubar=yes, scrollbars=yes, resizable=yes, status=yes');
		     break;
		
		case 994 :
			//f_OpenWindow('/member/user_agreement.asp', 'agreement', 'resizable=no,width=610,height=435');
            f_OpenWindow('http://games.vibrant3g.com/paymentpolicy.jsp', 'protection', 'width=700,height=500,location=yes, toolbar=yes, menubar=yes, scrollbars=yes, resizable=yes, status=yes');
			break;
		case 995 :
			//f_OpenWindow('/member/privacy_policy.asp', 'protection', 'resizable=no,width=610,height=435');
			f_OpenWindow('http://games.vibrant3g.com/privacypolicy.jsp', 'protection', 'width=700,height=500,location=yes, toolbar=yes, menubar=yes, scrollbars=yes, resizable=yes, status=yes');
			break;
		case 996 :
			//f_OpenWindow('/member/management_policy.asp','management','resizable=no,width=610,height=435');
		    f_OpenWindow('http://games.vibrant3g.com/termsofservice.jsp','management','width=700,height=500,location=yes, toolbar=yes, menubar=yes, scrollbars=yes, resizable=yes, status=yes');
			break;
		case 997 :
			f_OpenWindow('http://www.joyimpact.com','joyimpact','width=1026,height=780,location=yes, toolbar=yes, menubar=yes, scrollbars=yes, resizable=yes, status=yes');
			break;
		case 998 :
			f_OpenWindow('http://www.joyimpact.com/recruit/recruit.htm','recruit','width=1026,height=780,location=yes, toolbar=yes, menubar=yes, scrollbars=yes, resizable=yes, status=yes');
			break;
		case 999 :
			location.href = "/invalidAceess.asp";
			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="../index.asp";
}

function f_GoPage(strUrl)
{

	location.href = strUrl;
}

function f_GoLogin(strUrl)
{
	location.href = "/member/wydian_login.asp?rurl=" + strUrl;
}

function f_GoOpenPage(strUrl)
{
	opener.location.href = strUrl;
}

//ÆË¾÷ È£Ãâ ÇÔ¼ö
function f_OpenWindow(strUrl, strWinName, strFeature) {
	window.open(strUrl, strWinName, strFeature);
}

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://wyd2.hanbiton.com";}
