/*
function openURL(one,two) {
	if(one == 1) { // °ÔÀÓ¼Ò½Ä
		if(two == 0 || two == 1){
			location.href = "/news/index.mgame";//°øÁö»çÇ×
		}else if(two == 2){
			location.href = "/news/index.mgame?rtype=U";//¾÷µ¥ÀÌÆ®
		}else if(two == 3){
			location.href = "/news/index.mgame?rtype=E";//ÀÌº¥Æ®
		}else if(two == 4){
			location.href = "/news/index.mgame?rtype=B";//º¸µµÀÚ·á
		}
	}else if(one == 2) {//°ÔÀÓ°¡ÀÌµå
		if(two == 0 || two ==1){
			location.href = "/guide/install.mgame";	 //°ÔÀÓ¼³Ä¡
		}else if(two==2){
			location.href = "/guide/interface.mgame";//ÀÎÅÍÆäÀÌ½º
		}else if(two==3){
			location.href = "/guide/formula.mgame";//Á¶ÀÛ¹æ¹ý
		}
	}else if (one ==3) {	//°ÔÀÓÁ¤º¸
		if(two == 0 || two ==1){
			location.href = "/info/feature.mgame";	//°ÔÀÓÆ¯Â¡
		}else if(two==2){
			location.href = "/info/world.mgame";	//°ÔÀÓ¼¼°è°ü
		}else if(two==3){
			location.href = "/info/soul.mgame";	//¼Ò¿ï¸ÞÀÌÆ®
		}else if(two==4){
			location.href = "/info/character.mgame";//Ä³¸¯ÅÍ ÀüÁ÷&Æ¯Â¡
		}else if(two==5){
			location.href = "/info/system.mgame";//°ÔÀÓ½Ã½ºÅÛ
		}else if(two==6){
			alert("ÁØºñÁßÀÔ´Ï´Ù");
		}else if(two==7){//Äù½ºÆ®(CMS)
			alert("ÁØºñÁßÀÔ´Ï´Ù");
			//location.href = "/info/quest/quest.mgame";//°ÔÀÓ½Ã½ºÅÛ
		}else if(two==8){//¾ÆÀÌÅÛ
			location.href = "/info/item/item_attack.mgame";
		}else if(two==9){//¸ó½ºÅÍ
			location.href = "/info/mon/default.mgame";
		}else if(two==10){//¸Ê&NPC
			location.href = "/info/map_al.mgame";
		}
	}else if (one ==4) {	//¾ÆÀÌÅÛ¼¥
		alert("ÁØºñÁßÀÔ´Ï´Ù");
	}else if (one ==5) {	//·©Å·
		alert("ÁØºñÁßÀÔ´Ï´Ù");
		//location.href = "/community/mate.mgame";
	}else if (one ==6) {//Ä¿¹Â´ÏÆ¼
		if(two == 0 || two ==1){//ÀÚÀ¯°Ô½ÃÆÇ
			location.href = "/community/index.mgame?rtype=F";
		}else if(two==2){//½ºÅ©¸°¼¦
			location.href = "/community/mate.mgame?rtype=M";
		}else if(two==3){//½ºÅ©¸°¼¦
			location.href = "/community/index.mgame?rtype=S";
		}
	}else if (one ==7) {//ÀÚ·á½Ç
		if(two == 0 || two ==1){//ÀÚ·á½Ç
			location.href = "/download/download.mgame";
		}else if(two==2){//¿ùÆäÀÌÆÛ
			location.href = "/download/wallpaper.mgame";
		}else if(two==3){//µ¿¿µ»ó
			location.href = "/download/movie.mgame";
		}
	}else if (one ==8) {	 //°í°´¼¾ÅÍ
		if(two == 0 || two ==1){//FAQ
			location.href = "/customer/cs_mother.mgame?menu=1";
		}else if(two==2){//½Å°í¼¾ÅÍ
			location.href = "/customer/cs_mother.mgame?menu=2&EMAIL_KIND=1";
		}else if(two==3){//¿î¿µÁ¤Ã¥
			alert("ÁØºñÁßÀÔ´Ï´Ù");
		}else if(two==4){//°èÁ¤»óÅÂÁ¶È¸
			location.href = "/customer/cs_mother.mgame?menu=8";
		}else if(two==5){//¿î¿µÁ¤Ã¥
			location.href = "/customer/policy.mgame";
		//}else if(two==6){//¿î¿µÁ¤Ã¥
		//	location.href = "/customer/policy.mgame";
		}
	}
}

*/


function openURL(one,two) {
	if(one == 1) { // °ÔÀÓ¼Ò½Ä
		if(two == 0 || two == 1){
			location.href = "/news/default.mgame";//°øÁö»çÇ×
		}else if(two == 2){
			location.href = "/news/default.mgame?rtype=U";//¾÷µ¥ÀÌÆ®
		}else if(two == 3){
			location.href = "/news/default.mgame?rtype=E";//ÀÌº¥Æ®
		}else if(two == 4){
			location.href = "/news/default.mgame?rtype=B";//º¸µµÀÚ·á
		}
	}else if(one == 2) {//°ÔÀÓ°¡ÀÌµå
		if(two == 0 || two ==1){
			location.href = "/guide/default.mgame";	 //°ÔÀÓ¼³Ä¡
		}else if(two==2){
			location.href = "/guide/default.mgame?rcm=2";//ÀÎÅÍÆäÀÌ½º
		}else if(two==3){
			location.href = "/guide/default.mgame?rcm=3";//Á¶ÀÛ¹æ¹ý
		}
	}else if (one ==3) {	//°ÔÀÓÁ¤º¸
		if(two == 0 || two ==1){
			location.href = "/info/default.mgame";	//°ÔÀÓÆ¯Â¡
		}else if(two==2){
			location.href = "/info/default.mgame?rcm=2";	//°ÔÀÓ¼¼°è°ü
		}else if(two==3){
			location.href = "/info/default.mgame?rcm=3";	//¼Ò¿ï¸ÞÀÌÆ®
		}else if(two==4){
			location.href = "/info/default.mgame?rcm=4";//Ä³¸¯ÅÍ ÀüÁ÷&Æ¯Â¡
		}else if(two==5){
			location.href = "/info/default.mgame?rcm=5";//°ÔÀÓ½Ã½ºÅÛ
		}else if(two==6){
			//alert("ÁØºñÁßÀÔ´Ï´Ù");
			location.href = "/info/default.mgame?rcm=6";//½ºÅ³
		}else if(two==7){//Äù½ºÆ®(CMS)
			//alert("ÁØºñÁßÀÔ´Ï´Ù");
			location.href = "/info/default.mgame?rcm=7";
		}else if(two==8){//¾ÆÀÌÅÛ
			location.href = "/info/default.mgame?rcm=8";
		}else if(two==9){//¸ó½ºÅÍ
			location.href = "/info/default.mgame?rcm=9";
		}else if(two==10){//¸Ê&NPC
			location.href = "/info/default.mgame?rcm=10";
		}
	} else if (one ==4) {//Ä¿¹Â´ÏÆ¼
		if(two == 0 || two ==1){//ÀÚÀ¯°Ô½ÃÆÇ
			location.href = "/community/default.mgame";
		}else if(two==2){//ÆÁ°Ô½ÃÆÇ
			location.href = "/community/default.mgame?rcm=4&rtype=T";
		}else if(two==3){ //°ÇÀÇ°Ô½ÃÆÇ
			location.href = "/community/default.mgame?rcm=6&rtype=O";

		}else if(two==4){//¼Ò¿ï¸ÞÀÌÆ®
			location.href = "/community/default.mgame?rcm=2&rtype=M";

		}else if(two==5){//½ºÅ©¸°¼¦
			//alert("ÁØºñÁßÀÔ´Ï´Ù");
			location.href = "/community/default.mgame?rcm=3&rtype=S";
		}else if(two==6){///ÆÒ»çÀÌÆ®
			//alert("ÁØºñÁßÀÔ´Ï´Ù");
			location.href = "/community/default.mgame?rcm=5&rtype=FL";
		} else if(two==7){ //Å×½ºÆ®¼­¹ö
			alert("ÁØºñÁßÀÔ´Ï´Ù");
		}
	}else if (one ==5) {//ÀÚ·á½Ç
		if(two == 0 || two ==1){//ÀÚ·á½Ç
			location.href = "/download/default.mgame";
		}else if(two==2){//¿ùÆäÀÌÆÛ
			location.href = "/download/default.mgame?rcm=2";
		}else if(two==3){//µ¿¿µ»ó
			location.href = "/download/default.mgame?rcm=3";
		}
	}else if (one ==6) {	 //°í°´¼¾ÅÍ
		if(two == 0 || two ==1){//FAQ
			location.href = "/customer/cs_mother.mgame?menu=1";
		}else if(two==2){//½Å°í¼¾ÅÍ
			location.href = "/customer/inquiry_center.mgame";
		}else if(two==3){//¿î¿µÁ¤Ã¥
			location.href="/customer/cs_mother.mgame?menu=9"
		}else if(two==4){//°èÁ¤»óÅÂÁ¶È¸
			location.href = "/customer/cs_mother.mgame?menu=8";
		}else if(two==5){//¿î¿µÁ¤Ã¥
			location.href = "/customer/policy.mgame";
		}else if(two==6){//Àå¾ÖÁ¦º¸¼¾ÅÍ
			window.open("http://csweb.mgame.com/csagent/helpdesk/obstacle/write.jsp?st=18&gubun=¾Æ½º´ÙÀÌ¾ß±â");	
		}
	}
}


//°ÔÀÓ½ÃÀÛ 
function GameStart() {
	if(getCookie("MGAME","") != null) {
		//Mgame_ErrorLayerOpen('free', '¾Æ½º´ÙÀÌ¾ß±â CBT´Â <br>2¿ù 28ÀÏ ½ÃÀÛµË´Ï´Ù.');
		launch.location.replace("http://gstart.mgame.com/launch/launch_asda.mgame?goUrl=asda");
	} else {
		Mgame_ErrorLayerOpen('free', '·Î±×ÀÎÈÄ ÀÌ¿ëÇØ ÁÖ¼¼¿ä.');
	}
}

//¼ø¼­ Á¤·Ä
function pageCategory(job)
{
	var f = document.itemForm;
	f.job.value = job;
	f.submit();
}

//¼ø¼­ Á¤·Ä
function pageCate(cate)
{
	var f = document.cateForm;
	f.category.value = cate;
	f.submit();
}

function goHome()
{
	document.location.href="http://asda.mgame.com";
}