/////////////////// SSL º¸¾È»çÀÌÆ® Àû¿ë µµ¸ÞÀÎ °­Á¦ º¯°æ ///////////////////////////////
var my_hostname = location.hostname;
var my_location = location.href;
var real_hostname = "http://lunia.nexon.com"
if (my_hostname=="www.lunia.com" || my_hostname=="lunia.com"   )
{
          var full_path= my_location.split(my_hostname);
          location.href = real_hostname + full_path[1];
}
/////////////////// SSL º¸¾È»çÀÌÆ® Àû¿ë µµ¸ÞÀÎ °­Á¦ º¯°æ ///////////////////////////////

var sw = screen.availWidth;
var sh = screen.availHeight;

// ÀÌ¹ÌÁö º¸±â
function viewImgPop(fileURL,width,height) {
	if(!fileURL) {return false;}
	var fileType = fileURL.substring(fileURL.lastIndexOf(".")+1).toUpperCase();
	if(fileType!="GIF" && fileType!="JPG" && fileType!="BMP") {
		return false;
	}
	if(!width || !height) {
		width=100;height=100;
		var posLt = 50;
		var posTp = 50;
	} else {
		var posLt = (sw-width)/2;
		var posTp = (sh-height)/2;
	}
	var popImg = window.open("/lib/pop_img.asp?FileURL="+escape(fileURL),"popImg","top="+posTp+",left="+posLt+",width="+width+",height="+height+",scrollbars=1");
	if(popImg) {popImg.focus();}
}
// ¸Þ´º °ü·Ã
function testAlert()
{
	alert("sadf");
}
var arrMnu = new Array();
arrMnu.push({key:"home",txt:"Home",url:"/main.asp"});

arrMnu.push({key:"news",txt:"»õ¼Ò½Ä",url:"news1"});
arrMnu.push({key:"news1",txt:"°øÁö»çÇ×",url:"/news/news/list.asp?ConfigID=1"});
arrMnu.push({key:"news2",txt:"¾÷µ¥ÀÌÆ®",url:"/news/update/list.asp?ConfigID=2"});
arrMnu.push({key:"news3",txt:"º¸µµÀÚ·á",url:"/news/press/list.asp?ConfigID=3"});
arrMnu.push({key:"news4",txt:"ÀÌº¥Æ®",url:"/news/event/list.asp"});
arrMnu.push({key:"news5",txt:"·ç´ÏÀ¥Áø",url:"/news/webzine/main.asp"});

arrMnu.push({key:"guide",txt:"ÃÊº¸ÀÚ°¡ÀÌµå",url:"guide1"});
arrMnu.push({key:"guide1",txt:"·ç´Ï¾Æ¼Ò°³",url:"guide11"});
arrMnu.push({key:"guide11",txt:"Æ¯Â¡",url:"/guide/intro_special.asp"});;
arrMnu.push({key:"guide12",txt:"¹è°æ½ºÅä¸®",url:"/guide/intro_history_1.asp"})
arrMnu.push({key:"guide13",txt:"·ç´Ï¾ÆÀü±âLite",url:"/guide/intro_lunia_lite.asp"})
arrMnu.push({key:"guide2",txt:"½ÃÀÛÇÏ±â",url:"guide21"});
arrMnu.push({key:"guide21",txt:"½Ã½ºÅÛ»ç¾ç Ã¼Å©",url:"/guide/start_system.asp"});
arrMnu.push({key:"guide22",txt:"°ÔÀÓ¼³Ä¡",url:"/guide/start_install.asp"});
arrMnu.push({key:"guide23",txt:"½Ã½ºÅÛ ¿É¼Ç",url:"/guide/start_option.asp"});
arrMnu.push({key:"guide24",txt:"Ä³¸¯ÅÍ »ý¼º",url:"/guide/start_character.asp"});
arrMnu.push({key:"guide25",txt:"±¤Àå ÀÔÀå",url:"/guide/start_square.asp"});
arrMnu.push({key:"guide26",txt:"½ºÅ×ÀÌÁö ½ÃÀÛ",url:"/guide/start_stage.asp"});
arrMnu.push({key:"guide27",txt:"´ëÀü¸ðµå ½ÃÀÛ",url:"/guide/start_pvp.asp"});
arrMnu.push({key:"guide3",txt:"Æ©Åä¸®¾ó",url:"guide31"});
arrMnu.push({key:"guide31",txt:"±âº» Æ©Åä¸®¾ó",url:"/guide/tutorial_basic.asp"});
arrMnu.push({key:"guide32",txt:"¾È³» Æ©Åä¸®¾ó",url:"/guide/tutorial_tip.asp"});
arrMnu.push({key:"guide4",txt:"±âº»ÀÎÅÍÆäÀÌ½º",url:"guide41"});
arrMnu.push({key:"guide41",txt:"ÀüÃ¼È­¸é",url:"/guide/interface_fullscreen.asp"});
arrMnu.push({key:"guide42",txt:"±âº»¸Þ´º",url:"/guide/interface_common.asp"});
arrMnu.push({key:"guide43",txt:"½ºÅ³(¸¶¹ý)",url:"/guide/interface_skill.asp"});
arrMnu.push({key:"guide44",txt:"Äü½½·Ô",url:"/guide/interface_quick.asp"});
arrMnu.push({key:"guide45",txt:"Æ¯¼öUI",url:"/guide/interface_ui.asp"});
arrMnu.push({key:"guide46",txt:"Á¶ÀÛ¹ý(Å°º¸µå)",url:"/guide/interface_control.asp"});
arrMnu.push({key:"guide47",txt:"Á¶ÀÛ¹ý(°ÔÀÓÆÐµå)",url:"/guide/interface_joystick.asp"});
arrMnu.push({key:"guide5",txt:"½Ã½ºÅÛ",url:"guide51"});
arrMnu.push({key:"guide51",txt:"ÆÄÆ¼",url:"/guide/system_party.asp"});
arrMnu.push({key:"guide52",txt:"°Å·¡",url:"/guide/system_trade.asp"});
arrMnu.push({key:"guide53",txt:"ÀÎÃ¦Æ®",url:"/guide/system_enchant.asp"});
arrMnu.push({key:"guide54",txt:"´ëÈ­",url:"/guide/system_community.asp"});
arrMnu.push({key:"guide55",txt:"·ç´Ï¾Æ¸Þ½ÅÀú",url:"/guide/system_messenger.asp"});
arrMnu.push({key:"guide56",txt:"±æµå",url:"/guide/system_guild.asp"});
arrMnu.push({key:"guide57",txt:"Äù½ºÆ®",url:"/guide/system_quest.asp"});
arrMnu.push({key:"guide58",txt:"³¬½Ã",url:"/guide/system_fish_hook.asp"});
arrMnu.push({key:"guide59",txt:"Æê",url:"/guide/system_pet.asp"});
arrMnu.push({key:"guide510",txt:"Àü½Â",url:"/guide/system_tradition.asp"});
arrMnu.push({key:"guide511",txt:"ÆÐ¹Ð¸®",url:"/guide/system_family.asp"});
arrMnu.push({key:"guide512",txt:"½ÃÀå",url:"/guide/system_family.asp"});
arrMnu.push({key:"guide513",txt:"Àåºñ±³Ã¼",url:"/guide/system_family.asp"});
arrMnu.push({key:"guide514",txt:"ÀüÅõÅë°è",url:"/guide/system_family.asp"});
arrMnu.push({key:"guide515",txt:"¼º´ÉÇâ»ó",url:"/guide/system_perfom.asp"});
arrMnu.push({key:"guide6",txt:"¾ÆÀÌÅÛ»óÁ¡",url:"guide61"});
arrMnu.push({key:"guide61",txt:"±¸¸Å/¼±¹°",url:"/guide/itemshop_trade.asp"});
arrMnu.push({key:"guide62",txt:"¾ÆÀÌÅÛ »ç¿ë",url:"/guide/itemshop_useitemasp"});
arrMnu.push({key:"guide63",txt:"ÄíÆù/Ä³½ÃÃæÀü",url:"/guide/itemshop_recharge_cash.asp"});

arrMnu.push({key:"community",txt:"Ä¿¹Â´ÏÆ¼",url:"community1"});
arrMnu.push({key:"community1",txt:"ÀÚÀ¯°Ô½ÃÆÇ",url:"/community/free_2nd/list.asp?ConfigID=6"});
arrMnu.push({key:"community11",txt:"ÆÄÆ¼Ã£±â",url:"/community/party/list.asp?ConfigID=20"});
arrMnu.push({key:"community2",txt:"Áö½ÄÀÎ",url:"/community/kin/main.asp"});
arrMnu.push({key:"community3",txt:"ÆÁ&°ø·«",url:"/community/tip/main.asp"});
arrMnu.push({key:"community4",txt:"ÆÒ»çÀÌÆ®",url:"community41"});
arrMnu.push({key:"community41",txt:"ÆÒ»çÀÌÆ®",url:"/community/fansite/main.asp"});
arrMnu.push({key:"community42",txt:"ÆÒºí·Î±×",url:"/community/fanblog/list.asp?ConfigID=22"});
arrMnu.push({key:"community5",txt:"°Å·¡ÀåÅÍ",url:"/community/trade/list.asp?ConfigID=7"});
arrMnu.push({key:"community6",txt:"ÆÒ½ºÅ©¸°¼¦",url:"/community/fanshot/list.asp?ConfigID=8"});
arrMnu.push({key:"community7",txt:"ÆÒ¾ÆÆ®¿÷",url:"/community/fanart/list.asp?ConfigID=9"});
arrMnu.push({key:"community8",txt:"ÆÒ¸¸È­",url:"/community/fantoon/list.asp?ConfigID=10"});
//arrMnu.push({key:"community9",txt:"Åä·Ð±¤Àå",url:"/community/discuss/list.asp"});
//arrMnu.push({key:"communityA",txt:"¹ö·°°Ô½ÃÆÇ",url:"/community/ddanzi/list.asp?ConfigID=16"});
arrMnu.push({key:"community9",txt:"µ¿¿µ»ó",url:"community93"});
arrMnu.push({key:"community91",txt:"·ç´Ï¾Æ¿µ»ó",url:"/community/movie/movie/movie.asp"});
arrMnu.push({key:"community92",txt:"·ç´Ï¿Â¿¡¾î",url:"/community/movie/onair/main.asp"});
arrMnu.push({key:"community93",txt:"´ëÀü¿µ»ó",url:"/community/movie/pvp_league/list.asp"});
arrMnu.push({key:"communityA",txt:"Åä·Ð±¤Àå",url:"/community/discuss/list.asp"});

arrMnu.push({key:"pds",txt:"ÀÚ·á½Ç",url:"pds1"});
arrMnu.push({key:"pds1",txt:"°ÔÀÓ´Ù¿î·Îµå",url:"/pds/download.asp"});
arrMnu.push({key:"pds2",txt:"µå¶óÀÌ¹ö",url:"/pds/driver.asp"});
//arrMnu.push({key:"pds3",txt:"µ¿¿µ»ó",url:"/pds/movie.asp"});
arrMnu.push({key:"pds3",txt:"½ºÅ©¸°¼¦",url:"/pds/scrshot/list.asp?ConfigID=4"});
arrMnu.push({key:"pds4",txt:"¿ùÆäÀÌÆÛ",url:"/pds/wallpaper.asp"});
arrMnu.push({key:"pds5",txt:"¾ÆÆ®¿÷",url:"/pds/artwork/list.asp?ConfigID=5"});
arrMnu.push({key:"pds6",txt:"OST",url:"pds61"});
arrMnu.push({key:"pds61",txt:"OST µè±â",url:"/pds/ost1.asp"});
arrMnu.push({key:"pds62",txt:"OST ¼Ò°³",url:"/pds/ost2.asp"});
arrMnu.push({key:"pds63",txt:"STAFF",url:"/pds/ost3.asp"});
arrMnu.push({key:"pds64",txt:"STAFF LIST",url:"/pds/ost4.asp"});
arrMnu.push({key:"pds65",txt:"OST Á¦ÀÛÇöÈ²",url:"/pds/ost5.asp"});
//arrMnu.push({key:"pds8",txt:"·ç´Ï¿Â¿¡¾î",url:"/pds/onair/main.asp"});

arrMnu.push({key:"lunibible",txt:"·ç´Ï¹ÙÀÌºí",url:"javascript:window.open('/bible/');"});
arrMnu.push({key:"lunibible1",txt:"Ä³¸¯ÅÍ",url:"javascript:window.open('/bible/chr/');"});
arrMnu.push({key:"lunibible2",txt:"ÄÞº¸",url:"javascript:window.open('/bible/combo/');"});
arrMnu.push({key:"lunibible3",txt:"½ºÅ³",url:"javascript:window.open('/bible/skill/');"});
arrMnu.push({key:"lunibible4",txt:"¾ÆÀÌÅÛ",url:"javascript:window.open('/bible/item/');"});
arrMnu.push({key:"lunibible5",txt:"½ºÅ×ÀÌÁö",url:"javascript:window.open('/bible/stage/');"});
arrMnu.push({key:"lunibible6",txt:"´ëÀü",url:"javascript:window.open('/bible/pvp/');"});
arrMnu.push({key:"lunibible7",txt:"¸ó½ºÅÍ",url:"javascript:window.open('/bible/monster/');"});

arrMnu.push({key:"ranking", txt:"·©Å·",url:"ranking1"});
arrMnu.push({key:"ranking1",txt:"°³ÀÎ·©Å·",url:"/ranking_v2/list_stage.asp"});
arrMnu.push({key:"ranking2",txt:"´ëÀü·©Å·(·¹º§)",url:"/ranking_v2/list_pvp_level.asp"});
arrMnu.push({key:"ranking3",txt:"´ëÀü·©Å·(½Â¼ö)",url:"/ranking_v2/list_pvp_wincnt.asp"});
arrMnu.push({key:"ranking4",txt:"´ëÀü·©Å·(½Â·ü)",url:"/ranking_v2/list_pvp_winrate.asp"});
arrMnu.push({key:"ranking5",txt:"Àü°ø·©Å·",url:"/ranking_v2/list_war.asp"});
arrMnu.push({key:"ranking6",txt:"Å¸ÀÓ¾îÅÃ·©Å·",url:"/ranking_v2/list_timeattack.asp"});
arrMnu.push({key:"ranking7",txt:"·ç´ÏÆ÷ÀÎÆ®·©Å·",url:"/ranking_v2/list_lunipoint.asp"});
//arrMnu.push({key:"ranking7",txt:"´ëÀü¸®±×",url:"/ranking/pvp_league/list.asp"});
arrMnu.push({key:"ranking11",txt:"°³ÀÎÁ¾ÇÕ·©Å·"});
arrMnu.push({key:"ranking12",txt:"ÆÄÆ¼Á¾ÇÕ·©Å·"});

arrMnu.push({key:"support",txt:"°í°´Áö¿ø",url:"support1"});
arrMnu.push({key:"support1",txt:"°í°´Áö¿ø¾È³»",url:"/support/support.asp"});
arrMnu.push({key:"support2",txt:"FAQ",url:"/support/faq/main.asp"});
//arrMnu.push({key:"support3",txt:"¹ö±×½Å°í",url:"/support/cs/list.asp?ConfigID=11"});
arrMnu.push({key:"support3",txt:"¹ö±×½Å°í",url:"/support/bug/main.asp"});
arrMnu.push({key:"support4",txt:"°ÇÀÇ°Ô½ÃÆÇ",url:"/support/cs/list.asp?ConfigID=12"});
arrMnu.push({key:"support5",txt:"Æ÷ÀÎÆ®Á¤Ã¥",url:"/support/point.asp"});
arrMnu.push({key:"support6",txt:"¿î¿µÁ¤Ã¥",url:"/support/support.asp"});

arrMnu.push({key:"shop",txt:"¾ÆÀÌÅÛ»óÁ¡",url:"javascript:openShop('real');"});

arrMnu.push({key:"rss",txt:"·ç´Ï¾ÆÀü±â RSS",url:"/rss/default.asp"});

arrMnu.push({key:"guild",txt:"·ç´Ï¾ÆÀü±â ±æµå",url:"/guild/default.asp"});

//arrMnu.push({key:"pvp_gp",txt:"¿µ¿õ´ëÀüGP",url:"pvp_gp1"});
//arrMnu.push({key:"pvp_gp1",txt:"GP °³¿ä",url:"/pvp_gp/summary.asp"});
//arrMnu.push({key:"pvp_gp2",txt:"GP ÀÏÁ¤",url:"/pvp_gp/schedule.asp"});
//arrMnu.push({key:"pvp_gp3",txt:"GP ±ÔÁ¤",url:"/pvp_gp/provision.asp"});
//arrMnu.push({key:"pvp_gp4",txt:"GP ´ëÁøÇ¥",url:"/pvp_gp/match_list.asp"});
//arrMnu.push({key:"pvp_gp5",txt:"GP ¾ÆÇÁ¸®Ä«TV",url:"/pvp_gp/tv_content.asp"});

//arrMnu.push({key:"pvp_gp",txt:"¿µ¿õ´ëÀüGP",url:"pvp_gp1"});
//arrMnu.push({key:"pvp_gp1",txt:"GP °³¿ä",url:"/pvp_gp_v2/summary.asp"});
//arrMnu.push({key:"pvp_gp2",txt:"GP ÀÏÁ¤",url:"/pvp_gp_v2/schedule.asp"});
//arrMnu.push({key:"pvp_gp3",txt:"GP ±ÔÁ¤",url:"/pvp_gp_v2/provision.asp"});
//arrMnu.push({key:"pvp_gp4",txt:"GP ´ëÁøÇ¥",url:"/pvp_gp_v2/match_list.asp"});
//arrMnu.push({key:"pvp_gp5",txt:"GNGWC",url:"/pvp_gp_v2/gngwc.asp"});


arrMnu.push({key:"pvp_gp",txt:"¿µ¿õ´ëÀüGP",url:"pvp_gp1"});
arrMnu.push({key:"pvp_gp1",txt:"GP °³¿ä",url:"/pvp_gp_2009/round1/summary.asp"});
arrMnu.push({key:"pvp_gp2",txt:"GP ÀÏÁ¤",url:"/pvp_gp_2009/round1/schedule.asp"});
arrMnu.push({key:"pvp_gp3",txt:"GP ±ÔÁ¤",url:"/pvp_gp_2009/round1/provision.asp"});
arrMnu.push({key:"pvp_gp4",txt:"GP ´ëÁøÇ¥",url:"/pvp_gp_2009/round1/match_list.asp"});
arrMnu.push({key:"pvp_gp5",txt:"GNGWC",url:"/pvp_gp_2009/round1/gngwc.asp"});

arrMnu.push({key:"etc1",txt:"¾ÆÄÉÀÌµåRPG¶õ",url:"javascript:window.open('/etc/arcade/arcade2.asp');"});
arrMnu.push({key:"etc2",txt:"¾ÆÄÉÀÌµåRPGvsMMORPG",url:"javascript:window.open('/etc/arcade/arcade1.asp');"});
arrMnu.push({key:"etc_tour_blog",txt:"·ç´Ï¾ÆÀü±â¼Ò¹®³»±â",url:"javascript:window.open('/etc/tour_blog/tour_blog_talk.asp','tour_blog','width=648,height=575,scrollbars=0');"});
arrMnu.push({key:"tour",txt:"ÃÊº¸ÀÚÅõ¾î°¡ÀÌµå",url:"/tour/default.asp"});
arrMnu.push({key:"etc3",txt:"Å×½ºÆ®¼­¹ö °øÁö",url:"/news/news/read.asp?ConfigID=1&BoardID=75753"});
arrMnu.push({key:"event_0603_1st",txt:"ÁÜ¸ÓÀÌº¥Æ®",url:"javascript:window.open('/news/event/0603_1st/full/main.asp');"});
//arrMnu.push({key:"link_0603_1st",txt:"Ä£±¸ ²¿½Ã±â",url:"/community/free/read.asp?ConfigID=6&rStatus=0&SearchField=WriterName&SearchText=lunia&GotoPage=1&BoardID=109309"});
//arrMnu.push({key:"link_0603_2nd",txt:"±×´Â °í¼ö¿´´Ù",url:"/community/fantoon/read.asp?ConfigID=10&rStatus=12&GotoPage=1&BoardID=99755"});
arrMnu.push({key:"link_0603_3rd",txt:"ÀÌ±æÅ×¸é ÀÌ°ÜºÁ¶ó",url:"/news/update/read.asp?ConfigID=2&BoardID=116386"});
arrMnu.push({key:"link_0604_1st",txt:"ºû,Ä­Çï,¹°¾à",url:"/news/update/read.asp?ConfigID=2&BoardID=127346"});
arrMnu.push({key:"event_0605_2nd",txt:"pvp ´ëÀü",url:"javascript:window.open('/news/event/0605_2nd/full/1st_pvp_league_3.asp');"});
arrMnu.push({key:"event_0606_1st",txt:"ÇÑ±¹Ãà±¸´ë¹Ú",url:"javascript:window.open('/news/event/0606_1st/full/default.asp');"});
arrMnu.push({key:"event_0607_1st",txt:"¿¡º¼·ç¼Ç ÀÌº¥Æ®",url:"javascript:window.open('/news/event/0607_1st/full/main.asp');"});
arrMnu.push({key:"event_0607_3rd",txt:"Ãæ¼º°í°´ÀÌº¥Æ®",url:"javascript:window.open('/news/event/0607_3rd/full/default.asp');"});
arrMnu.push({key:"event_0609_2nd",txt:"Ãß¼®100%´çÃ·",url:"javascript:window.open('/news/event/0609_2nd/full/point.asp');"});
arrMnu.push({key:"guild_vs_guild",txt:"±æµåvs±æµå",url:"javascript:window.open('http://guild.nexon.com/NX/Page/Gnx.aspx?url=Guild/GuildVSGuild&oidArticle=49&maskPageType=2');"});
arrMnu.push({key:"event_0610_1st",txt:"´ëÀü¸®±×",url:"javascript:window.open('/news/event/0610_1st/full/main.asp');"});
arrMnu.push({key:"event_0612_2nd",txt:"»êÅ¸ÀÇ¼±¹°»óÀÚ",url:"javascript:window.open('/news/event/0612_2nd/happy.asp');"});

arrMnu.push({key:"thank_you_receive",txt:"½ßÀ¯¼±¹°¹Þ±â",url:"javascript:void win_open_center('/news/event/0709_1st/pop/form.asp','thank_you_receive','675','610','0');"});
arrMnu.push({key:"event_0711_4th",txt:"±×ÀÇ ÀÌ¸§À» ¸ÂÃç¶ó",url:"javascript:void win_open_center('/news/event/0711_4th/pop/form.asp','thank_you_receive','430','320','0');"});

arrMnu.push({key:"blog",txt:"¿µÀÚÀÇ ºí·Î±×",url:"javascript:void win_open_center('/etc/blog/main.asp','blog','747','555','1');"});

arrMnu.push({key:"hero",txt:"¿µ¿õ´ëÀüGP ¿µ¿õÆäÀÌÁö",url:"/pvp_gp_2008/round2/hero_history.asp"});


function getMnuNM(param) {
	for(var i=0;i<arrMnu.length;i++) {
		if(arrMnu[i].key==param) {
			return arrMnu[i].txt;
		}
	}
}

function getMnuURL(param) {
	for(var i=0;i<arrMnu.length;i++) {
		if(arrMnu[i].key==param) {
			return arrMnu[i].url;
		}
	}
}

function goURL(param) {
	if(!param) return;
	url = getMnuURL(param);
	if(!url) return;
	if(url.indexOf("javascript:")>-1) {
		eval(url.replace("javascript:",""));
	} else if(url.indexOf(".asp")<0) {
		goURL(url)						//ÀÌ»óÇÏ´Ù ´Ù½Ã ¶Ç¿À¸é ¾î¶»°Ô ÇÏ³Ä??~~
	} else {
		location.href = url;
	}
}

// ±âÁ¸ È¸¿ø ·Î±×ÀÎ
function luni_login() {
	 win_open_center("/luni_login/login.asp","popLuniLogin",350,300,1);
}
// ³Ø½¼ ·Î±×ÀÎ ¾È³»
function nexon_login_info(userID) {
	if(!userID) return false;
	win_open_center("/login/nexon_login_info.asp?UserID="+userID,"popNexonLogin",700,600,1);
}
// ¸¶ÀÌ·ç´Ï
function myluni(url) {
	if(!url) {url = "/myluni/";}
	win_open_center(url,"popMyLuni",720,600,1);
}
// ÀÓ½Ã»çÀÌÆ®
function temp_site(url) {
	win_open_center(url,"popTempsite",732,575,1);
}
//ÀÎÆ®·Î ±¤°íÃ¢
function goIntroBanner(num) {
	//alert("½ÂÈ£ÃÖ°í"+num);
	location.href="http://lunia.nexon.com/news/update/read.asp?ConfigID=2&GotoPage=1&BoardID=552023"
}




//ÆÐÃÄ ±¤°íÃ¢
function goPatcherBanner(num) {
	
	switch(num) {
	
	case 1:
	//4ÁÖ³â3
	window.open("/news/event/read.asp?rCategory=2&SearchField=&SearchText=&GotoPage=1&EventID=200")
	break;
	
	case 2:	
	//ÆÐ¼Ç
	window.open("/news/event/read.asp?rCategory=2&SearchField=&SearchText=&GotoPage=1&EventID=198")
	break;
	
	case 3:
	//°æÇèÄ¡
	
	openShop('real');
	break;;
	
	case 4:
	//°æÇèÄ¡
	//window.open("/news/event/read.asp?rCategory=2&SearchField=&SearchText=&GotoPage=1&EventID=188")
	openShop('real');
	break;;
	}
}


// ¸ÞÀÎ±¤°íÃ¢ ¸µÅ©
function goTopBanner(num) {
	try {
		ifrm_wiselog.location='/blank.asp?section=lunia&position=main&bannername=ad_flash'+(num+1);
	} catch(e) {alert(e);}
	switch(num) {
		case 0:	
			//4ÁÖ³â 3Åº
			location.href="/news/event/read.asp?rCategory=2&SearchField=&SearchText=&GotoPage=1&EventID=200"		
			break;
		case 1:	
			//ÆÄ°ÝÀÎÇÏ
			openShop('real');
			break;
		case 2:
			//°Ü¿ï
			openShop('real');
			break;;
		case 3:
			//Àå±³
			openShop('real');
			break;;
		case 4:
			//ÁÖ¸»ÇÒÀÎ
			openShop('real');
			break;;
	}
}

// ÀÌº¥Æ® ÇÏ·¯°¡±â
function goEvent(param) {
	var eventID;
	if(param=="0512_1st") {eventID=1}
	else if(param=="0512_2nd") {eventID=2}
	else if(param=="0512_3rd") {eventID=3}
	else if(param=="0512_4th") {eventID=4}
	else if(param=="0601_1st") {eventID=5}
	else if(param=="0601_2nd") {eventID=6}
	else if(param=="0601_3rd") {eventID=7}
	else if(param=="0602_1st") {eventID=8}
	else if(param=="0602_2nd") {eventID=9}
	else if(param=="0603_1st") {eventID=10}
	else if(param=="0603_2nd") {eventID=14}
	else if(param=="0603_3rd") {eventID=15}
	else if(param=="0603_4th") {eventID=16}
	else if(param=="0604_1st") {eventID=17}
	else if(param=="0604_2nd") {eventID=18}
	else if(param=="0604_3rd") {eventID=19}
	else if(param=="0604_4th") {eventID=20}
	else if(param=="0604_5") {eventID=21}
	else if(param=="0604_6th") {eventID=22}
	else if(param=="0604_7th") {eventID=23} /* º¸¶ùºû ±â»ç´Ü Áö¿ø ÇÕ°Ý¿©ºÎ ÀÌº¥Æ® ÁØºñÁß*/
	else if(param=="0605_1st") {eventID=24}
	else if(param=="0605_2nd") {eventID=25}
	//else if(param=="0605_1st") {eventID=26} ÃàÇÏ½ºÅ©¸°¼¦ ´çÃ·ÀÚ ¹ßÇ¥
	//else if(param=="0605_1st") {eventID=27} 100ÀÏ ±â³ä ¸ñ°ÉÀÌ ´çÃ·ÀÚ ¹ßÇ¥
	else if(param=="0605_3rd") { eventID=28 }
	//else if(param=="0606_1st") { eventID=29 }	Åä°í¸¦ Àâ¾Æ¶ó
	else if(param=="0606_2nd") { eventID=30 }  //²ÀÁöÁ¡ ´í½º
	//else if(param=="0606_2nd") { eventID=31 } ÇÁ¶û½º¸¦ Àâ¾Æ¶ó
	else if(param=="0606_3rd") { eventID=32 } 
	else if(param=="0606_4th") { eventID=33 } //¸¶¿ì½ºÆÐµå
	else if(param=="0606_3rd") { eventID=34 } //½ºÀ§½º¸¦ Àâ¾Æ¶ó
	else if(param=="0607_1st") { eventID=35 } //¿¡º¼·ç¼ÇÀÌº¥Æ® 100%
	//else if(param=="0607_1st") { eventID=36 } //¿¡º¼·ç¼ÇÀÌº¥Æ® ½º¼¦
	else if(param=="0607_2nd") { eventID=37 } //º¸¶ùºû ±â»ç´Ü 2±â ¹ßÇ¥
	else if(param=="0607_3rd") { eventID=38 } //Ãæ¼º°í°´ÀÌº¥Æ®
	else if(param=="0608_1st") { eventID=39 } //º¸½ºÀâ°í Çö»ó±ÝÅ¸ÀÚ!!
	else if(param=="0608_2nd") { eventID=40 } //ÁÖ¸»¿¡´Â °æÇèÄ¡ µÎ¹è!!~ ´õºí ¹ö´× Å¸ÀÓ
 	else if(param=="0609_1st") { eventID=41 } //PC¹æ ÄíÆùÀÌº¥Æ®,ÇÁ¸®¹Ì¾ö
 	else if(param=="0609_2nd") { eventID=42 } //Ãß¼®ÀÌº¥Æ®(100%)
 	else if(param=="0609_3rd") { eventID=43 } //ÇÑº¹¸Ê½Ã »Ë³»°í ¼±¹°Å¸ÀÚ! 
 	else if(param=="0610_1st") { eventID=44 } //¿µ¿õ´ëÀü GP(Grand Prix) °³¸·!!
 	else if(param=="0610_2nd") { eventID=45 } //[ÇÒ·ÎÀ©ÀÌº¥Æ®] ¹ö´×Å¸ÀÓ, È£¹ÚÅÛ ¾÷±×·¹ÀÌµå!
 	else if(param=="0611_1st") { eventID=46 } //[³Ø½¼ÇÃ·¯±×]·ç´Ï¾Æ¿Í ÇÔ²²ÇÏ´Â ÃâÃ¥ »ýÀÏ ÀÜÄ¡
 	else if(param=="0611_2nd") { eventID=47 } //·ç´Ï¾Æ G½ºÅ¸
 	else if(param=="0612_1st") { eventID=48 } //¸í¿¹·ç´Ï¾Æ ÀÌº¥Æ®
 	else if(param=="0612_2nd") { eventID=49 } //[¸Þ¸®Å©¸®½º¸¶½º & ÇØÇÇ´ºÀÌ¾î ±â³ä]»êÅ¸ÀÇ ¼±¹° »óÀÚ 
 	else if(param=="0612_3rd") { eventID=50 } //[2nd EVOLUTION±â³ä]µÎ±ÙµÎ±Ù °Ü¿ï¹æÇÐ ¹Ì¼Ç
 	else if(param=="0701_1st") { eventID=51 } //[µ¥ÀÌ½ÃÀÇ »õÇØ ¸ÂÀÌ] 100% ´çÃ·, ½áÇÁ¶óÀÌÁî VOL.3 
 	else if(param=="0701_2nd") { eventID=52 } //[2007 °æÇèÄ¡+] ¹ö´×Å¸ÀÓ
 	else if(param=="0701_3rd") { eventID=53 } //[´ëÀü¸®±×/½Ã¹ü °³¸·Àü] 2007 ¿µ¿õ´ëÀü GP °³¸·!!
 	else if(param=="0701_4th") { eventID=54 } //·ç´Ï¾ÆÀü±â 1 ÁÖ³â ±â³ä °¨»çÀÌº¥Æ®
 	else if(param=="0702_1st") { eventID=55 } //À½·Â¼³ ¸ÂÀÌ 100% ´çÃ· ¼±¹°²Ù·¯¹Ì
 	else if(param=="0702_2nd") { eventID=56 } //½ð Àè½¼ ½ÇÁ¾»ç°Ç
 	else if(param=="0702_3rd") { eventID=57 } //[¼Öµò vs Æ÷¸®¿¤] ¼­¹ö ´ëÇ×Àü
 	else if(param=="0703_1st") { eventID=58 } //»ýÀ¯ °¡ÀÌµå
 	else if(param=="0703_2nd") { eventID=59 } //¿µÀÚ°¡ °£´Ù.
 	else if(param=="0704_1st") { eventID=60 } //³ª¹«»ç¶û
 	else if(param=="0704_2nd") { eventID=61 } //°æÇèÄ¡2¹è
 	else if(param=="0704_3rd") { eventID=62 } //UCC¾÷ ·ç´Ï¾Æ ¾÷
 	else if(param=="0704_4th") { eventID=63 } //ºÒ·®Ä³¸¯ÅÍ¸í º¯°æ
 	else if(param=="0705_1st") { eventID=64 } //·ç´Ï¾È! Ã¼À°´ëÈ¸¸¦ ºÎÅ¹ÇØ
 	else if(param=="0705_2nd") { eventID=65 } //½ßÀ¯ 2Â÷ »óÇ°¼±ÅÃ
 	else if(param=="0705_3rd") { eventID=66 } //¾î¸°ÀÌ³¯ °æÇèÄ¡ÇÃ·¯½º+¹ö´×Å¸ÀÓ
 	else if(param=="0705_4th") { eventID=67 } //¼ö¾Æ³ª¿Í ¾ÆÇÁ¸®Ä«TV ¹æ¼ÛÅ¸ÀÚ~
 	else if(param=="0705_5th") { eventID=68 } //¼ö¾Æ³ª¿Í ¾ÆÇÁ¸®Ä«TV ¹æ¼ÛÅ¸ÀÚ~
 	else if(param=="0705_6th") { eventID=69 } //»ï°èÅÁÀÌº¥Æ®
 	else if(param=="0705_7th") { eventID=70 } //½ßÀ¯»óÇ°¼±ÅÃ 3Â÷
 	else if(param=="0706_1st") { eventID=71 } //ÆÛÁñ ÀÌº¥Æ®
 	else if(param=="0706_2nd") { eventID=72 } //½Å±ÔUI ½º¼¦ Âï¾î¿ä~
 	else if(param=="0707_1st") { eventID=73 } //·ç´Ï¾ÆÄ«Å÷ ¿Ï¼ºÇÏ±â
 	else if(param=="0707_2nd") { eventID=74 } //½ßÀ¯SummerÆä½ºÆ¼¹ú
 	else if(param=="0707_3rd") { eventID=75 } //Åð¸¶ÀÇ½£
 	else if(param=="0708_1st") { eventID=76 } //ÇØÀûÀÌº¥Æ®
 	else if(param=="0708_2nd") { eventID=77 } //OXÄûÁîÀÌº¥Æ®
 	else if(param=="0709_1st") { eventID=78 } //½ßÀ¯¼­ºñ½ºv2_2Â÷
 	else if(param=="0709_2nd") { eventID=79 } //°æÇèÄ¡ÇÃ·¯½º ÇÑ°¡À§ ¹ö´×Å¸ÀÓ
 	else if(param=="0709_3rd") { eventID=80 } //¸ÅÀÏ ¸ÅÀÏ ÇØÀû Ä³½ÃÅÛÀ» 2°³¾¿
 	else if(param=="0709_4th") { eventID=81 } //ÀÌÁ¦´Â ¸¸³¯¼öÀÖ´Ù.
 	else if(param=="0710_2nt") { eventID=82 } //G star ¼º°ø±â¿ø
 	else if(param=="0710_1st") { eventID=83 } //ÀüÅõº»´É ÀÌº¥Æ®
 	else if(param=="0710_3rd") { eventID=84 } //°³ÀÎ»óÁ¡ÀÌ °øÂ¥¶ó¸é
 	else if(param=="0710_4th") { eventID=85 } //È£¹ÚÅÛ ¾÷±×·¹ÀÌµå
 	else if(param=="0711_1st") { eventID=86 } //G Star 2007
 	else if(param=="0711_2nd") { eventID=87 } //Æ÷¸®¿¤ ¹ö´×Å¸ÀÓ ÀÌº¥Æ®
 	else if(param=="0711_3rd") { eventID=88 } //¸ð¿©¶ó Ä£±¸¾ß
 	else if(param=="0711_4th") { eventID=89 } //[´ÞºûÀ» »ïÅ² ÀüÀåÀÇ ´Á´ë] ±×ÀÇ ÀÌ¸§À» ¸ÂÃç¶ó.
 	else if(param=="0711_5th") { eventID=90 } //¸ÅÀÏ Ãâ¼®ÇÏ°í 3°¡Áö ¼±¹°¹ÞÀÚ~
 	else if(param=="0711_6th") { eventID=91 } //100% ´çÃ· ¼±¹°º¸µû¸®
 	else if(param=="0711_7th") { eventID=92 } //·ç´Ï¾Æ ÆÒ¾ÆÆ®¿÷ ÀÌº¥Æ®
 	else if(param=="0711_8th") { eventID=93 } //±ôÂ¦ÀÌº¥Æ®
 	else if(param=="0712_1st") { eventID=94 } //Å©¸®±× ¿¤ ÇÏÆ¼! ±×¸¦ ÆÄÇìÃÄ¶ó!
 	else if(param=="0712_2nd") { eventID=95 } //±ôÂ¦ÀÌº¥Æ®
 	else if(param=="0712_3rd") { eventID=96 } //ÀüÅõº»´É
 	else if(param=="0712_4th") { eventID=97 } //Å©¸®±×·Î ´Þ¸®ÀÚ
 	else if(param=="0712_5th") { eventID=98 } //¶°µ¹ÀÌ¼îÀÇ ÀÒ¾î¹ö¸° ¾ç¸»À» Ã£¾Æ¶ó!
 	else if(param=="0712_6th") { eventID=99 } //¸ÅÀÏ¸ÅÀÏ °øÂ¥ Ä³½Ã¾ÆÀÌÅÛ ¹Þ¾Æ°¡¼¼¿ä
 	else if(param=="0712_7th") { eventID=100 } //ÀÌÁ¦´Â ´«½Î¿òÀÌ´Ù!
 	else if(param=="0801_1st") { eventID=101 } //»õÇØÀÎ»çÇÏ¼¼¿ä
 	else if(param=="0801_2nd") { eventID=102 } //2ÁÖ³â ±â³ä ÀÌº¥Æ®
 	else if(param=="0801_3rd") { eventID=103 } //Ä£±¸¾ß! ·ç´Ï¾ÆÇÏÀÚ1~
 	else if(param=="0802_1st") { eventID=104 } //Æ÷¸®¿¤ ¿µ±¤À» À§ÇÏ¿© 1Â÷ ´çÃ·ÀÚ
 	else if(param=="0802_2nd") { eventID=105 } //ÃÊÄÝ¸´ ¾ð´öÀ» Á¡·ÉÇÏ¶ó!
 	else if(param=="0802_3rd") { eventID=106 } //½Ã¸®µµ·ÏÂ÷°¡¿î °áÁ¤
 	else if(param=="0802_4th") { eventID=107 } //´«½Î¿òÀº °è¼ÓµÇ¾î¾ß¸¸ ÇÑ´Ù
 	else if(param=="0802_5th") { eventID=108 } //Æ÷¸®¿¤ ¿µ±¤À» À§ÇÏ¿© 2Â÷ ´çÃ·ÀÚ
 	else if(param=="0802_6th") { eventID=109 } //ÀÌÁ¦´Â ´«½Î¿òÀÌ´Ù! 2Â÷ ´çÃ·ÀÚ
 	else if(param=="0802_7th") { eventID=110 } //[Æ÷¸®¿¤ ÁßÈïÀÇ ±æ]Æ÷¸®¿¤ÀÌ¿©, ºÎÈ°ÇÏ¶ó!
 	else if(param=="0803_2nd") { eventID=113 } //»õÇÐ±â! »õ°¡¹æ ¹ÞÀ¸¼¼¿ä~
 	else if(param=="0803_3rd") { eventID=114 } //ºí°ÇÀü Ä³¸¯ÅÍ¸í º¯°æ Ä·ÆäÀÎ!
 	else if(param=="0803_4th") { eventID=115 } //³ª¹«»ç¶û ÀÌº¥Æ®
 	else if(param=="0803_5th") { eventID=116 } //ÀÚÈú¸®¾ß¸¦ Á¤º¹ÇÏ¶ó!
 	else if(param=="0803_6th") { eventID=117 } //Æ÷¸®¿¤ÀÌ¿©, ºÎÈ°ÇÏ¶ó!
 	else if(param=="0804_1st") { eventID=118 } //Æ÷¸®¿¤ÀÌ¿©, ºÎÈ°ÇÏ¶ó! ¹ÝÁö ¸ñ°ÉÀÌ ¹Þ±â
 	else if(param=="0805_1st") { eventID=120 } //¿¡ÇÇ¼Òµå 6¸¦ Áñ°Ü¶ó
 	else if(param=="0805_2nd") { eventID=121 } //2008 ¶ó¿îµå 2 ÀüÅõº»´É
 	else if(param=="0805_3rd") { eventID=122 } //¾ÆÀÌÅÛ¼¥ ÀÌº¥Æ®
 	else if(param=="0805_4th") { eventID=123 } //1.5¹è ¹ö´×Å¸ÀÓ
 	else if(param=="0805_8th") { eventID=127 } //ÇÊµå Æ©´×
 	else if(param=="0805_9th") { eventID=128 } //6´ë º¸½º Å½¹æ±â
 	else if(param=="0805_10th") { eventID=129 } //½Ã¸®µµ·Ï Â÷°¡¿î °áÁ¤! ½ÃÁð2!!
 	else if(param=="0806_1st") { eventID=131 } //½Ã¸®µµ·Ï Â÷°¡¿î °áÁ¤! ½ÃÁð2!!
 	else if(param=="0806_3rd") { eventID=133 } //µ¹¾Æ¿Â Åð¸¶ÀÇ ½£
 	else if(param=="0807_2nd") { eventID=138 } //Âù¶õÇÏ°Ô ºû³ª´Â °ø·«&µðÀÚÀÎÀ» Ã£½À´Ï´Ù!
 	else if(param=="0807_3rd") { eventID=139 } //ÀüÅõº»´É Round3
 	else if(param=="0807_4th") { eventID=140 } //Ä­Çï ½Ã¸®µµ·Ï Â÷°¡¿î °áÁ¤
 	else if(param=="0807_5th") { eventID=141 } //¸Å¼ö ¼öÅäÀÏ ¹ö´× ¹ö´×!
 	else if(param=="0808_1st") { eventID=142 } //2008 ÅÂ±ØÀü»ç ÆÄÀÌÆÃ!
 	else if(param=="0808_3rd") { eventID=144 } //ÆË½ºÅ×ÀÌÁö ÀÌº¥Æ®!
 	else if(param=="0809_1st") { eventID=146 } //ÇÑº¹ ÀÌº¥Æ®
 	else if(param=="0809_2nd") { eventID=147 } //±æµå½Ã½ºÅÛ 2.0
 	else if(param=="0810_1st") { eventID=148 } //ÆË½ºÅ×ÀÌÁö ÀÌº¥Æ®2!
 	else if(param=="0810_3rd") { eventID=150 } //PC¹æ ÀÌº¥Æ®!
 	else if(param=="0811_1st") { eventID=151 } //2008 ÀüÅõº»´É Round 4
 	else if(param=="0811_2nd") { eventID=152 } //½ÅÈ­ 
 	else if(param=="0811_3rd") { eventID=153 } //¹«·áÈ­
 	else if(param=="0811_4th") { eventID=154 } //Ã¼Çè¾ÆÀÌµð
 	else if(param=="0812_1st") { eventID=155 } //´ñ±ÛÀÌº¥Æ®
 	else if(param=="0901_1st") { eventID=156 } //·ç´ÏÅõ¾î
 	else if(param=="0901_2nd") { eventID=157 } //ÆË½ºÅ×ÀÌÁö
 	else if(param=="0901_3rd") { eventID=158 } //3ÁÖ³â ÀÌº¥Æ®
 	else if(param=="0902_1st") { eventID=159 } //ºí·Î±× ÀÌº¥Æ®
 	else if(param=="0902_2nd") { eventID=160 } //½ÅÈ­¿ÀÇÂ ÀÌº¥Æ®
 	else if(param=="0902_3rd") { eventID=161 } //·ç´ÏÆ÷ÀÎÆ® ÀÌº¥Æ®
 	else if(param=="0902_4th") { eventID=162 } //´º ½ºÆ½½º
 	else if(param=="0903_1st") { eventID=163 } //µ¿¿µ»ó ÄÁÅ×½ºÆ®
 	else if(param=="0904_1st") { eventID=164 } //Ä®¸® Ä³¸¯ÅÍ ÀÌº¥Æ®
 	else if(param=="0904_2nd") { eventID=165 } //Ä®¸® ºí·Î±× ÀÌº¥Æ®
 	else if(param=="0904_3rd") { eventID=166 } //ÆÐ¹Ð¸® ºí·Î±× ÀÌº¥Æ®
 	else if(param=="0904_4th") { eventID=167 } //°ø·« ÀÌº¥Æ®
 	else if(param=="0905_1st") { eventID=168 } //½ÅÈ­ ¿¡ÇÇ¼Òµå3 ÀÌº¥Æ®
 	else if(param=="0905_2nd") { eventID=169 } //µ¿¿µ»ó ÄÁÅ×½ºÆ® ´çÃ·ÀÚ ¹ßÇ¥
 	else if(param=="0906_1st") { eventID=170 } //º¸ÀÌ½ºÃ¤ÆÃ ÇÒÀÎ ÀÌº¥Æ®
 	else if(param=="0906_2nd") { eventID=171 } //½ºÅ×ÀÌÁö °ø·«¹ý ºí·Î±× ÀÌº¥Æ®
 	else if(param=="0907_1st") { eventID=172 } //¾Æ½ºÄ« ºí·Î±× ÀÌº¥Æ®
 	else if(param=="0907_2nd") { eventID=173 } //¿©¸§ ¹æÇÐ ¿î¿µÀÚ ÀÌº¥Æ®
 	else if(param=="0907_5th") { eventID=176 } //ºÒÀÇ ¿ä»õ ÀÌº¥Æ®
 	 		else {
		location.href = "/news/event/list.asp";
		return false;
	}
	location.href = "/news/event/read.asp?rCategory=2&EventID="+eventID;
}

// ¹Ìµð¾î ¼Ò½º clipboard·Î º¹»ç
function clipMediaCode(param,fileName,width,height) {
/*
	if(param=="movie") {
		try{_trk_clickTrace("EVT","µ¿¿µ»ó#"+fileName+"ÄÚµåÄ«ÇÇ");} catch(e) {}
	} else if(param=="ost") {
		try{_trk_clickTrace("EVT","OST#"+fileName+"ÄÚµåÄ«ÇÇ");} catch(e) {}
	}
*/
	if(param=="movie") {
		code = "<EMBED src=\""+fileURL+"/files/pds/movie/"+fileName+"\" width=\""+width+"\" height=\""+height+"\" type=\"video/x-ms-wmv\" enablecontextmenu=\"0\" showstatusbar=\"1\"></EMBED>";
	} else if(param=="ost") {
		code = "<EMBED src=\""+fileURL+"/files/pds/ost/"+fileName+"\" type=\"video/x-ms-mp3\" height=\"68\" type=\"video/x-ms-mp3\" enablecontextmenu=\"0\" showstatusbar=\"1\"></EMBED>";
	} else {return;}
	alert("HTML ÄÚµå°¡ ÀÚµ¿À¸·Î º¹»çµÇ¾îÁ³½À´Ï´Ù\n¸Þ¸ðÀå È¤Àº ºí·Î±×³ª ¹Ì´ÏÈ¨ÇÇÀÇ °Ô½ÃÆÇ¿¡ ctrl+v¸¦ ÇÏ½Ã¸é\nº¹»çµÈ HTML ÄÚµå¸¦ È®ÀÎÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù");
	clipboardData.setData('Text',code);
}
function clipMediaCode2(param,url,width,height) {
/*
	if(param=="movie") {
		try{_trk_clickTrace("EVT","µ¿¿µ»ó#"+url+"ÄÚµåÄ«ÇÇ");} catch(e) {}
	} else if(param=="ost") {
		try{_trk_clickTrace("EVT","OST#"+url+"ÄÚµåÄ«ÇÇ");} catch(e) {}
	}
*/
	if(param=="movie") {
		code = "<EMBED src=\""+url+"\" width=\""+width+"\" height=\""+height+"\" type=\"video/x-ms-wmv\" enablecontextmenu=\"0\" showstatusbar=\"1\"></EMBED>";
	} else if(param=="ost") {
		code = "<EMBED src=\""+url+"\" type=\"video/x-ms-mp3\" height=\"68\" type=\"video/x-ms-mp3\" enablecontextmenu=\"0\" showstatusbar=\"1\"></EMBED>";
	} else {return;}
	alert("HTML ÄÚµå°¡ ÀÚµ¿À¸·Î º¹»çµÇ¾îÁ³½À´Ï´Ù\n¸Þ¸ðÀå È¤Àº ºí·Î±×³ª ¹Ì´ÏÈ¨ÇÇÀÇ °Ô½ÃÆÇ¿¡ ctrl+v¸¦ ÇÏ½Ã¸é\nº¹»çµÈ HTML ÄÚµå¸¦ È®ÀÎÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù");
	clipboardData.setData('Text',code);
}

function clipMediaCode3(param,url,width,height) {
/*
	if(param=="movie") {
		try{_trk_clickTrace("EVT","µ¿¿µ»ó#"+url+"ÄÚµåÄ«ÇÇ");} catch(e) {}
	} else if(param=="ost") {
		try{_trk_clickTrace("EVT","OST#"+url+"ÄÚµåÄ«ÇÇ");} catch(e) {}
	}
*/
	if(param=="movie") {
		code = "<EMBED src=\""+url+"\" width=\""+width+"\" height=\""+height+"\" type=\"video/x-ms-wmv\" enablecontextmenu=\"0\" showstatusbar=\"1\"></EMBED>";
	} else if(param=="ost") {
		code = "<EMBED src=\""+url+"\" type=\"video/x-ms-mp3\" height=\"68\" type=\"video/x-ms-mp3\" enablecontextmenu=\"0\" showstatusbar=\"1\"></EMBED>";
	} else {return;}
	alert("µ¿¿µ»ó ¸µÅ©°¡ ÀÚµ¿À¸·Î º¹»çµÇ¾îÁ³½À´Ï´Ù.\n¸Þ¸ðÀå È¤Àº ºí·Î±×³ª ¹Ì´ÏÈ¨ÇÇÀÇ °Ô½ÃÆÇ¿¡ Ct±â + v(ºÙ¿©³Ö±â)¸¦ ÇÏ½Ã¸é\nº¹»çµÈ µ¿¿µ»ó ¸µÅ©¸¦ È®ÀÎÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.");
	clipboardData.setData('Text',code);
}

function clipLinkMsg(url,param) {
	if(!param) {
		alert("¸µÅ©°¡ ÀÚµ¿À¸·Î º¹»çµÇ¾îÁ³½À´Ï´Ù");
	} else {
		alert(param);
	}
	clipboardData.setData('Text',url);
}

function clipMovieLink(url) {
	alert("¸µÅ©°¡ ÀÚµ¿À¸·Î º¹»çµÇ¾îÁ³½À´Ï´Ù");
	clipboardData.setData('Text',url);
}

function clipCopyRss(url) {
	alert("RSSÁÖ¼Ò°¡ º¹»çµÇ¾ú½À´Ï´Ù.\n\n"+url+"\n\nÀÌÁ¦ RSS¸®´õ ÇÁ·Î±×·¥¿¡ ÀÔ·ÂÇÏ½Ã±â ¹Ù¶ø´Ï´Ù.");
	clipboardData.setData('Text',url);
}

function downMovie(url) {
	win_open_center("/community/movie/onair/pop/pop_btn_down.asp?DownURL="+url,"popDown",302,256,0);
}
// µ¿¿µ»ó ¸µÅ©,´Ù¿î·Îµå ¾È³» ÆË¾÷
function info_movie_link(param) {
	var url = "";
	if(param=="link") {
		url = "/community/movie/onair/pop/pop_link.asp"
	} else if(param=="down") {
		url = "/community/movie/onair/pop/pop_down.asp"
		
	} else {return false;}
	win_open_center(url,"popInfo",558,743,0);
}
// html generate ÇÔ¼ö
function navi(param) {
	if(!param) return;
	arrParam = param.split("|");
	/*
	str = "<SPAN style='color:#908f8f'>::</SPAN> <A href='javascript:goURL(\"home\")' style='color:#908f8f'>Home</A> <SPAN style='color:#908f8f'>></SPAN> "
	for(var i=0;i<arrParam.length;i++) {
		if(i<arrParam.length-1) {
			str += "<A href='javascript:goURL(\""+arrParam[i]+"\");' style='color:#908f8f'>"+getMnuNM(arrParam[i])+"</A> <SPAN style='color:#908f8f'>><SPAN> ";
		} else {
			str += "<SPAN style='color:#908f8f'>"+getMnuNM(arrParam[i])+"</SPAN>";
		}
	}
	*/
	str = "<SPAN style='color:#908f8f'>::</SPAN> <SPAN style='color:#908f8f'>Home</SPAN> <SPAN style='color:#908f8f'>></SPAN> "
	for(var i=0;i<arrParam.length;i++) {
		if(i<arrParam.length-1) {
			str += "<SPAN style='color:#908f8f'>"+getMnuNM(arrParam[i])+"</SPAN> <SPAN style='color:#908f8f'>><SPAN> ";
		} else {
			str += "<SPAN style='color:#908f8f'>"+getMnuNM(arrParam[i])+"</SPAN>";
		}
	}
	document.write(str);
}

function makeTitle(str,num){	
	temp = ""
	temp +=  "<TABLE cellpadding='0' cellspacing='0' width='634'>"
			+"<TR>"
			+"		<TD nowrap><IMG src='"+ imgURL +"/title/"+ str +"_cat_"+ num +".gif'></TD>"
			+"		<TD width='100%' valign='bottom'>"
			+"			<TABLE cellpadding='0' cellspacing='0' width='100%'>"
			+"			<TR height='9'><TD align='right' valign='bottom' bgcolor='#f0f0f0' style='padding:0 6 1 0;'><IMG src='"+ imgURL +"/title/txt_lunia_war.gif'></TD></TR>"
			+"			<TR height='1'><TD></TD></TR>"
			+"			<TR height='2'><TD bgcolor='#dbdbdb'></TD></TR>"
			+"			</TABLE>"
			+"		</TD>"
			+"</TR>"
			+"</TABLE>"			
	document.write(temp);
}

function makeTab(str,type,src,width,opt) {
	var tBgcolor;
	if(type==1){
		tBgcolor = "#b4b4b4";
	} else if(type==2) {
		tBgcolor = "#487e9e";
	}
	if(!width) {width="140"}
	temp = ""
	temp +=	 "<TABLE cellpadding='0' cellspacing='0' width='"+width+"' style='cursor:hand' onclick=location.href='"+ src +"'>"
			+"<TR>"
			+"		<TD nowrap><IMG src='"+ imgURL +"/bible/box_tab"+ type +"_tl.gif' align='absmiddle'></TD>"
			+"		<TD width='100%'>"
			+"			<TABLE cellpadding='0' cellspacing='0' width='100%'>"
			+"			<TR height='2'><TD bgcolor='#dbdbdb'></TD></TR>"
			+"			<TR height='3'><TD bgcolor='"+ tBgcolor +"'></TD></TR>"
			+"			</TABLE>"
			+"		</TD>"
			+"		<TD nowrap><IMG src='"+ imgURL +"/bible/box_tab"+ type +"_tr.gif' align='absmiddle'></TD>"
			+"</TR>"
			+"<TR height='21'>"
			+"		<TD>"
			+"			<TABLE cellpadding='0' cellspacing='0' height='100%'>"
			+"			<TR>"
			+"				<TD width=2 bgcolor='#dbdbdb'></TD>"
			+"				<TD width=3 bgcolor='"+ tBgcolor +"'></TD>"
			+"			</TR>"
			+"			</TABLE>"
			+"		</TD>"
			+"		<TD bgcolor='"+ tBgcolor +"'>"
			+"			<TABLE cellpadding='0' cellspacing='0' width='100%'>"
			+"			<TR>"
	if(opt=="noicon") {
		temp +="				<TD width='100%' align='center' class='tp1' style='color:#FFFFFF'><B>"+ str +"</B></TD>"
	} else {
		temp +="				<TD nowrap width='16' align='right'><IMG src='"+ imgURL +"/bible/icn_arrow"+ type +".gif' align='absmiddle'></TD>"
			+"				<TD width='100%' align='center' class='tp1' style='color:#FFFFFF'><B>"+ str +"</B></TD>"
			+"				<TD nowrap width='16'></TD>"
	}				
	temp +=	"			</TR>"
			+"			</TABLE>"
			+"		</TD>"
			+"		<TD>"
			+"			<TABLE cellpadding='0' cellspacing='0' height='100%'>"
			+"			<TR>"
			+"				<TD width=3 bgcolor='"+ tBgcolor +"'></TD>"			
			+"				<TD width=2 bgcolor='#dbdbdb'></TD>"
			+"			</TR>"
			+"			</TABLE>"
			+"		</TD>"
			+"</TR>"
			+"<TR>"
			+"		<TD><IMG src='"+ imgURL +"/bible/box_tab"+ type +"_bl.gif' align='absmiddle'></TD>"
			+"		<TD>"
			+"			<TABLE cellpadding='0' cellspacing='0' width='100%'>"
			+"			<TR height='3'><TD bgcolor='"+ tBgcolor +"'></TD></TR>"
			+"			<TR height='2'><TD bgcolor='#dbdbdb'></TD></TR>"
			+"			</TABLE>"
			+"		</TD>"
			+"		<TD><IMG src='"+ imgURL +"/bible/box_tab"+ type +"_br.gif' align='absmiddle'></TD>"
			+"</TR>"
			+"</TABLE>"
		document.write(temp);
}

function makeTab2(str,type,src,width){
	var tBgcolor;
	if(type==1){
		tBgcolor = "#b4b4b4";
	} else if(type==2) {
		tBgcolor = "#8c62b2";
	}
	if(!width) {width="156"}
	temp = ""
	temp +=	 "<TABLE cellpadding='0' cellspacing='0' width='156' style='cursor:hand' onclick=location.href='"+ src +"'>"
			+"<TR>"
			+"		<TD nowrap><IMG src='"+ imgURL +"/myluni/box_tab"+ type +"_tl.gif' align='absmiddle'></TD>"
			+"		<TD width='100%'>"
			+"			<TABLE cellpadding='0' cellspacing='0' width='100%'>"
			+"			<TR height='2'><TD bgcolor='#dbdbdb'></TD></TR>"
			+"			<TR height='3'><TD bgcolor='"+ tBgcolor +"'></TD></TR>"
			+"			</TABLE>"
			+"		</TD>"
			+"		<TD nowrap><IMG src='"+ imgURL +"/myluni/box_tab"+ type +"_tr.gif' align='absmiddle'></TD>"
			+"</TR>"
			+"<TR height='21'>"
			+"		<TD>"
			+"			<TABLE cellpadding='0' cellspacing='0' height='100%'>"
			+"			<TR>"
			+"				<TD width=2 bgcolor='#dbdbdb'></TD>"
			+"				<TD width=3 bgcolor='"+ tBgcolor +"'></TD>"
			+"			</TR>"
			+"			</TABLE>"
			+"		</TD>"
			+"		<TD bgcolor='"+ tBgcolor +"'>"
			+"			<TABLE cellpadding='0' cellspacing='0' width='100%'>"
			+"			<TR>"
			+"				<TD nowrap width='16' align='right'><IMG src='"+ imgURL +"/myluni/icn_arrow"+ type +".gif' align='absmiddle'></TD>"
			+"				<TD width='100%' align='center' class='tp1' style='color:#FFFFFF'><B>"+ str +"</B></TD>"
			+"				<TD nowrap width='6'></TD>"
			+"			</TR>"
			+"			</TABLE>"
			+"		</TD>"
			+"		<TD>"
			+"			<TABLE cellpadding='0' cellspacing='0' height='100%'>"
			+"			<TR>"
			+"				<TD width=3 bgcolor='"+ tBgcolor +"'></TD>"			
			+"				<TD width=2 bgcolor='#dbdbdb'></TD>"
			+"			</TR>"
			+"			</TABLE>"
			+"		</TD>"
			+"</TR>"
			+"<TR>"
			+"		<TD><IMG src='"+ imgURL +"/myluni/box_tab"+ type +"_bl.gif' align='absmiddle'></TD>"
			+"		<TD>"
			+"			<TABLE cellpadding='0' cellspacing='0' width='100%'>"
			+"			<TR height='3'><TD bgcolor='"+ tBgcolor +"'></TD></TR>"
			+"			<TR height='2'><TD bgcolor='#dbdbdb'></TD></TR>"
			+"			</TABLE>"
			+"		</TD>"
			+"		<TD><IMG src='"+ imgURL +"/myluni/box_tab"+ type +"_br.gif' align='absmiddle'></TD>"
			+"</TR>"
			+"</TABLE>"
		document.write(temp);
}

function autoScroll() {
	if (document.body.scrollHeight - document.body.scrollTop == document.body.clientHeight) {
		window.scrollTo(0,0);
	} else {
		window.scrollTo(0,document.body.scrollHeight);
	}
}
function makeAutoScroll() {
	document.body.ondblclick = autoScroll;
}

function openPvpView() {
	var width = 755;
	var height = 534;
	var posLt = (sw-width)/2;
	var posTp = (sh-height)/2;
	var popPvp = top.window.open("http://luniaf.nexon.com/gm/1st_pvp_league/match_0.htm","popPvp","top="+posTp+",left="+posLt+",width="+width+",height="+height);
	if(popPvp) {popPvp.focus();};
}

function openShop(param1,param2) {
	if(param1=="test") {
	var url = "http://t-shop.lunia.nexon.com/shop_v2/list.asp";
		if(param2!=undefined) { url += "?"+param2; }
		win_open_center(url,"popShop",796,546,0);	
		//win_open_center(url,"popShop",770,540,1);	
	} else {
	   
		var url = "http://shop.lunia.nexon.com/shop_v2/list.asp";
		//var url = "/shop_v7/"+param1+"/default.asp";
		if(param2!=undefined) { url += "?"+param2; }
		win_open_center(url,"popShop",796,546,0);	
		//win_open_center(url,"popShop",770,540,1);	
	}
}
function del_options(obj,opt) {
	var len = obj.options.length;
	if(opt=="all") {
		for(var i=0;i<len;i++)
			obj.options[0] = null;
	} else {
		for(var i=1;i<len;i++)
			obj.options[1] = null;
	}
}
function set_options(obj,array) {
	var opt_cnt = obj.options.length;
	for(var i=0;i<array.length;i++) {
		obj.options[opt_cnt] = new Option(array[i].name,array[i].value);
		opt_cnt++;		
	}
}
function block_ctrl_key() {	
	if(event.ctrlKey) {
		alert("CTRLÅ°¸¦ »ç¿ëÇÏ½Ç ¼ö ¾ø½À´Ï´Ù");
		return false;
	}
	return true;
}
function block_right_click() {
	if(event.button==2 || event.button==3) {
		alert("¸¶¿ì½º ¿ìÃø ¹öÆ°À» »ç¿ëÇÏ½Ç ¼ö ¾ø½À´Ï´Ù");
		return false;
	}
	if(event.keyCode==93) {
		alert("ÇØ´çÅ°¸¦ »ç¿ëÇÏ½Ç ¼ö ¾ø½À´Ï´Ù");
		return false;
	}
	return true;
}

function getServerName(param){
	if (param==0) {
		return "¼Öµò";
	}else if(param==1) {
		return "Æ÷¸®¿¤";
	}else if(param==127) {
		return "Å×½ºÆ®";
	}
}

function goItemShopBanner(pServer,nPeriond){
	if (pServer=="test")
	{
		if (nPeriond=="1")
		{
			//document.location.href="/shop_v6/test/theme/list.asp?KeywordNo=43";
			goIntroTitle('go_main');
		}
		else if (nPeriond=="2")
		{
			//document.location.href="/shop_v6/test/theme/list.asp?KeywordNo=40";
			goIntroTitle('go_main');
		}
		else if (nPeriond=="3")
		{
			goIntroTitle('go_main');
		}
	}
	else
	{
		if (nPeriond=="1")
		{
			goIntroTitle('go_main');
		}
		else if (nPeriond=="2")
		{
			//document.location.href="/shop_v6/real/theme/list.asp?KeywordNo=120";
			goIntroTitle('go_main');
		}
		else if (nPeriond=="3")
		{
			goIntroTitle('go_main');
		}
	}
}