
//PNG24
function setPng24(obj)
{
	obj.width = obj.height = 1;
	obj.className = obj.className.replace(/\bpng24\b/i,'');
	obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');"
	obj.src = '';
	return '';
}

function getMenu(menu_code, nameCheck) {
	//alert(menu_code);
	var retUrl = "/";
	switch(menu_code){
		//case "":{retUrl = "/index.jsp"; break; } //¸ÞÀÎ

		case "C0100":{retUrl = "/news/"; break; } //½Ãµå´º½º
		case "C0101":{retUrl = "/pimangboard/list.php?code=notice"; break; } //°øÁö»çÇ×
		case "C0102":{retUrl = "/pimangboard/list.php?code=event"; break; } //ÀÌº¥Æ®
		case "C0103":{retUrl = "/pimangboard/list.php?code=information"; break; } //ÆíÁýÅë½Å
		case "C0104":{retUrl = "/pimangboard/list.php?code=faq"; break; } //FAQ
		case "C0105":{retUrl = "/pimangboard/list.php?code=qna"; break; } //Q&A

		case "C0200":{retUrl = "/seednovel/main.php"; break; } //½Ãµå³ëº§
		case "C0201":{retUrl = "/pimangboard/read.php?code=seedadv"; break; } //ÀÛÇ°¼Ò°³
		case "C0202":{retUrl = "/seednovel/booklist.php?brand=%BD%C3%B5%E5%B3%EB%BA%A7"; break; } //¹ß¸ÅÁ¤º¸
		case "C0203":{retUrl = "/seednovel/wallpaper.php?brand=%BD%C3%B5%E5%B3%EB%BA%A7"; break; } //¿ùÆäÀÌÆÛ

		case "C0300":{retUrl = "/contest/main.php"; break; } //°ø¸ðÀü
		case "C0301":{retUrl = "/contest/main.php"; break; } //°ø¸ðÀü¼Ò°³
		case "C0302":{retUrl = "/pimangboard/list.php?code=screening"; break; } //½É»ç½ÅÃ»
		case "C0303":{retUrl = "/pimangboard/list.php?code=screening_result"; break; } //½É»çÆò
		case "C0304":{retUrl = "/invitenovel/illust_festival.php"; break; } //ÀÏ·¯½ºÆ®°ø¸ðÀü
		case "C0305":{retUrl = "/pimangboard/list.php?code=2yearsevent"; break; } //2ÁÖ³â ±â³ä´ÜÆí¼±

		case "C0400":{retUrl = "/invitenovel/"; break; } //¿¬Àç¶õ
		case "C0401":{retUrl = "/invitenovel/serial_list.php?code=invitenovel"; break; } //ÀÚÀ¯¿¬Àç¶õ
		case "C0402":{retUrl = "/pimangboard/list.php?code=fanfic"; break; } //ÆÒÇÈ
		case "C0403":{retUrl = "/pimangboard/list.php?code=novel_adv"; break; } //ÀÛÇ°È«º¸
		case "C0404":{retUrl = "/mynovel/list.php?code=invite"; break; } //¿¬Àç¶õ »ý¼º/°ü¸®

		case "C0500":{retUrl = "/community/"; break; } //Ä¿¹Â´ÏÆ¼
		case "C0501":{retUrl = "/pimangboard/list.php?code=freeboard"; break; } //ÀÚÀ¯°Ô½ÃÆÇ
		case "C0502":{retUrl = "/pimangboard/list.php?code=newsdata"; break; } //´º½ºÁ¤º¸
		case "C0503":{retUrl = "/pimangboard/list.php?code=lightnovel"; break; } //°¨»óºñÆò
		case "C0504":{retUrl = "/pimangboard/list.php?code=ucc"; break; } //UCC
		case "C0505":{retUrl = "/pimangboard/list.php?code=hobby"; break; } //Ãë¹Ì
		case "C0506":{retUrl = "/pimangboard/list.php?code=writerfree"; break; } //Ã¢ÀÛ¸¶´ç
		case "C0507":{retUrl = "/pimangboard/list.php?code=discuss"; break; } //Åä·Ð
		case "C0508":{retUrl = "/pimangboard/list.php?code=hit"; break; } //È÷Æ®°Ô½ÃÆÇ

		case "C0600":{retUrl = "/main.php"; break; } //home

		default : retUrl="main.html";
	}
		return retUrl ;
		goMenu(retUrl);
}


/* ---------------------------------------------
* ÇÔ¼ö¸í : ³»ºÎ¸µÅ©
* ¼³  ¸í : ¸Þ´º¸µÅ©  goMenu('M00000','','')
 ---------------------------------------------*/
function goMenu(menu_code) {
	switch(menu_code){
		//case"english":{_target = 1; features=""; break; }
		//case"footer1":{_target = 2; features="width=550, height=530"; break; }

		default : 		_target=""; features="" ;
	}
	linkURL (getMenu(menu_code) , _target, features);
}

/* ---------------------------------------------
 * ÇÔ¼ö¸í : ¼­ºñ½º  ÀÌµ¿
 * ¼³  ¸í : Å¸°ÙÀÌ ÀÖÀ¸¸é »õÃ¢ ¿­°í, ¾øÀ¸¸é self·Î ÀÌµ¿
 *link :
 *_target : 1: »õÃ¢, 2: ÆË¾÷, ¾øÀ½: self
 *features : with=200,height=100
 ---------------------------------------------*/
function linkURL(link, _target, features){
	if (link=="" || link==null) {
	} else {
		if(_target=="1"||_target=="_blank") {
			window.open( link );
		} else if(_target=="2") {
			openPop1(link,features) ;
		} else {
			location.href = 	link ;
		}
	}
}
