//========== ÄíÅ°°ª Ã³¸® ÇÔ¼ö S
function getCookieVal (offset) {
	var endstr = document.cookie.indexOf (";", offset);
	if (endstr == -1)
		endstr = document.cookie.length;
	return unescape(document.cookie.substring(offset, endstr));
}

function GetCookie (name) {
	var arg = name + "=";
	var alen = arg.length;
	var clen = document.cookie.length;
	var i = 0;
	while (i < clen) {	//while open
		var j = i + alen;
		if (document.cookie.substring(i, j) == arg)
			return getCookieVal (j);
		i = document.cookie.indexOf(" ", i) + 1;
		if (i == 0)
			break; 
	}	//while close
	return null;
}
//========== ÄíÅ°°ª Ã³¸® ÇÔ¼ö E

//·Î±×ÀÎ °ü·Ã ---
function getCookieVal (offset) {
	var endstr = document.cookie.indexOf (";", offset);
	if (endstr == -1)
		endstr = document.cookie.length;
	return unescape(document.cookie.substring(offset, endstr));
}

function GetCookie (name) {
	var arg = name + "=";
	var alen = arg.length;
	var clen = document.cookie.length;
	var i = 0;
	while (i < clen) {	//while open
		var j = i + alen;
		if (document.cookie.substring(i, j) == arg)
			return getCookieVal (j);
		i = document.cookie.indexOf(" ", i) + 1;
		if (i == 0)
			break; 
	}	//while close
	return null;
}

//·Î±×ÀÎ
function loginFrame () {
	//ÆäÀÌÁö URL
	var returl = document.location; 
	if (returl == null || returl == ""){
		returl = M_SITE;
	}
	returl = escape(returl);

	var login_url = "https://membership.chosun.com/login/protect_sso/sso_user_info.jsp?returl="+returl;
	var logout_url = "https://membership.chosun.com/login/logout.jsp?returl="+returl;
	var regist_url = "https://membership.chosun.com/join/registUser.jsp?site=chosun";
	var join_url = "https://membership.chosun.com/join/registUser.jsp?act=myindex&site=chosun";
	var idpw_url = "https://membership.chosun.com/join/registUser.jsp?act=idpw&site=chosun";
	var logStr;

	//·Î±×ÀÎ¿©ºÎ - ÄíÅ°°ª È®ÀÎ
	if (!GetCookie('SMSESSION') || GetCookie('SMSESSION') == "LOGGEDOFF" || !GetCookie('SM_USER')) {
		logStr = "<a href=" + login_url + " target='_top'><img src='http://image.chosun.com/main/201003/login_btn.gif' alt='·Î±×ÀÎ' title='·Î±×ÀÎ'></a>&nbsp;";
		logStr += "<a id='memberLink' href='https://membership.chosun.com/join/registUser.jsp?site=chosun' target='_top'><img id='memberImg' src='http://image.chosun.com/main/201003/memberJoin_btn.gif' alt='È¸¿ø°¡ÀÔ' title='È¸¿ø°¡ÀÔ'></a>";
	}
	else if (!GetCookie('dz_nm') || !GetCookie('dz_info')) {	//20070406 rainy
	var relogin_url = "https://membership.chosun.com/login/protect_sso/sso_user_info.jsp?returl="+returl;
		parent.location.href = relogin_url;
	}
	else {
		logStr = "&nbsp;";
		logStr = logStr + "<a href=" + logout_url + " target='_top'><img src='http://image.chosun.com/cs/200908/simple_logout.gif' alt='·Î±×¾Æ¿ô' title='·Î±×¾Æ¿ô'></a>&nbsp;";
		logStr = logStr + "<a id='memberLink' href='https://membership.chosun.com/join/registUser.jsp?act=myindex&site=chosun' target='_top'><img id='memberImg'src='http://image.chosun.com/main/201003/infoModify_btn.gif' alt='Á¤º¸¼öÁ¤' title='Á¤º¸¼öÁ¤'></a>";
	}
	
	return logStr;
}



document.write(" \
<style type='text/css'> \
fieldset,img{border:none;} \
hr,legend{display:none;} \
th,td{font-size:12px;font-family:µ¸¿ò,Dotum,AppleGothic,sans-serif;} \
ul,li{list-style:none;} \
\
/*Reset*/\
*{margin:0;padding:0;}\
html,body{width:100%;height:100%;}\
body{background-color:#fff;*word-break:break-all;-ms-word-break:break-all;}\
body,input,button{color:#333; font:normal 12px/17px '±¼¸²',Gulim,'µ¸¿ò',Dotum,AppleGothic,Sans-serif;}\
h1,h2,h3,h4,h5,h6{font-size:12px;text-align:left;}\
img,fieldset,iframe{border:0 none;}\
li{list-style:none;}\
a{color:#333; text-decoration:none;}\
a:hover{text-decoration:underline;}\
a:visited{color:#888;}\
em,address{font-style:normal;}\
input,select{vertical-align:middle;}\
button,label{cursor:pointer;_cursor /**/:hand;}\
hr,legend,caption{display:none;}\
select{height:20px;}\
@media print{\
body{color:#000;}\
}\
\
/* Common */\
.link{cursor:pointer;}\
.ls{letter-spacing:-1px;}\
.b{font-weight:bold;}\
.u{text-decoration:underline;}\
\
.pr{position:relative;}	 .pa{position:absolute;}\
.c{clear:both;}\
.fl{float:left;}	.fr{float:right;}\
.al{text-align:left;}	.ar{text-align:right;}	.ac{text-align:center;}	.aj{text-align:justify;}\
.at{vertical-align:top;}	.am{vertical-align:middle;}	.ab{vertical-align:bottom;}\
.hide{display:none;}	.show{display:block;}\
\
.noBg{background:none !important;}\
.noBgImg{background-image:none !important;}\
.noBorder{border:0 none !important;}\
.trans{background-color:transparent;}\
.blind{position:absolute; display:block; overflow:hidden; left:0; top:-5000px;}\
\
.tblFixed{table-layout:fixed;}\
.txtBlock{display:inline-block;}\
\
.snb		{position:relative; width:970px; z-index:334; height:21px; padding-top:11px; text-align:left;}\
.topService{float:right;}\
.topService .miniGnb{float:left; margin-right:10px; padding-top:1px; background:url(http://image.chosun.com/cs/201003/snbLineBg.gif) no-repeat right 1px;}\
.topService .miniGnb dd{float:left; padding-right:10px;}\
.topService .servSite{float:left;}\
.topService .servSite dd{float:left; padding-right:10px;}\
#snb .topService .servSite dd a{color:#888;}\
.topService .servSite .snbMore .smListWrap{position:absolute; display:none; z-index:40; top:17px; left:-169px; _left:-167px; width:330px; border:1px solid #000; background:#fff;}\
.topService .servSite .snbMore .smListWrap .smList{height:70px; margin:13px 0 15px 26px;}\
.topService .servSite .snbMore .smListWrap .smList li{float:left; width:66px; padding-left:4px; background:url(http://image.chosun.com/cs/201003/snbDot.gif) no-repeat 0 7px; line-height:19px;}\
#snb .topService .servSite .snbMore .smListWrap .smList li a{color:#333; padding-right:0; background:none;}\
#snb .topService .servSite .snbMore .smListWrap .smList li a:visited{color:#333;}\
#snb .topService .servStie .snbMore .smListWrap .smList li a:hover{color:#333; text-decoration:underline;}\
.topService .servSite .snbMore .smListWrap .smList li.all{width:57px; background:url(http://image.chosun.com/cs/201003/snbMoreArrow.gif) no-repeat right 6px;}\
#snb .topService .servSite .snbMore .smListWrap .smList li.all a{color:#0e498d;}\
#snb .topService .servSite .snbMore .smListWrap .smList li.all a:visited{color:#0e498d;}\
.topService .memberShip{float:left;}\
.topService .memberShip dd{position:relative; float:left; top:-2px; margin-right:3px;}\
.snbMore{position:relative;}\
.snbMore a{padding-right:9px; background:url(http://image.chosun.com/cs/201003/snbBtmArrow.gif) no-repeat right 4px;}\
\
#myremot_view{position:absolute;top:0px;left:76px;width:208px;border:2px solid #afafaf;background:#fff url('http://image.chosun.com/cs/gnb/bg_myremot.gif') left top no-repeat;padding:0 0 12px 0;z-index:8;display:none;} \
.myremot_tit{position:relative;margin:4px 5px 0 6px;padding:5px 0 2px 17px;background:#e3e3e3 url('http://image.chosun.com/cs/gnb/ic_remot.gif') 3px 5px no-repeat;color:#000;font-weight:bold;} \
.myremot_tit span{position:absolute;top:3px;right:2px;} \
.myremot_tit span img#btn_close{margin:0 0 2px 2px;} \
.inbox_ff{width:197px;margin:4px 0 0 6px;background-color:#fff;} \
.inbox_ff .inbox_bor{width:195px;margin:1px;background-color:#fff;border:1px solid #dfdfdf;padding:8px 0 5px 0;overflow:hidden;} \
.inbox_bor p{position:relative;margin:0 1px 6px 1px;padding:0 0 0 7px;border-bottom:1px solid #d8d8d8;color:#bb3333;font-weight:bold;letter-spacing:-1px;} \
.inbox_ff .inbox_bor p span{position:absolute;top:0px;right:9px;font-weight:normal;color:#c86a6a;cursor:pointer;_cursor /**/:hand;} \
.inbox_ff .inbox_bor ul{float:none;clear:both;margin:3px 0 0 2px;padding:0 0 0 0;overflow:hidden;} \
.inbox_ff .inbox_bor ul li{float:left;width:56px;margin:0 0 0 5px;display:inline;} \
.inbox_ff .inbox_bor ul li a{color:#c86a6a;letter-spacing:-1px;} \
.view_art_tit{float:none;clear:both;margin:17px 0 0 10px;width:188px;border-bottom:1px solid #d1d1d1;font-weight:bold;color:#555555;overflow:hidden;} \
.view_art_list{float:none;clear:both;margin:5px 0 0 4px;width:194px;} \
.view_art_list li span{font-weight:bold;color:#a4a4a4;} \
.view_art_list li{margin:3px 0 0 0;letter-spacing:-1px;} \
.none_art{padding:18px 0 25px 0; text-align:center;color:#a4a4a4;} \
.remot_tab{margin:10px 0 0 10px;width:188px;background:url('http://image.chosun.com/cs/gnb/bg_remot_tab.gif') left top no-repeat;overflow:hidden;} \
.remot_tab li{float:left;width:61px;margin:1px 0 0 1px;padding:4px 0 4px 0;display:inline;text-align:center;letter-spacing:-1px; cursor:pointer;_cursor /**/:hand;} \
.remot_tab li#rtab2{width:62px;} \
.remot_tab li a{color:#666666;} \
.remot_tab li.on{background-color:#fff;font-weight:bold;color:#666666;} \
.remot_tab li.off{background:url('http://image.chosun.com/cs/gnb/bg_remot_tab_off.gif') left top no-repeat;font-weight:normal;} \
.remot_tab li.off2{background:url('http://image.chosun.com/cs/gnb/bg_remot_tab2_off.gif') left top no-repeat;font-weight:normal;} \
.my_list{float:none;clear:both;margin:5px 0 0 4px;width:194px;display:none;} \
.my_list li span{font-weight:bold;color:#a4a4a4;} \
.my_list li{margin:3px 0 0 0;letter-spacing:-1px;} \
.my_list_more {text-align:right; padding:0 5px 0 0;} \
\
#myremot_set{position:absolute;width:604px;border:2px solid #afafaf;background-color:#fff;top:128px;right:0px;z-index:9;padding:0 0 15px 0;overflow:hidden;display:none;} \
#myremot_set p.desc{position:relative;width:572px;color:#666;margin:22px 0 10px 20px;} \
#myremot_set p.desc span{position:absolute;top:-11px;right:0px;} \
.set_list{float:left;width:91px;margin:0 6px 0 16px;display:inline;} \
.set_list p{width:91px;background-color:#efefef;padding:6px 0 2px 0;text-align:center;color:#333;font-weight:bold;} \
.set_list ul{margin:0 0 0 5px;padding:5px 0 20px 0;} \
.set_list ul li{margin:5px 0 0 0;color:#333;} \
.submit_img{float:none;clear:both;position:relative;width:575px;margin:0 0 0 16px;padding:12px 0 0 0;border-top:1px solid #d2d2d2;text-align:center;} \
.submit_img span{position:absolute;right:0px;top:12px;} \
.inputCheck{vertical-align:middle; width:13px; height:13px;} \
\
#logo_etc{width:970px;float:none;clear:both;margin:0;padding:0; height:60px; overflow:hidden;} \
#logo{position:relative;width:235px;float:left;margin:0 0px 0 19px;display:inline;} \
#logo h1{float:left;font-style:normal;font-size:12px;margin:7px 4px 0 0;} \
#logo h1 img{vertical-align:top;} \
#logo h2{float:left;font-style:normal;font-size:12px;margin-top:7px;} \
#logo h2 img{vertical-align:top;} \
#logo ul#login{position:absolute;top:38px;left:0px;} \
#logo ul#login li{float:left;font-size:11px;color:#666666;} \
#logo ul#login li a{font-size:11px;color:#666666;letter-spacing:-1px;line-height:12px;} \
#logo ul#login li span{color:#333;font-weight:bold;} \
#logo ul#login li span.user_name{color:#666;} \
#lang{float:left;width:55px;margin:0 55px 0 0;line-height:16px;} \
#tot_search{width:266px;float:left;margin:8px 0 0 0;} \
#tot_search fieldset input{vertical-align:middle;} \
.search_box{position:relative;background:url('http://image.chosun.com/cs/gnb/bg_search.gif') left top no-repeat;margin-right:3px;width:250px;height:24px;} \
.search_box input.search_text{border:0;width:205px;margin:3px 0 2px 3px;font-size:12px;font-family:'Dotum';color:#333;ime-mode:active;} \
.search_box input.search_btn{position:absolute;top:0px;left:217px;} \
.popular_search{float:none;clear:both;margin-top:3px;} \
#top_ban{float:right;width:250px;height:57px;margin:5px 0 -2px 0;padding:0;} \
</style> \
");


	var lVar_Layer=false;
	function lview(viewID){
		if(lVar_Layer==true){
		document.getElementById(viewID).style.display = 'none';
		lVar_Layer=false;
		} else {
		document.getElementById(viewID).style.display = 'block';
		lVar_Layer=true;
		}
		}
		function lclose(viewID){
		document.getElementById(viewID).style.display = 'none';
		lVar_Layer=false;
	}


var gnbWidthVal, gnbCenterWidth ;
if (gnbWidthVal == null || gnbWidthVal == "") gnbWidthVal = "835" ;
if (eval(gnbWidthVal) <= 835) gnbWidthVal = "835" ;
gnbCenterWidth = 450 + (gnbWidthVal-835) ;

document.write(" \
<div class='snb' id='snb'>\
	<div class='topService'>\
		<dl class='miniGnb'>\
			<dt class='blind'>¹Ì´ÏGNB</dt>\
			<dd><a href='http://www.chosun.com/'><img src='http://image.chosun.com/cs/gnb/logo_chosun_s2.gif' alt='chosun.com'></a></dd>\
			<dd><a href='http://www.chosun.com/'><img src='http://image.chosun.com/cs/201003/snbNews.gif' alt='´º½º'></a></dd>\
			<dd><a href='http://news.chosun.com/editorials/'><img src='http://image.chosun.com/cs/201003/snbOpinion.gif' alt='¿ÀÇÇ´Ï¾ð'></a></dd>\
			<dd><a href='http://news.chosun.com/sports/'><img src='http://image.chosun.com/cs/201003/snbSports.gif' alt='½ºÆ÷Ã÷'></a></dd>\
			<dd><a href='http://news.chosun.com/ent/'><img src='http://image.chosun.com/cs/201003/snbEnt.gif' alt='¿¬¿¹'></a></dd>\
			<dd><a href='http://newsplus.chosun.com/'><img src='http://image.chosun.com/cs/201003/snbLife.gif' alt='¶óÀÌÇÁ'></a></dd>\
		</dl>\
		<dl class='servSite'>\
			<dt class='blind'>¼­ºñ½º »çÀÌÆ®</dt>\
			<dd><a href='http://blog.chosun.com/' target='_blank'><strong>ºí·Î±×</strong></a></dd>\
			<dd class='snbMore'>\
				<a href='#' onfocus='showMore(\"smList\");' onblur='hideMore(\"smList\");' onmouseover='showMore(\"smList\");' onmouseout='hideMore(\"smList\");'>´õº¸±â</a>\
				<div class='smListWrap' id='smList' onmouseover='showMore(\"smList\");' onmouseout='hideMore(\"smList\");'>\
					<ul class='smList'>\
						<li><a href='http://myhome.chosun.com/'>¸¶ÀÌÈ¨</a></li>\
						<li><a href='http://newsplus.chosun.com/inside/'>ÀÎ»çÀÌµå</a></li>\
						<li><a href='http://newsplus.chosun.com/inside/list.html?in_theme=4&in_sitecd=H&in_categ=H1'>Why</a></li>\
						<li><a href='http://photorep.chosun.com'>Æ÷Åä¸®Æ÷ÅÍ</a></li>\
						<li class='c'><a href='http://focus.chosun.com/issue/smain_issue.jsp'>ÀÌ½´</a></li>\
						<li><a href='http://search.chosun.com/search/personcondition.search'>ÀÎ¹°DB</a></li>\
						<li><a href='http://bemil.chosun.com/'>À¯¿ë¿øM</a></li>\
						<li><a href='http://srchdb1.chosun.com/pdf/i_service/'>PDFÁö¸é</a></li>\
						<li class='c'><a href='http://careview.chosun.com/'>Ä«¸®ºä</a></li>\
						<li><a href='http://danmee.chosun.com/'>´Ü¹Ì</a></li>\
						<li><a href='http://keywui.chosun.com/'>Å°À§</a></li>\
						<li><a href='http://golf.chosun.com/'>°ñÇÁ</a></li>\
						<li class='c'><a href='http://comic.chosun.com/'>¸¸È­</a></li>\
						<li><a href='http://health.chosun.com/'>Çï½º</a></li>\
						<li><a href='http://review.chosun.com/'>¸®ºä</a></li>\
						<li class='all'><a href='http://news.chosun.com/section/customer/sitemap.html'>ÀüÃ¼º¸±â</a></li>\
					</ul>\
				</div>\
			</dd>\
		</dl>\
		<dl class='memberShip'>\
			<dt class='blind'>¸â¹ö¸Þ´º</dt>\
			<dd>" +loginFrame()+ "</dd>\
		</dl>\
	</div>\
</div>\
");





var gnbTitImg, gnbTitLink ;
var gnbTitArea ;

if (gnbTitImg != null && gnbTitImg !="" && gnbTitImg.charAt(0) != '$') gnbTitArea = 1 ;
else gnbTitArea = 0 ;

function gnbTitViewer(){
 if (gnbTitLink) gnbTitObj = "<a href=" + gnbTitLink + "><img src=" + gnbTitImg + " border='0' alt='' /></a>" ;
 else gnbTitObj = "<img src=" + gnbTitImg + " border='0' alt='' />" ;
 return gnbTitObj ;
}




if (gnbTitArea){
document.write(" \
<style type='text/css'>\
.logoEtc	{position:relative; width:970px; min-height:68px;}\
.logoEtc h1{float:left; margin-top:13px;}\
.logoEtc h1 img{vertical-align:top;}\
.logoEtc .etcAd{float:left; padding-left:133px;}\
.searchFormBx{position:absolute; top:17px; right:0; width:285px;}\
.searchFormBx dt{position:absolute; display:block; overflow:hidden; left:0; top:-5000px;}\
.searchTerm{position:absolute; top:4px; left:2px; width:211px; height:25px; padding:3px 0 5px 5px; border:0 none; font-family:Dotum;}\
.InputOutline{float:left; display:inline-block; width:219px; width:222px\\9; height:31px; height:35px\\9; border:2px solid #c51919;}\
.searchResult{float:left; margin-left:-3px\\9; border:0 !important;}\
\ #gnb_new{float:none;clear:both;position:relative;width:970px;height:39px;margin:0;background:url(http://image.chosun.com/cs/gnb/bg_forum_gnb.gif) left top repeat-x;z-index:2;}\
#gnb1{float:left;margin:9px 0 0 32px;display:inline;}\
#gnb1 li{position:relative;float:left;margin:0;}\
#gnb1 li span{padding:0 15px 0 15px;}\
.gnb2{position:absolute;top:23px;left:0px;display:none;width:100px;padding:14px 0 15px 0;border:2px solid #544ea0;background-color:#fff;overflow:hidden;}\
.gnb2 li{float:none !important;margin:6px 0 0 5px !important;}\
.gnb2 li span{font-weight:bold;color:#999;padding:0 0 0 0 !important;}\
.gnb2 li a{color:#333 !important;font-weight:normal !important;text-decoration:none !important;}\
.gnb2 li a:hover{text-decoration:underline !important;}\
#gnb3{float:right;margin:8px 10px 0 0;display:inline;}\
#gnb3 li{float:left;}\
#all_ser { top:0px; }\
#all_list{width:270px;text-align:left;}\
</style>\
	<!-- logo_etc --> \
<div class='logoEtc'>\
<h1>" + gnbTitViewer() + "</h1>\
	<div class='etcAd'>\
		<iframe src='http://news.chosun.com/svc/with/common/promotion.html' width='270' height='65' marginwidth='0' marginheight='0' scrolling='no' frameborder='0'></iframe>\
	</div>\
	\
	<dl class='searchFormBx'>\
	<dt>°Ë»ö</dt>\
	<dd>\
		<form method='get' name='searchForm' id='id_searchForm' action='http://search.chosun.com/search/total.search' target='_blank' accept-charset='utf-8' onsubmit='goSearch(); return false;'>\
		<fieldset>\
			<legend>ÅëÇÕ°Ë»ö</legend>\
			<span class='InputOutline'><input type='text' id='query' name='query' class='searchTerm' title='°Ë»ö¾î ÀÔ·Â'></span><input type='image' src='http://image.chosun.com/cs/201003/searchBtn.gif' alt='°Ë»ö' title='°Ë»ö' class='searchResult'>\
		</fieldset>\
		</form>\
	</dd>\
	</dl>\
</div>\
<hr>\
");
}


// º¸¿©ÁÖ±â °¨Ãß±â
function showMore(obj,stat){
	showStat = 1;
	document.getElementById(obj).style.display = "block";
}
function hideMore(obj){
	showStat = 0;
	setTimeout(function hide(){if(showStat == 0){document.getElementById(obj).style.display = "none";}}, 100);
}

//º¸¿©ÁÖ±â °¨Ãß±â
function ShowBx(obj){document.getElementById(obj).style.display = "block";}
function HideBx(obj){document.getElementById(obj).style.display = "none";}

// °Ë»ö

function goSearch() {
	var f = document.getElementById('id_searchForm');
	document.charset = 'utf-8';
	f.submit();
	document.charset = 'euc-kr';
}
