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/news_list.asp?nK=press";
			break;
		case 130 :
			location.href = "/news/event_list.asp";
			break;
			
		// À§µå¼Ò°³
		case 200 :
			location.href = "/introduction/story.asp";
			break;
		case 210 :
			location.href = "/introduction/whatiswyd.asp";
			break;
		case 220 :
			location.href = "/introduction/char01.asp";
			break;
		case 221 :
			location.href = "/introduction/char02.asp";
			break;
		case 222 :
			location.href = "/introduction/char03.asp";
			break;
		case 223 :
			location.href = "/introduction/char04.asp";
			break;
		case 224 :
			location.href = "/introduction/char05.asp";
			break;
		case 225 :
			location.href = "/introduction/char06.asp";
			break;
		case 230 :
			location.href = "/introduction/monster01.asp";
			break;
		case 231 :
			location.href = "/introduction/monster02.asp";
			break;
		case 232 :
			location.href = "/introduction/monster03.asp";
			break;
		case 233 :
			location.href = "/introduction/monster04.asp";
			break;
		case 240 :
			location.href = "/introduction/item_option.asp";
			break;
		case 241 :
			location.href = "/introduction/item_weapon01.asp";
			break;
		case 242 :
			location.href = "/introduction/item_armor.asp";
			break;
		case 243 :
			location.href = "/introduction/item_js01.asp";
			break;
		case 244 :
			location.href = "/introduction/item_leg_armor.asp";
			break;
		case 245 :
			location.href = "/introduction/item_accessary.asp";
			break;
		case 246 :
			location.href = "/introduction/item_consumer.asp";
			break;
		case 247 :
			location.href = "/introduction/item_event.asp";
			break;
		case 248 :
			location.href = "/introduction/item_mount.asp";
			break;
		case 249 :
			location.href = "/introduction/item_mount2.asp";
			break;
		case 250 :
			location.href = "/introduction/map.asp";
			break;
		case 260 :
			location.href = "/introduction/quest.asp";
			break;
		case 261 :
			location.href = "/introduction/quest_256.asp";
			break;
		case 262 :
			location.href = "/introduction/quest_event.asp";
			break;
		case 263 :
			location.href = "/introduction/quest_js.asp";
			break;
		
		//°ÔÀÓ°¡ÀÌµå
		case 300 :
			location.href = "/guide/firstguide01.asp";
			break;
		case 301 :
			location.href = "/guide/firstguide02.asp";
			break;
		case 302 :
			location.href = "/guide/firstguide03.asp";
			break;
		case 303 :
			location.href = "/guide/firstguide04.asp";
			break;
		case 304 :
			location.href = "/guide/firstguide05.asp";
			break;
		case 305 :
			location.href = "/guide/firstguide06.asp";
			break;
		case 306 :
			location.href = "/guide/firstguide07.asp";
			break;
		case 307 :
			location.href = "/guide/firstguide08.asp";
			break;
		case 308 :
			location.href = "/guide/firstguide09.asp";
			break;
		case 309 :
			location.href = "/guide/firstguide10.asp";
			break;
		case 3010 :
			location.href = "/guide/firstguide11.asp";
			break;			
		case 3011 :
			location.href = "/guide/firstguide12.asp";
			break;			
		case 3012 :
			location.href = "/guide/firstguide13.asp";
			break;			
		case 310 :
			location.href = "/guide/midguide01.asp";
			break;
		case 311 :
			location.href = "/guide/midguide02.asp";
			break;
		case 312 :
			location.href = "/guide/midguide03.asp";
			break;
		case 313 :
			location.href = "/guide/midguide04.asp";
			break;
		case 314 :
			location.href = "/guide/midguide05.asp";
			break;
		case 315 :
			location.href = "/guide/midguide06.asp";
			break;
		case 316 :
			location.href = "/guide/midguide07.asp";
			break;
		case 317 :
			location.href = "/guide/midguide08.asp";
			break;
		case 318 :
			location.href = "/guide/midguide09.asp";
			break;
		case 320 :
			location.href = "/guide/highguide01.asp";
			break;
		case 321 :
			location.href = "/guide/highguide02.asp";
			break;
		case 322 :
			location.href = "/guide/highguide03.asp";
			break;
		case 323 :
			location.href = "/guide/highguide04.asp";
			break;
		case 324 :
			location.href = "/guide/highguide05.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 3322 :
			location.href = "/guide/pvpguide03_02.asp";
			break;
		case 333 :
			location.href = "/guide/pvpguide04.asp";
			break;
		case 334 :
			location.href = "/guide/pvpguide05.asp";
			break;
		case 335 :
			location.href = "/guide/pvpguide06.asp";
			break;
		case 336 :
			location.href = "/guide/pvpguide07.asp";
			break;
		case 337 :
			location.href = "/guide/pvpguide08.asp";
			break;
		case 338 :
			location.href = "/guide/pvpguide09.asp";
			break;
		case 340 :
			location.href = "/guide/tip01.asp";
			break;			
		case 341 :
			location.href = "/guide/tip02.asp";
			break;			
		case 342 :
			location.href = "/guide/tip00.asp";
			break;			
		
		//ÀÚ·á½Ç
		case 400 :
			location.href = "/data/client_download.asp";
			break;
		case 401 :
			location.href = "/data/client_download_dir.asp";
			break;
		case 402 :
			location.href = "/data/client_download_test_dir.asp";
			break;
		case 410 :
			location.href = "/data/driver_download.asp";
			break;
		case 420 :
			location.href = "/data/movie.asp";
			break;			
		case 430 :
			location.href = "/data/scrshot.asp";
			break;
		case 431 :
			location.href = "/data/scrshot02.asp";
			break;
		case 432 :
			location.href = "/data/scrshot03.asp";
			break;
		case 433 :
			location.href = "/data/scrshot04.asp";
			break;
		case 434 :
			location.href = "/data/scrshot05.asp";
			break;
		case 435 :
			location.href = "/data/scrshot06.asp";
			break;
		case 436 :
			location.href = "/data/scrshot07.asp";
			break;
		case 440 :
			location.href = "/data/wallpaper.asp";
			break;												


//Ä¿¹Â´ÏÆ¼
		case 500 :
			location.href = "/community/forum_list.asp";
			break;
		case 510 :
			location.href = "/community/wydtalk_list.asp";
			break;
		case 511 :
			location.href = "/community/besttalk_list.asp";
			break;
		case 520 :
			location.href = "/community/usershot_list.asp";
			break;			
		case 521 :
			location.href = "/community/bestshot_list.asp";
			break;			
		case 530 :
			location.href = "/community/market_list.asp";
			break;			
		case 531 :
			location.href = "/community/market_list.asp?sN=5";
			break;
		case 532 :
			location.href = "/community/market_list.asp?sN=8";
			break;
		case 540 :
			location.href = "/community/guildmark_list.asp";
			break;
		case 550 :
			location.href = "/community/fanpage.asp";
			break;			
		case 560 :
			location.href = "/community/tester_list.asp";
			break;			
		case 570 :
			location.href = "/community/gallery_list.asp";
			break;			

//ÇÁ¸®¹Ì¾öÁ¸
		case 600 :
			location.href = "/premium/cash_guide.asp";
			break;
		case 610 :
			location.href = "/premium/best_item.asp";
			break;
		case 611 :
			location.href = "/premium/bigsale_item.asp";
			break;
		case 612 :
			location.href = "/premium/armia_item.asp";
			break;			
		case 613 :
			location.href = "/premium/arzran_item.asp";
			break;			
		case 614 :
			location.href = "/premium/erion_item.asp";
			break;	
		case 615 :
			location.href = "/premium/erion_item.asp?sh=2";
			break;	
		case 620 :
//			alert("ÁØºñÁßÀÔ´Ï´Ù.");
			location.href = "/premium/coupon_item.asp";
			break;
		
//°í°´Áö¿ø
		case 700 :
			location.href = "/service/customer_service.asp";
			break;
		case 710 :
			location.href = "/service/faq.asp";
			break;
		case 720 :
			location.href = "/service/ask.asp";
			break;
		case 730 :
			location.href = "/service/report.asp";
			break;
		case 740 :
			location.href = "/service/block_list.asp";
			break;
		case 750 :
			location.href = "/service/management_policy.asp";
			break;
	
//WYD PC ZONE
		case 800 :
			location.href = "/pczone/pczone_regist.asp";
			break;
		case 810 :
			location.href = "/pczone/pczone_search.asp";
			break;
		case 811 :
			location.href = "/pczone/pczone_search.asp?zK=ppcard";
			break;
		case 820 :
			location.href = "/pczone/pczone_favor01.asp";
			break;
		case 821 :
			location.href = "/pczone/pczone_favor02.asp";
			break;
		case 822 :
			location.href = "/pczone/pczone_favor03.asp";
			break;
		case 830 :
			location.href = "/pczone/pczone_board_list.asp";
			break;

//¸¶ÀÌÆäÀÌÁö
		case 900 :
			location.href = "/mypage/memo_send.asp";
			break;
		case 901 :
			location.href = "/mypage/memo_inbox.asp";
			break;
		case 902 :
			location.href = "/mypage/memo_outbox.asp";
			break;
		case 903 :
			location.href = "/mypage/memo_savebox.asp";
			break;
		case 904 :
			location.href = "/mypage/memo_setup.asp";
			break;
		case 910 :			
			location.href = "/mypage/cashlist.asp";
			break;
		case 911 :			
			location.href = "/mypage/cash_charge.asp";
			break;
		case 912 :			
			location.href = "/mypage/ppcard_use.asp";
			break;
		case 913 :			
			location.href = "/mypage/item_buy.asp";
			break;
		case 920 :
			location.href = "/mypage/cs_result.asp";
			break;
		case 921 :
			location.href = "/mypage/1on1_result.asp";
			break;
		case 922 :
			location.href = "/mypage/report_result.asp";
			break;
		case 930 :
			location.href = "/mypage/modify.asp";
			break;						
		case 940 :
			location.href = "/mypage/modify_pw.asp";
			break;							
		case 950 :
			location.href = "/mypage/leave.asp";
			break;		
		case 960 :
			location.href = "/training/training.asp";
			break;		
		case 970 :
			location.href = "/wpzone/wpzone.asp";
			break;		
		case 980 :
			location.href = "/sitemap/sitemap.asp";
			break;

//membership
		case 991 :
			location.href = "/member/wydian_login.asp";
			break;
		case 992 :
			location.href = "/member/join_agree.asp";
			break;
		case 993 :
			location.href = "/member/findid.asp";
			break;
		case 994 :
			location.href = "/member/agreement.asp";
			break;
		case 995 :
			location.href = "/member/privacy.asp";
			break;

//±âÅ¸
//		case 994 :
//			f_OpenWindow('/membership_agreement.asp', 'agreement', 'resizable=no,width=610,height=435');
//			break;
//		case 995 :
//			f_OpenWindow('/protection_policy.asp', 'protection', 'resizable=no,width=610,height=435');
//			break;
		case 996 :
			f_OpenWindow('/management_policy.asp','management','resizable=no,width=610,height=435');
			break;
		case 997 :
			f_OpenWindow('http://www.hanbitsoft.co.kr/etc/rejection.aspx','reject','width=487,height=282');
			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="http://www.wyd2.co.kr/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 f_Close() { 
	this.close();
}

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";}