function loginID() { if($("#gnb_uxd").val() == "") { alert("아이디를 입력해주세요"); return false; } else if($("#gnb_uxx").val() == "") { alert("비밀번호를 입력해주세요"); return false; } $("#uxd").val($("#gnb_uxd").val()); $("#uxx").val($("#gnb_uxx").val()); if($("#gnb_uxglk").is(":checked")) { $("#uxglk").val(1); } else { $("#uxglk").val(0); } login(); } Kakao.init('3d95e91552f8708aaf3ef3194a7b0544'); function loginWithKakao(){ Kakao.Auth.login({ success: function(authObj) { Kakao.API.request({ url: '/v1/user/me', success: function(res) { $("#login_suxd").val(res.id); $("#login_suxn").val(res.id); $("#login_suxt").val('O'); login(); }, fail: function(error) { alert(error.error_description); } }); }, fail: function(err) { alert(err.error_description); } }); } /*Facebook*/ /* window.fbAsyncInit = function() { FB.init({ appId : '458810570822272', status: true, cookie: true, xfbml: true, version: 'v2.3' }); }; (function(d, s, id){ var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) {return;} js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/sdk.js"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); */ /*genie ID*/ function login() { //아이디/비밀번호 뉴정책_2014.09.12_수란 if (/[\s]/.test($("#uxd").val()) || /[\s]/.test($("#uxx").val())){ alert("아이디/비밀번호에 공백이 포함되어 있습니다.\n다시 한번 확인해 주세요."); }else{ // not use in java flatform $("#login_http").val(strPRHttp); buildIframe("ifr_login"); $("#f_login").attr("action","https://www.genie.co.kr/auth/signIn"); //상용시 https 로 수정 $("#f_login").attr("target","ifr_login"); $("#f_login").submit(); } } function fnLoginProc(cd, msg, chgmsg, forward, sLoenSt) { var myUrl = location.href.toLowerCase(), myRefer = _rfr.toLowerCase(), isPlayerRefer = myRefer.indexOf("player/fplayer") > 0 || myRefer.indexOf("mvplayer/popmovieplayer") > 0 || myRefer.indexOf("player/fplayer") > 0 || myRefer.indexOf("mvplayer/popmovieplayerv2") > 0 ? true : false; if(cd == "A00001") { var sReturn = false, isForward = false; //20140226 신성하 - 로그인 시 재생 중 곡 처음부터 다시 듣기 if(myUrl.indexOf("player/fplayer") >= 0 || myUrl.indexOf("player/fplayer") >= 0){ fnSetPlayerStatus(''); } if(forward != "" && typeof forward != "undefined" && forward != null) { if(typeof opener == "undefined") { document.location.href = forward + (forward.indexOf("?") > -1 ? "&" : "?") + "rfr=" + escape(_rfr); } else { if(opener == null) { document.location.href = forward + (forward.indexOf("?") > -1 ? "&" : "?") + "rfr=" + escape(_rfr); } else { //팝업이면 try{ opener.document.location.href = forward; location.reload(); }catch(e){ javaParentHTTPSDefend(forward); location.reload(); } } } isForward = true; } else if (chgmsg == "1") { // 비밀번호 변경 3개월이 지난 경우 if (FG_cookie.get('my_pwd_change') == 'ON') { // 비밀번호 나중에 변경하기 쿠키 체크 if(myUrl.indexOf("/generation") > -1){ location.reload(); // 시대별 음악에서 상세 화면 조회후 로그인후 , 페이지 에러 예외처리함. (ajax요청 url을 refer url로 저장하는 문제 해결함.) }else{ location.href = _rfr; } } else { // 신규 (비밀번호 3개월 미변경) 비밀번호 변경페이지 이동 // 플레이어 팝업창일 경우 skip 2014.04.02 if (isPlayerRefer && myUrl.indexOf("member/flogin") == -1){ location.href = _rfr; sReturn = true; }else{ location.href = "/member/info/myInfoPwdChangeMsg?rfr=" + escape(_rfr); } } } else { if(myUrl.indexOf("member/flogin") > -1 && isPlayerRefer) { location.href = "http://www.genie.co.kr"; }else if(myUrl.indexOf("/generation") > -1){ location.reload(); // 시대별 음악에서 상세 화면 조회후 로그인후 , 페이지 에러 예외처리함. (ajax요청 url을 refer url로 저장하는 문제 해결함.) }else if(myUrl.indexOf("/member/join/done") > -1){ location.href= 'http://www.genie.co.kr'; }else { location.href = _rfr; } } try{ //부모창이 있을경우 if(opener.location.href.toLowerCase().indexOf('/api/musicplayer/') == -1 && !isForward){ //외부연동일 경우 예외로 변경 2014.04.21 if(typeof opener != "undefined") { if (/*window.open*/er != null && !/*window.open*/er.closed) { try { if (sReturn){ opener.location.href = "/member/info/myInfoPwdChangeMsg"; }else{ opener.location.reload(); } } catch(e) {} } } } }catch(e){ if(!isForward && window.name !="genie_main"){ var rtUrl = FG_cookie.get('parentUrl'); javaParentHTTPSDefend(rtUrl); } } } else { if(myUrl.indexOf("/member/flogin") > -1) { if(cd == "I00004" || cd == "I00005" || cd == "I00007") { if($("#login_suxt").val() != "O"){ alert(msg); } } else if(cd == "I00010") { alert(msg); document.location.href = "/member/find/findPwd"; } else { //로그인 페이지면 메시지 페이지에 노출 $("#login_error").html(msg).show(); } } else { if(cd == "I00004"){ if($("#login_suxt").val() != "O"){ alert(msg); } }else{ alert(msg); } } if(cd == "I00001" && $("#login_suxt").val() == "F") { FB.logout(function(response) { location.reload(); }); }else if (cd == "I00003" ) { /*window.open*/('/member/confirm/memberPrntByConfirm?ucty=10','popMemConfirm', 'width=470, height=462'); }else if (cd == "I00004" ){ if(typeof opener == "undefined") { if($("#login_suxt").val() != "O"){ document.location.href = "/member/signUp"; }else{ $("#f_login").attr("action","/member/join/joinSNSAgree"); $("#f_login").attr("target","_parent"); $("#f_login").submit(); } } else { if(opener == null) { if($("#login_suxt").val() != "O"){ document.location.href = "/member/signUp"; }else{ $("#f_login").attr("action","/member/join/joinSNSAgree"); $("#f_login").attr("target","_parent"); $("#f_login").submit(); } } else { //팝업이면 부모창에서 회원가입으로 넘어감 if($("#login_suxt").val() != "O"){ try{ opener.document.location.href = "/member/signUp"; }catch(e){ javaParentHTTPSDefend("/member/signUp"); } }else{ opener.name = "genie_main"; $("#f_login").attr("action","/member/join/joinSNSAgree"); $("#f_login").attr("target","genie_main"); $("#f_login").submit(); } } } }else if (cd == "I00005" || cd == "I00007") { //로그인 확인 필요(CAPTCHA) var isClose = false; $("#page_uxd").val($("#uxd").val()); $("#page_rfr").val(_rfr); $("#f_login_page").attr("action", "https://www.genie.co.kr/member/fLogin"); try { if(typeof opener == "undefined") { if(window.name != "") { $("#f_login_page").attr("target", "genie_main"); } else { window.name = "genie_main"; $("#f_login_page").attr("target", "_self"); } } else { if(opener == null) { if(window.name != "") { $("#f_login_page").attr("target", "genie_main"); } else { window.name = "genie_main"; $("#f_login_page").attr("target", "_self"); } } else { //팝업이면 부모창에서 로그인으로 넘어감 if(opener.name == "") { opener.name = "genie_main"; } $("#f_login_page").attr("target", opener.name); isClose = true; } } } catch(e) { $("#f_login_page").attr("target", "genie_main"); } finally { $("#f_login_page").submit(); if(isClose) window.close(); } } else if(cd == "I00010") { document.location.href = "/member/find/findPwd"; } } } function logout() { /* location.href = "/auth/signOut?rfr=" + escape(_rfr); */ location.href = "/auth/signOut?rfr=" + escape(_rfr); } function logoutpop(obj) { location.href = "/auth/signOut?act="+obj+"&rfr=" + escape(_rfr); } function loginFB(_type) { var redirectUri = ""; if(window.location.protocol !="https:"){ redirectUri = "http://www.genie.co.kr"; }else{ redirectUri = "https://www.genie.co.kr"; } //var FacebookWin = /*window.open*/("https://graph.facebook.com/v2.3/oauth/authorize?client_id=458810570822272&redirect_uri="+redirectUri+"/auth/facebook/accessProc&type=user_agent&display=popup&scope=publish_stream,create_event,rsvp_event,sms,offline_access,email",'sign_in','width=500,height=300,left=' + ((screen.width/2) - 420) + ',top=' + ((screen.height/2) - 250) + ',location=0,toolbar=0,menubar=0,scrollbars=1,resizable=1'); var FacebookWin = /*window.open*/("https://graph.facebook.com/v2.3/oauth/authorize?client_id=458810570822272&redirect_uri="+redirectUri+"/auth/facebook/accessProc&type=user_agent&display=popup&scope=rsvp_event,email",'sign_in','width=500,height=300,left=' + ((screen.width/2) - 420) + ',top=' + ((screen.height/2) - 250) + ',location=0,toolbar=0,menubar=0,scrollbars=1,resizable=1'); if (FacebookWin == null){ alert("팝업창이 차단되었습니다.\n\n팝업차단을 해제하셔야 페이스북 연동을 하실 수 있습니다."); $('#fbCheck').prop('checked', false); return false; }else{ FacebookWin.focus(); return false; } } function fnFBSettingEnd(atoken,uid,fe){ FBOAuthToken = atoken; FBId = uid; $('#fbCheck').prop('checked', true); itemContent.fbCheck = "Y"; $.ajax({url: "" }); var m = "/sns/bLoginFBCk" var n = "post"; var o = "ac=" + FBOAuthToken + "&uid=" + uid + "&fe="+ fe; $.ajax({ type: n, url: m, contentType: "application/x-www-form-urlencoded; charset=euc-kr", data: o, success: function (k) { } }); } function getFBLoginInfo(_type) { FB.api('/me', function(user) { $("#snsId").val(user.email); $("#snsNo").val(user.id); $("#snsType").val("F"); if(_type == 1) { login(); } else if(_type == 2 || _type == 3) { setFBLoginInfo(); } }); } function setFBLoginInfo() { buildIframe("ifr_login_sns"); $("#f_login").attr("action","/sns/bLoginFBssl"); //상용시 https 로 수정 $("#f_login").attr("target","ifr_login_sns"); $("#f_login").submit(); } function fnFBLoginResult() { location.reload(); } function connectLoginFB(_type) { FB.login(function(response) { if (response.authResponse) { getFBLoginInfo(_type); } else { //console.log("cancelled"); } }, {scope: 'email'}); } function logoutFB() { //FB.logout(function(response) { location.href = "/sns/bLogoutSNS?suxt=F"; //}); } /*Twitter*/ function loginTW(_type) { if(window.location.protocol !="https:"){ var call_http= "http"; }else{ var call_http= "https"; } var twitterWin = /*window.open*/('https://www.genie.co.kr/auth/twitter/loginTwitter?call_http='+call_http+'&cert_type=' + _type,'sign_in','width=800,height=500,left=' + ((screen.width/2) - 420) + ',top=' + ((screen.height/2) - 250) + ',location=0,toolbar=0,menubar=0,scrollbars=1,resizable=1'); if (twitterWin == null){ alert("팝업창이 차단되었습니다.\n\n팝업차단을 해제하셔야 트위터 로그인을 하실 수 있습니다."); return false; }else{ twitterWin.focus(); } } function fnTwitterLoginResult(login_suxd, login_suxn) { $("#login_suxd").val(login_suxd); $("#login_suxn").val(login_suxn); $("#login_suxt").val("T"); login(); } function logoutTW() { location.href = "/sns/bLogoutSNS?suxt=T"; }
var vGenieUri = "http://www.genie.co.kr"; var iMemUno = ""; var isLogin = StringUtils.stringToBoolean("false".toLowerCase()); var isAdult = StringUtils.stringToBoolean("false".toLowerCase()); var isConf = ""; var isProm = "N"; var iProm_NUM = 0; var isGenie4000Flag = StringUtils.stringToBoolean("false".toLowerCase()); var strPRHttp = "http"; if(window.location.protocol !="https:"){ strPRHttp = "http"; }else{ strPRHttp = "https"; } var g_MemSnsType = ""; var isMemStatus = "0"; var _rfr = "/genre/L0107"; function mainTab(hook) { var obj = $(hook); obj.find('.tab a').bind('click', function() { obj.find('.tab a').removeClass('active'); $(this).addClass('active'); obj.find('.body').hide(); $(this.hash).show(); return false; }); } function callHotKeyword() { $.support.cors = true; var keywordUrl = "/HTML/GNB/j_hotkeyword.json"; if("".isEmpty()) { $.ajax({ type: "POST", url: keywordUrl, dataType: "json", success: function (responseData) { retCode = responseData.Result.RetCode; totalCnt = responseData.PageInfo.TotCount; if(totalCnt > 0) { $("#hdSearchType").val('hot'); var data = responseData.DataSet.DATA; var entry = data[Math.floor(Math.random()*data.length)]; var sHotkword = entry.SEARCHQUERY; var sHoturl = entry.SEARCHURL; sHotkword.replace("'", ""); $("#hdSearchID").val(sHoturl); $("#sc-fd").val(sHotkword); } } }); } } $(function(){ callHotKeyword(); });
function logoani() { $('.logo_ani_bg_2').fadeOut('slow').delay(4000).fadeIn('slow'); $('.logo_ani_txt').hide().delay(2000).fadeIn('slow'); } //setTimeout(function (){logoani();}, 500);
검색 검색어
(function() { var AUTO_SEARCH = function() { this.keyIndex = 0; this.keyEvent = false; this.krInterval; }; AUTO_SEARCH.prototype = { _load:function() { var that = this; that.autoComplete = $('
').addClass('auto_complete').insertAfter(that.hook); that.hook.bind('focus', $.proxy(that._focus, that)) .bind('blur', $.proxy(that._blur, that)) .bind('keyup', $.proxy(that._keyup, that)); }, _focus:function(e) { var that = this, krDB = null; if($('#hdSearchType').val() == 'hot') { that.hook.val(''); $('#hdSearchType').val(''); $('#hdSearchID').val(''); } //if(vendor == 'ms') return; //else { that.krInterval = setInterval(function() { if(krDB != that.hook.val() && that.hook.val().length > 0) { that._getJsonData(); krDB = that.hook.val(); } }, 100); //} }, _blur:function() { var that = this; clearInterval(that.krInterval); }, _keyup:function(e) { var that = this; if(vendor == 'ms') that._getJsonData(); if(e.keyCode == 38 || e.keyCode == 40) that.keyEvent = true; else { that.keyIndex = 0; that.keyEvent = false; } if(that.hook.val().length <= 0) { that.autoComplete.hide(); that.keyIndex = 0; that.hook.val(''); $('#hdSearchType').val(''); $('#hdSearchID').val(''); return; } switch(e.keyCode) { case 38: that.keyIndex--; if(that.keyIndex <= 0) that.keyIndex = that.autoComplete.find('li').size(); that.autoComplete.find('li').removeClass('hover'); var list = that.autoComplete.find('li').eq(that.keyIndex - 1).addClass('hover'); that.hook.val(list.attr('data-title')); $('#hdSearchType').val(list.attr('data-search-type')); $('#hdSearchID').val(list.attr('data-search-id')); break; case 40: that.keyIndex++; if(that.keyIndex >= that.autoComplete.find('li').size()) that.keyIndex = 0; that.autoComplete.find('li').removeClass('hover'); var list = that.autoComplete.find('li').eq(that.keyIndex - 1).addClass('hover'); that.hook.val(list.attr('data-title')); $('#hdSearchType').val(list.attr('data-search-type')); $('#hdSearchID').val(list.attr('data-search-id')); break; } }, _getJsonData:function() { var that = this; if(that.keyEvent === false) { $.ajax({ dataType:'json', //data:"query=" + encodeURIComponent(encodeURIComponent(escape(that.hook.val()))), data:"query=" + encodeURIComponent(encodeURIComponent(that.hook.val())), url:'/search/searchAuto' }).done($.proxy(that._getJson, that)); } $(document).bind('click', $.proxy(that._doc, that)); }, _getJson:function(json) { var that = this; //비우기 that.autoComplete.empty(); if(json.artist != undefined) that._create(json).artist(); if(json.song != undefined) that._create(json).song(); if(json.album != undefined) that._create(json).album(); if(json.artist == undefined && json.song == undefined && json.album == undefined) that.autoComplete.hide(); else that.autoComplete.show(); }, _create:function(json) { var that = this; return { song:function() { that.songTitle = $('
').appendTo(that.autoComplete).html('곡더보기 '); that.songWrap = $('
').appendTo(that.autoComplete).addClass('auto_complete_2'); that.songList = []; $.each(json.song, function(i) { var _info = $('', { 'class':'info' }).text('곡 정보'), _title = $('', { 'class':'title', title:json.song[i].word }).text(json.song[i].word), _artist = $('', { 'class':'artist', title:json.song[i].field1 }).html('' + json.song[i].field1 + ' '); that.songList[i] = $('
').attr({ 'data-title': json.song[i].word, 'data-search-type':'song', 'data-search-id':json.song[i].id }).appendTo(that.songWrap) .find('a') .append(_info, _title, _artist); }); }, artist:function() { //alert("---------- : "+ encodeURIComponent(encodeURIComponent(that.hook.val()))); that.artistTitle = $('
').appendTo(that.autoComplete).html('아티스트더보기 '); that.artistWrap = $('
').appendTo(that.autoComplete).addClass('auto_complete_1'); that.artistList = []; $.each(json.artist, function(i) { var imgURL = (json.artist[i].image == null) ? '/imageg/web/common/blank_artist_68.gif' : json.artist[i].image, _album = $('', { 'class':'album' }).html(' '), _artist = $('', { 'class':'artist' }).html(''+ json.artist[i].word +' '), _type = $('', { 'class':'type' }).html(function() { return (function(i) { var field_1 = (json.artist[i].field1 != null) ? json.artist[i].field1.replace('/', ' / ') : '', field_2 = (json.artist[i].field2 != null) ? json.artist[i].field2.replace('/', ' / ') : ''; //국적의 값이 없거나 '불명'인 경우 국적 비노출 - 2015.05.04 if (field_1 == '' || field_1 == '불명'){ field_1 = ''; }else{ field_1 = field_1 + ' / '; } return field_1 + field_2; })(i); }); that.artistList[i] = $('
').attr({ 'data-title': json.artist[i].word, 'data-search-type':'artist', 'data-search-id':json.artist[i].id }).appendTo(that.artistWrap) .find('a') .append(_album); $('').appendTo(that.artistList[i]).addClass('music') .append(_artist, _type); }); }, album:function() { that.albumTitle = $('
').appendTo(that.autoComplete).html('앨범더보기 '); that.albumWrap = $('
').appendTo(that.autoComplete).addClass('auto_complete_1'); that.albumList = []; $.each(json.album, function(i) { var imgURL = (json.album[i].image == null) ? '/imageg/web/common/blank_68.gif' : json.album[i].image, _album = $('', { 'class':'album' }).html(' '), _artist = $('', { 'class':'album-title' }).html(''+ json.album[i].word +' '), _type = $('', { 'class':'artist-name' }).html( json.album[i].field1); that.albumList[i] = $('
').attr({ 'data-title': json.album[i].word, 'data-search-type':'album', 'data-search-id':json.album[i].id }).appendTo(that.albumWrap) .find('a') .append(_album); $('').appendTo(that.albumList[i]).addClass('music') .append(_artist, _type); }); } }; }, _doc:function(e) { var that = this, t = e.target, currentTarget = t; while(currentTarget != undefined) { if(currentTarget == that.autoComplete[0] || currentTarget == that.hook[0]) { return; } else currentTarget = currentTarget.parentNode; } if(currentTarget === null) { that.autoComplete.hide(); } } }; window.AUTO_SEARCH = AUTO_SEARCH; })(); var autoSearch = new AUTO_SEARCH(); autoSearch.hook = $('#sc-fd'); autoSearch._load();
$(document).ready(function(){ var imgCnt = $('.event-banner a').length; var RndIdx = Math.floor(Math.random() * imgCnt); $('.event-banner a:eq('+RndIdx+')').show(); });
var newGNB = new FG_gnbMenu(); newGNB._load(); function fnGotheme() { location.href="/musicAge/themeList?rfr=" + escape(_rfr) }
var vGenieUri = "http://www.genie.co.kr"; var iMemUno = ""; var isLogin = StringUtils.stringToBoolean("false".toLowerCase()); var isAdult = StringUtils.stringToBoolean("false".toLowerCase()); var isConf = ""; var isProm = "N"; var iProm_NUM = 0; var isGenie4000Flag = StringUtils.stringToBoolean("false".toLowerCase()); var strPRHttp = "http"; if(window.location.protocol !="https:"){ strPRHttp = "http"; }else{ strPRHttp = "https"; } var g_MemSnsType = ""; var isMemStatus = "0";
$(function() { if($('#banner_top_1').css('display') == 'none' || /* wing_check_view == 'S' || */ $('#banner_top_1').length == 0){ $('div #banner_right').show(); $('div #banner_left').show(); } });
var vGenieUri = "http://www.genie.co.kr"; var iMemUno = ""; var isLogin = StringUtils.stringToBoolean("false".toLowerCase()); var isAdult = StringUtils.stringToBoolean("false".toLowerCase()); var isConf = ""; var isProm = "N"; var iProm_NUM = 0; var isGenie4000Flag = StringUtils.stringToBoolean("false".toLowerCase()); var strPRHttp = "http"; if(window.location.protocol !="https:"){ strPRHttp = "http"; }else{ strPRHttp = "https"; } var g_MemSnsType = ""; var isMemStatus = "0";
(function () { var ROLL_THUMB = function () { }; ROLL_THUMB.prototype = { _i: 0, _item: function () { return this.hook.find('.rol-wp ul li'); }, _set: function () { var that = this; that.hook.find('.rol-wp ul').css('width', that._item().outerWidth(true) * that._item().length); $.each(that._item(), function (i) { $('' + (i + 1) + '번 앨범' + ' ').appendTo(that.hook.find('.btn-slid')); }); $.each(that.hook.find('.rol-wp ul li a'), function () { $(this).attr('tabindex', -1); }); }, _move: function () { var that = this; var cur = that._i % that._item().length; that.hook.find('.rol-wp ul').animate({ left: -that._item().outerWidth(true) * cur }, 400, function () { that._current(cur); }); }, _current: function (index) { var that = this; that.hook.find('.rol-wp ul li').find('a').attr('tabindex', -1); that.hook.find('.rol-wp ul li').eq(index).find('a').attr('tabindex', 0); that.hook.find('.btn-slid a').removeClass('current'); that.hook.find('.btn-slid a').eq(index).addClass('current'); that._i = index + 1; }, _load: function () { var that = this; that._set(); that.auto = setInterval($.proxy(that._move, that), 2000); that.hook.find('.btn-slid a').bind('click', function () { var num = $(this).index(); clearInterval(that.auto); that.hook.find('.rol-wp ul').animate({ left: -that._item().outerWidth(true) * $(this).index() }, 400, function () { that._current(num); }); return false; }); that.hook.bind('mouseenter', function () { clearInterval(that.auto); }).bind('mouseleave', function () { that.auto = setInterval($.proxy(that._move, that), 2000); }); } }; window.ROLL_THUMB = ROLL_THUMB; })(); var eventRollThumb = new ROLL_THUMB(); eventRollThumb.hook = $('#aside_genre'); eventRollThumb._load();
function closeBannenBomb(st) { if(st == 1) { var c_name = 'bomb_banner'; var value_No = ''; var exdays = 10; var exdate=new Date(); exdate.setDate(exdate.getDate() + exdays); var c_value=escape(value_No) + ((exdays==null) ? '' : '; expires='+exdate.toUTCString()); [안내]태그제한으로등록되지않습니다-document.cookie= c_name+'='+value_No+'; expires='+c_value+'; path=/'; } $('.banner_bomb').hide(); } var vGenieUri = "http://www.genie.co.kr"; var iMemUno = ""; var isLogin = StringUtils.stringToBoolean("false".toLowerCase()); var isAdult = StringUtils.stringToBoolean("false".toLowerCase()); var isConf = ""; var isProm = "N"; var iProm_NUM = 0; var isGenie4000Flag = StringUtils.stringToBoolean("false".toLowerCase()); var strPRHttp = "http"; if(window.location.protocol !="https:"){ strPRHttp = "http"; }else{ strPRHttp = "https"; } var g_MemSnsType = ""; var isMemStatus = "0";
$(function() { if($('#banner_top_1').css('display') == 'none' || /* wing_check_view == 'S' || */ $('#banner_top_1').length == 0){ $('div #banner_right').show(); $('div #banner_left').show(); } });
홈 > 장르음악 > 가요
$(document.body).ready(function () { //네비게이션 호출 FC_PageLocation("홈 > 장르음악 > 가요 "); // 프로토콜 우회용 부모 페이지 url 저장. FG_cookie.set("parentUrl",_rfr, 1000); //프로모션 용 if(isProm=="Y"){ if(iProm_NUM=="9"){ FG_layerPopup.show($('#certification_010_c')); buildIframe("ifr_01X_Certify"); $("#f_phone_kt").attr("action","/Member/Find/b_FindMobileNum.asp"); //상용시 https 로 수정 $("#f_phone_kt").attr("target","ifr_01X_Certify"); $("#f_phone_kt").submit(); } } //'지니4000 전환 안내 팝업 var sParam; var sPopup, iLeft; if (isGenie4000Flag) { if (FG_cookie.get("GENIE%5F4000%5FOPEN%5FYN") != "Y") { iLeft = (screen.width - 518) / 2; sParam = 'width=518,height=448,top=0,left='+ iLeft + ', toolbar=no,location=no,directory=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no' sPopup = /*window.open*/('/popup/pop_Genie4000','_blank',sParam); FG_cookie.set("GENIE%5F4000%5FOPEN%5FYN","Y",1000); } } ////// }); // 콘텐츠제공서비스 품질인증서 팝업 function certiPopup() { // var sURL = "https://www.goodcontent.kr/user/certi/certiFormView.do"; var sURL = "https://www.goodcontent.kr/upload_public/CERTIDW/2016-07-0028_4s2487838xd3qob20160801105138.png"; // 품질 인증 마크 링크 수정 적용 // var sFeatures = "width=518, height=690, status=no, menubar=no, toolbar=no"; var sFeatures = "width=490, height=616, status=no, menubar=no, toolbar=no"; var win = /*window.open*/("", "certiFormView", sFeatures); document.certiFormView.action = sURL; document.certiFormView.target = "certiFormView"; document.certiFormView.submit(); win.focus(); } /////프로모션 용 function fnSetLTEAPromotion(){ //프로모션 등록 buildIframe("ifr_Promotion"); $("#promotionForm").attr("action","/Product/Promotion/b_Product_Promotion_LTEA.asp"); //상용시 https 로 수정 $("#promotionForm").attr("target","ifr_Promotion"); $("#promotionForm").submit(); } function fnSetLTEAResult(op){ //프로모션 등록 FG_layerPopup.hide($('#LTEA-Promotion')); if(op=="1"){ FG_layerPopup.show($('#LTEA-Promotion_S1')); }else if(op=="2"){ FG_layerPopup.show($('#LTEA-Promotion_S2')); }else{ FG_layerPopup.show($('#LTEA-Promotion_F')); } } function fnSetCancle(){ //취소 및 닫기에서 레이어 다시 안 띄우기 buildIframe("ifr_Promotion"); $("#promotionForm").attr("action","/Product/Promotion/b_Product_Promotion_Layer_Cancle.asp"); //상용시 https 로 수정 $("#promotionForm").attr("target","ifr_Promotion"); $("#promotionForm").submit(); } function fnSetPromotionCancle(){ //프로모션 혜택 안받기 buildIframe("ifr_Promotion"); $("#promotionForm").attr("action","/Product/Promotion/b_Product_Promotion_Cancle.asp"); //상용시 https 로 수정 $("#promotionForm").attr("target","ifr_Promotion"); $("#promotionForm").submit(); } function fnPhoneConfirmNo_01X(){ window.location.reload(); } function fnPhoneConfirmReceive_01X(){ for (p=1; p<4; p++){ if ($("#r_mem_mobile" + p).val() == ""){ alert(p + "번째 핸드폰 번호를 입력해주세요!"); $("#r_mem_mobile" + p).focus(); return false; } } buildIframe("ifrPhoneKT"); $("#r_mem_mobile").val($("#r_mem_mobile1").val()+""+$("#r_mem_mobile2").val()+""+$("#r_mem_mobile3").val()); $("#f_phone_kt").attr("target","ifrPhoneKT"); $("#f_phone_kt").attr("action","/Member/Join/b_01X_Chk_hp_ssl.asp"); $("#f_phone_kt").submit(); } function fnSetNumber_01X(varCode, varHp, varHash){ if (varHash != ""){ alert("인증번호가 발송되었습니다."); $("#ChkReceiveNum").val(varHash); } $("#UserRecevieNum").focus(); } function fnPhoneConfirmChk_01X(){ var AgreeChanObj = $('#certification_010_yes'); var AgreeCheckObj = $('#certification_010_no'); if(AgreeChanObj.is(":checked") && AgreeCheckObj.is(":checked")){ if ($("#ChkReceiveNum").val() == ""){ alert("인증번호를 받으셔야 합니다."); return false; } if ($("#UserRecevieNum").val() == ""){ alert("휴대폰으로 전송된 인증번호를 입력 해주세요."); $("#UserRecevieNum").focus(); return false; } if ($.trim($("#UserRecevieNum").val()) != $.trim($("#ChkReceiveNum").val())){ alert("인증번호가 일치 하지 않습니다."); }else{ buildIframe("ifrPhoneUpdateKT"); $("#f_phone_kt").attr("target","ifrPhoneUpdateKT"); $("#f_phone_kt").attr("action","/Member/Join/b_01X_Update.asp"); $("#f_phone_kt").submit(); } }else{ alert("상기 내용에 동의를 해주세요."); return false; } } function fnPhoneNoConfirmChk_01X(){ buildIframe("ifrPhoneUpdateKT"); $("#f_phone_kt").attr("target","ifrPhoneUpdateKT"); $("#f_phone_kt").attr("action","/Member/Join/b_01X_NoUpdate.asp"); $("#f_phone_kt").submit(); } function fnPhoneConfirmChkRtn_01X(cd){ if(cd == "1") { $("#s_mem_mobile1").html($("#r_mem_mobile1").val()); $("#s_mem_mobile2").html($("#r_mem_mobile2").val()); $("#s_mem_mobile3").html($("#r_mem_mobile3").val()); FG_layerPopup.hide($('#certification_010_c')); FG_layerPopup.show($('#certification_010_s')); } else { alert("오류가 발생하였습니다. 고객센터에 문의해 주세요."); return; } } /////프로모션 용
$(document).ready(function() { $("#newMyAlbum").click(function () { fnSetNewMyAlbum($("#newMyAlbumName").val()); }); $(".my-album .my-body .my-scroll .myAlbum").find(".myAlbumItem").children("#myAlbumAdd").each(function () { var $this = $(this); //alert($(this).index()); $(this).bind({ click: function () { fnMyAlbumAdd( $("#my-album").attr("songId") , $(this).attr("title") ) //fnSetMyAlbum($(this).attr("title"), $("#my-album").attr("songId")); return false; } }); }); }); function fnSearchCharNum ( strValue , sChar ) { var var_value = strValue; //alert ( var_value.indexOf( sChar)); if ( var_value.indexOf(sChar) == -1 ) { return 1; }else { var re = new RegExp( sChar , "ig"); var resultArray = var_value.match(re); return resultArray.length +1 ; } } function fnMakeMxlopths ( iNum ) { var vRtnString = ""; for ( var i =0 ; i < iNum ; i++ ) { if ( vRtnString != "" ) { vRtnString = vRtnString + ";"; } vRtnString = vRtnString + "W"; } return vRtnString; } function fnMyAlbumAdd( songID , myAlbumID ) { var vSongID = removeSongDuplicatedSong(songID ) ; var vInputNum = fnSearchCharNum ( vSongID, ';' ); var vMxlopths = fnMakeMxlopths ( vInputNum ); var vMxflags = vMxlopths.replace(/W/g,"1"); if (iMemUno == "" ){ FG_layerPopup.show($('#login-def')); return false; } $.ajax({ type: "POST", url: "/myMusic/jMyAlbumSongAdd", dataType: "json", data: { "mxnm": myAlbumID , "xgnms":vSongID , "mxlopths":vMxlopths , "mxflgs":vMxflags, "unm":iMemUno }, success: function (responseData) { var retCode = responseData.Result.RetCode; var retMSG = responseData.Result.RetMsg; var retNoDataCnt = "0"; var retOverlapCnt = "0"; var retMaxChk = "false"; if (retCode == 0) { alert ('앨범에 노래가 추가되었습니다!'); fnMyAlbumClose(); } else{ if(retCode=="M00002"){ retMSG = retMSG.replace(" ", "\n"); alert (retMSG); } else{ retNoDataCnt = responseData.DATA0.NoDataCnt; retOverlapCnt = responseData.DATA0.OverlapCnt; retMaxChk = responseData.DATA0.MaxChk; if ( retNoDataCnt != "0" ) { alert('올바른 앨범 아이디가 아닙니다!'); return false; } if ( retOverlapCnt != "0" ) { alert('이미 앨범에 등록된 노래입니다!'); return false; } if ( retMaxChk == "True" ) { alert('마이앨범은 최대 1000곡 까지 가능합니다.\n다른 앨범을 선택 하거나 새 앨범 만들기를 해주세요.'); return false; }else{ alert ('앨범에 노래 등록을 실패하였습니다.[' + retCode+']' ); return false; } } } } }); } function fnMyAlbumClose(){ $('#newMyAlbumName').val(''); $("#my-album").hide(); FG_addMyAlbum._target= null; $('#my-album .my-scroll').mCustomScrollbar('destroy'); } //글자수 체크 function updateInputCount(obj,maxLength) { var textLength = $(obj).val().length; if (textLength >= maxLength) { alert('입력한 글자 수를 초과하였습니다.\n내용을 수정해 주세요.'); $(obj).val($(obj).val().substring(0,maxLength-2)); } } function fnSetNewMyAlbum(albumName) { var var_albumnm; var_albumnm = albumName; var_albumnm = $.trim(var_albumnm); if (iMemUno == "" ){ //alert("로그인 후 다운로드 가능합니다."); FG_layerPopup.show($('#login-def')); return false; } if ( var_albumnm.length == 0 ) { var_albumnm = (new Date()).formatDate("yyyy-MM-dd hh:mm:ss"); albumName = var_albumnm; } if ( var_albumnm.length > 30 ) { alert('입력한 글자 수를 초과하였습니다.\n내용을 수정해 주세요.'); $('#newMyAlbumName').focus(); return; } if (fnCheckAlbumName(var_albumnm)) { alert("사용 불가능한 특수문자가 포함되었습니다.\n(사용 가능한 특수문자 32자 :\! \" \# \$ \% \& \' \( \) \* \+ \, \- \. \/ \: \; \< \= \> \? \@ \[ \\ \] \^ \_ \` \{ \| \} \~)"); $('#newMyAlbumName').focus(); return; } var x , o , e; $.ajax({ type: "POST", //Get방식으로 진행시 값전달 암됨// url: "/myMusic/jSetNewAlbum", dataType: "json", data: { "unm": iMemUno, "albumName": albumName }, success: function (responseData) { var retCode = responseData.Result.RetCode; if (retCode == 0) { fnGetMyAlbum(); } else { alert(responseData.Result.RetMsg); } } //,error: function(x, o, e){ alert('dd1'); alert(x.status + " : "+ o +" : "+e);} }); } function fnGetMyAlbumObj (obj) { if (iMemUno == "" ){ //alert("로그인 후 다운로드 가능합니다."); FG_layerPopup.show($('#login-def')); return false; } else{ alert("a"); $.ajax({ type: "POST", url: "/myMusic/jGetMyAlbum", //Get방식으로 진행시 값전달 암됨// dataType: "json", async: false, data: { "unm": iMemUno }, success: function (responseData) { var retCode = responseData.Result.RetCode; var totalCnt = responseData.Result.TotCount; if (retCode == 0) { $(".myAlbumItem").remove(); var myAlbumID, myAlbumTitle; for (var i = 0; i < totalCnt; i++) { myAlbumID = responseData.DATA[i].maId; myAlbumTitle = decodeURIComponent(responseData.DATA[i].maTitle); $(".my-album .my-body .my-scroll .myAlbum").append("
" + myAlbumTitle + " "); //$(".myAlbum").append("
" + myAlbumTitle + " "); } var pBtn = $(obj); var offset1 = pBtn.offset(); var pLeft = offset1.left + 0; var pTop = offset1.top + 27; $("#my-album").attr("style","display:block;"); $("#my-album").offset({ top: pTop, left:pLeft }); //$('#my-album .my-scroll').attr("style","overflow:scroll;"); $('#my-album .my-scroll').mCustomScrollbar({ scrollButtons:{ enable:true }, theme:"dark-thin" }); fnAddAlbumEvent(); } else { //alert('Error'+ retCode ); var pBtn = $(obj); var offset1 = pBtn.offset(); var pLeft = offset1.left + 0; var pTop = offset1.top + 27; $("#my-album").attr("style","display:block;"); $("#my-album").offset({ top: pTop, left:pLeft }); //$('#my-album .my-scroll').attr("style","overflow:scroll;"); $('#my-album .my-scroll').mCustomScrollbar({ scrollButtons:{ enable:true }, theme:"dark-thin" }); } } /*, error: function(x, o, e){ alert(x.status + " : "+ o +" : "+e);} */ }); } } function fnGetMyAlbum() { if (iMemUno == "" ){ //alert("로그인 후 다운로드 가능합니다."); FG_layerPopup.show($('#login-def')); return false; } else{ $.ajax({ type: "POST", url: "/myMusic/jGetMyAlbum", //Get방식으로 진행시 값전달 암됨// dataType: "json", async: false, data: { "unm": iMemUno }, success: function (responseData) { var retCode = responseData.Result.RetCode; var totalCnt = responseData.PageInfo.TotCount; if (retCode == 0) { $(".myAlbumItem").remove(); var myAlbumID, myAlbumTitle, myAlbumTagTitle; for (var i = 0; i < totalCnt; i++) { myAlbumID = responseData.DataSet.DATA[i].MA_ID; myAlbumTitle = decodeURIComponent(responseData.DataSet.DATA[i].MA_TITLE); myAlbumTagTitle = decodeURIComponent(responseData.DataSet.DATA[i].MA_TAGTITLE); $(".my-album .my-body .myAlbum").append("
" + myAlbumTitle + " "); //$(".myAlbum").append("
" + myAlbumTitle + " "); } fnAddAlbumEvent(); } else { //alert('Error'+ retCode ); } } /*, error: function(x, o, e){ alert(x.status + " : "+ o +" : "+e);} */ }); } } function removeSongDuplicatedSong(str){ var arr = str.split(";"); var str = ""; for (var i=0; i
25 ) { vTitle = vTitle.substring(1,24) + '...' ; } return vTitle; } function fnChkChar( iString ) { var re = /[~!@\#$%^&*\()\-=+_'\"]/gi; //특수문자 if(re.test(iString)) { return true; } else { return false; } } function fnAddAlbumEvent() { $(".myAlbum").find(".myAlbumItem").children("a").each(function () { var $this = $(this); $(this).bind({ click: function () { fnMyAlbumAdd( $("#my-album").attr("songId") , $(this).attr("id").replace("myalbum_", "") ) //alert($(this).attr("title") + "/" + $("#my-album").attr("songId") + "\n마이앨범에 저장하는 함수의 저장 JSON에 넘길 예정\n저장하는 프로그램 완성되면 이 메시지는 제거됩니다."); return false; } }); }); } function fnShowMyAlbumForm ( obj , list_wrap_name , list_name , songId_name , iTop , iLeft ) { if (iMemUno == "" ){ fnMyAlbumClose(); //alert("로그인 후 다운로드 가능합니다."); FG_layerPopup.show($('#login-def')); return false; } else { //곡 리스트에서 해당 SongID 추출 부분 // selectArrSongID = ""; var s = 0; $("."+list_wrap_name ).find("."+list_name ).each(function () { if ( selectArrSongID != "" ) { selectArrSongID = selectArrSongID + ";"; } selectArrSongID = selectArrSongID + $("."+list_wrap_name ).find("."+list_name).eq(s).attr(songId_name); s += 1; }); if ( s==0 ) { alert( '최소한 1개이상 곡을 선택하세요.'); return false; } fnGetMyAlbum(); $("#my-album").attr( songId_name , selectArrSongID.replace(/ /gi, '')); var pBtn = $(obj); var offset1 = pBtn.offset(); var pLeft = offset1.left + iTop; var pTop = offset1.top + iLeft; $("#my-album").attr("style","display:block;"); $("#my-album").offset({ top: pTop, left:pLeft }); $('#my-album .my-scroll').mCustomScrollbar({ scrollButtons:{ enable:true }, theme:"dark-thin" }); return false; } } function fnShowMyAlbumCommon( obj , SongIds , iTop , iLeft ) { // alert('xxxxxxxxxxxxonclick_function!'); if (iMemUno == "" ){ fnMyAlbumClose(); //alert("로그인 후 다운로드 가능합니다."); FG_layerPopup.show($('#login-def')); return false; } else { if ( SongIds == "" ) { alert( '최소한 1개이상 곡을 선택하세요.'); return false; } fnGetMyAlbum(); //$("#my-album").attr( songId_name , SongIds.replace(/ /gi, '')); var pBtn = $(obj); var offset1 = pBtn.offset(); var pLeft = offset1.left + iTop; var pTop = offset1.top + iLeft; $("#my-album").attr("style","display:block;"); $("#my-album").offset({ top: pTop, left:pLeft }); $('#my-album .my-scroll').mCustomScrollbar({ scrollButtons:{ enable:true }, theme:"dark-thin" }); return false; } } function fnAddMyAlbumForm ( obj , arrSongID , iTop , iLeft ) { if (iMemUno == "" ){ fnMyAlbumClose(); //alert("로그인 후 다운로드 가능합니다."); FG_layerPopup.show($('#login-def')); return false; } else { if ( arrSongID == "" ) { alert( '최소한 1개이상 곡을 선택하세요.'); return false; } $('#newMyAlbumName').val(''); $("#my-album").hide(); FG_addMyAlbum._target= null; $('#my-album .my-scroll').mCustomScrollbar('destroy'); $("#my-album").attr( "songId" , arrSongID); fnGetMyAlbum(); var pBtn = $(obj); var offset1 = pBtn.offset(); var pLeft = offset1.left + iTop; var pTop = offset1.top + iLeft; $("#my-album").show(); $("#my-album").offset({ top: pTop, left:pLeft }); $('#my-album .my-scroll').attr("style","overflow:scroll;"); $('#my-album .my-scroll').mCustomScrollbar({ scrollButtons:{ enable:true }, theme:"dark-thin" }); return false; /* */ } } function fnCheckAlbumName(str) { var ptn = new RegExp(); ptn = /[^A-Za-z0-9가-힣\s\!\"\#\$\%\&\'\(\)\*\+\,\-\.\/\:\;\<\=\>\?\@\[\\\]\^\_\`\{\|\}\~]/gi; return ptn.test(str); }
var musicList2, listSort2, FG_imageMyAlbumSort; function pageInit(){ musicList2 = new MUSIC_LIST(); listSort2 = new LIST_SORT(); Object.extend(listSort2, { _sort:function(prop, asc) { var that = this; that.lists.sort(function(a, b) { var an = $(a).find('[sort-field="' + prop + '"]').text(), bn = $(b).find('[sort-field="' + prop + '"]').text(); return (asc ? (an > bn ? 1 : (an < bn ? -1 : 0)) : (an < bn ? 1 : (an > bn ? -1 : 0))); }); that.lists.detach().appendTo($(that.listsWrap)); that.createNumber(); that._reset(); }, createNumber:function() { var that = this; that.lists.each(function(i) { $(this).find('> span.num > span').html(i + 1); }); } }); musicList2.hook = $('#my_edit .body'); musicList2.option = { scroll:false, multiple:true, drag:false }; musicList2._load(); listSort2.checksSelect = '#my_edit .music-list .select-check'; listSort2.listsSelect = '#my_edit .music-list div.list'; listSort2.listsWrap = '#my_edit .music-list #myAlbumListDiv'; listSort2.hook = $('#list-sort a'); listSort2._load(); var musicListToggle2 = new TOGGLE_BUTTON(); musicListToggle2.hook = $('.btn_toggle'); musicListToggle2._load(); Object.extend(FG_addMyAlbum, { _setStyle:function() { var that = this; that.layerTop = that.element.offset().top - that.myAlbum.outerHeight() - 3; Object.extend(that.layerStyle, { left:that.layerLeft, top:that.layerTop }); } }); FG_imageMyAlbumSort = new LOADING(); var FG_imageCoverStyle = function() { var el = $('#myAlbumListPopup'); return { position:'absolute', left:el.offset().left, top:el.offset().top, zIndex:1000, width:el.outerWidth(), height:el.outerHeight(), backgroundColor:'#000000', opacity:0.6 }; }; $(window).bind('resize', function() { Object.extend(FG_imageMyAlbumSort.loadingBoxStyle, FG_imageCoverStyle()); }); Object.extend(FG_imageMyAlbumSort.loadingBoxStyle, FG_imageCoverStyle()); Object.extend(FG_imageMyAlbumSort.loadingImageStyle, { position:'absolute' }); // loading area end } function fnCancelMyAlbum(){ if(confirm("변경한 내용이 사라집니다. 취소하시겠습니까?")){ FG_layerPopup.hide($('#myAlbumListPopup')); $("#myAlbumListDiv").html(""); //parent.window.location.reload(); } } function fnDeleteChecked2(){ var chkCnt = $('input:checkbox[name="maId"]:checked').length; var nowMxnm = $("#mxnm").val(); // 현재 보고 있는 마이앨범 code var nowDel = false; if(chkCnt > 0){ if(confirm("선택한 마이앨범이 완전히 삭제됩니다.\n정말 삭제 하시겠습니까?")){ var linkedValue = ""; if(chkCnt == 1){ $('input:checkbox[name="maId"]:checked').each(function(){ linkedValue = linkedValue+ this.value; if(this.value == nowMxnm){ nowDel = true; } }); }else{ $('input:checkbox[name="maId"]:checked').each(function(){ linkedValue = linkedValue+ this.value+";"; if(this.value == nowMxnm){ nowDel = true; } }); } $.post("/myMusic/deleteMyAlbumList", { mxnm: linkedValue }, function (data) { //var jData = JSON.parse(data); var jData = data; var resultCD, resultMsg; resultCD = jData.Result.RetCode; resultMsg = jData.Result.RetMsg; if (resultCD == "0") { alert('앨범이 삭제 되었습니다'); // 현재 보고있는 마이앨범을 삭제하는 경우에는 마이뮤직 메인으로 이동 if(nowDel){ location.href='/myMusic'; }else{ location.reload(); } }else{ alert('앨범 삭제에 실패 했습니다. -'+resultMsg); } }); } }else{ alert('삭제할 앨범을 선택해 주세요.'); } } function fnMyAlbumSort2(order){ // if(confirm("순서정렬 변경 시 현재 편집된 순서는 저장되지 않으며\n앨범명이 선택한 순서로 재정렬됩니다\n변경 하시겠습니까?")){ // DO sorting var dStart = new Date().getTime(); FG_imageMyAlbumSort._start(); setTimeout(function() { listSort2._sort("MA_TITLE", order); var dEnd = new Date().getTime(); if(dEnd - dStart < 1500) { setTimeout(function () { FG_imageMyAlbumSort._end(); }, 500); } else { FG_imageMyAlbumSort._end(); } }, 500); // } } function fnSaveSortAlbum(){ if(confirm("변경한 마이앨범 순서를 저장하시겠습니까?")){ //musicList2.createNumber(); // do save sorting data var maIds = ""; var arrSize = $("#myAlbumListDiv input:checkbox").length; $("#myAlbumListDiv input:checkbox").each(function(index){ if(index == arrSize - 1 ){ maIds = maIds+ $(this).val(); }else{ maIds = maIds+ $(this).val() + ';'; } }); $.ajax({ type: "POST", url: "/myMusic/saveMyalbumList", dataType: "json", data: { "unm":iMemUno , "maIds": maIds }, success: function (responseData) { var retCode = responseData.Result.RetCode; var retMSG = responseData.Result.RetMsg; if (retCode == 'A00001') { alert ('저장 되었습니다'); location.reload(); } else{ alert('저장에 실패했습니다- '+retMSG); } } }); } } //]]>
function _trk_getAge(age){var thisAge = parseInt(age);var returnAge;if (thisAge > 0 && thisAge < 10){ returnAge = "A";}else if(thisAge > 9 && thisAge < 20){returnAge = "B";}else if(thisAge > 19 && thisAge < 30){returnAge = "C";}else if(thisAge > 29 && thisAge < 40){returnAge = "D";}else if(thisAge > 39 && thisAge < 50){returnAge = "E";}else if(thisAge > 49 && thisAge < 60){returnAge = "F";}else{returnAge = "G";}return returnAge;} function _trk_getGnd(gnd){var returnGnd = parseInt(gnd);if(returnGnd == 1){returnGnd = "M";}else if(returnGnd == 2){returnGnd = "F";}else{returnGnd = "U";}return returnGnd;} /* FOR BIZ., COM. AND ENT. SERVICE. */ _TRK_CP = "/genre/L0107"; /* Contents Path */ _TRK_PI = ""; /* Page Identity */ _TRK_PN = ""; /* Product Name */ _TRK_MF = ""; /* Manufacture Name */ _TRK_OA = ""; /* Order Amount(s) with ';' Separated */ _TRK_OP = ""; /* Order Product(s) with ';' Separated */ _TRK_OE = ""; /* Order EA with ';' Separated */ _TRK_CC = ""; /* Campaign Code */ _TRK_RK = ""; /* Reserved Key */ _TRK_SX = _trk_getGnd(""); /* Members Gender - M,F,U */ _TRK_AG = _trk_getAge(""); /* Member Age - A,B,C,D,E,F,G */ _TRK_IK = ""; /* Inner Search Keyword */ var _TRK_LID="41825";var _L_TD="ssl.logger.co.kr";var _TRK_CDMN=".genie.co.kr"; var _CDN_DOMAIN = location.protocol == "https:" ? "https://fs.bizspring.net" : "http://fs.bizspring.net";document.write(unescape("%3Cscript src='" + _CDN_DOMAIN +"/fs4/bstrk.1.js' type='text/javascript'%3E%3C/script%3E"));