document.write(" \
<style type='text/css'> \
#lnb{position:relative;float:right;margin:9px 0 0 0;z-index:1000;} \
#lnb li.spn_chosun,#lnb li.busi,#lnb li#all_ser,#lnb li#myremot{float:left;color:#333333;} \
#lnb li.menu_font{float:left;color:#333333;font-size:12px;padding-top:3px;letter-spacing:-1px; font-family: 'Dotum', 'µ¸¿ò';} \
#lnb li img{vertical-align:middle;margin:0 0 2px 0;cursor:pointer;_cursor /**/:hand;} \
#lnb li span{padding:0 2px 0 1px;} \
#lnb li#all_ser{position:relative;} \
#lnb li#myremot{position:relative;margin:0 0 0 12px;display:inline;} \
#all_list{position:absolute;top:15px;right:0px;width:267px;padding:12px 0 6px 11px;border:2px solid #afafaf;background-color:#fff;display:none;z-index:7; color:#333333; font-family: 'Dotum', 'µ¸¿ò'; font-size:12px} \
#all_list ul{float:left;margin:0 20px 0 0;} \
#all_list ul.lastchild{margin:0;} \
#all_list ul li{float:none;margin:0 0 3px 0;letter-spacing:-1px;} \
#all_list ul li.all_view a{color:#cb7273;} \
\
#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; font-size:12px;font-family: 'Dotum', 'µ¸¿ò';} \
.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;font-size:12px;font-family: 'Dotum', 'µ¸¿ò';} \
.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;font-size:12px;font-family: 'Dotum', 'µ¸¿ò';} \
.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;font-size:12px;font-family: 'Dotum', 'µ¸¿ò';} \
.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;font-size:12px;font-family: 'Dotum', 'µ¸¿ò';} \
.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;font-size:12px;font-family: 'Dotum', 'µ¸¿ò';} \
.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;font-size:12px;font-family: 'Dotum', 'µ¸¿ò';} \
.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; font-family: 'Dotum', 'µ¸¿ò'; font-size:12px;} \
#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;font-size:12px;font-family: 'Dotum', 'µ¸¿ò';} \
.set_list ul{margin:0 0 0 5px;padding:5px 0 20px 0;} \
.set_list ul li{margin:5px 0 0 0;color:#333;font-size:12px;font-family: 'Dotum', 'µ¸¿ò';} \
.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;} \
</style> \
");



document.write(" \
	<ul id='lnb'> \
		<li class='menu_font'><a href='http://news.chosun.com/'>´º½º</a><span> | </span></li> \
		<li class='menu_font'><a href='http://news.chosun.com/se/'>½ºÆ÷Ã÷¡¤¿¬¿¹</a><span> | </span></li> \
		<li class='menu_font'><a href='http://newsplus.chosun.com/'>´º½ºÇÃ·¯½º</a><span> | </span></li> \
		<li class='menu_font'><a href='http://focus.chosun.com/'>Æ÷Ä¿½º</a><span> | </span></li> \
		<li class='menu_font'><a href='http://blog.chosun.com/' target='_blank'>ºí·Î±×</a><span> | </span></li> \
		<li class='menu_font'><a href='http://morningplus.chosun.com/' target='_blank'>¸ð´×ÇÃ·¯½º</a><span> | </span></li> \
		<li id='all_ser' onMouseOut=\"lclose('all_list');\"> \
			<img src='http://image.chosun.com/cs/gnb/bar_allservice.gif' alt='ÀüÃ¼¼­ºñ½ºº¸±â' onMouseOver=\"lview('all_list');\"> \
			<div id='all_list' onMouseOver=\"lview('all_list');\"> \
				<ul> \
					<li><a href='http://danmee.chosun.com/?Dep0=chosunmain&amp;Dep1=gnb&amp;Dep2=bar&amp;Dep3=danmee' target='_blank'>´Ü¹Ì</a></li> \
					<li><a href='http://travel.chosun.com/?Dep0=chosunmain&amp;Dep1=gnb&amp;Dep2=bar&amp;Dep3=travel' target='_blank'>¿©Çà<a></li> \
					<li><a href='http://careview.chosun.com/?Dep0=chosunmain&amp;Dep1=gnb&amp;Dep2=bar&amp;Dep3=careview' target='_blank'>Ä«¸®ºä</a></li> \
					<li><a href='http://people.chosun.com/?Dep0=chosunmain&amp;Dep1=gnb&amp;Dep2=bar&amp;Dep3=people'>ÀÎ¹°Á¤º¸</a></li> \
				</ul> \
				<ul> \
					<li><a href='http://golf.chosun.com/?Dep0=chosunmain&amp;Dep1=gnb&amp;Dep2=bar&amp;Dep3=golf' target='_blank'>°ñÇÁ</a></li> \
					<li><a href='http://keywui.chosun.com/?Dep0=chosunmain&amp;Dep1=gnb&amp;Dep2=bar&amp;Dep3=keywui' target='_blank'>Å°À§</a></li> \
					<li><a href='http://kid.chosun.com/?Dep0=chosunmain&amp;Dep1=gnb&amp;Dep2=bar&amp;Dep3=kid' target='_blank'>¼Ò³âÁ¶¼±</a></li> \
					<li><a href='http://comic.chosun.com/?Dep0=chosunmain&amp;Dep1=gnb&amp;Dep2=bar&amp;Dep3=comic' target='_blank'>¸¸È­</a></li> \
					</ul> \
				<ul> \
					<li><a href='http://cafe.chosun.com/?Dep0=chosunmain&amp;Dep1=gnb&amp;Dep2=bar&amp;Dep3=cafe' target='_blank'>Ä«Æä</a></li> \
					<li><a href='http://bemil.chosun.com/?Dep0=chosunmain&amp;Dep1=gnb&amp;Dep2=bar&amp;Dep3=bemil' target='_blank'>À¯¿ë¿øM</a></li> \
					<li><a href='http://issue.chosun.com/?Dep0=chosunmain&amp;Dep1=gnb&amp;Dep2=bar&amp;Dep3=issue'>ÀÌ½´</a></li> \
					<li><a href='http://weather.chosun.com/'>³¯¾¾</a></li> \
				</ul> \
				<ul class='lastchild'> \
					<li><a href='http://review.chosun.com/?Dep0=chosunmain&amp;Dep1=gnb&amp;Dep2=bar&amp;Dep3=review' target='_blank'>¸®ºä</a></li> \
					<li><a href='http://health.chosun.com/?Dep0=chosunmain&amp;Dep1=gnb&amp;Dep2=bar&amp;Dep3=health' target='_blank'>Çï½º</a></li> \
					<li><a href='http://srchdb1.chosun.com/pdf/i_service/?Dep0=chosunmain&amp;Dep1=gnb&amp;Dep2=bar&amp;Dep3=pdf'>PDF¡¤Áö¸é</a></li> \
					<li class='all_view'><a href='http://www.chosun.com/section/customer/sitemap.html?Dep0=chosunmain&amp;Dep1=gnb&amp;Dep2=bar&amp;Dep3=all'>ÀüÃ¼º¸±â <img src='http://image.chosun.com/cs/gnb/ic_list.gif' alt=''></a></li> \
				</ul> \
			</div> \
		</li> \
		<li id='myremot'> \
			<img src='http://image.chosun.com/cs/gnb/btn_myrem.gif' alt='¸¶ÀÌ¸®¸ðÄÜ' onClick='javascript:openMyRemoteView()'> \
");



var lVar=false;
function lview(viewID){
	if(lVar==true){
	document.getElementById(viewID).style.display = 'none';
	lVar=false;
	} else {
	document.getElementById(viewID).style.display = 'block';
	lVar=true;
	}
	}
	function lclose(viewID){
	document.getElementById(viewID).style.display = 'none';
	lVar=false;
}


// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// ¸¶ÀÌ¸®¸ðÄÜ APIÁ¤ÀÇ
// ¸¶ÀÌÈ¨¿¡¼­ ºÐ¸®ÇØ¼­ ¸î°¡Áö ÇÔ¼ö¸¦ µû·ÎÀÌ Á¤ÀÇÇÏ´Â °ÍÀº ÇØ´çÆäÀÌÁö¸¦ ¸¶ÀÌÈ¨°ú ºÐ¸®µÇ¼­ ÀÛµ¿ÇÒ ¼ö ÀÖµµ·Ï ÇÏ±â À§ÇØ¼­ÀÓ

var MYREMOTECONST = new Object();
MYREMOTECONST.DEFAULT = [ "¸¸Æò", "ºñÁö´Ï½º¾Ø", "Çï½º", "¹®È­¾ß³îÀÚ", "ÇÃ·¡½Ã°ÔÀÓ", "·©Å·´º½º" ];
MYREMOTECONST.myremoteLinkCookieName = "myremote_links";
MYREMOTECONST.myremoteOpenCookieName = "myremote_open";
MYREMOTECONST.myremoteMaxLink = 9;

var MYREMOTEVAR = new Object();
MYREMOTEVAR.myremoteLink = [];

// ¸¶ÀÌ¸®¸ðÄÜ Ç×¸ñ¹è¿­
// !!! ¾Æ·¡¹è¿­Àº ±× ¼ø¼­¿¡ µû¶ó¼­ ¸¶ÀÌÈ¨ÆäÀÌÁöÀÇ ¼³Á¤°ú °ü·ÃÀÌ ¸¹½À´Ï´Ù. ¸¶ÀÌÈ¨¼­¹ö¿¡ ÀåÂøµÇ´Â
//     ½ºÅ©¸³Æ®¶ó¸é ¾Æ·¡ ¹è¿­À» ¼öÁ¤ÇÒ ¶§ ¸¶ÀÌÈ¨ÆäÀÌÁöµµ °°ÀÌ ¿¬µ¿ÇÒ ¼ö ÀÖµµ·Ï ÁÖÀÇÇÏ¿©¾ß ÇÕ´Ï´Ù.
MYREMOTECONST.URLS =
{
	// ´º½º
	"ÃÖ½Å±â»ç":"http://news.chosun.com/svc/list_in/list.html"
	, "°æÁ¦":"http://news.chosun.com/economy/"
	, "Á¤Ä¡":"http://news.chosun.com/politics/"
	, "»çÈ¸":"http://news.chosun.com/national/"
	, "±¹Á¦":"http://news.chosun.com/international/"
	, "¹®È­":"http://news.chosun.com/culture/"
	, "»ç¼³/Ä®·³":"http://news.chosun.com/editorials/"
	, "½ºÆ÷Ã÷":"http://news.chosun.com/sports/"
	, "¿¬¿¹":"http://news.chosun.com/ent/"
	, "Æ÷Åä":"http://photo.chosun.com/"
	, "¸¸Æò":"http://photo.chosun.com/svc/list/cartoon_list.html?catid=5&amp;Dep0=chosunmain&amp;Dep1=gnb&amp;Dep2=myremote&amp;Dep3=cartoon"
	, "µ¿¿µ»ó":"http://video.chosun.com/"
	, "Æ÷Ä¿½º":"http://focus.chosun.com/"
	, "ÀÌ½´":"http://issue.chosun.com/"
	// ´º½ºÇÃ·¯½º
	, "°ñÇÁ":"http://golf.chosun.com/"
	, "´Ü¹Ì":"http://danmee.chosun.com/"
	, "¸®ºä":"http://review.chosun.com/"
	, "¹®È­¾ß³îÀÚ":"http://playculture.chosun.com/?Dep0=chosunmain&amp;Dep1=gnb&amp;Dep2=myremote&amp;Dep3=culture"
	, "ºÏ½º":"http://books.chosun.com/"
	, "ºÕ¾÷ÄÚ¸®¾Æ":"http://boomup.chosun.com/"
	, "ºñÁö´Ï½º¾Ø":"http://businesstv.chosun.com/?Dep0=chosunmain&amp;Dep1=gnb&amp;Dep2=myremote&amp;Dep3=businesstv"
	, "¾ÆÆ®N":"http://art.chosun.com/"
	, "¿µÈ­":"http://cinema.chosun.com/servlet/cinema.MakeList.DispNowMList?dir=pre/prelist_dir"
	, "Ä«¸®ºä":"http://careview.chosun.com/"
	, "Å°À§´åÄÄ":"http://keywui.chosun.com/"
	, "Æ®·¡ºíN":"http://travel.chosun.com/?Dep0=chosunmain&amp;Dep1=gnb&amp;Dep2=myremote&amp;Dep3=travel"
	, "Çï½º":"http://health.chosun.com/?Dep0=chosunmain&amp;Dep1=gnb&amp;Dep2=myremote&amp;Dep3=health"
	// Ä¿¹Â´ÏÆ¼
	, "Ä«Æä":"http://cafe.chosun.com/"
	, "ºí·Î±×":"http://blog.chosun.com/"
	, "ºí·Î±×´º½º":"http://blognews.chosun.com/"
	, "ºí·Î±×±âÀÚ":"http://blogreporter.chosun.com/pressmain.screen"
	, "Åä·Ð¸¶´ç":"http://forum.chosun.com/"
	, "100ÀÚÆò":"http://newsplus.chosun.com/ranking/list.html?site=bbs"
	, "À¯¿ë¿ø M":"http://bemil.chosun.com/"
	, "¹Ú¼±ÀÌ W":"http://special.chosun.com/w/index.html"
	, "±è±âÃ¶ B":"http://special.chosun.com/b/index.html"
	// ¼­ºñ½º
	, "¸¶ÀÌÈ¨":"http://myhome.chosun.com/"
	, "¸ð´×ÇÃ·¯½º":"http://morningplus.chosun.com/"
	, "·©Å·´º½º":"http://news.chosun.com/ranking/"
	, "°Ë»öÇÃ·¯½º":"http://search.chosun.com/"
	, "°ÔÀÓ¾÷":"http://gameup.chosun.com/"
	, "¸¸È­":"http://comic.chosun.com/ "
	, "¹«Çù":"http://promurim.chosun.com/main.asp"
	, "¿î¼¼":"http://unse.chosun.com/"
	, "ÇÃ·¡½Ã°ÔÀÓ":"http://flashgame.chosun.com/game_flash/?Dep0=chosunmain&amp;Dep1=gnb&amp;Dep2=myremote&amp;Dep3=game"
	, "¼ºÀÎ¹®ÇÐ°ü":"http://redbook.chosun.com/"
	, "RSS":"http://rssplus.chosun.com/rss/"
	, "¸ð¹ÙÀÏ":"http://mobile.chosun.com/"
	, "¾ÆÀÌ¸®´õ":"http://ireader.chosun.com/"
	, "?¾È÷½ºÅä¸?":"http://news.chosun.com/svc/top_history/top.html"
	, "¿äÀÏº°¿¬Àç":"http://www.chosun.com/chosun/serialList.html"
	// Á¤º¸
	, "Çìµå¶óÀÎ":"http://srchdb1.chosun.com/headline/"
	, "PDFº¸±â":"http://srchdb1.chosun.com/pdf/i_service/"
	, "ÀÎ¹°Á¤º¸":"http://people.chosun.com/?Dep0=chosunmain&amp;Dep1=gnb&amp;Dep2=myremote&amp;Dep3=people"
	, "³¯¾¾":"http://weather.chosun.com/"
	, "Ãë¾÷Á¤º¸":"http://joba.chosun.com/"
	, "Ã¢¾÷Á¤º¸":"http://moneta.chosun.com/"
	, "¿Â¶óÀÎ¼­Á¡":""
	, "ºê·£µå":"http://brandplus.chosun.com/"
	, "¸ÀÀÖ´Â°øºÎ":"http://study.chosun.com/"
	// ¸Å°ÅÁø
	, "½ºÆ÷Ã÷Á¶¼±":"http://sports.chosun.com/"
	, "ÁÖ°£Á¶¼± ":"http://weekly.chosun.com/"
	, "¼Ò³âÁ¶¼±":"http://kid.chosun.com/"
	, "¿ù°£»ê":"http://san.chosun.com/"
	, "¿ù°£Á¶¼±":"http://monthly.chosun.com/"
	, "¿©¼ºÁ¶¼±":"http://woman.chosun.com/"
	, "°ÔÀÓÁ¶¼±":""
};


// ¸¶ÀÌ¸®¸ðÄÜ ¼³Á¤ °ü·Ã ÇÔ¼ö Á¤ÀÇ 
var MYREMOTEAPI = new Object();

/**
 *	ÄíÅ°°ªÀ» ÀÐ¾î¿Â´Ù.
 *	@param keywords: °Ë»ö¾î ¹è¿­
 */
MYREMOTEAPI.loadCookie = function(name)
{
	var cookies = document.cookie.split("; ");

	for ( var i = 0; i < cookies.length; i++ )
	{
		var tokens = cookies[i].split("=");
		
		if ( name == tokens[0] ) {
			//alert("name:"+tokens[0]+" , value:"+unescape(tokens[1]));
			return unescape(tokens[1]);
		}
	}
	return null;
}

/**
 *	ÄíÅ°°ªÀ» ¼³Á¤ÇÑ´Ù.
 *	@param keywords: °Ë»ö¾î ¹è¿­
 */
MYREMOTEAPI.saveCookie = function(name, value)
{
	var argv = arguments;
	var argc = arguments.length;
	var expires = (2 < argc) ? argv[2] : null;
	var path = (3 < argc) ? argv[3] : null;
	var domain = (4 < argc) ? argv[4] : null;
	var secure = (5 < argc) ? argv[5] : false;

	var today = null;
	if(expires!=null) {
		var today = new Date();
		today.setDate( today.getDate() + parseInt( expires ) );
	}

	var cookieVal = name + "=" + escape(value) +
		((today == null) ? "" : ("; expires="+today.toGMTString())) +
		((path == null) ? "" : ("; path=" + path)) +
		((domain == null) ? "" : ("; domain=" + domain)) +
		((secure == true) ? "; secure" : "");

	document.cookie  = cookieVal
}


/**
 *	¸¶ÀÌ¸®¸ðÄÜ¿¡ ¼³Á¤µÈ Äü¸µÅ© Á¤º¸¸¦ ±¸ÇÑ´Ù.
 *	@return links: ¹Ù·Î°¡±â ¹è¿­
 */
MYREMOTEAPI.loadLink = function()
{
	var cookies = document.cookie.split("; ");

	for ( var i = 0; i < cookies.length; i++ )
	{
		var tokens = cookies[i].split("=");
		//alert("cookie - "+tokens[0]+" : " +tokens[1]);

		if ( "myremote_links" == tokens[0] ) 
		{
			var	jsonStr = unescape(tokens[1]);
			//ÁÖÀÇ:prototype.js°¡ ¾øÀ» °æ¿ì¿¡µµ ´ëºñ;
			if ( jsonStr != undefined && /\S+/.test(jsonStr) ) return (jsonStr.evalJSON == undefined) ? eval(jsonStr) : jsonStr.evalJSON();
		}
	}
	return MYREMOTECONST.DEFAULT;
}

MYREMOTEAPI.getUrl = function(linkName)
{
	var	url = MYREMOTECONST.URLS[linkName];
	return (url == undefined) ? "" : url;
}

/**
 *	¸¶ÀÌ¸®¸ðÄÜ¿¡ ¼³Á¤µÈ Äü¸µÅ© Á¤º¸¸¦ ±¸ÇÑ´Ù.
 *	@return links: ¹Ù·Î°¡±â ¹è¿­
 */
MYREMOTEAPI.loadRemoteLinks = function()
{
	var	jsonStr = MYREMOTEAPI.loadCookie(MYREMOTECONST.myremoteLinkCookieName);
	return (jsonStr != undefined && /\S+/.test(jsonStr)) ? jsonStr.evalJSON() : MYREMOTECONST.DEFAULT;
}

/**
 *	¸¶ÀÌ¸®¸ðÄÜ¿¡ ¼³Á¤µÈ Äü¸µÅ© Á¤º¸¸¦ ÀúÀåÇÑ´Ù.
 *	@param links: ¹Ù·Î°¡±â ¹è¿­
 */
MYREMOTEAPI.saveRemoteLinks = function(links)
{	
	var	value = links.toJSON();
	MYREMOTEAPI.saveCookie(MYREMOTECONST.myremoteLinkCookieName, value, 365, "/", ".chosun.com");	
	//MYREMOTEAPI.saveCookie(MYREMOTECONST.myremoteCookieName, value, 365);
}

/** 
 * ¸¶ÀÌ¸®¸ðÄÜ ¼³Á¤È­¸éÀ» ±¸¼ºÇÑ´Ù. 
 */
var	__REMOTE_STTING_SHOW = false;
var	__REMOTE_STTING_READ = false;

MYREMOTEAPI.showRemoteSetting = function()
{
	__REMOTE_STTING_SHOW = !__REMOTE_STTING_SHOW;

	if ( __REMOTE_STTING_SHOW )
	{
		// ²À,ÀÌ°÷¿¡¼­ ¼³Á¤À» ÀÐ¾î¿Í¼­ ¼³Á¤ÆÇÀ» ±¸¼ºÇÑ´Ù.
		// ±× ÀÌÀ¯´Â, ÀÔ·Â°ª Ä³½ÌµÈ °Í°ú Ãæµ¹À» ÇÇÇÒ ¼ö ÀÖ°í, ÃÊ±âÈ­¸é¶ß´Â ½Ã°£À» Á¶±ÝÀÌ¶óµµ ´ú ¼ö ÀÖ´Ù.

		if ( !__REMOTE_STTING_READ )
		{			
			MYREMOTEVAR.myremoteLink = MYREMOTEAPI.loadRemoteLinks();

			var	remoteFinder = "";
			for ( var i = 0; i < MYREMOTEVAR.myremoteLink.length; i++ ) remoteFinder += ("^" + MYREMOTEVAR.myremoteLink[i] + "$");

			var	remoteCheckboxs = document.getElementsByName("remote_checkbox");
			for ( var i = 0; i < remoteCheckboxs.length; i++ )
			{
				remoteCheckboxs[i].onclick = myremoteChecked.bind(remoteCheckboxs[i]);
				remoteCheckboxs[i].checked = (remoteFinder.indexOf("^" + remoteCheckboxs[i].value + "$") != -1);
			}
			
			__REMOTE_STTING_READ = true;
		}
		
		$('myremot_set').style.display='block';
		$('myremot_set').style.visibility = 'visible';
	}
	else
	{ 
		$('myremot_set').style.display = "none";
		$('myremot_set').style.visibility = "hidden";
	}
}

/**
 *	¸¶ÀÌ¸®¸ðÄÜ Äü¸µÅ© Á¤º¸¸¦ ¼³Á¤ÇÏ´Â µ¿½Ã¿¡ È­¸é¿¡ º¸¿©ÁØ´Ù.
 */
MYREMOTEAPI.refresh = function()
{
	try
	{
		var	links = MYREMOTEAPI.loadLink();
		var	htmlCode = "";
		htmlCode += "<p>Quick Link<span onclick='javascript:MYREMOTEAPI.showRemoteSetting()' style='cursor:hand'><img src='http://image.chosun.com/cs/gnb/ic_list.gif' alt=''> ¼³Á¤</span></p>";

		// 3°³¾¿ ³ª´©¾î ¾´´Ù.
		var splitCount = 3;
		for ( var i = 0; i < links.length; i += splitCount )
		{
			htmlCode += "<ul>";
			var endIndex = i + splitCount;
			if( endIndex > links.length )	 endIndex = links.length;

			for ( var k = i; k < endIndex ; k++ )
			{
				var	url = MYREMOTEAPI.getUrl(links[k]);
				if ( url == "" ) continue;
				htmlCode += "<li><a href='" + url + "'>" + links[k] + "</a></li>";
			}			
			htmlCode += "</ul>";
		}
	
		var	linkDiv = document.getElementById("__myremote_link_p");
		linkDiv.innerHTML = htmlCode;
	}
	catch(e) {}
}

/** 
 * ¸¶ÀÌ¸®¸ðÄÜ ¼³Á¤Á¤º¸¸¦ ÀúÀåÇÑ´Ù.
 */
MYREMOTEAPI.saveRemoteSetting = function()
{
	// ÀúÀåÇÑ´Ù.
	MYREMOTEAPI.saveRemoteLinks(MYREMOTEVAR.myremoteLink);

	alert("¼³Á¤Á¤º¸°¡ ÀúÀåµÇ¾ú½À´Ï´Ù");

	// ¼³Á¤ÇÑ Á¤º¸°¡ ¸¶ÀÌ¸®¸ðÄÜ È­¸é¿¡ º¸¿©Áöµµ·Ï ÇÑ´Ù.	
	if(MYREMOTEAPI != undefined) MYREMOTEAPI.refresh();
}

/** 
 * ¸¶ÀÌ¸®¸ðÄÜ ¼³Á¤À» Ãß°¡/»èÁ¦ÇÑ´Ù.
 */
 function myremoteChecked()
{	
	if ( this.checked ) // Ãß°¡
	{
		if ( MYREMOTEVAR.myremoteLink.length < MYREMOTECONST.myremoteMaxLink )
		{
			if(this.value == "¿Â¶óÀÎ¼­Á¡" || this.value == "°ÔÀÓÁ¶¼±")
			{
				this.checked = false;
				alert("ÁØºñÁßÀÔ´Ï´Ù.");
				return;
			}
			MYREMOTEVAR.myremoteLink[MYREMOTEVAR.myremoteLink.length] = this.value;
		}
		else
		{
			this.checked = false;
			alert("ÃÖ´ë 9°³±îÁö ¼³Á¤ÀÌ °¡´ÉÇÕ´Ï´Ù.");
			return;
		}
	}
	else if ( !this.checked )	 //»èÁ¦
	{
		// »èÁ¦À§Ä¡¸¦ Ã£´Â´Ù.
		var	index = 0;
		for ( ; index < MYREMOTEVAR.myremoteLink.length; index++ )
		{
			if ( MYREMOTEVAR.myremoteLink[index] == this.value ) break;
		}
		
		// »èÁ¦ÇÏ°í, ´ó±ä´Ù.
		var	endIndex = MYREMOTEVAR.myremoteLink.length - 1;
		for ( var i = index; i < endIndex; i++ )
		{
			MYREMOTEVAR.myremoteLink[i] = MYREMOTEVAR.myremoteLink[i + 1];
		}
		
		MYREMOTEVAR.myremoteLink.length--;
	}		
	//alert("length:"+MYREMOTEVAR.myremoteLink.length);
}

/** 
 * ¸¶ÀÌ¸®¸ðÄÜ ¼³Á¤À» ÃÊ±âÈ­ÇÑ´Ù.
 */
function resetRemoteCheck()
{
	//alert("length:"+MYREMOTEVAR.myremoteLink.length);

	var	remoteCheckboxs = document.getElementsByName("remote_checkbox");
	for ( var i = 0; i < remoteCheckboxs.length; i++ )
	{
		if(remoteCheckboxs[i].checked) {
			remoteCheckboxs[i].checked = false;
			MYREMOTEVAR.myremoteLink.length = 0;
		}
	}
}

function chkMyRemoteView()
{
	var cookieVal = MYREMOTEAPI.loadCookie(MYREMOTECONST.myremoteOpenCookieName);
	if(cookieVal != undefined && cookieVal == 'true') 
	{
		document.getElementById('myremot_view').style.display='block';
		ch_mlayer_init();
	}
}

function openMyRemoteView()
{	
	document.getElementById('myremot_view').style.display='block';
	ch_mlayer_init();
	MYREMOTEAPI.saveCookie(MYREMOTECONST.myremoteOpenCookieName, 'true', null, '/', '.chosun.com');
}

function closeMyRemoteView()
{
	var expireDate = new Date();
	expireDate.setDate(expireDate.getDate() - 1);

	MYREMOTEAPI.saveCookie(MYREMOTECONST.myremoteOpenCookieName, '', expireDate.toGMTString(), '/', '.chosun.com');

	document.getElementById('myremot_view').style.display='none';
	document.getElementById('myremot_set').style.display='none';
}



// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// ¸¶ÀÌ¸®¸ðÄÜ ¹Ú½º

// Äü ¸µÅ©
document.write(" \
			<!-- ¸¶ÀÌ¸®¸ðÄÜ ¿ìÃø ÆË¾÷·¹ÀÌ¾î --> \
			<div id='myremot_view'> \
				<p class='myremot_tit'>¸¶ÀÌ¸®¸ðÄÜ<span><a href='http://myhome.chosun.com/'><img src='http://image.chosun.com/cs/gnb/btn_myhome.gif' alt='¸¶ÀÌÈ¨'></a><img src='http://image.chosun.com/cs/gnb/btn_rem_close.gif' alt='¸¶ÀÌ¸®¸ðÄÜ ¼û±â±â' id='btn_close' onclick=\"closeMyRemoteView()\"></span></p> \
				<!-- quick_link --> \
				<div class='inbox_ff'> \
					<div id='__myremote_link_p' class='inbox_bor'> \
						<!--p>Quick Link<span onclick=\"document.getElementById('myremot_set').style.display='block';\"><img src='http://image.chosun.com/cs/gnb/ic_list.gif' alt=''> ¼³Á¤</span></p--> \
						<p>Quick Link<span onclick='javascript:MYREMOTEAPI.showRemoteSetting()' style='cursor:hand'><img src='http://image.chosun.com/cs/gnb/ic_list.gif' alt=''> ¼³Á¤</span></p> \
");
try
{
	var	links = MYREMOTEAPI.loadLink();
	// 3°³¾¿ ³ª´©¾î ¾´´Ù.
	var splitCount = 3;
	for ( var i = 0; i < links.length; i += splitCount )
	{
		document.write("<ul>");
		var endIndex = i + splitCount;
		if( endIndex > links.length )	 endIndex = links.length;
		for ( var k = i; k < endIndex ; k++ )	document.write("<li><a href='" + MYREMOTEAPI.getUrl(links[k]) + "'>" + links[k] + "</a></li>");
		document.write("</ul>");
	}
}
catch(e){}	

// ³»°¡ º» ±â»ç, ³»½ºÅ©·¦, ³» ¹éÀÚÆò, ³» Åä·Ð¹æ
document.write(" \
					</div> \
				</div> \
				<!-- quick_link --> \
\
				<p class='view_art_tit'>³»°¡º»±â»ç</p> \
				<ul id='my_list0' class='view_art_list'> \
				</ul> \
\
				<ul class='remot_tab'> \
					<li id='rtab1' class='off' onclick=\"ch_mlayer_display(1,1)\">³» ½ºÅ©·¦</li> \
					<li id='rtab2' class='off2' onclick=\"ch_mlayer_display(2,1)\">³» ¹éÀÚÆò</li> \
					<li id='rtab3' class='off' onclick=\"ch_mlayer_display(3,1)\">³» Åä·Ð¹æ</li> \
				</ul> \
				<ul id='my_list1' class='my_list'> \
				</ul> \
				<ul id='my_list2' class='my_list'> \
				</ul> \
				<ul id='my_list3' class='my_list'> \
				</ul> \
");

function ch_mlayer(n){
	for (i=1; i<4 ; i++){
		if(i==2){
			document.getElementById('rtab'+i).className = 'off2';
			document.getElementById('my_list'+i).style.display = 'none';
		}else{
			document.getElementById('rtab'+i).className = 'off';
			document.getElementById('my_list'+i).style.display = 'none';
		}
	}
	document.getElementById('rtab'+n).className = 'on';
	document.getElementById('my_list'+n).style.display = 'block';
}

// ¸¶ÀÌ¸®¸ðÄÜ È°¼ºÈ­
function ch_mlayer_init() {
	// ³»°¡º»±â»ç 
	ch_mlayer_display(0,0);
	// ³»½ºÅ©·¦
	//ch_mlayer_display(1,1);
}
function ch_mlayer_display (ul_id, ul_login){
	var li_div = "my_list" + ul_id;
	var tmpObj = document.getElementById(li_div);

	// ·Î±×ÀÎÈ®ÀÎ
	var ch_login = checkLogin();

	if( ul_login == 1 && ch_login == 0 ) {
		var tmp_li = tmpObj.getElementsByTagName('li')
		if(tmp_li.length == 0) {
			li_obj = document.createElement('li');
			li_obj.className='none_art';
			li_text = document.createTextNode('·Î±×ÀÎÀÌ ÇÊ¿äÇÑ ¼­ºñ½ºÀÔ´Ï´Ù.')
			li_obj.appendChild(li_text);
			tmpObj.appendChild(li_obj);
		}
	}
	else {
		var tmp_li = tmpObj.getElementsByTagName('li')
		if(tmp_li.length == 0) {
			// <li> ÅÂ±×ÀÇ À¯¹«¿¡ µû¶ó¼­ ÀÛµ¿, ÃÖÃÊ¿¡ ÇÑ¹ø¸¸ Á¢±ÙÇØ¼­ °ªÀ» °¡Á®¿À°í ÀÛµ¿ÇÏÁö ¾Ê´Â´Ù.
			var head = document.getElementsByTagName("head").item(0);
			var script = document.createElement ("script");
			if(0 == ul_id) {
				// ³»°¡ º» ±â»ç
				script.src = 'http://news.chosun.com/svc/chosun/art_his_main.php?returnFunction=ch_mplayer_data&showLen=44&showDiv='+li_div;
				head.appendChild (script);
			}
			else if(1 == ul_id) {
				// ³» ½ºÅ©·¦
				script.src = 'http://newsplus.chosun.com/ranking/scrap/my_scrap.html?returnFunction=ch_mplayer_data&showLen=30&showDiv='+li_div;
				head.appendChild (script);
			}
			else if (2 == ul_id) {
				// ³» ¹éÀÚÆò
				script.src = 'http://m100.chosun.com/svc/guest/extern/myguest.html?returnFunction=ch_mplayer_data&showLen=30&showDiv='+li_div;
				head.appendChild (script);
			}
			else if (3 == ul_id) {
				// ³» Åä·Ð¹æ
				script.src = 'http://forum.chosun.com/bbs.extern.my_message.screen?reutrnFunction=ch_mplayer_data&showLen=15&showDiv='+li_div;
				script.charset = "UTF-8";
				head.appendChild (script);
			}
		}

	}
	if(0 != ul_id) ch_mlayer(ul_id);
}

function ch_mplayer_data(myObject) {

	var li_div = myObject.root[0].show_div;	
	var tmpObj = document.getElementById(li_div);
	if (tmpObj == null) return;
	var item_total = myObject.root[0].total;	

	// ÇÑ¹ø´õ È®ÀÎ - <li> ÅÂ±×ÀÇ À¯¹«¿¡ µû¶ó¼­ ÀÛµ¿, ÃÖÃÊ¿¡ ÇÑ¹ø¸¸ Á¢±ÙÇØ¼­ °ªÀ» °¡Á®¿À°í ÀÛµ¿ÇÏÁö ¾Ê´Â´Ù.
	var tmp_li = tmpObj.getElementsByTagName('li')
	if(tmp_li.length == 0) {

		if(item_total > 0) {
		
			for(var i=0; i<item_total; i++) {
				li_obj = document.createElement('li');
				li_obj.style.color='#000000';
				span_obj = document.createElement('span');
				span_text = document.createTextNode('¤ý');
				span_obj.appendChild(span_text);
							
				var my_link = document.createElement('a');
				var my_href = document.createAttribute('href')
				my_href.value = myObject.root[0].item[i].url;
				my_link.setAttributeNode(my_href);
			
				var my_target = document.createAttribute('target');
				my_target.value = '_blank';
				my_link.setAttributeNode(my_target);
		
				if( checkIE() ) {
					// IE version
					my_link.innerText = myObject.root[0].item[i].title;
				} else {
					// FF version
					var my_title = document.createTextNode(myObject.root[0].item[i].title);
					my_link.appendChild(my_title);					
				}
			
				li_obj.appendChild(span_obj);
				li_obj.appendChild(my_link);
				tmpObj.appendChild(li_obj);
			}
			
			// ¸¶Áö¸· ´õº¸±â ¸µÅ© - ³»°¡ º» ±â»ç Á¦¿Ü
			if ("my_list0" == li_div) {}
			else {
				li_obj = document.createElement('li');
				li_obj.className = "my_list_more";
				
				var my_link = document.createElement('a');
				var my_href = document.createAttribute('href')
				
				if ("my_list1" == li_div)
					my_href.value = "http://newsplus.chosun.com/scrap/index.html";
				else if ("my_list2" == li_div)
					my_href.value = "http://m100.chosun.com/svc/guest/user/myBbs.html";
				else
					my_href.value = "http://forum.chosun.com/mybbs.jsp";
					
				my_link.setAttributeNode(my_href);
				
				var my_target = document.createAttribute('target');
				my_target.value = '_blank';
				my_link.setAttributeNode(my_target);
				
				if( checkIE() ) {
					// IE version
					my_link.innerText = "+´õº¸±â";
				} else {
					// FF version
					var my_title = document.createTextNode("+´õº¸±â");
					my_link.appendChild(my_title);
				}
				
				li_obj.appendChild(my_link);
				tmpObj.appendChild(li_obj);
			}
		}
		else {
			li_obj = document.createElement('li');
			li_obj.className='none_art';
			
			if ("my_list0" == li_div)
				li_text = document.createTextNode('³»°¡ º» ±â»ç°¡ ¾ø½À´Ï´Ù.');
			else if ("my_list1" == li_div)
				li_text = document.createTextNode('³»°¡ ½ºÅ©·¦ÇÑ ±â»ç°¡ ¾ø½À´Ï´Ù.');
			else if ("my_list2" == li_div)
				li_text = document.createTextNode('³»°¡ ¾´ 100ÀÚÆòÀÌ ¾ø½À´Ï´Ù.');
			else
				li_text = document.createTextNode('³»°¡ Âü¿©ÇÑ Åä·Ð¹æÀÌ ¾ø½À´Ï´Ù.');
			li_obj.appendChild(li_text);
			tmpObj.appendChild(li_obj);		
			
		}
	}
}
function default_function (myObject){
	ch_mplayer_data(myObject);
}

function checkIE() {
	if (navigator.appName == "Microsoft Internet Explorer") return true;
	else return false;
}

function ch_mlayer(n){
	for (i=1; i<4 ; i++){
		if(i==2){
			document.getElementById('rtab'+i).className = 'off2';
			document.getElementById('my_list'+i).style.display = 'none';
		}else{
			document.getElementById('rtab'+i).className = 'off';
			document.getElementById('my_list'+i).style.display = 'none';
		}
	}
	document.getElementById('rtab'+n).className = 'on';
	document.getElementById('my_list'+n).style.display = 'block';
}

function checkLogin() {
    if (!ch_mplayer_cookie('SMSESSION') || ch_mplayer_cookie('SMSESSION') == "LOGGEDOFF" || !ch_mplayer_cookie('SM_USER')) {
        return 0;
    }
    else {
        return 1;
    }
}
function ch_mplayer_cookie (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;
}



// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// ¸¶ÀÌ¸®¸ðÄÜ Äü¸µÅ© ¼³Á¤ ¹Ú½º 
document.write(" \
			</div> \
			<!--  ¸¶ÀÌ¸®¸ðÄÜ ¼³Á¤ ÆË¾÷ ½ÃÀÛ --> \
			<div id='myremot_set'> \
				<p class='desc'>ÀÚÁÖ°¡´Â ¼­ºñ½º¸¦ ÃÖ´ë 9°³±îÁö ¼³Á¤ÇÒ ¼ö ÀÖ½À´Ï´Ù.<span><img src='http://image.chosun.com/cs/gnb/btn_close_img.gif' alt='¼³Á¤Ã¢ ´Ý±â' onclick=\"document.getElementById('myremot_set').style.display='none';__REMOTE_STTING_SHOW=false;\"></span></p> \
				<form action='' method='post' class='myremot_setting'> \
					<fieldset> \
						<legend>¸¶ÀÌ¸®¸ðÄÜ ¼¼ÆÃ¼±ÅÃ</legend> \
						<div class='set_list'> \
							<p>´º½º</p> \
							<ul> \
");
try {
	var	myremoteKeys = null;
	myremoteKeys = $H(MYREMOTECONST.URLS).keys();
	for ( var i = 0; i < 14; i++ )	{
		var	name = myremoteKeys[i];
		document.write("<li><input type='checkbox' name='remote_checkbox' value='"+ name + "' class='inputCheck' title='"+name+"'> " + name + "</il>");
	}
}
catch(e) { }
document.write(" \
							</ul> \
						</div> \
						<div class='set_list'> \
							<p>´º½ºÇÃ·¯½º</p> \
							<ul> \
");
try {
	for ( var i = 14; i < 28; i++ ) {
		var	name = myremoteKeys[i];
		document.write("<li><input type='checkbox' name='remote_checkbox' value='"+ name + "' class='inputCheck' title='"+name+"'> " + name + "</il>");
	}
}
catch(e) { }
document.write(" \
							</ul> \
						</div> \
						<div class='set_list'> \
							<p>Ä¿¹Â´ÏÆ¼</p> \
							<ul> \
");
try {
	for ( var i = 28; i < 34; i++ ) {
		var	name = myremoteKeys[i];
		document.write("<li><input type='checkbox' name='remote_checkbox' value='"+ name + "' class='inputCheck' title='"+name+"'> " + name + "</il>");
	}
}
catch(e) { }
document.write(" \
							</ul> \
							<ul> \
");
try {
	for ( var i = 34; i < 37; i++ ) {
		var	name = myremoteKeys[i];
		document.write("<li><input type='checkbox' name='remote_checkbox' value='"+ name + "' class='inputCheck' title='"+name+"'> " + name + "</il>");
	}
}
catch(e) { }
document.write(" \
							</ul> \
						</div> \
						<div class='set_list'> \
							<p>¼­ºñ½º</p> \
							<ul> \
");
try {
	for ( var i = 37; i < 41; i++ ) {
		var	name = myremoteKeys[i];
		document.write("<li><input type='checkbox' name='remote_checkbox' value='"+ name + "' class='inputCheck' title='"+name+"'> " + name + "</il>");
	}
}
catch(e) { }
document.write(" \
							</ul> \
							<ul> \
");
try {
	for ( var i = 41; i < 47; i++ ) {
		var	name = myremoteKeys[i];
		document.write("<li><input type='checkbox' name='remote_checkbox' value='"+ name + "' class='inputCheck' title='"+name+"'> " + name + "</il>");
	}
}
catch(e) { }
document.write(" \
							</ul> \
							<ul> \
");
try {
	for ( var i = 47; i < 52; i++ ) {
		var	name = myremoteKeys[i];
		document.write("<li><input type='checkbox' name='remote_checkbox' value='"+ name + "' class='inputCheck' title='"+name+"'> " + name + "</il>");
	}
}
catch(e) { }
document.write(" \
							</ul> \
						</div> \
						<div class='set_list'> \
							<p>Á¤º¸</p> \
							<ul> \
");
try {
	for ( var i = 52; i < 61; i++ ) {
		var	name = myremoteKeys[i];
		document.write("<li><input type='checkbox' name='remote_checkbox' value='"+ name + "' class='inputCheck' title='"+name+"'> " + name + "</il>");
	}
}
catch(e) { }
document.write(" \
							</ul> \
							<p>¸Å°ÅÁø</p> \
							<ul> \
");
try {
	for ( var i = 61; i < 68; i++ ) {
		var	name = myremoteKeys[i];
		document.write("<li><input type='checkbox' name='remote_checkbox' value='"+ name + "' class='inputCheck' title='"+name+"'> " + name + "</il>");
	}
}
catch(e) { }
document.write(" \
							</ul> \
						</div> \
						<div class='submit_img'> \
							<img src='http://image.chosun.com/cs/gnb/btn_save.gif' alt='ÀúÀå' onClick='javascript:MYREMOTEAPI.saveRemoteSetting()'> \
							<span><img src='http://image.chosun.com/cs/gnb/btn_reset.gif' alt='ÃÊ±âÈ­' onClick='javascript:resetRemoteCheck()'></span> \
						</div> \
					</fieldset> \
				</form> \
			</div> \
			<!--  ¸¶ÀÌ¸®¸ðÄÜ ¼³Á¤ ÆË¾÷ ³¡ --> \
		</li> \
	</ul> \
");

chkMyRemoteView();
