	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(document.login_header.member_id.value=="") {
			show_lpop('myInfoLayerID',' ¾ÆÀÌµð È®ÀÎ','260','700','80');
			document.login_header.member_id.focus();
			return;
		}
		if(document.login_header.member_pwd.value=="") {
			show_lpop('myInfoLayerPW','ºñ¹Ð¹øÈ£ È®ÀÎ','260','700','80');
			document.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;
	}
	
	//È¸¿ø°¡ÀÔ
	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');
	}
	
	//Layer Popup for login
	function show_lpop_login(lpop_id,lp_tit,lp_w,pos_x,pos_y)
	{
	    Check_lpop();
		//À§Ä¡°¡ ÁöÁ¤ ¾ÊµÇ¾îÀÖÀ¸¸é
	    
		if(pos_x == null)
		{
			pos_x = Math.floor(document.body.clientWidth/2) - Math.floor(lp_w/2) ;
			pos_y = 200;
		}else{
		    pos_x = Math.floor(pos_x) + Math.floor(document.body.scrollLeft);
			//pos_y = Math.floor(pos_y) + Math.floor(document.body.scrollTop);
		    pos_y = Math.floor(pos_y);
		}
		if(document.getElementById(lpop_id+"_layer")!=null)
		{
			if(pos_x != null)
			{
				$('#'+lpop_id+'_layer').css({top:pos_y,left:pos_x,zIndex:700});
			}
			$('#'+lpop_id+'_layer').css({display:'block'});
			return;
		}
		var html = '\
	<div id="'+lpop_id+'_layer" name="pop_layer">\
	<table cellpadding="0" cellspacing="0" border="0" width="'+lp_w+'" class="lp_bx">\
	<tr valign="top">\
		<td class="top01"></td>\
		<td class="top02" id="'+lpop_id+'_handle">'+lp_tit+'</td>\
		<td class="top03"><a href="javascript:hide_lpop(\''+lpop_id+'_layer\');" class="close_a"><img src="' + IMAGE_HOME + '/svc/images/common/btn/btn_close04.gif" width="15" height="15" border="0" alt="´Ý±â"/></a></td>\
	</tr>\
	<tr>\
		<td class="mid01"></td>\
		<td class="mid02">';
		
		html += $('#'+lpop_id).html();
		
		html+='\
		</td>\
		<td class="mid03"></td>\
	</tr>\
	<tr>\
		<td class="bot01"></td>\
		<td class="bot02"></td>\
		<td class="bot03"></td>\
	</tr>\
	</table>\
	</div>';

		$('#'+lpop_id).remove();

		$(document.body).prepend(html);
		$('#'+lpop_id+'_layer').css({top:pos_y,left:pos_x,zIndex:700});
		$('#'+lpop_id+'_layer').draggable({handle:$('#'+lpop_id+'_handle')});
		
	}
	
	function show_lpop(lpop_id)
	{
		document.getElementById(lpop_id).style.display = "block";
	}
	
	function hide_lpop(lpop_id)
	{
		document.getElementById(lpop_id).style.display = "none";
	}
	
	//Àå¸£ ½ÃÀÛ
	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% ÇÒÀÎ";
			}
			/* bntv ¹«±âÇÑ ¿¬±â Dec. 28, 2009
			else if ( getHeaderCookie('serviceName') == "bntv_stream_club"){
				prodName = "ºê·Îµå¾ØTV ½ºÆ®¸®¹Ö";
			}
			*/
		}
		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 viewAlbumIcon(typeCode){
		if (typeCode == "AE0009" || typeCode == "AE0018" || typeCode == "AE0019" || typeCode == "AE0020") {
			return " <img src=\""+IMAGE_HOME+"/svc/images/board/bul_normal.gif\" alt=\"Á¤±Ô¾ÆÀÌÄÜ\"/>";
		} else if ( typeCode == "AE0006") {
			return " <img src=\""+IMAGE_HOME+"/svc/images/board/bul_single.gif\" alt=\"½Ì±Û¾ÆÀÌÄÜ\"/> ";
		} else if ( typeCode == "AE0007") {
			return " <img src=\""+IMAGE_HOME+"/svc/images/board/bul_ep.gif\" alt=\"EP¾ÆÀÌÄÜ\"/> ";	
		} else {
			return " ";
		}
	}
	
	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('"+_gnbMainLogo+"', '215', '57', 'logo_home', '/svc/st_pilot/xml/');");
		document.write("</script>");
		document.write("</h1>");
		document.write("<!-- //BI -->");
		document.write("<!-- ¸á·Ð»óÇ°°¡ÀÔ -->");
		document.write("<div id=\"prodJoin\">");
		document.write("<a href=\"http://www.melon.com/svc/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', '/svc/st_pilot/xml/');");
		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')+"\" 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=\"display: none;\"></div>");
			document.write("<!-- //³ªÀÇ Á¤º¸ ·¹ÀÌ¾î -->");
		}
		//·Î±×ÀÎ ½Ã
		else
		{
			document.write("<!-- MY PAGE -->");
			document.write("<div id=\"mypage\">");
			document.write("<div class=\"myinfo\">");
			document.write("<strong title=\"" + getHeaderCookie('uid') + "\">" + cutString(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=\"display: none;\">");
			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("<!-- //³ªÀÇ Á¤º¸ ·¹ÀÌ¾î -->");
			
			//Àç°¡ÀÔ¿äÃ»
			if (getHeaderCookie('autoFail_recharge') == "Y")
			{
				document.write("<!-- Àç°¡ÀÔ ¾È³» ·¹ÀÌ¾î -->");
				document.write("<div id=\"myInfoLayerReJoin\" class=\"wrapMyInfoLayer\" style=\"display: block;\">");
				document.write("<!-- Å¸ÀÌÆ² -->");
				document.write("<div class=\"myInfoLayerTt\"></div>");
				document.write("<div class=\"myInfoLayerT\">");
				document.write("<ul class=\"prod\">");
				document.write("<li>");
				document.write("<strong>ÇÁ¸®Å¬·´ 10% ÇÒÀÎ ´ë»ó</strong>");
				document.write("</li>");
				document.write("</ul>");
				document.write("</div>");
				document.write("<div class=\"myInfoLayerTbt\"></div>");
				document.write("<!-- //Å¸ÀÌÆ² -->");
				document.write("<!-- ³»¿ë  -->");
				document.write("<div class=\"myInfoLayerID\">");
				document.write("<p class=\"reJoin\">");
				document.write("°í°´´ÔÀº ÇÁ¸®Å¬·´ 10% ÇÒÀÎ ´ë»óÀÔ´Ï´Ù.<br />");
				document.write("°í°´´Ô²²¼­ ÀÌ¿ëÇÏ½Ã´ø ¸á·Ð ÇÁ¸®Å¬·´ »óÇ°ÀÌ<br />");
				document.write("ÀÚµ¿°áÁ¦ ¹Ì ÁøÇàÀ¸·Î »ç¿ëÀÌ ÁßÁöµÇ¾ú½À´Ï´Ù.<br />");
				document.write("<span>Áö±Ý Àç °¡ÀÔ ½Ã 10% ÇÒÀÎÀÌ Áö¼Ó Àû¿ëµË´Ï´Ù.</span>");
				document.write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(±âÁ¸ <strong>5,000</strong> ¿ø > ÇÒÀÎ <strong class=\"orange\">4,500</strong> ¿ø)");
				document.write("</p>");
				document.write("<a href=\""+WWW_HOME+"/utility/customer/product_view.jsp?p_location=THANKS_FREE\"><img src=\""+IMAGE_HOME+"/svc/09/images/common/layer/btn/btn_layer_rejoin.gif\" alt=\"Àç°¡ÀÔÇÏ±â\" style=\"position:relative;\" /></a>");
				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('myInfoLayerReJoin');\" class=\"myInfoLayerClose\"><img src=\""+IMAGE_HOME+"/svc/09/images/common/layer/btn/btn_layer_close.gif\" alt=\"´Ý±â\" /></a>");
				document.write("</div>");
				document.write("<!-- //Àç°¡ÀÔ ¾È³» ·¹ÀÌ¾î-->");
			}
			
			//ºñ¹Ð¹øÈ£º¯°æ
			if (getHeaderCookie('temp_pwd') == "Y")
			{
				document.write("<div id=\"myInfoLayerRePW\" class=\"wrapMyInfoLayer\" style=\"top: 53px; display: block;\">");
				document.write("<!-- Å¸ÀÌÆ² -->");
				document.write("<div class=\"myInfoLayerTt\"></div>");
				document.write("<div class=\"myInfoLayerT\">");
				document.write("<ul class=\"prod\">");
				document.write("<li>");
				document.write("<strong>ºñ¹Ð¹øÈ£ º¯°æ</strong>");
				document.write("</li>");
				document.write("</ul>");
				document.write("</div>");
				document.write("<div class=\"myInfoLayerTbt\"></div>");
				document.write("<!-- //Å¸ÀÌÆ² -->");
				document.write("<!-- ³»¿ë  -->");
				document.write("<div class=\"myInfoLayerID\">");
				document.write("<p class=\"pwChange\">");
				document.write("°í°´´ÔÀº ÀÓ½Ã ºñ¹Ð¹øÈ£·Î ·Î±×ÀÎ ÇÏ¼Ì½À´Ï´Ù.<br />");
				document.write("Áö±Ý ¹Ù·Î ºñ¹Ð¹øÈ£¸¦ º¯°æÇÏ¿© ÁÖ¼¼¿ä.");
				document.write("</p>");
				document.write("<a href=\""+WWW_HOME+"/mybox/mypage/basic_info_change.jsp?fromGB=52\"><img src=\""+IMAGE_HOME+"/svc/09/images/common/layer/btn/btn_pw_change.gif\" alt=\"ºñ¹Ð¹øÈ£ º¯°æ ÇÏ·¯°¡±â\" /></a>&nbsp;");
				document.write("<a href=\"javascript: myInfoLayerClose('myInfoLayerRePW');\"><img src=\""+IMAGE_HOME+"/svc/09/images/common/layer/btn/btn_pw_next_change.gif\" alt=\"´ÙÀ½¿¡ º¯°æÇÏ±â\" /></a>");
				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("<a href=\"javascript: myInfoLayerClose('myInfoLayerRePW');\" class=\"myInfoLayerClose\"><img src=\""+IMAGE_HOME+"/svc/09/images/common/layer/btn/btn_layer_close.gif\" alt=\"´Ý±â\" /></a>");
				document.write("</div>");
			}
		}
		
		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=\"display: none;\">");
		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_LIN\" 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=\"display: none;\">");
		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', '/svc/static_html/fls_newmain_hotdelivery_create_xml.jsp');");
		document.write("</script>");
		document.write("</div>");
		document.write("<!-- //HOT ISSUE -->");
		document.write("</div>");

	}