document.write(" \
	<dl id='logo_2008'> \
		<dt><a href='http://choice2008.chosun.com/'><img src='http://image.chosun.com/2008election/images/logo_choice2008.gif' align='absmiddle'></a></dt> \
");
	function seachAction()
	{
		
		if ( document.searchForm.searchTerm.value )
		{
			var target = document.searchForm.sTarget.value ;	
			if ( target == "total")
			{
				document.searchForm.action = "http://search.chosun.com/search/totalSearch.jsp";
			} else if ( target == "news" )
			{
				document.searchForm.action = "http://search.chosun.com/search/newsSearch.jsp";
			} else if ( target == "community" )
			{
				document.searchForm.action = "http://search.chosun.com/search/communitySearch.jsp";
			} else if ( target == "human" )
			{
				document.searchForm.action = "http://search.chosun.com/search/humanSearch.jsp";
			} else if ( target == "photo" )
			{
				document.searchForm.action = "http://search.chosun.com/search/photoSearch.jsp";
			} else if ( target == "thesis" )
			{
				document.searchForm.action = "http://search.chosun.com/search/thesisSearch.jsp";
			} else if ( target == "web" )
			{
				document.searchForm.action = "http://search.chosun.com/search/webSearch.jsp";
			} else if ( target == "movie" )
			{
				document.searchForm.action = "http://search.chosun.com/search/movieSearch.jsp";
			}

			document.searchForm.submit();

		} else {

			alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
			document.searchForm.searchTerm.focus();
			return ;
		}
	}

	function handleEnter (kind, event) {
		var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;

		if (keyCode == 13) {
				seachAction();
				return false;
		} else {
			return true;
		}
	}
	
function clearText() {
    document.all.searchTerm.value = ""
}
function init() {
	document.search.searchTerm.value = '';
}
document.write(" \
		<form name='searchForm'  method='get' target=_blank style='margin:0;padding:0;display:inline;'> \
		<dd id='Search_main'> \
			<div id='Search_box'> \
				<select name='sTarget' id='w'> \
					<option value='total' selected>ÅëÇÕ°Ë»ö</option> \
					<option value='news' >´º½º</option> \
					<option value='human' >ÀÎ¹°</option> \
					<option value='photo' >Æ÷Åä</option> \
					<option value='movie' >µ¿¿µ»ó</option> \
					<option value='community' >Ä¿¹Â´ÏÆ¼</option> \
					<option value='thesis' >Àü¹®ÀÚ·á</option> \
					<option value='web' >À¥¹®¼­</option> \
				</select> <input type=text name='searchTerm' id='searchTerm' style='width:151px;height:15px;background-color:#f8eaea; border:solid 1px #db1f20; padding:3px 0px 0px 5px;' class='search_t' onkeypress='return handleEnter(1,event);'> <A HREF='javascript:seachAction();'><img src='http://image.chosun.com/2008election/images/btn_search1.gif' border='0' align='absmiddle'></a> \
			</div> \
		</dd> \
		</form> \
	</dl> \
");

var catnum = Catid.substring(0, 1);
var nowtab = Catid.substring(0, 1);
function ChangeLayer(n) {
	document.getElementById('menu'+nowtab).style.display = 'none';
	document.getElementById('menu'+n).style.display = 'block';

	document.getElementById('gnb_2depth'+nowtab).style.display = 'none';
	document.getElementById('gnb_2depth'+n).style.display = 'block';
		nowtab = n;
	}
document.write(" <div id='gnb'> " +
	"	<dl id='menu7' style='display:" + ((catnum == 7)? "block": "none") + ";'> " +
	"	<dd><a href='http://choice2008.chosun.com/election/perc_vote.html' onMouseOver='ChangeLayer(7);'><img src='http://image.chosun.com/2008election/images/vmenu1_on.gif' alt='ÅõÇ¥ ÇöÈ²' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/election/perc_vote_count.html' onMouseOver='ChangeLayer(8);'><img src='http://image.chosun.com/2008election/images/vmenu2_off.gif' alt='°³Ç¥ ÇöÈ²' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/election/elected3.html' onMouseOver='ChangeLayer(9);'><img src='http://image.chosun.com/2008election/images/vmenu3_off.gif' alt='´ç¼± ÇöÈ²' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/news/total/index.html' onMouseOver='ChangeLayer(1);'><img src='http://image.chosun.com/2008election/images/vmenu4_off.gif' alt='ÃÑ¼±´º½º' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/candidate/hubo_search.html?sido_2=0&gu_2=0&hubo_name=' onMouseOver='ChangeLayer(2);'><img src='http://image.chosun.com/2008election/images/vmenu5_off.gif' alt='³»Áö¿ª ÈÄº¸ÀÚ´Â?' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/photo/index.html' onMouseOver='ChangeLayer(3);'><img src='http://image.chosun.com/2008election/images/vmenu6_off.gif' alt='ÃÑ¼± ÇÖ Æ÷Åä' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/media/index.html' onMouseOver='ChangeLayer(4);'><img src='http://image.chosun.com/2008election/images/vmenu7_off.gif' alt='ÃÑ¼± µ¿¿µ»ó' align='absmiddle'></a></dd><dd><a href='http://forum.chosun.com/bbs.reple.list.screen?bbs_id=80010' target='_blank' onMouseOver='ChangeLayer(5);'><img src='http://image.chosun.com/2008election/images/vmenu8_off.gif' alt='ÃÑ¼± Åä·Ð¹æ' align='absmiddle'></a></dd><dd><a href='http://issue.chosun.com/choice2008/17_edition.html' target='_blank' onMouseOver='ChangeLayer(6);'><img src='http://image.chosun.com/2008election/images/vmenu9_off.gif' alt='17´ë ÃÑ¼± µÇµ¹¾Æº¸±â' align='absmiddle'></a></dd></dl> " +
	"	<dl id='menu8' style='display:" + ((catnum == 8)? "block": "none") + ";'> " +
	"	<dd><a href='http://choice2008.chosun.com/election/perc_vote.html' onMouseOver='ChangeLayer(7);'><img src='http://image.chosun.com/2008election/images/vmenu1_off.gif' alt='ÅõÇ¥ ÇöÈ²' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/election/perc_vote_count.html' onMouseOver='ChangeLayer(8);'><img src='http://image.chosun.com/2008election/images/vmenu2_on.gif' alt='°³Ç¥ ÇöÈ²' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/election/elected3.html' onMouseOver='ChangeLayer(9);'><img src='http://image.chosun.com/2008election/images/vmenu3_off.gif' alt='´ç¼± ÇöÈ²' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/news/total/index.html' onMouseOver='ChangeLayer(1);'><img src='http://image.chosun.com/2008election/images/vmenu4_off.gif' alt='ÃÑ¼±´º½º' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/candidate/hubo_search.html?sido_2=0&gu_2=0&hubo_name=' onMouseOver='ChangeLayer(2);'><img src='http://image.chosun.com/2008election/images/vmenu5_off.gif' alt='³»Áö¿ª ÈÄº¸ÀÚ´Â?' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/photo/index.html' onMouseOver='ChangeLayer(3);'><img src='http://image.chosun.com/2008election/images/vmenu6_off.gif' alt='ÃÑ¼± ÇÖ Æ÷Åä' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/media/index.html' onMouseOver='ChangeLayer(4);'><img src='http://image.chosun.com/2008election/images/vmenu7_off.gif' alt='ÃÑ¼± µ¿¿µ»ó' align='absmiddle'></a></dd><dd><a href='http://forum.chosun.com/bbs.reple.list.screen?bbs_id=80010' target='_blank' onMouseOver='ChangeLayer(5);'><img src='http://image.chosun.com/2008election/images/vmenu8_off.gif' alt='ÃÑ¼± Åä·Ð¹æ' align='absmiddle'></a></dd><dd><a href='http://issue.chosun.com/choice2008/17_edition.html' target='_blank' onMouseOver='ChangeLayer(6);'><img src='http://image.chosun.com/2008election/images/vmenu9_off.gif' alt='17´ë ÃÑ¼± µÇµ¹¾Æº¸±â' align='absmiddle'></a></dd></dl> " +
	"	<dl id='menu9' style='display:" + ((catnum == 9)? "block": "none") + ";'> " +
	"	<dd><a href='http://choice2008.chosun.com/election/perc_vote.html' onMouseOver='ChangeLayer(7);'><img src='http://image.chosun.com/2008election/images/vmenu1_off.gif' alt='ÅõÇ¥ ÇöÈ²' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/election/perc_vote_count.html' onMouseOver='ChangeLayer(8);'><img src='http://image.chosun.com/2008election/images/vmenu2_off.gif' alt='°³Ç¥ ÇöÈ²' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/election/elected3.html' onMouseOver='ChangeLayer(9);'><img src='http://image.chosun.com/2008election/images/vmenu3_on.gif' alt='´ç¼± ÇöÈ²' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/news/total/index.html' onMouseOver='ChangeLayer(1);'><img src='http://image.chosun.com/2008election/images/vmenu4_off.gif' alt='ÃÑ¼±´º½º' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/candidate/hubo_search.html?sido_2=0&gu_2=0&hubo_name=' onMouseOver='ChangeLayer(2);'><img src='http://image.chosun.com/2008election/images/vmenu5_off.gif' alt='³»Áö¿ª ÈÄº¸ÀÚ´Â?' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/photo/index.html' onMouseOver='ChangeLayer(3);'><img src='http://image.chosun.com/2008election/images/vmenu6_off.gif' alt='ÃÑ¼± ÇÖ Æ÷Åä' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/media/index.html' onMouseOver='ChangeLayer(4);'><img src='http://image.chosun.com/2008election/images/vmenu7_off.gif' alt='ÃÑ¼± µ¿¿µ»ó' align='absmiddle'></a></dd><dd><a href='http://forum.chosun.com/bbs.reple.list.screen?bbs_id=80010' target='_blank' onMouseOver='ChangeLayer(5);'><img src='http://image.chosun.com/2008election/images/vmenu8_off.gif' alt='ÃÑ¼± Åä·Ð¹æ' align='absmiddle'></a></dd><dd><a href='http://issue.chosun.com/choice2008/17_edition.html' target='_blank' onMouseOver='ChangeLayer(6);'><img src='http://image.chosun.com/2008election/images/vmenu9_off.gif' alt='17´ë ÃÑ¼± µÇµ¹¾Æº¸±â' align='absmiddle'></a></dd></dl> " +
	"	<dl id='menu1' style='display:" + ((catnum == 1)? "block": "none") + ";'> " +
	"	<dd><a href='http://choice2008.chosun.com/election/perc_vote.html' onMouseOver='ChangeLayer(7);'><img src='http://image.chosun.com/2008election/images/vmenu1_off.gif' alt='ÅõÇ¥ ÇöÈ²' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/election/perc_vote_count.html' onMouseOver='ChangeLayer(8);'><img src='http://image.chosun.com/2008election/images/vmenu2_off.gif' alt='°³Ç¥ ÇöÈ²' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/election/elected3.html' onMouseOver='ChangeLayer(9);'><img src='http://image.chosun.com/2008election/images/vmenu3_off.gif' alt='´ç¼± ÇöÈ²' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/news/total/index.html' onMouseOver='ChangeLayer(1);'><img src='http://image.chosun.com/2008election/images/vmenu4_on.gif' alt='ÃÑ¼±´º½º' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/candidate/hubo_search.html?sido_2=0&gu_2=0&hubo_name=' onMouseOver='ChangeLayer(2);'><img src='http://image.chosun.com/2008election/images/vmenu5_off.gif' alt='³»Áö¿ª ÈÄº¸ÀÚ´Â?' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/photo/index.html' onMouseOver='ChangeLayer(3);'><img src='http://image.chosun.com/2008election/images/vmenu6_off.gif' alt='ÃÑ¼± ÇÖ Æ÷Åä' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/media/index.html' onMouseOver='ChangeLayer(4);'><img src='http://image.chosun.com/2008election/images/vmenu7_off.gif' alt='ÃÑ¼± µ¿¿µ»ó' align='absmiddle'></a></dd><dd><a href='http://forum.chosun.com/bbs.reple.list.screen?bbs_id=80010' target='_blank' onMouseOver='ChangeLayer(5);'><img src='http://image.chosun.com/2008election/images/vmenu8_off.gif' alt='ÃÑ¼± Åä·Ð¹æ' align='absmiddle'></a></dd><dd><a href='http://issue.chosun.com/choice2008/17_edition.html' target='_blank' onMouseOver='ChangeLayer(6);'><img src='http://image.chosun.com/2008election/images/vmenu9_off.gif' alt='17´ë ÃÑ¼± µÇµ¹¾Æº¸±â' align='absmiddle'></a></dd></dl> " +
	"	<dl id='menu2' style='display:" + ((catnum == 2)? "block": "none") + ";'> " +
	"	<dd><a href='http://choice2008.chosun.com/election/perc_vote.html' onMouseOver='ChangeLayer(7);'><img src='http://image.chosun.com/2008election/images/vmenu1_off.gif' alt='ÅõÇ¥ ÇöÈ²' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/election/perc_vote_count.html' onMouseOver='ChangeLayer(8);'><img src='http://image.chosun.com/2008election/images/vmenu2_off.gif' alt='ÃÑ¼±´º½º' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/election/elected3.html' onMouseOver='ChangeLayer(9);'><img src='http://image.chosun.com/2008election/images/vmenu3_off.gif' alt='´ç¼± ÇöÈ²' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/news/total/index.html' onMouseOver='ChangeLayer(1);'><img src='http://image.chosun.com/2008election/images/vmenu4_off.gif' alt='ÃÑ¼±´º½º' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/candidate/hubo_search.html?sido_2=0&gu_2=0&hubo_name=' onMouseOver='ChangeLayer(2);'><img src='http://image.chosun.com/2008election/images/vmenu5_on.gif' alt='³»Áö¿ª ÈÄº¸ÀÚ´Â?' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/photo/index.html' onMouseOver='ChangeLayer(3);'><img src='http://image.chosun.com/2008election/images/vmenu6_off.gif' alt='ÃÑ¼± ÇÖ Æ÷Åä' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/media/index.html' onMouseOver='ChangeLayer(4);'><img src='http://image.chosun.com/2008election/images/vmenu7_off.gif' alt='ÃÑ¼± µ¿¿µ»ó' align='absmiddle'></a></dd><dd><a href='http://forum.chosun.com/bbs.reple.list.screen?bbs_id=80010' target='_blank' onMouseOver='ChangeLayer(5);'><img src='http://image.chosun.com/2008election/images/vmenu8_off.gif' alt='ÃÑ¼± Åä·Ð¹æ' align='absmiddle'></a></dd><dd><a href='http://issue.chosun.com/choice2008/17_edition.html' target='_blank' onMouseOver='ChangeLayer(6);'><img src='http://image.chosun.com/2008election/images/vmenu9_off.gif' alt='17´ë ÃÑ¼± µÇµ¹¾Æº¸±â' align='absmiddle'></a></dd></dl> " +
	"	<dl id='menu3' style='display:" + ((catnum == 3)? "block": "none") + ";'> " +
	"	<dd><a href='http://choice2008.chosun.com/election/perc_vote.html' onMouseOver='ChangeLayer(7);'><img src='http://image.chosun.com/2008election/images/vmenu1_off.gif' alt='ÅõÇ¥ ÇöÈ²' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/election/perc_vote_count.html' onMouseOver='ChangeLayer(8);'><img src='http://image.chosun.com/2008election/images/vmenu2_off.gif' alt='°³Ç¥ ÇöÈ²' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/election/elected3.html' onMouseOver='ChangeLayer(9);'><img src='http://image.chosun.com/2008election/images/vmenu3_off.gif' alt='´ç¼± ÇöÈ²' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/news/total/index.html' onMouseOver='ChangeLayer(1);'><img src='http://image.chosun.com/2008election/images/vmenu4_off.gif' alt='ÃÑ¼±´º½º' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/candidate/hubo_search.html?sido_2=0&gu_2=0&hubo_name=' onMouseOver='ChangeLayer(2);'><img src='http://image.chosun.com/2008election/images/vmenu5_off.gif' alt='³»Áö¿ª ÈÄº¸ÀÚ´Â?' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/photo/index.html' onMouseOver='ChangeLayer(3);'><img src='http://image.chosun.com/2008election/images/vmenu6_on.gif' alt='ÃÑ¼± ÇÖ Æ÷Åä' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/media/index.html' onMouseOver='ChangeLayer(4);'><img src='http://image.chosun.com/2008election/images/vmenu7_off.gif' alt='ÃÑ¼± µ¿¿µ»ó' align='absmiddle'></a></dd><dd><a href='http://forum.chosun.com/bbs.reple.list.screen?bbs_id=80010' target='_blank' onMouseOver='ChangeLayer(5);'><img src='http://image.chosun.com/2008election/images/vmenu8_off.gif' alt='ÃÑ¼± Åä·Ð¹æ' align='absmiddle'></a></dd><dd><a href='http://issue.chosun.com/choice2008/17_edition.html' target='_blank' onMouseOver='ChangeLayer(6);'><img src='http://image.chosun.com/2008election/images/vmenu9_off.gif' alt='17´ë ÃÑ¼± µÇµ¹¾Æº¸±â' align='absmiddle'></a></dd></dl> " +
	"	<dl id='menu4' style='display:" + ((catnum == 4)? "block": "none") + ";'> " +
	"	<dd><a href='http://choice2008.chosun.com/election/perc_vote.html' onMouseOver='ChangeLayer(7);'><img src='http://image.chosun.com/2008election/images/vmenu1_off.gif' alt='ÅõÇ¥ ÇöÈ²' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/election/perc_vote_count.html' onMouseOver='ChangeLayer(8);'><img src='http://image.chosun.com/2008election/images/vmenu2_off.gif' alt='°³Ç¥ ÇöÈ²' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/election/elected3.html' onMouseOver='ChangeLayer(9);'><img src='http://image.chosun.com/2008election/images/vmenu3_off.gif' alt='´ç¼± ÇöÈ²' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/news/total/index.html' onMouseOver='ChangeLayer(1);'><img src='http://image.chosun.com/2008election/images/vmenu4_off.gif' alt='ÃÑ¼±´º½º' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/candidate/hubo_search.html?sido_2=0&gu_2=0&hubo_name=' onMouseOver='ChangeLayer(2);'><img src='http://image.chosun.com/2008election/images/vmenu5_off.gif' alt='³»Áö¿ª ÈÄº¸ÀÚ´Â?' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/photo/index.html' onMouseOver='ChangeLayer(3);'><img src='http://image.chosun.com/2008election/images/vmenu6_off.gif' alt='ÃÑ¼± ÇÖ Æ÷Åä' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/media/index.html' onMouseOver='ChangeLayer(4);'><img src='http://image.chosun.com/2008election/images/vmenu7_on.gif' alt='ÃÑ¼± µ¿¿µ»ó' align='absmiddle'></a></dd><dd><a href='http://forum.chosun.com/bbs.reple.list.screen?bbs_id=80010' target='_blank' onMouseOver='ChangeLayer(5);'><img src='http://image.chosun.com/2008election/images/vmenu8_off.gif' alt='ÃÑ¼± Åä·Ð¹æ' align='absmiddle'></a></dd><dd><a href='http://issue.chosun.com/choice2008/17_edition.html' target='_blank' onMouseOver='ChangeLayer(6);'><img src='http://image.chosun.com/2008election/images/vmenu9_off.gif' alt='17´ë ÃÑ¼± µÇµ¹¾Æº¸±â' align='absmiddle'></a></dd></dl> " +
	"	<dl id='menu5' style='display:" + ((catnum == 5)? "block": "none") + ";'> " +
	"	<dd><a href='http://choice2008.chosun.com/election/perc_vote.html' onMouseOver='ChangeLayer(7);'><img src='http://image.chosun.com/2008election/images/vmenu1_off.gif' alt='ÅõÇ¥ ÇöÈ²' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/election/perc_vote_count.html' onMouseOver='ChangeLayer(8);'><img src='http://image.chosun.com/2008election/images/vmenu2_off.gif' alt='°³Ç¥ ÇöÈ²' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/election/elected3.html' onMouseOver='ChangeLayer(9);'><img src='http://image.chosun.com/2008election/images/vmenu3_off.gif' alt='´ç¼± ÇöÈ²' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/news/total/index.html' onMouseOver='ChangeLayer(1);'><img src='http://image.chosun.com/2008election/images/vmenu4_off.gif' alt='ÃÑ¼±´º½º' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/candidate/hubo_search.html?sido_2=0&gu_2=0&hubo_name=' onMouseOver='ChangeLayer(2);'><img src='http://image.chosun.com/2008election/images/vmenu5_off.gif' alt='³»Áö¿ª ÈÄº¸ÀÚ´Â?' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/photo/index.html' onMouseOver='ChangeLayer(3);'><img src='http://image.chosun.com/2008election/images/vmenu6_off.gif' alt='ÃÑ¼± ÇÖ Æ÷Åä' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/media/index.html' onMouseOver='ChangeLayer(4);'><img src='http://image.chosun.com/2008election/images/vmenu7_off.gif' alt='ÃÑ¼± µ¿¿µ»ó' align='absmiddle'></a></dd><dd><a href='http://forum.chosun.com/bbs.reple.list.screen?bbs_id=80010' target='_blank' onMouseOver='ChangeLayer(5);'><img src='http://image.chosun.com/2008election/images/vmenu8_on.gif' alt='ÃÑ¼± Åä·Ð¹æ' align='absmiddle'></a></dd><dd><a href='http://issue.chosun.com/choice2008/17_edition.html' target='_blank' onMouseOver='ChangeLayer(6);'><img src='http://image.chosun.com/2008election/images/vmenu9_off.gif' alt='17´ë ÃÑ¼± µÇµ¹¾Æº¸±â' align='absmiddle'></a></dd></dl> " +
	"	<dl id='menu6' style='display:" + ((catnum == 6)? "block": "none") + ";'> " +
	"	<dd><a href='http://choice2008.chosun.com/election/perc_vote.html' onMouseOver='ChangeLayer(7);'><img src='http://image.chosun.com/2008election/images/vmenu1_off.gif' alt='ÅõÇ¥ ÇöÈ²' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/election/perc_vote_count.html' onMouseOver='ChangeLayer(8);'><img src='http://image.chosun.com/2008election/images/vmenu2_off.gif' alt='°³Ç¥ ÇöÈ²' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/election/elected3.html' onMouseOver='ChangeLayer(9);'><img src='http://image.chosun.com/2008election/images/vmenu3_off.gif' alt='´ç¼± ÇöÈ²' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/news/total/index.html' onMouseOver='ChangeLayer(1);'><img src='http://image.chosun.com/2008election/images/vmenu4_off.gif' alt='ÃÑ¼±´º½º' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/candidate/hubo_search.html?sido_2=0&gu_2=0&hubo_name=' onMouseOver='ChangeLayer(2);'><img src='http://image.chosun.com/2008election/images/vmenu5_off.gif' alt='³»Áö¿ª ÈÄº¸ÀÚ´Â?' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/photo/index.html' onMouseOver='ChangeLayer(3);'><img src='http://image.chosun.com/2008election/images/vmenu6_off.gif' alt='ÃÑ¼± ÇÖ Æ÷Åä' align='absmiddle'></a></dd><dd><a href='http://choice2008.chosun.com/media/index.html' onMouseOver='ChangeLayer(4);'><img src='http://image.chosun.com/2008election/images/vmenu7_off.gif' alt='ÃÑ¼± µ¿¿µ»ó' align='absmiddle'></a></dd><dd><a href='http://forum.chosun.com/bbs.reple.list.screen?bbs_id=80010' target='_blank' onMouseOver='ChangeLayer(5);'><img src='http://image.chosun.com/2008election/images/vmenu8_off.gif' alt='ÃÑ¼± Åä·Ð¹æ' align='absmiddle'></a></dd><dd><a href='http://issue.chosun.com/choice2008/17_edition.html' target='_blank' onMouseOver='ChangeLayer(6);'><img src='http://image.chosun.com/2008election/images/vmenu9_on.gif' alt='17´ë ÃÑ¼± µÇµ¹¾Æº¸±â' align='absmiddle'></a></dd></dl> " +
	"	<div id='gnb_sub'> " +
	"		<div id='gnb_2depth7' style='display:" + ((catnum == 7)? "block": "none") + ";'> " +
	"		</div> " +
	"		<div id='gnb_2depth8' style='display:" + ((catnum == 8)? "block": "none") + ";'> " +
	"			<table cellpadding='0' cellspacing='0' border='0'> " +
	"				<tr align='center'> " +
	"				<td width='62' id='depth41' class='gnb_2depth'><a href='http://choice2008.chosun.com/election/ifr_poll.html'>Ãâ±¸Á¶»ç</a></td> " +
	"				<td width='1'><span class='gr_12_99'>|</span></td> " +
	"				<td width='110' id='depth42' class='gnb_2depth'><a href='http://choice2008.chosun.com/election/perc_vote_count.html'>Áö¿ª±¸ °³Ç¥ »óÈ²</a></td> " +
	"				<td width='1'><span class='gr_12_99'>|</span></td> " +
	"				<td width='115' id='depth43' class='gnb_2depth'><a href='http://choice2008.chosun.com/election/ifr_hbpyo_bire.html'>ºñ·Ê´ëÇ¥ °³Ç¥ »óÈ²</a></td> " +
	"				</tr> " +
	"			</table> " +
	"		</div> " +
	"		<div id='gnb_2depth9' style='display:" + ((catnum == 9)? "block": "none") + ";'> " +
	"			<table cellpadding='0' cellspacing='0' border='0'> " +
	"				<tr align='center'>" +
	"				<td width='145' id='depth52' class='gnb_2depth'><a href='http://choice2008.chosun.com/election/elected3.html'>Àü±¹ Áö¿ª±¸ ´ç¼±ÀÚ ÇöÈ²</a></td>" +
	"				<td width='5'><span class='gr_12_99'>|</span></td> " +
	"				<td width='175' id='depth51' class='gnb_2depth'><a href='http://choice2008.chosun.com/election/elected4.html'>Á¤´çº° ºñ·Ê´ëÇ¥ ´ç¼±ÀÚ ÇöÈ²</a></td><!--" +
	"				 <td width='1'><span class='gr_12_99'>|</span></td> " +
	"				<td width='130' id='depth53' class='gnb_2depth'><a href='#'>ºñ·Ê´ëÇ¥ µæÇ¥¼ö¡¤µæÇ¥À²</a></td> -->" +
	"				<td width='5'><span class='gr_12_99'>|</span></td> " +
	"				<td width='135' id='depth54' class='gnb_2depth'><a href='http://choice2008.chosun.com/election/ifr_hbpyo_uisuksu.html'>Á¤´çº° Áö¿ª±¸ ÀÇ¼®¼ö</a></td> " +
	"				</tr> " +
	"			</table> " +
	"		</div> " +
	"		<div id='gnb_2depth1' style='display:" + ((catnum == 1)? "block": "none") + ";'> " +
	"			<table cellpadding='0' cellspacing='0' border='0'> " +
	"				<tr align='center'> " +
	"				<td width='62' id='depth21' class='gnb_2depth'><a href='http://choice2008.chosun.com/news/total/index.html'>ÀüÃ¼±â»ç</a></td> " +
	"				<td width='1'><span class='gr_12_99'>|</span></td> " +
	"				<td width='121' id='depth22' class='gnb_2depth'><a href='http://choice2008.chosun.com/news/analysis/index.html'>ÆÇ¼¼ºÐ¼®(¿©·ÐÁ¶»ç)</a></td> " +
	"				<td width='1'><span class='gr_12_99'>|</span></td> " +
	"				<td width='110' id='depth23' class='gnb_2depth'><a href='http://choice2008.chosun.com/news/region/index.html'>4.9 ÃÑ¼± Áö¿ª´º½º</a></td> " +
	"				<td width='1'><span class='gr_12_99'>|</span></td> " +
	"				<td width='76' id='depth24' class='gnb_2depth'><a href='http://choice2008.chosun.com/news/match/index.html'>°ÝÀüÁö ¸Â¼ö</a></td> " +
	"				<td width='1'><span class='gr_12_99'>|</span></td> " +
	"				<td width='100' id='depth25' class='gnb_2depth'><a href='http://choice2008.chosun.com/news/candidate/index.html'>4¡¤9 ÃÑ¼± ÁÖÀÚµé</a></td> " +
	"				</tr> " +
	"			</table> " +
	"		</div> " +
	"		<div id='gnb_2depth2' style='display:" + ((catnum == 2)? "block": "none") + ";'> " +
	"			<table cellpadding='0' cellspacing='0' border='0'> " +
	"				<tr align='center'> " +
	"				<td width='97' id='depth31' class='gnb_2depth'><a href='http://choice2008.chosun.com/candidate/hubo_search.html?sido_2=0&gu_2=0&hubo_name='>Áö¿ªº° ÈÄº¸ÀÚ</a></td> " +
	"				<td width='1'><span class='gr_12_99'>|</span></td> " +
	"				<td width='110' id='depth32' class='gnb_2depth'><a href='http://news.chosun.com/site/data/html_dir/2008/03/25/2008032500879.html'>ºñ·Ê´ëÇ¥ È®Á¤ ¸í´Ü</a></td> " +
	"				<td width='1'><span class='gr_12_99'>|</span></td> " +
	"				<td width='185' id='depth33' class='gnb_2depth'><a href='http://news.chosun.com/site/data/html_dir/2008/03/27/2008032700065.html'>ÈÄº¸ÀÚ º´¿ª¡¤Àç»ê¡¤³³¼¼¡¤Àü°ú ÇöÈ²</a></td> " +
	"				</tr> " +
	"			</table> " +
	"		</div> " +
	"		<div id='gnb_2depth3' style='display:" + ((catnum == 3)? "block": "none") + ";'> " +
	"		</div> " +
	"		<div id='gnb_2depth4' style='display:" + ((catnum == 4)? "block": "none") + ";'> " +
	"		</div> " +
	"		<div id='gnb_2depth5' style='display:" + ((catnum == 5)? "block": "none") + ";'> " +
	"		</div> " +
	"		<div id='gnb_2depth6' style='display:" + ((catnum == 6)? "block": "none") + ";'> " +
	"		</div> ");
var cat2num = Catid.substring(1, 2);
	if (cat2num){
		if(catnum == 1){
		document.getElementById('depth2'+cat2num).className = 'gnb_2depth_on'
		} else if(catnum == 2)
			{
			document.getElementById('depth3'+cat2num).className = 'gnb_2depth_on' 
			} else if(catnum == 8)
			{
			document.getElementById('depth4'+cat2num).className = 'gnb_2depth_on' 
			} else if(catnum == 9)
			{
			document.getElementById('depth5'+cat2num).className = 'gnb_2depth_on' 
			}
			else
		{
		document.getElementById('depth21').className = 'gnb_2depth_on'
		}
	}
//·Î±×ÀÎ °ü·Ã ---
function getCookieVal (pos) {
	var str = "";
	var pos2 = document.cookie.indexOf(";", pos);
	return document.cookie.substring(pos,pos2);
}

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 = "http://membership.chosun.com/login/protect_sso/sso_user_info.jsp?returl="+returl;
	var logout_url = "http://membership.chosun.com/login/logout.jsp?returl="+returl;
	var regist_url = "http://membership.chosun.com/join/registUser.jsp?site=chosun";
	var join_url = "http://membership.chosun.com/join/registUser.jsp?act=update&site=chosun";
	var idpw_url = "http://membership.chosun.com/join/registUser.jsp?act=idpw&site=chosun";
	var logStr;

	
	//·Î±×ÀÎ¿©ºÎ - ÄíÅ°°ª È®ÀÎ
	if (!GetCookie('SMSESSION') || GetCookie('SMSESSION') == "LOGGEDOFF" || !GetCookie('SM_USER')) {
		str = "<img src='http://image.chosun.com/2008election/images/bullet_blue_sq.gif' align='absmiddle'> <a href=" + login_url + " target=_top>·Î±×ÀÎ</a> <img src='http://image.chosun.com/2008election/images/bullet_blue_sq.gif' align='absmiddle'> <a href=" + regist_url + " target=_top>È¸¿ø°¡ÀÔ</a> <img src='http://image.chosun.com/2008election/images/bullet_blue_sq.gif' align='absmiddle'> <a href=" + idpw_url +" target=_top>ID/ºñ¹Ð¹øÈ£ Ã£±â</a>";
	}
	else if (!GetCookie('dz_nm') || !GetCookie('dz_info')) {	//20070406 rainy
var relogin_url = "http://membership.chosun.com/login/protect_sso/sso_user_info.jsp?returl="+returl;
		parent.location.href = relogin_url;
	}
	else {
		str = "<img src='http://image.chosun.com/2008election/images/bullet_blue_sq.gif' align='absmiddle'> <a href=" + logout_url + " target=_top>·Î±×¾Æ¿ô</a> <img src='http://image.chosun.com/2008election/images/bullet_blue_sq.gif' align='absmiddle'> <a href=" + join_url + " target=_top>Á¤º¸¼öÁ¤</a>";
	}
	
	return str;
}
document.write(" \
		<div id='login' class='login_text'>" +loginFrame()+ "</div> \
	</div> \
</div> \
<div id='bg_gnb_left'></div> \
<div id='bg_gnb_right'></div> \
");
var today = new Date(); 
var year = today.getYear(); 
var date = new Date("apr 9, 2009"); //³Ö°í ½ÍÀº³¯Â¥
var diff = date.getTime() - today.getTime(); 
var days = Math.floor(diff / (1000 * 60 * 60 * 24))+1; 
if (days >= 0){
document.write(" \
<div id='dday'><img src='http://image.chosun.com/2008election/images/dday_blank.gif'></div> \
");
}else if (dday < 0){
document.write(" \
<div id='dday'></div> \
");
}