var gnb_html = "
\"\"

사용자 링크

\"로그인\"
네이버 통합검색
"; var gnb_style = "#gnb ul,#gnb li,#gnb form,#gnb fieldset,#gnb legend,#gnb input{margin:0;padding:0;font-family:'돋움',dotum,applegothic,sans-serif}\n"; gnb_style += "#gnb{position:relative;z-index:2147483647;color:#444;font-family:'돋움',dotum,applegothic,sans-serif;font-size:12px;text-align:left}\n"; gnb_style += "#gnb:after{display:block;clear:both;content:''}\n"; gnb_style += "#gnb img{border:0;vertical-align:top}\n"; gnb_style += "#gnb fieldset{border:0}\n"; gnb_style += "#gnb ul{list-style:none}\n"; gnb_style += "#gnb em{font-style:normal}\n"; gnb_style += "#gnb a{color:#444;text-decoration:none}\n"; gnb_style += "#gnb a:hover,#gnb a:active,#gnb a:focus{color:#438a01;text-decoration:underline}\n"; gnb_style += "#gnb legend{display:none}\n"; gnb_style += "#gnb input[type=text]{-webkit-appearance:none;-webkit-border-radius:0}\n"; gnb_style += "#gnb .blind{visibility:hidden;overflow:hidden;position:absolute;top:0;left:0;width:1px;height:1px;font-size:0;line-height:0}\n"; gnb_style += "#gnb #gnb_utility{float:right;position:relative;z-index:10}\n"; gnb_style += "#gnb #account{display:inline;float:left;position:relative;margin-left:3px;padding:2px 0 0 20px}\n"; gnb_style += "#gnb #account img{vertical-align:middle}\n"; gnb_style += "#gnb #account a.trc{display:inline-block;position:relative;margin:2px 1px 0 0;*margin-top:1px;vertical-align:middle}\n"; gnb_style += "#gnb #account a.trc strong{margin-right:4px;font-weight:normal;cursor:pointer}\n"; gnb_style += "#gnb #account a.trc .arr{margin-left:-2px;vertical-align:-2px}\n"; gnb_style += "#gnb #account a.trc:hover{border:0;text-decoration:none}\n"; gnb_style += "#gnb #account a.trc:hover strong{text-decoration:underline}\n"; gnb_style += "#gnb #account .secret_warning{position:relative;margin-right:4px;vertical-align:middle}\n"; gnb_style += "#gnb .lst_svc{float:left;padding:4px 0 0 1px}\n"; gnb_style += "#gnb .lst_svc li{float:left;padding:2px 7px 0 8px;background:url(http://static.naver.com/header/gnb/bg_bar01.gif) 0 2px no-repeat;letter-spacing:-1px;line-height:12px}\n"; gnb_style += "#gnb .lst_svc li.first{background:none !important}\n"; gnb_style += "#gnb .lst_svc li.more_menu{position:relative;z-index:20;padding-right:0}\n"; gnb_style += "#gnb .lst_svc li.more_menu a.more{padding-right:8px;background:url(http://static.naver.com/common/gnb/sp_arr.gif) 100% -16px no-repeat}\n"; gnb_style += "#gnb .lst_svc li .bubble{display:-moz-inline-block;display:-moz-inline-box;display:inline-block;height:12px;margin-right:4px;background:url(http://static.naver.com/common/gnb/bg_bubble.png) no-repeat 0 0;_background:none;color:#fff;font-family:tahoma;font-size:10px;letter-spacing:0;line-height:11px;text-indent:0;_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://static.naver.com/common/gnb/bg_bubble.png',sizingMethod='crop')}\n"; gnb_style += "#gnb .lst_svc li .bubble em{display:-moz-inline-block;display:-moz-inline-box;display:inline-block;position:relative;top:auto;right:-5px;_right:-3px;z-index:10;width:auto;height:12px;padding:0 3px 0 2px;_padding:0 3px 0 4px;background:url(http://static.naver.com/common/gnb/bg_bubble.png) no-repeat 100% 0;_background:none;color:#fff;font-family:tahoma;font-size:10px;letter-spacing:0;line-height:11px;*line-height:12px;text-indent:-4px;*text-indent:-2px;white-space:nowrap}\n"; gnb_style += "#gnb .lst_svc li .ie6_fix{display:-moz-inline-block;display:-moz-inline-box;display:inline-block;position:relative;left:-5px;*left:-4px;*top:0px;_width:4px;_height:11px;*margin-right:-4px;_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://static.naver.com/common/gnb/bg_bubble_ie6.png',sizingMethod='crop')}\n"; gnb_style += ":root #gnb .lst_svc li .ie6_fix{display:none}\n"; gnb_style += "#gnb form{float:left;margin-left:10px;padding:1px 1px 0 0}\n"; gnb_style += "#gnb .gnb_search{width:129px;_width:132px;height:21px;padding:0 0 0 3px;border:0;background:#6eb93b}\n"; gnb_style += "#gnb .box_window{width:110px;height:15px;margin-top:1px;padding:1px 1px 0 4px;border:0;color:#888;font-size:12px;line-height:12px;_line-height:14px;vertical-align:middle}\n"; gnb_style += "#gnb .btn_window{margin-top:1px;border:1px solid #6eb93b;border-left:0;vertical-align:middle}\n"; gnb_style += "#gnb .skin_usr{position:absolute;top:22px;right:56px;z-index:100}\n"; gnb_style += "#gnb .bx_layer{width:81px;_width:83px;border:1px solid #777;background:#fff}\n"; gnb_style += "#gnb .bx_layer ul{float:none;margin:8px 0 7px 9px;padding:0}\n"; gnb_style += "#gnb .bx_layer ul li{float:none;margin-bottom:5px;padding:0;background:none !important;line-height:16px}\n"; gnb_style += "#gnb .bx_layer ul li a{color:#444 !important}\n"; gnb_style += "#gnb_more{overflow:hidden;position:absolute;top:18px;right:0;z-index:20;width:217px;_width:228px;height:64px;_height:75px;padding:9px 0 0 9px;border:1px solid #777;background:#fff}\n"; gnb_style += "#gnb_more .lst_svc2{margin:0 !important;padding:0 0 3px 0}\n"; gnb_style += "#gnb_more .lst_svc2 li{float:left;width:35px;margin:0 0 7px;padding:0;background:none !important;line-height:14px;white-space:nowrap}\n"; gnb_style += "#gnb_more .lst_svc2 li.fix_wt{width:46px}\n"; gnb_style += "#gnb_more .lst_svc2 li.view_all{margin:0 0 0 -6px}\n"; gnb_style += "#gnb_more .lst_svc2 li.view_all a{display:inline-block;padding-left:6px;background:url(http://static.naver.com/common/gnb/sp_arr.gif) 0 4px no-repeat;color:#438a01 !important}\n"; gnb_style += "#gnb_more .lst_svc2 li a{color:#474747 !important;vertical-align:top}\n"; gnb_style += "#gnb_more .lst_svc2 li a:hover,#gnb_more .lst_svc2 li a:active,#gnb_more .lst_svc2 li a:focus{color:#438a01 !important}\n"; gnb_style += ".skin00{height:22px}\n"; gnb_style += "#gnb.skin00 #gnb_utility{background:#fff}\n"; gnb_style += ".skin01{height:19px;_height:23px;border-top:4px solid #ddd;background:#fff}\n"; gnb_style += "#gnb.skin01 #gnb_utility{margin-top:-4px;background:#fff url(http://static.naver.com/header/gnb/bg_square01.gif) 0 0 no-repeat}\n"; gnb_style += ".skin02{height:19px;_height:23px;border-top:4px solid #ddd;background-color:#f5f5f5}\n"; gnb_style += "#gnb.skin02 #gnb_utility{margin-top:-4px;background:#f5f5f5 url(http://static.naver.com/header/gnb/bg_square01.gif) 0 0 no-repeat}\n"; gnb_style += "#gnb.skin02 .box_window{background-color:#f5f5f5}\n"; gnb_style += ".skin06{height:19px;_height:23px;border-top:4px solid #585858;background:#171717 url(http://static.naver.com/header/gnb/bg_photogallery.gif) 0 0 repeat-x}\n"; gnb_style += "#gnb.skin06 #gnb_utility{margin-top:-4px;background:#171717 url(http://static.naver.com/header/gnb/bg_square02.gif) 0 0 no-repeat}\n"; gnb_style += "#gnb.skin06 #account{padding-top:3px}\n"; gnb_style += "#gnb.skin06 #account a{color:#969696}\n"; gnb_style += "#gnb.skin06 li{background:url(http://static.naver.com/header/gnb/bg_bar02.gif) 0 2px no-repeat}\n"; gnb_style += "#gnb.skin06 li a,#gnb.skin06 li a:link,#gnb.skin06 li a:active,#gnb.skin06 li a:visited{color:#969696}\n"; gnb_style += "#gnb.skin06 .gnb_search{background-color:#498e1b}\n"; gnb_style += "#gnb.skin06 .box_window{background:#121212}\n"; gnb_style += "#gnb.skin06 .skin_usr{right:58px}\n"; var gnb_style_element = document.createElement('style') gnb_style_element.setAttribute('id', 'gnb_style'); gnb_style_element.setAttribute('type', 'text/css'); if(gnb_style_element.styleSheet){ gnb_style_element.styleSheet.cssText = gnb_style; } else { var textnode = document.createTextNode(gnb_style); gnb_style_element.appendChild(textnode); } document.getElementsByTagName('head')[0].appendChild(gnb_style_element); try { document.getElementById('gnb').innerHTML = gnb_html; } catch (e) { var new_gnb = document.createElement('div'); new_gnb.innerHTML = gnb_html; var current_gnb = document.getElementById('gnb'); current_gnb.appendChild(new_gnb); } document.getElementById('gnb').className = "skin01"; var gnb_more_layer = { _mouseover_top: false, _mouseover_menu: false, _gnb_login: "https://nid.naver.com/nidlogin.login", showelement: function () { document.getElementById('gnb_more').style.top = "18px"; document.getElementById('gnb_more').style.right = "0px"; document.getElementById('gnb_more').style.position = "absolute"; document.getElementById('gnb_more')._hiding = false; document.getElementById('gnb_more').style.display = 'block'; }, hideelement: function () { if (gnb_more_layer._mouseover_top == true || gnb_more_layer._mouseover_menu == true) {} else { document.getElementById('gnb_more').style.display = 'none'; document.getElementById('gnb_more')._hiding = true; } }, show_top: function () { gnb_more_layer._mouseover_top = true; gnb_more_layer.showelement(); }, show_menu: function () { gnb_more_layer._mouseover_menu = true; gnb_more_layer.showelement(); }, hide_top: function () { gnb_more_layer._mouseover_top = false; setTimeout('gnb_more_layer.hideelement()', 100); }, hide_menu: function () { gnb_more_layer._mouseover_menu = false; setTimeout('gnb_more_layer.hideelement()', 100); }, clear_text: function () { if (document.getElementById('gnb_query').value == "통합검색") { document.getElementById('gnb_query').value = ""; } }, back_text: function () { if (document.getElementById('gnb_query').value == "") { document.getElementById('gnb_query').value = "통합검색"; } }, go_search: function () { if (document.getElementById('gnb_query').value == "통합검색") { document.getElementById('gnb_query').value = ""; } try { var obj = document.createElement("SCRIPT"); obj.src = 'http://www.naver.com/goSearch'; } catch (e) {} } } var gnb_user_layer = { _mouseover_top: false, _mouseover_menu: false, _gnb_me2day_url: "https://nid.naver.com/new_me2day/new_me2day.nhn?consumer_name=me2day&service_name=commcast&ret_url=", showelement: function () { document.getElementById('gnb_user').style.top = "22px"; document.getElementById('gnb_user').style.right = "5px"; document.getElementById('gnb_user').style.position = "absolute"; document.getElementById('gnb_user').style.left = (document.getElementById('gnb_nicknm').offsetWidth - 63) + "px"; document.getElementById('gnb_user')._hiding = false; document.getElementById('gnb_user').style.display = 'block'; }, hideelement: function () { if (gnb_user_layer._mouseover_top == true || gnb_user_layer._mouseover_menu == true) {} else { document.getElementById('gnb_user').style.display = 'none'; document.getElementById('gnb_user')._hiding = true; } }, show_top: function () { gnb_user_layer._mouseover_top = true; gnb_user_layer.showelement(); }, show_menu: function () { gnb_user_layer._mouseover_menu = true; gnb_user_layer.showelement(); }, hide_top: function () { gnb_user_layer._mouseover_top = false; setTimeout('gnb_user_layer.hideelement()', 100); }, hide_menu: function () { gnb_user_layer._mouseover_menu = false; setTimeout('gnb_user_layer.hideelement()', 100); } } function check_me2day() { switch (gnb_user_layer._gnb_me2day_url) { case 'http://nid.naver.com/new_me2day/me2day_sso.nhn': parent.location.replace(gnb_user_layer._gnb_me2day_url); break; default: openWindow(gnb_user_layer._gnb_me2day_url) return; } } function openWindow(target) { var centerWidth = (window.screen.width - 450) / 2; var centerHeight = (window.screen.height - 500) / 2; window.open(target, '_blank', 'width=440,height=400' + ',left=' + centerWidth + ',top=' + centerHeight + ',status=no,scrollbars=no,resizable=no,menubar=no,toolbar=no,location=no'); } function getReturnUrl() { var _mainUrl; try { _mainUrl = gnb_logout; } catch (e) { _mainUrl = "http://me.naver.com"; } _mainUrl = encodeURIComponent(_mainUrl); var returl = 'http://nid.naver.com/nidlogin.logout?returl=' + _mainUrl; try { location.replace(returl); } catch (e) {} } function showGNB(data) { if (data.loginStatus == 'Y') { document.getElementById('gnb_login_btn_img').src = "http://static.naver.com/common/gnb/101111/default/btn_gnb_logout.gif"; document.getElementById('gnb_login_btn_img').title="로그아웃"; document.getElementById('gnb_login_btn_img').alt="로그아웃"; document.getElementById('gnb_nicknm').innerHTML = ""+ data.nickName + "님\"\""; gnb_user_layer._gnb_me2day_url = data.me2dayUrl; try{ if(gnb_shortnick == "on" ){ shortNick('gnb_nicknm'); } } catch (e) {} try{ if(gnb_logout){ gnb_more_layer._gnb_login = "http://nid.naver.com/nidlogin.logout?returl="+gnb_logout; } else { gnb_more_layer._gnb_login = "http://nid.naver.com/nidlogin.logout"; } } catch(e) { gnb_more_layer._gnb_login = "http://nid.naver.com/nidlogin.logout"; } showMeCount(data.meCount + data.talkCount); document.getElementById('gnb_nicknm').style.display = "inline-block"; } else { document.getElementById('gnb_nicknm').style.display = "none" } try { if (gnb_searchbox == "on") { document.getElementById('gnb_searchbox').style.display = "inline-block"; } else { document.getElementById('gnb_searchbox').style.display = "none"; } } catch (e) { document.getElementById('gnb_searchbox').style.display = "none"; } document.getElementById('gnb_btn_login').style.display = "inline-block"; document.getElementById('gnb_utility').style.zIndex = 104; document.getElementById('gnb_login').href = gnb_more_layer._gnb_login; } function showMeCount(totalCount) { if(totalCount > 0){ var gnb_mecountplus = ""; if (totalCount > 999) { gnb_mecountplus = "+"; totalCount = 999; } document.getElementById('gnb_mecount_ie6fix').style.display = "inline-block"; document.getElementById('gnb_mecount').innerHTML = "" + totalCount + gnb_mecountplus + ""; if ( GNB_IsIE("9") ){ document.getElementById('gnb_bubble').style.paddingRight="2px"; } else if ( GNB_IsIE("8") ){ document.getElementById('gnb_bubble').style.textIndent="-4px"; document.getElementById('gnb_bubble').style.paddingRight="1px"; document.getElementById('gnb_mecount').style.paddingLeft="5px"; } else if( GNB_IsIE("7") ) { document.getElementById('gnb_bubble').style.paddingRight="1px"; document.getElementById('gnb_mecount').style.paddingLeft="1px"; } else if( GNB_IsIE("6") ) { document.getElementById('gnb_bubble').style.paddingRight="1px"; document.getElementById('gnb_mecount').style.paddingLeft="1px"; } else if( window.navigator.userAgent.indexOf("AppleWebKit") != -1){ document.getElementById('gnb_bubble').style.lineHeight="10px"; } document.getElementById('gnb_mecount').style.display = "inline-block"; } } function GNB_IsIE(IEVersion) { var agent = window.navigator.userAgent; if (agent.indexOf("MSIE " + IEVersion)!= -1) { return true; } else { return false; } } function getGNB() { var gnb_svcname; var gnb_tmplname; try{ gnb_svcname=gnb_service;} catch(e) {} try{ gnb_tmplname=gnb_template;} catch(e) {} var gnb_url = "http://gn.naver.com/getLoginStatus.nhn?callback=showGNB&charset=euckr&svc="+gnb_svcname+"&template="+gnb_tmplname; var gnb_script = document.createElement('script'); gnb_script.setAttribute('src', gnb_url); document.getElementsByTagName('head')[0].appendChild(gnb_script); } function shortNick(fm){ var nicknm_str = document.getElementById(fm).childNodes[0].data; if( nicknm_str.length > 10){ var shortened = nicknm_str.substr(0,10)+"...님"; document.getElementById(fm).childNodes[0].data = shortened; } }