function pageTop() {
	top.document.documentElement.scrollTop	=	0;
}

function openURL(bnum,snum){

	//»õ¼Ò½Ä
	if(bnum =="1"){
		if(snum =="0"){top.location.href="/news/news.mgame?rtype=N";}
		else if (snum =="1"){top.location.href="/news/news.mgame?rtype=N";}
		else if (snum =="2"){top.location.href="/news/news.mgame?rtype=U";}
		else if (snum =="3"){top.location.href="/news/news.mgame?rtype=E";}
		else if (snum =="4"){top.location.href="/news/news.mgame?rtype=CE";}
		else if (snum =="5"){top.location.href="/news/news.mgame?rtype=C";}
		else if (snum =="6"){top.location.href="/news/news.mgame?rtype=B";}

	//°ÔÀÓ °¡ÀÌµå
	}else if (bnum =="2"){
		if(snum =="0"){top.location.href="/guide/guide.mgame?rtype=GI";}
		else if (snum =="1"){top.location.href="/guide/guide.mgame?rtype=GI";}
		else if (snum =="2"){window.open('/game_guide/default.mgame','°ÔÀÓ°¡ÀÌµå','height=600,width=900,menubar=no,toolbar=no,location=no,resizable=no,status=no,scrollbars=no'); }
		else if (snum =="3"){top.location.href="/guide/guide.mgame?rtype=UG";}
		else if (snum =="4"){top.location.href="/guide/guide.mgame?rtype=S1";}
		else if (snum =="5"){top.location.href="/guide/guide.mgame?rtype=P1";}

	//°ÔÀÓ Á¤º¸
	}else if (bnum =="3"){
		if(snum =="0"){top.location.href="/info/info.mgame?rtype=CH";}
		else if (snum =="1"){top.location.href="/info/info.mgame?rtype=CH";}	//Ä³¸¯ÅÍ
		else if (snum =="2"){top.location.href="/info/info.mgame?rtype=SK";}	//¹«°ø
		else if (snum =="3"){top.location.href="/info/info.mgame?rtype=IM";}	//¾ÆÀÌÅÛ - ¹«±â
		else if (snum =="4"){top.location.href="/info/info.mgame?rtype=SM";}	//Ç³¸²°´ÀÜ
		else if (snum =="5"){top.location.href="/info/info.mgame?rtype=HH";}	//ÇùÇà
		else if (snum =="6"){top.location.href="/info/info.mgame?rtype=NP";}	//NPC
		else if (snum =="7"){top.location.href="/info/info.mgame?rtype=MO";}	//¸ó½ºÅÍ
		else{top.location.href="/info/info.mgame?rtype=CH";}

	//·©Å·
	}else if (bnum =="4"){
		if(snum =="0"){top.location.href="/ranking/index.mgame";}
		else if (snum =="1"){top.location.href="/ranking/index.mgame";}				//°³ÀÎ
		else if (snum =="2"){top.location.href="/ranking/index.mgame?rtype=M";}		//¹®ÆÄ
		else if (snum =="3"){top.location.href="/ranking/index.mgame?rtype=S";}		//¼öÈÆ
		else if (snum =="4"){top.location.href="/ranking/index.mgame?rtype=SE";}	//¼¼·Â
		else if (snum =="5"){top.location.href="/ranking/index.mgame?rtype=MS";}	//¹®ÆÄ
		else if (snum =="6"){top.location.href="/ranking/index.mgame?rtype=MT";}	//¹«Åõ

/*
	//½Ã³ª¸®¿À
	}else if (bnum =="4"){
		if(snum =="0"){top.location.href="/scenario/scenario.mgame";}
		else if (snum =="1"){top.location.href="/scenario/scenario.mgame";}		//½Ã³ª¸®¿À
		else if (snum =="2"){top.location.href="/scenario/scenario.mgame?rtype=J";}	//Á¶ÁøÇà
*/

	//Ä¿¹Â´ÏÆ¼
	}else if (bnum =="5"){
		if(snum =="0"){top.location.href="/community/community.mgame?rtype=FR";}
		else if (snum =="1"){top.location.href="/community/community.mgame?rtype=FR";}	//ÀÚÀ¯°Ô½ÃÆÇ
		else if (snum =="2"){top.location.href="/community/community.mgame?rtype=SC";}	//½ºÅ©¸°¼¦
		else if (snum =="3"){top.location.href="/community/community.mgame?rtype=UCC";}
		else if (snum =="4"){top.location.href="/community/community.mgame?rtype=GM";}	//GM ¿Â¶óÀÎ
		else if (snum =="5"){top.location.href="/community/community.mgame?rtype=MF";}	//ÀÌ´ÞÀÇ Áú´ä
		else if (snum =="6"){top.location.href="/community/community.mgame?rtype=PC";}	//Ç³¸²¸¸È­
		else if (snum =="7"){top.location.href="/community/community.mgame?rtype=CM";}	//Ä«Å÷¸¸µé±â
		else if (snum =="8"){top.location.href="/scenario/scenario.mgame?rtype=all";}	//½Ã³ª¸®¿À
	//ÀÚ·á½Ç
	}else if (bnum =="6"){
		if(snum =="0"){top.location.href="/data/data.mgame?rtype=D";}
		else if (snum =="1"){top.location.href="/data/data.mgame?rtype=D";}		//°ÔÀÓ´Ù¿î·Îµå
		else if (snum =="2"){top.location.href="/data/data.mgame?rtype=M";}		//µ¿¿µ»ó
		else if (snum =="3"){top.location.href="/data/data.mgame?rtype=P";}		//¿ùÆäÀÌÆÄ
		else if (snum =="4"){top.location.href="/data/data.mgame?rtype=F2";}	//ÇÃ·¡½Ã°ÔÀÓ
		else if (snum =="5"){top.location.href="/data/data.mgame?rtype=B";}		//¹è³Ê´ã¾Æ°¡±â

	//°í°´¼¾ÅÍ
	}else if (bnum =="7"){

		if(snum =="0"){top.location.href="/customer/cs_mother.mgame?menu=1";}
		else if (snum =="1"){top.location.href="/customer/cs_mother.mgame?menu=1";}	//faq
		else if (snum =="2"){top.location.href="/customer/inquiry_center.mgame";}	//À¥»ó´ã
		else if (snum =="3"){top.location.href="/customer/cs_mother.mgame?menu=9";}	//°èÁ¤µµ¿ë
		else if (snum =="4"){top.location.href="/customer/cs_mother.mgame?menu=8";}	//°èÁ¤»óÅÂ
		else if (snum =="5"){

			if(location.host.indexOf("daum.net") > 0){
				Mgame_ErrorLayerOpen('free','¼­ºñ½º ÁØºñÁß ÀÔ´Ï´Ù.'); return;
			} else {
				window.open("http://csweb.mgame.com/csagent/helpdesk/reservation/reservation_info.jsp");
			}

		}	// ¹æ¹®»ó´ã¿¹¾à

		else if (snum =="6"){top.location.href="/customer/policy_01.mgame";}	//¿î¿µÁ¤Ã¥
		else if (snum =="7"){window.open("http://csweb.mgame.com/csagent/helpdesk/obstacle/write.jsp?st=31&gubun=Ç³¸²È­»ê");}	//Àå¾ÖÁ¦º¸¼¾ÅÍ
		
		//Mgame_ErrorLayerOpen('free','ÁØºñÁß ÀÔ´Ï´Ù.');

	}else if (bnum =="8"){
		if(snum =="0") {
			window.open("http://know.mgame.com/know.qna.message.list.screen?p_list_category_id=1301");
		} else {
			Mgame_ErrorLayerOpen('free','¼­ºñ½º ÁØºñÁß ÀÔ´Ï´Ù.'); return;
		}
	}else if (bnum =="9"){
		if(snum =="0")  {
			window.open("http://cafe.mgame.com/club.intro.category.view.screen?p_cate_code=1158 ");
		} else {
			Mgame_ErrorLayerOpen('free','¼­ºñ½º ÁØºñÁß ÀÔ´Ï´Ù.'); return;
		}
	}else if (bnum =="10"){
		if(snum =="0")  {
			window.open("http://blog.mgame.com/blog/intro");
		} else {
			Mgame_ErrorLayerOpen('free','¼­ºñ½º ÁØºñÁß ÀÔ´Ï´Ù.'); return;
		}
	}else if (bnum =="11"){
		if(snum =="0")		top.location.href="/testserver/testserver.mgame";

	}else if (bnum =="12"){
		if(snum =="0") {
			window.open("http://pcbang.mgame.com/pcbang/pcbang_search.php");
		}
	

	//¹®ÆÄ
	}else if (bnum =="13"){
		if(snum =="0") {
			window.open("http://guild.mgame.com/?url=wffm");
		} else {
			Mgame_ErrorLayerOpen('free','¼­ºñ½º ÁØºñÁß ÀÔ´Ï´Ù.'); return;
		}
	}else if(bnum == "14"){
		if(snum =="0" ) document.location.href = "/";
	} else {
		Mgame_ErrorLayerOpen('free','ÁØºñÁß ÀÔ´Ï´Ù.');
	}


}

//¸ÞÀÎ ÇÃ·¡½Ã ÁÜ ¸µÅ©
function zoomURL() {
	top.location.href="/data/data.mgame?rtype=M";
}
