var domainArr = document.domain.split(".");

//ºñ¹Ð¹øÈ£ ÀçÀÔ·Â ½ºÅ©¸³Æ® chahyunjin@nate.com 2008.08.06
document.write("<script language=\"JavaScript\" src=\"http://www.melon.com/PIMS/myMelon/newMyInfo/js/repwd.js\"></script>");
document.write("<script language=\"JavaScript\" src=\"http://www.melon.com/PIMS/myMelon/newMyInfo/js/ajaxload.js\"></script>");

//js¿¡¼­ parameter°ªÀ» ¹Þ´Â´Ù.
var params = null;
function parseQuery() {
	var _params = [];
	var query = location.search;
	if (query) {
		var paramStrs = query.substring(1).split("&");
		for (var i = 0; i < paramStrs.length; i++) {
			var position = paramStrs[i].indexOf("=");
			if (position >= 0) {
				_params[paramStrs[i].substring(0,position)] = paramStrs[i].substring(position+1);
			}
		}
	}
	return _params;
}
function getParameter(key) {
	params || (params = parseQuery());
	return params[key];
}

//IDÀúÀå
var chk_id_flag = false;
var chk_id_onclick = false;
function saveid(o) {
	if (o.checked == true) {
		chk_id_flag = true;
		chk_id_onclick = true;
	} else {
		chk_id_flag = false;
		chk_id_onclick = true;
	}
}

//·Î±×ÀÎ
function loginHeader() {
	var toIndexList = new Array();
	toIndexList[0] = "login.jsp";
	toIndexList[1] = "login.jsp";
	toIndexList[2] = "member_check.jsp";
	toIndexList[3] = "agree.jsp";
	toIndexList[4] = "member_album_view.jsp";
	toIndexList[5] = "music_trd_dtl.jsp";
	toIndexList[6] = "hot_artist_dtl.jsp";

	var goIndex = false;

	if(login_header.member_id.value=="") {
		show_lpop('lp_id_check',' ¾ÆÀÌµð È®ÀÎ','260','700','80');
		login_header.member_id.focus();
		return;
	}
	if(login_header.member_pwd.value=="") {
		show_lpop('lp_pwd_check','ºñ¹Ð¹øÈ£ È®ÀÎ','260','700','80');
		login_header.member_pwd.focus();
		return;
	}

	var returnURL = document.location.href;
	var cnt = -1;
	if (returnURL != "") {
		for (var i=0; i < toIndexList.length; i++) {
			cnt = returnURL.indexOf(toIndexList[i]);
			if (cnt >= 0) {
				goIndex = true;
				break;
			}
		}
	}

	if (returnURL == "" || goIndex) {
		returnURL = "/";
	}

	//IDÀúÀå (±âº»ÀûÀ¸·Î 30ÀÏµ¿¾È ±â¾ïÇÏ°Ô ÇÔ)
	var domain = domainArr[domainArr.length-2] +"."+ domainArr[domainArr.length-1];
	if(chk_id_onclick) {
		if(chk_id_flag) {
			setCookie("saveid", login_header.member_id.value, 30, "/", domain);
		} else {
			setCookie("saveid", login_header.member_id.value, -1, "/", domain);
		}
	}

	var ampChar = escape("&");

	returnURL = url_replaceAll(returnURL, "&", ampChar);

	document.login_header.action = 'https://www.melon.com/PIMS/myMelon/newMyInfo/login/loginAction.jsp?MAIN=GNB&return_page='+returnURL;
	document.login_header.submit();
}

//¹®ÀÚ¿­ º¯È¯
function url_replaceAll(orgStrVal, strValue1, strValue2) {
	var strTemp = orgStrVal;
	while(1) {
		if( strTemp.indexOf(strValue1) != -1 )
			strTemp = strTemp.replace(strValue1, strValue2);
		else
			break;
	}
	return strTemp;
}

//¹®ÀÚ¿­ ÀÚ¸£±â (ÇÑ±Û 2byteÃ³¸®)
function cutText(str, len, tail)
{
	var l = 0;
	
	for (var i=0; i<str.length; i++)
	{
		l += (str.charCodeAt(i) > 128) ? 2 : 1;
		if (l > len)
		{
			return str.substring(0,i) + tail;
		}
	}
	
	return str;
}

//È¸¿ø°¡ÀÔ
function memberin_header() {
	document.location.href = "http://www.melon.com/PIMS/myMelon/newMyInfo/agree.jsp?MAIN=GNB";
}

//ID/PWÃ£±â
function memberpwd_header() {
	document.location.href = "http://www.melon.com/PIMS/myMelon/newMyInfo/forgot/findIDPassword.jsp?MAIN=GNB";
}

//Ä³½¬ ÃæÀü
function popCharge() {
	window.open('http://www.melon.com/PIMS/myMelon/cash_charge/charge.jsp?MAIN=GNB_LIN','cash','width=510,height=450');
}

//·Î±×¾Æ¿ô
function member_logout() {
	document.location.href="http://www.melon.com/PIMS/myMelon/newMyInfo/logout.jsp?MAIN=GNB_LIN";
}

//°³ÀÎÁ¤º¸¼öÁ¤
function member_basicInfoChange() {
    rePWD_lpop02(Math.floor(document.body.scrollWidth/2 - 100),event.clientY,'50');
}


//Àå¸£ ½ÃÀÛ
var genre = new Genre();

//Àå¸£Á¤ÀÇ(Á¤ÀÇ¼ø¼­ = Ãâ·Â¼ø¼­)
addGenre(genre, "song", "°¡¿ä", WWW_HOME+"/html/genre/kpop_main.jsp?MAIN=GNB"); //idx=0
addGenre(genre, "classic", "Å¬·¡½Ä", WWW_HOME+"/html/genre/classic_main.jsp?MAIN=GNB"); //idx=1
addGenre(genre, "kpop", "±¹¾Ç", WWW_HOME+"/html/genre/korean_traditional_main.jsp?MAIN=GNB"); //idx=2
addGenre(genre, "pop", "POP", WWW_HOME+"/html/genre/pop_main.jsp?MAIN=GNB"); //idx=3
addGenre(genre, "ccm", "CCM", WWW_HOME+"/html/genre/ccm_main.jsp?MAIN=GNB"); //idx=4
addGenre(genre, "religion", "Á¾±³", WWW_HOME+"/html/genre/religious_music_main.jsp?MAIN=GNB"); //idx=5
addGenre(genre, "ost", "OST", WWW_HOME+"/html/genre/ost_main.jsp?MAIN=GNB"); //idx=6
addGenre(genre, "jazz", "JAZZ", WWW_HOME+"/html/genre/jazz_main.jsp?MAIN=GNB"); //idx=7
addGenre(genre, "child", "¾î¸°ÀÌ", WWW_HOME+"/html/genre/child_main.jsp?MAIN=GNB"); //idx=8
addGenre(genre, "jpop", "J-POP", WWW_HOME+"/html/genre/jpop_main.jsp?MAIN=GNB"); //idx=9
addGenre(genre, "world", "¿ùµå", WWW_HOME+"/html/genre/world_main.jsp?MAIN=GNB"); //idx=10
addGenre(genre, "cpop", "Áß±¹À½¾Ç", WWW_HOME+"/html/genre/cpop_main.jsp?MAIN=GNB"); //idx=11
addGenre(genre, "newage", "´º¿¡ÀÌÁö", WWW_HOME+"/html/genre/newage_main.jsp?MAIN=GNB"); //idx=12

var arrInitGnr = ["0", "3", "6", "9", "1"]; //ÃÖÃÊ ³ëÃâµÇ¾î¾ßÇÒ Àå¸£ ¼³Á¤
var arrUserGnr = new Array();
var arrUserNewGnr = new Array();

arrUserGnr = getUserGenre(); //»ç¿ëÀÚÀå¸£ È£Ãâ(¿øº¹¿ë)
arrUserNewGnr = getUserGenre(); //»ç¿ëÀÚÀå¸£ È£Ãâ


//»ç¿ëÀÚ »óÇ°¸í Á¤ÀÇ(ÁÖ»óÇ°)
function getMemberProdName()
{
	var prodName = "";
	
	if (getHeaderCookie('serviceName') != "") {
		if(getHeaderCookie('serviceName') == "fr_club"){
			prodName = "ÇÁ¸®Å¬·´";
		}else if ( getHeaderCookie('serviceName') == "fr_tick"){
			prodName = "ÇÁ¸®Æ¼ÄÏ";
		}else if ( getHeaderCookie('serviceName') == "st_club"){
			prodName = "½ºÆ®¸®¹ÖÅ¬·´";
		}else if ( getHeaderCookie('serviceName') == "st_tick"){
			prodName = "½ºÆ®¸®¹ÖÆ¼ÄÏ";
		}else if ( getHeaderCookie('serviceName') == "dl_club"){
			prodName = "´Ù¿î·ÎµåÅ¬·´";
		}else if ( getHeaderCookie('serviceName') == "dl_tick"){
			prodName = "´Ù¿î·ÎµåÆ¼ÄÏ";
		}else if ( getHeaderCookie('serviceName') == "edu_club"){
			prodName = "¾îÇÐÅ¬·´";
		}else if ( getHeaderCookie('serviceName') == "fr_edu_pack"){
			prodName = "ÇÁ¸®Å¬·´¾îÇÐÆÐÅ°Áö";
		}else if ( getHeaderCookie('serviceName') == "fr_club_special"){
			prodName = "ÇÁ¸®Æ¼ÄÏ¾îÇÐÆÐÅ°Áö";
		}else if ( getHeaderCookie('serviceName') == "ting_fr_club"){
			prodName = "ÆÃÇÁ¸®Å¬·´";
		}else if ( getHeaderCookie('serviceName') == "dcf_fr_club"){
			prodName = "DCFÇÁ¸®Å¬·´";
		}else if ( getHeaderCookie('serviceName') == "phone_fr_club"){
			prodName = "¸á·ÐÇÁ¸®Æ¼ÄÏ°øµ¿ÇÁ·Î¸ð¼Ç";
		}else if ( getHeaderCookie('serviceName') == "st_cinema_club"){
			prodName = "¸á·Ð¾¾³×¸¶Å¬·´";
		}else if ( getHeaderCookie('serviceName') == "mp3_150_plus"){
			prodName = "MP3 150 ÇÃ·¯½º";
		}else if ( getHeaderCookie('serviceName') == "mp3_040_plus"){
			prodName = "MP3 40 ÇÃ·¯½º";
		}else if ( getHeaderCookie('serviceName') == "mp3_150"){
			prodName = "MP3 150";
		}else if ( getHeaderCookie('serviceName') == "mp3_040"){
			prodName = "MP3 40";
		}else if ( getHeaderCookie('serviceName') == "mp3_150_plus_tick"){
   			prodName = "MP3 150 ÇÃ·¯½º Æ¼ÄÏ";
   		}else if ( getHeaderCookie('serviceName') == "mp3_040_plus_tick"){
   			prodName = "MP3 40 ÇÃ·¯½º Æ¼ÄÏ";
		}else if ( getHeaderCookie('serviceName') == "skbb_melon_fr"){
   			prodName = "ºê·Îµå¾Ø¸á·ÐÆò»ý¹«·á";
		}else if ( getHeaderCookie('serviceName') == "broad_fr_club"){
   			prodName = "ºê·Îµå¾Ø¸á·ÐÇÁ¸®";
		}else if ( getHeaderCookie('serviceName') == "broad_edu_pack"){
   			prodName = "ºê·Îµå¾Ø¸á·Ð¾îÇÐÆÐÅ°Áö";
		}else if ( getHeaderCookie('serviceName') == "data_phonefree_club"){
			prodName = "¸á·Ð1³â °í°´ÇýÅÃ(ÇÁ¸®Æ¼ÄÏ)";
		}else if ( getHeaderCookie('serviceName') == "skgroup_mp3_150_plus"){
			prodName = "MP3 150 ÇÃ·¯½º_10% ÇÒÀÎ";
		}else if ( getHeaderCookie('serviceName') == "skgroup_mp3_40_plus"){
			prodName = "MP3 40 ÇÃ·¯½º_10% ÇÒÀÎ";
		}else if ( getHeaderCookie('serviceName') == "skgroup_fr_club"){
			prodName = "ÇÁ¸®Å¬·´_10% ÇÒÀÎ";
		}
	}
	
	return prodName;
}

//»ç¿ëÀÚ »óÇ°¸í Á¤ÀÇ(ºÎ»óÇ°)
function getMemberSubProdName()
{
	var prodName = "";
	
	if (getHeaderCookie('extraServiceName') != "") {
		if(getHeaderCookie('extraServiceName') == "mp3_040_dl_tick"){
			prodName = "MP3 40 ´Ù¿î·Îµå Æ¼ÄÏ";
		}else if ( getHeaderCookie('extraServiceName') == "mp3_150_dl_tick"){
			prodName = "MP3 150 ´Ù¿î·Îµå Æ¼ÄÏ";
		}
	}
	
	return prodName;
}


function header(IMAGE_HOME, WWW_HOME) {

	var fromMPS = getCookie("MPS");  // ¸á·Ð ÇÃ·¹ÀÌ¾î¿¡¼­ ¿Ô´ÂÁö È®ÀÎ.

	document.write("<div id=\"header\">");
	document.write("<!-- HEADER LEFT -->");
	document.write("<div id=\"headerLeft\">");
	document.write("<!-- BI -->");
	document.write("<h1 id=\"bi\">");
	document.write("<script type=\"text/javascript\">");
	document.write("swfObjFlashVars('"+_gnbSubLogo+"', '215', '57', 'logo_home', '');");
	document.write("</script>");
	document.write("</h1>");
	document.write("<!-- //BI -->");
	document.write("<!-- ¸á·Ð»óÇ°°¡ÀÔ -->");
	document.write("<div id=\"prodJoin\">");
	document.write("<a href=\""+WWW_HOME+"/utility/customer/product_view.jsp?SOURCE=GNBJOIN\"><img src=\""+IMAGE_HOME+"/svc/09/images/common/btn/btn_prod_join.gif\" alt=\"¸á·Ð »óÇ° °¡ÀÔ\"></a>");
	document.write("</div>");
	document.write("<!-- //¸á·Ð»óÇ°°¡ÀÔ -->");
	document.write("<!-- top_util -->");
	document.write("<ul id=\"top_util\">");
	document.write("<li><a href=\""+WWW_HOME+"/edu2/edu_main.jsp?MAIN=GNB\"><img src=\""+IMAGE_HOME+"/svc/09/images/common/top_util/btn_lang_0226.gif\" alt=\"¾îÇÐ\" class=\"lang\"></a></li>");
	document.write("<li><a href=\"http://www.melon.com/decophone/index.jsp?MAIN=GNB\"><img src=\""+IMAGE_HOME+"/svc/09/images/common/top_util/btn_phone.gif\" alt=\"Æù²Ù¹Ì±â\"></a></li>");
	document.write("<li><a href=\"http://sing.melon.com/melon/index.php?MAIN=GNB\"><img src=\""+IMAGE_HOME+"/svc/09/images/common/top_util/btn_sing_room.gif\" alt=\"³ë·¡¹æ\"></a></li>");
	document.write("<li><a href=\""+WWW_HOME+"/melonshop/shop_main.jsp?MAIN=GNB\"><img src=\""+IMAGE_HOME+"/svc/09/images/common/top_util/btn_shop.gif\" alt=\"¸á·Ð¼¥\"></a></li>");
	document.write("<li><a href=\""+WWW_HOME+"/entnews/newsMain.jsp?MAIN=GNB\"><img src=\""+IMAGE_HOME+"/svc/09/images/common/top_util/btn_news.gif\" alt=\"¿¬¿¹´º½º\"></a></li>");
	document.write("<li><a href=\""+WWW_HOME+"/event/event_main_1.jsp?MAIN=GNB\"><img src=\""+IMAGE_HOME+"/svc/09/images/common/top_util/btn_event.gif\" alt=\"ÀÌº¥Æ®\"></a></li>");
	document.write("</ul>");
	document.write("<!-- //top_util -->");
	document.write("<!-- GNB -->");
	document.write("<div id=\"gnb\">");
	document.write("<script type=\"text/javascript\">");
	document.write("swfObjFlashVars('"+IMAGE_HOME+"/svc/09/swf/navigation.swf', '597', '32', 'navigation', '');");
	document.write("</script>");
	document.write("</div>");
	document.write("<!-- //GNB -->");
	
	
	document.write("<!-- SEARCH BOX -->");
	topSearchBar();
	document.write("<!-- //SEARCH BOX -->");
	
	
	document.write("</div>");
	document.write("<!-- //HEADER LEFT -->");
	
	
	document.write("<!-- HEADER RIGHT -->");
	document.write("<div id=\"headerRight\">");
	
	//ºñ·Î±×ÀÎ ½Ã
	if (isMelonLogin() == false) {
		document.write("<!-- LOGIN -->");
		document.write ("<form name=\"login_header\" method=\"post\" onsubmit=\"return false;\" style=\"margin:0px;\"> ");	
		document.write("<div id=\"login\">");
		document.write("<ul id=\"logtop_util\">");
		document.write("<li>");
		
		//ÄíÅ°¾ÆÀÌµð¼³Á¤
		if (getCookie('saveid')) {
			document.write("<input type=\"checkbox\" id=\"saveId\" onclick=\"saveid(this);\" checked>");
		}
		//ÄíÅ°¾ÆÀÌµð¼³Á¤ÇØÁ¦
		else {
			document.write("<input type=\"checkbox\" id=\"saveId\" onclick=\"saveid(this);\">");
		}
		document.write("<label for=\"saveId\"><span class=\"checkboxStyle\"><em>ID ÀúÀå</em></span></label>");
		document.write("</li>");
		document.write("<li><a href=\"javascript:memberpwd_header();\"><img src=\""+IMAGE_HOME+"/svc/09/images/common/login_out/btn_find_id.gif\" alt=\"ID/PW Ã£±â\"></a></li>");
		document.write("<li class=\"noBar\"><a href=\"javascript:memberin_header();\"><img src=\""+IMAGE_HOME+"/svc/09/images/common/login_out/btn_join.gif\" alt=\"È¸¿ø°¡ÀÔ\"></a></li>");
		document.write("</ul>");
		document.write("<ul id=\"logInput\">");
		
		//ÄíÅ°¾ÆÀÌµð¼³Á¤
		if (getCookie('saveid')){
			document.write("<li><input type=\"text\" id=\"inputId\" name=\"member_id\" value=\""+getCookie('saveid')+"\" onfocus=\"inputValueControl('inputId');\" class=\"inputStyle\" style=\"ime-mode:inactive;\"></li>");
		}
		//ÄíÅ°¾ÆÀÌµð¼³Á¤ÇØÁ¦
		else{
			document.write("<li><input type=\"text\" id=\"inputId\" name=\"member_id\" onfocus=\"inputValueControl('inputId');\" class=\"inputIdStyle\" style=\"ime-mode:inactive;\"></li>");
		}
		document.write("<li><input type=\"password\" id=\"inputPw\" name=\"member_pwd\" onfocus=\"inputValueControl('inputPw');\" class=\"inputPwStyle\"></li>");
		document.write("<li><input type=\"image\" id=\"goLogin\" onClick=\"javascript:loginHeader();\" src=\""+IMAGE_HOME+"/svc/09/images/common/login_out/btn_login.gif\"></li>");
		document.write("</ul>");
		document.write("</div>");
		document.write("</form>");
		document.write("<!-- //LOGIN -->");
		
		document.write("<!-- ³ªÀÇ Á¤º¸ ·¹ÀÌ¾î -->");
		document.write("<div id=\"myInfoLayer\" class=\"wrapMyInfoLayer\" style=\"visibility: hidden;\"></div>");
		document.write("<!-- //³ªÀÇ Á¤º¸ ·¹ÀÌ¾î -->");
	}
	//·Î±×ÀÎ ½Ã
	else {
		document.write("<!-- MY PAGE -->");
		document.write("<div id=\"mypage\">");
		document.write("<div class=\"myinfo\">");
		document.write("<strong title=\""+getHeaderCookie('uid')+"\">"+cutText(getHeaderCookie('uid'), 11, "")+"</strong> ´Ô");
		document.write("<a href=\"javascript: myInfoLayerOpen('myInfoLayer');\"><img src=\""+IMAGE_HOME+"/svc/09/images/common/login_out/btn_more_open.gif\" name=\"myInfoBtn\" alt=\"´õº¸±â\"></a>");
		document.write("</div>");
		document.write("<ul>");
		document.write("<li><a href=\""+WWW_HOME+"/mybox/mypage/mypage_main_index.jsp?p_memberKey="+ getMemberKey() +"&MAIN=GNB_LIN\"><img src=\""+IMAGE_HOME+"/svc/09/images/common/login_out/btn_mypage.gif\" alt=\"¸¶ÀÌÆäÀÌÁö\"></a></li>");
		//ÇÃ·¹ÀÌ¾î¿¡¼­ ¿Â °æ¿ì ³ëÃâ ¾ÈÇÔ
		if (fromMPS == null || fromMPS.indexOf("MELONPLAYER") < 0) {
			document.write("<li><a href=\"javascript:member_logout();\"><img src=\""+IMAGE_HOME+"/svc/09/images/common/login_out/btn_logout.gif\" alt=\"·Î±×¾Æ¿ô\"></a></li>");
		}
		document.write("</ul>");
		document.write("</div>");
		document.write("<!-- //MY PAGE -->");
		
		document.write("<!-- ³ªÀÇ Á¤º¸ ·¹ÀÌ¾î -->");
		document.write("<div id=\"myInfoLayer\" class=\"wrapMyInfoLayer\" style=\"visibility: hidden;\">");
		document.write("<!-- Å¸ÀÌÆ² -->");
		document.write("<div class=\"myInfoLayerTt\"></div>");
		document.write("<div class=\"myInfoLayerT\">");
		
			//»ç¿ëÀÚ»óÇ° Á¸Àç ½Ã
			if (getMemberProdName() != "" || getMemberSubProdName() != "")
			{				
				document.write("<!-- ÀÌ¿ë »óÇ° ÀÖÀ½ -->");
				document.write("<ul class=\"prod\">");
				if (getMemberProdName() != "")
				{
					document.write("<li>");
					document.write("<strong>" + getMemberProdName() + "</strong> ÀÌ¿ë Áß");
					document.write("</li>");
				}
				
				if (getMemberSubProdName() != "")
				{
					document.write("<li>");
					document.write("<strong>" + getMemberSubProdName() + "</strong> ÀÌ¿ë Áß");
					document.write("</li>");
				}
				document.write("</ul>");
				document.write("<!-- //ÀÌ¿ë »óÇ° ÀÖÀ½ -->");		
			}
			else
			{
				document.write("<!-- ÀÌ¿ë »óÇ° ¾øÀ½ -->");
				document.write("<ul class=\"prod\">");
				document.write("<li>");
				document.write("<strong>ÀÌ¿ë »óÇ° ¾øÀ½</strong>");
				document.write("<a href=\""+WWW_HOME+"/utility/customer/product_view.jsp?MAIN=GNB_LIN\"><img src=\""+IMAGE_HOME+"/svc/09/images/common/layer/btn/btn_layer_buy.gif\" alt=\"±¸¸Å\"></a>");
				document.write("</li>");
				document.write("</ul>");
				document.write("<!-- //ÀÌ¿ë »óÇ° ¾øÀ½ -->");
			}

		document.write("</div>");
		document.write("<div class=\"myInfoLayerTbt\"></div>");
		document.write("<!-- //Å¸ÀÌÆ² -->");
		document.write("<!-- ³»¿ë -->");
		document.write("<div class=\"myInfoLayer\">");
		document.write("<!-- ÁÂÃø ¿µ¿ª -->");
		document.write("<div class=\"myInfoLayerLeft\">");
		document.write("<dl>");
		document.write("<dt><img src=\""+IMAGE_HOME+"/svc/09/images/common/layer/tit/tit_layer_gift.gif\" alt=\"¼±¹°\"></dt>");
		document.write("<dd><strong>"+getHeaderCookie('giftcnt')+"</strong>°³</dd>");
		document.write("</dl>");
		document.write("<dl>");
		document.write("<dt><img src=\""+IMAGE_HOME+"/svc/09/images/common/layer/tit/tit_layer_cash.gif\" alt=\"Ä³½¬\"></dt>");
		document.write("<dd><strong>"+comma(getHeaderCookie('cash'))+"</strong>¿ø</dd>");
		document.write("<dd><a href=\"javascript:popCharge();\"><img src=\""+IMAGE_HOME+"/svc/09/images/common/layer/btn/btn_layer_cash.gif\" alt=\"Ä³½¬ÃæÀü\"></a></dd>");
		document.write("</dl>");
		document.write("<dl>");
		document.write("<dt><img src=\""+IMAGE_HOME+"/svc/09/images/common/layer/tit/tit_layer_point.gif\" alt=\"Æ÷ÀÎÆ®\"></dt>");
		document.write("<dd><strong>"+comma(getHeaderCookie('mpoint'))+"</strong>P</dd>");
		document.write("<dd><a href=\"http://point.melon.com/?MAIN=GNB_LIN\"><img src=\""+IMAGE_HOME+"/svc/09/images/common/layer/btn/btn_layer_free.gif\" alt=\"¹«·áÃæÀü\"></a></dd>");
		document.write("</dl>");
		document.write("</div>");
		document.write("<!-- //ÁÂÃø ¿µ¿ª -->");
		document.write("<!-- ¿ìÃø ¿µ¿ª -->");
		document.write("<ul class=\"albumInfoModi\">");
		document.write("<li><a href=\""+WWW_HOME+"/mybox/mypage/myalbum_view_messenger.jsp?p_memberKey="+ getMemberKey() +"&MAIN=GNB_LIN\"><img src=\""+IMAGE_HOME+"/svc/09/images/common/layer/btn/btn_layer_my_album.gif\" alt=\"¸¶ÀÌ¾Ù¹ü\"></a></li>");
		document.write("<li><a href=\"#\" onclick=\"member_basicInfoChange();return false;\"><img src=\""+IMAGE_HOME+"/svc/09/images/common/layer/btn/btn_layer_my_info.gif\" alt=\"°³ÀÎÁ¤º¸¼öÁ¤\"></a></li>");
		document.write("</ul>");
		document.write("<!-- //¿ìÃø ¿µ¿ª -->");
		document.write("</div>");
		document.write("<!-- //³»¿ë -->");
		document.write("<span class=\"bgLayerBottom\"><img src=\""+IMAGE_HOME+"/svc/09/images/common/layer/bg/bg_layer_bottom.png\" alt=\"\"></span>");
		document.write("<a href=\"javascript: myInfoLayerClose('myInfoLayer');\" class=\"myInfoLayerClose\"><img src=\""+IMAGE_HOME+"/svc/09/images/common/layer/btn/btn_layer_close.gif\" alt=\"´Ý±â\"></a>");
		document.write("</div>");
		document.write("<!-- //³ªÀÇ Á¤º¸ ·¹ÀÌ¾î -->");
	}
	
	
	document.write("<!-- GENRE -->");
	document.write("<div id=\"genre\">");
	document.write("<ul id=\"genre_pics\"></ul>");
	document.write("<a href=\"javascript: genreListOpen('genreListLayer');\" id=\"genreSetupBtn\"><img src=\""+IMAGE_HOME+"/svc/09/images/common/genre/btn_g_open.gif\" name=\"genreSetup\" alt=\"´õº¸±â\"></a>");
	document.write("</div>");
	document.write("<!-- //GENRE -->");
	document.write("<!-- Àå¸£¼³Á¤ ·¹ÀÌ¾î ¸®½ºÆ® -->");
	document.write("<div id=\"genreListLayer\" class=\"wrapMyInfoLayer\" style=\"visibility: hidden;\">");
	document.write("<!-- Å¸ÀÌÆ² -->");
	document.write("<div class=\"myInfoLayerTt\"></div>");
	document.write("<div class=\"myInfoLayerT\">");
	document.write("<h2><img src=\""+IMAGE_HOME+"/svc/09/images/common/layer/tit/tit_layer_genre.gif\" alt=\"Àå¸£¼³Á¤\"></h2>");
	document.write("<em><img src=\""+IMAGE_HOME+"/svc/09/images/common/layer/em_layer_genre_list.gif\" alt=\"ÃÖ´ë 5°³±îÁö ¼³Á¤ °¡´É\"></em>");
	document.write("<a href=\"javascript: genreListClose('genreListLayer');\" class=\"myInfoLayerClose\"><img src=\""+IMAGE_HOME+"/svc/09/images/common/layer/btn/btn_layer_close.gif\" alt=\"´Ý±â\"></a>");
	document.write("</div>");
	document.write("<div class=\"myInfoLayerTbt\"></div>");
	document.write("<!-- //Å¸ÀÌÆ² -->");
	document.write("<!-- ³»¿ë -->");
	document.write("<div class=\"myInfoLayer\">");
	document.write("<ul class=\"genreList\">");
	//Àå¸£Ãâ·Â
	for (var i=0; i<genre.length; i++) {
		document.write("<li><a href=\""+genre[i].value+"\">"+genre[i].text+"</a></li>");
	}
	document.write("</ul>");
	document.write("<!-- ³»¿ë ÇÏ´Ü -->");
	document.write("<div class=\"conBt\">");
	document.write("<a href=\""+WWW_HOME+"/mybox/mypage/alimi_music.jsp?MAIN=GNB\" class=\"notiBtn\"><img src=\""+IMAGE_HOME+"/svc/09/images/common/layer/btn/btn_layer_music_noti.gif\" alt=\"¹ÂÁ÷¾Ë¸®¹Ì\"></a>");
	document.write("<a href=\"javascript: genreSetupOpen('genreSetupLayer');\" class=\"setupBtn\"><img src=\""+IMAGE_HOME+"/svc/09/images/common/layer/btn/btn_layer_genre_setup.gif\" alt=\"Àå¸£¼³Á¤ÇÏ±â\"></a>");
	document.write("</div>");
	document.write("<!-- //³»¿ë ÇÏ´Ü -->");
	document.write("</div>");
	document.write("<!-- //³»¿ë -->");
	document.write("<span class=\"bgLayerBottom\"><img src=\""+IMAGE_HOME+"/svc/09/images/common/layer/bg/bg_layer_bottom.png\" alt=\"\" class=\"png24\"></span>");
	document.write("</div>");
	document.write("<!-- //Àå¸£¼³Á¤ ·¹ÀÌ¾î ¸®½ºÆ® -->");
	
	document.write("<!-- Àå¸£¼³Á¤ ·¹ÀÌ¾î -->");
	document.write("<div id=\"genreSetupLayer\" class=\"wrapMyInfoLayer\" style=\"visibility: hidden;\">");
	document.write("<!-- Å¸ÀÌÆ² -->");
	document.write("<div class=\"myInfoLayerTt\"></div>");
	document.write("<div class=\"myInfoLayerT\">");
	document.write("<h2><img src=\""+IMAGE_HOME+"/svc/09/images/common/layer/tit/tit_layer_genre.gif\" alt=\"Àå¸£¼³Á¤\"></h2>");
	document.write("<em><img src=\""+IMAGE_HOME+"/svc/09/images/common/layer/em_layer_genre_setup.gif\" alt=\"ÃÖ´ë 5°³±îÁö ¼±ÅÃ ¼ø¼­´ë·Î ³ëÃâ\"></em>");
	document.write("<a href=\"javascript: initUserGenre(arrUserGnr); genreListClose('genreSetupLayer');\" class=\"myInfoLayerClose\"><img src=\""+IMAGE_HOME+"/svc/09/images/common/layer/btn/btn_layer_close.gif\" alt=\"´Ý±â\"></a>");
	document.write("</div>");
	document.write("<div class=\"myInfoLayerTbt\"></div>");
	document.write("<!-- //Å¸ÀÌÆ² -->");
	document.write("<!-- ³»¿ë -->");
	document.write("<div class=\"myInfoLayer\">");
	document.write("<ul class=\"ckList\">");
	//Àå¸£Ãâ·Â
	for (var i=0; i<genre.length; i++) {
		document.write("<li><input type=\"checkbox\" id=\""+genre[i].id+"\" name=\"genre\" onclick=\"addUserGenre('"+i+"', this);\"><label for=\""+genre[i].id+"\">"+genre[i].text+"</label></li>");
	}
	document.write("</ul>");
	document.write("<!-- ³»¿ë ÇÏ´Ü -->");
	document.write("<div class=\"conBt\">");
	document.write("<a href=\"javascript: initUserGenre(arrInitGnr);\" class=\"notiBtn\"><img src=\""+IMAGE_HOME+"/svc/09/images/common/layer/btn/btn_layer_init_setup.gif\" alt=\"ÃÊ±â¼³Á¤\"></a>");
	document.write("<a href=\"javascript: initUserGenre(arrUserGnr); genreSetupReset('genreListLayer');\" class=\"setupBtn\"><img src=\""+IMAGE_HOME+"/svc/09/images/common/layer/btn/btn_layer_cancel.gif\" alt=\"Ãë¼Ò\"></a>");
	document.write("<input type=\"image\" src=\""+IMAGE_HOME+"/svc/09/images/common/layer/btn/btn_layer_ok.gif\" alt=\"È®ÀÎ\" onclick=\"javascript: saveUserGenre();\" class=\"setupBtn\">");
	document.write("</div>");
	document.write("<!-- //³»¿ë ÇÏ´Ü -->");
	document.write("</div>");
	document.write("<!-- //³»¿ë -->");
	document.write("<span class=\"bgLayerBottom\"><img src=\""+IMAGE_HOME+"/svc/09/images/common/layer/bg/bg_layer_bottom.png\" alt=\"\" class=\"png24\"></span>");
	document.write("</div>");
	document.write("<!-- //Àå¸£¼³Á¤ ·¹ÀÌ¾î -->");
	
	//»ç¿ëÀÚ¼±ÅÃÀå¸£ ÃÊ±âÈ­
	initUserGenre(arrUserGnr);

	document.write("<!-- RANK -->");
	top_rank_bar();
	document.write("<!-- //RANK -->");
	document.write("</div>");
	document.write("<!-- //HEADER RIGHT -->");
	document.write("<!-- HOT ISSUE -->");
	document.write("<div id=\"hotIssue\">");
	document.write("<script type=\"text/javascript\">");
	document.write("swfObjFlashVars('"+IMAGE_HOME+"/svc/09/swf/melonHotIssue_20100202.swf', '160', '140', 'hotIssue', '"+WWW_HOME+"/static_html/fls_newmain_hotdelivery_create_xml.jsp');"); //ÁÖÀÇ:xmlÀº ¼­ºêµµ¸ÞÀÎ¿¡¼­µµ È£ÃâµÇ´Ï ÀüÃ¼url¸¦ ÁöÁ¤ÇØ¾ß ÇÔ.
	document.write("</script>");
	document.write("</div>");
	document.write("<!-- //HOT ISSUE -->");
	document.write("</div>");
	
	document.write("<script type='text/javascript' src=\""+WWW_HOME+"/js/gnb_obj_onload.js\"></script>");
}
