document.write("<div id='ListBar' class='basic'><div style='float:left;'><img src='http://image.chosun.com/cs/200708/images/icon_myhome.gif'> <a href='http://myhome.chosun.com'>¸¶ÀÌÈ¨</a></div> <div style='float:right;'><img src='http://image.chosun.com/cs/200708/images/icon_email.gif'> <a href='javascript:mailOpen_bt()'>ÀÌ¸ÞÀÏ</a> <img src='http://image.chosun.com/cs/200708/images/icon_print.gif'> <a href=\"javascript:printOpen_bt('')\">ÇÁ¸°Æ®</a> <img src='http://image.chosun.com/cs/200708/images/icon_list.gif'> <a href='javascript:goList_bt()'>±â»ç¸ñ·Ï</a> <img src='http://image.chosun.com/cs/200708/images/icon_top.gif'> <a href='#'>¸ÇÀ§·Î</a></div></div>");

function getDzCookie(name) {
var cookies = document.cookie;
var value  = "";
if(cookies.indexOf(name) != -1) {
var start = cookies.indexOf(name) + name.length + 1;
var end   = cookies.indexOf(";",start);

if(end == -1) end = cookies.length;
value = cookies.substring(start,end);
value = unescape(value);
}
return value;
}

//ÇÁ¸°Æ®
function printOpen_bt(type) {
windowOpen_bt ("/svc/news/printContent.html?type="+type, 615, 550, 'yes');
}
//ÀÌ¸ÞÀÏ
function mailOpen_bt() {
if(!getDzCookie('SMSESSION') || getDzCookie('SMSESSION') == "LOGGEDOFF" || !getDzCookie('SM_USER') || !getDzCookie('dz_info')) {
alert('±â»ç ÀÌ¸ÞÀÏº¸³»±â ±â´ÉÀº ·Î±×ÀÎ ÈÄ »ç¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.');
location.href = "http://membership.chosun.com/login/protect_sso/sso_user_info.jsp?returl=" + escape(location.href);
return false;
}
windowOpen_bt ("/svc/news/sendContent.html", 480, 500, 'no');
}

function windowOpen_bt (url, width, height, isresize) {
winopen=window.open(url, 'pbml_win','toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,scrollbars='+isresize+',width='+width+',height='+height);
}

//±â»ç¸ñ·Ï
function goList_bt () {
	//http://news.chosun.com/svc/list_in/list.html?catid=1&js_name=economy.
	var listurl = "http://choen.chosun.com/svc/list_in/list.html";
	if (typeof(CatID) != "undefined") {
			listurl += "?catid="+CatID; if (typeof(CatCODE) != "undefined") listurl += "&js_name"+CatCODE;
			location.href = listurl;
	}
}