function search_form(){
	document.writeln("	<form name=\"isearch\" method=\"get\" action=\"http://search.hankooki.com/search.php\" onSubmit=\"return SetSearch.GoAction()\" style=\"margin:0;padding:0;\">");
	document.writeln("	 <li><input name=\"mode\" type=\"radio\" value=\"\" checked=\"checked\" /></li>");
	document.writeln("	 <li style=\"padding:2px 5px 0 0;\"><strong>ÅëÇÕ</strong></li>");
	document.writeln("	 <li><input name=\"mode\" type=\"radio\" value=\"news\" /></li>");
	document.writeln("	 <li style=\"padding:2px 5px 0 0;\">´º½º</li>");
	document.writeln("	 <li><input name=\"kw\" type=\"text\" class=\"main_search\" style=\"height:14px;\" value=\"°Ë»ö¾î¸¦ ÀÔ·ÂÇÏ¼¼¿ä.\" onclick=\"SetSearch.check_search(this)\" /></li>");
	document.writeln("	 <li style=\"padding-left:3px;\"><input type=\"image\" src=\"http://img.hankooki.com/news/2009/08/btn_search.gif\" alt=\"°Ë»ö\" /></li>");
	document.writeln("	</form>");
}

function MediaMenuLink(){
	document.write("<li style=\"width:570px;\">");
	document.write("<dl class=\"info_01\">");
	document.write("	<dd><span class=\"dropt\"><a href=\"http://www.hankooki.com/\">ÇÑ±¹¾ÆÀÌ´åÄÄ</a></span></dd>");
	document.write("	<dd><span class=\"dropt\"><a href=\"http://news.hankooki.com/\">ÇÑ±¹ÀÏº¸</a></span></dd>");
	document.write("	<dd><span class=\"dropt\"><a href=\"http://economy.hankooki.com/\">¼­¿ï°æÁ¦</a></span></dd>");
	document.write("	<dd><span class=\"dropt\"><a href=\"http://sports.hankooki.com/\">½ºÆ÷Ã÷ÇÑ±¹</a></span></dd>");
	document.write("	<dd><span class=\"dropt\"><a href=\"http://kids.hankooki.com/\">¼Ò³âÇÑ±¹ÀÏº¸</a></span></dd>");
	document.write("	<dd><span class=\"dropt\"><a href=\"http://www.koreatimes.co.kr/\" target='_blank'>ÄÚ¸®¾ÆÅ¸ÀÓ½º</a></span></dd>");
	document.write("	<dd><span class=\"dropt\"><a href=\"http://www.koreatimes.com/\" target='_blank'>ÇÑ±¹ÀÏº¸USA</a></span></dd>");
	document.write("</dl>");
	document.write("</li>");
}

function NewsMenuLink(){		
	document.write("<li><a href=\"javascript:gotoRecent('hk')\">ÃÖ½Å±â»ç</a></li>");
	document.write("<li><a href=\"http://news.hankooki.com/politics/politics.htm\">Á¤Ä¡</a></li>");
	document.write("<li><a href=\"http://news.hankooki.com/economy/economy.htm\">°æÁ¦</a></li>");
	document.write("<li><a href=\"http://news.hankooki.com/society/society.htm\">»çÈ¸</a></li>");
	document.write("<li><a href=\"http://news.hankooki.com/culture/culture.htm\">¹®È­</a></li>");
	document.write("<li><a href=\"http://news.hankooki.com/health/life.htm\">¶óÀÌÇÁ</a></li>");
	document.write("<li><a href=\"http://news.hankooki.com/world/world.htm\">±¹Á¦</a></li>");
	document.write("<li><a href=\"http://news.hankooki.com/it_tech/it_tech.htm\">IT</a></li>");
	document.write("<li><a href=\"http://news.hankooki.com/people/people.htm\">ÇÇÇÃ</a></li>");
	document.write("<li><a href=\"http://news.hankooki.com/opinion/opinion.htm\">»ç¼³¡¤Ä®·³</a></li>");
}

function SportsMenuLink(){		
	document.write("<li><a href=\"http://news.hankooki.com/sports/baseball_news.htm\">¾ß±¸</a></li>");
	document.write("<li><a href=\"http://news.hankooki.com/sports/football_news.htm\">Ãà±¸</a></li>");
	document.write("<li><a href=\"http://news.hankooki.com/sports/more_news.htm\">½ºÆ÷Ã÷ÀÏ¹Ý</a></li>");
	document.write("<li><a href=\"http://news.hankooki.com/sports/entv_tv.htm\">¹æ¼Û</a></li>");
	document.write("<li><a href=\"http://news.hankooki.com/sports/entv_movie.htm\">¿µÈ­</a></li>");
	document.write("<li><a href=\"http://news.hankooki.com/sports/entv_music.htm\">¹ÂÁ÷</a></li>");
	document.write("<li><a href=\"http://news.hankooki.com/sports/entv_gen.htm\">¿¬¿¹ÀÏ¹Ý</a></li>");
}

function HotissueMenuLink(){		
	document.write("<li><a href=\"http://news.hankooki.com/hotissue/hotissue_list.php\">Å×¸¶ÀÌ½´</a></li>");
	document.write("<li><a href=\"http://news.hankooki.com/hotissue/gi_sr_list.php?cd=gi\">±âÈ¹¹°</a></li>");
	document.write("<li><a href=\"http://news.hankooki.com/hotissue/gi_sr_list.php?cd=sr\">¿¬Àç¹°</a></li>");
	document.write("<li><a href=\"http://news.hankooki.com/hotissue/news_list.php\">ºÐ¾ßº°ÁÖ¿ä±â»ç</a></li>");
	document.write("<li><a href=\"http://news.hankooki.com/hotissue/many_list.php\">¸¹ÀÌº»±â»ç</a></li>");
}

function PhotoMenuLink(){		
	document.write("<li><a href=\"http://news.hankooki.com/photoi/photo_star.php\">STAR</a></li>");
	document.write("<li><a href=\"http://news.hankooki.com/photoi/photo_sexy.php\">SEXY</a></li>");
	document.write("<li><a href=\"http://news.hankooki.com/photoi/photo_sports.php\">SPORT</a></li>");
	document.write("<li><a href=\"http://news.hankooki.com/photoi/photo_focus.php\">FOCUS</a></li>");
	document.write("<li><a href=\"http://news.hankooki.com/photoi/photo_nature.php\">IT&NATURE</a></li>");
	document.write("<li><a href=\"http://news.hankooki.com/photoi/photo_world.php\">WORLD</a></li>");
	document.write("<li><a href=\"http://news.hankooki.com/photoi/photo_slide.php\">SLIDE</a></li>");
}

function TvMenuLink(){		
	document.write("<li><a href=\"http://news.hankooki.com/tv/tv_newsboom.php\">´º½ºBOOM</a></li>");
	document.write("<li><a href=\"http://news.hankooki.com/tv/tv_sportsq.php\">½ºÆ÷Ã÷Q</a></li>");
	document.write("<li><a href=\"http://news.hankooki.com/tv/tv_starcloseup.php\">½ºÅ¸Å¬·ÎÁî¾÷</a></li>");
	document.write("<li><a href=\"http://news.hankooki.com/tv/tv_specialreport.php\">½ºÆä¼È¸®Æ÷Æ®</a></li>");
	document.write("<li><a href=\"http://news.hankooki.com/tv/tv_lesson.php\">¹è¿öº¾½Ã´Ù</a></li>");
	document.write("<li><a href=\"http://news.hankooki.com/tv/tv_yahoo.php\">VIP ÀÎÅÍºä</a></li>");
	document.write("<!-- li><a href=\"http://news.hankooki.com/tv/tv_mncast.php\">¹Ì´ÏÄ³½ºÆ®</a></li -->");
}

function PhotoonMenuLink(){		
	document.write("<li><a href=\"http://news.hankooki.com/photoon/photoon_list.php?cate_id=1\">Æ÷Åä&¿Àµð¿À</a></li>");
	document.write("<li><a href=\"http://news.hankooki.com/photoon/photoon_list.php?cate_id=3\">Å×¸¶È­º¸</a></li>");
	document.write("<li><a href=\"http://news.hankooki.com/photoon/photoon_list.php?cate_id=9\">»ç¶÷¿¡°Õ Ç¥Á¤ÀÌ ÀÖ´Ù</a></li>");
	document.write("<li><a href=\"http://news.hankooki.com/photoon/photoon_list.php?cate_id=2\">´À¸°¸¸Å­ º¸ÀÌ´Â ½£</a></li>");
	document.write("<li><a href=\"http://news.hankooki.com/photoon/photoon_list.php?cate_id=8\">ÀÌ¼º¿ø±âÀÚÀÇ ¿©Çà½ºÄÉÄ¡</a></li>");
}

function MediaMenu(){
	document.writeln("<table width=\"970\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
	document.writeln("<tr> ");
	document.writeln(" <td width=\"189\" background=\"http://img.hankooki.com/common/banner/hk_left_bg.gif\" style=\"padding:0 0 0 9px;\"><iframe id=\"l_promo\" src=\"http://news.hankooki.com/ad/hk_ad_main_ltop.htm\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" topmargin=\"0\" style=\"width:180;height:44\" scrolling=\"no\" ALLOWTRANSPARENCY=\"true\"></iframe></td>");
	document.writeln(" <td width=\"617\">");
	document.write("<table width=\"617\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
	document.write("  <tr>");
	document.write("    <td colspan=\"9\"><img src=\"http://img.hankooki.com/news/2007/12/home_top_01.gif\" width=\"617\" height=\"19\" alt=\"\"></td>");
	document.write("  </tr>");
	document.write("  <tr>");
	document.write("    <td><img src=\"http://img.hankooki.com/news/2007/12/home_top_02.gif\" width=\"29\" height=\"18\" alt=\"\"></td>");
	document.write("    <td width=\"86\"><a href=\"http://www.hankooki.com\" target=\"_top\" onMouseOver=\"MM_swapImage('Image16','','http://img.hankooki.com/news/2007/12/home_top_over_03.gif',1)\" onMouseOut=\"MM_swapImgRestore()\"><img src=\"http://img.hankooki.com/news/2007/12/home_top_03.gif\" name=\"Image16\" width=\"86\" height=\"18\" border=\"0\"></a></td>");
	document.write("    <td width=\"65\"><a href=\"http://news.hankooki.com\" target=\"_top\" onMouseOver=\"MM_swapImage('Image17','','http://img.hankooki.com/news/2007/12/home_top_over_04.gif',0)\" onMouseOut=\"MM_swapImgRestore()\"><img src=\"http://img.hankooki.com/news/2007/12/home_top_04.gif\" name=\"Image17\" width=\"65\" height=\"18\" border=\"0\"></a></td>");
	document.write("    <td width=\"62\"><a href=\"http://economy.hankooki.com\" target=\"_top\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Image19','','http://img.hankooki.com/news/2007/12/home_top_over_06.gif',1)\"><img src=\"http://img.hankooki.com/news/2007/12/home_top_06.gif\" name=\"Image19\" width=\"62\" height=\"18\" border=\"0\"></a></td>");
	document.write("    <td width=\"72\"><a href=\"http://sports.hankooki.com\" target=\"_top\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Image18','','http://img.hankooki.com/news/2007/12/home_top_over_05.gif',1)\"><img src=\"http://img.hankooki.com/news/2007/12/home_top_05.gif\" name=\"Image18\" width=\"72\" height=\"18\" border=\"0\"></a></td>");
	document.write("    <td width=\"85\"><a href=\"http://kids.hankooki.com\" target=\"_top\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Image20','','http://img.hankooki.com/news/2007/12/home_top_over_07.gif',1)\"><img src=\"http://img.hankooki.com/news/2007/12/home_top_07.gif\" name=\"Image20\" width=\"85\" height=\"18\" border=\"0\"></a></td>");
	document.write("    <td width=\"88\"><a href=\"http://www.koreatimes.co.kr\" target=\"_blank\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Image21','','http://img.hankooki.com/news/2007/12/home_top_over_08.gif',1)\"><img src=\"http://img.hankooki.com/news/2007/12/home_top_08.gif\" name=\"Image21\" width=\"88\" height=\"18\" border=\"0\"></a></td>");
	document.write("    <td width=\"85\"><a href=\"http://www.koreatimes.com\" target=\"_blank\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Image22','','http://img.hankooki.com/news/2007/12/home_top_over_09.gif',1)\"><img src=\"http://img.hankooki.com/news/2007/12/home_top_09.gif\" name=\"Image22\" width=\"85\" height=\"18\" border=\"0\"></a></td>");
	document.write("    <td><img src=\"http://img.hankooki.com/news/2007/12/home_top_10.gif\" width=\"45\" height=\"18\" alt=\"\"></td>");
	document.write("  </tr>");
	document.write("  <tr>");
	document.write("    <td colspan=\"9\"><img src=\"http://img.hankooki.com/news/2007/12/home_top_11.gif\" width=\"617\" height=\"12\" alt=\"\"></td>");
	document.write("  </tr>");
	document.write("</table>");
	document.writeln("	</td>");
	document.writeln(" <td><iframe id=\"r_promo\" src=\"http://news.hankooki.com/ad/hk_ad_main_rtop.htm\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" topmargin=\"0\" style=\"width:164;height:49\" scrolling=\"no\" ALLOWTRANSPARENCY=\"true\"></iframe></td>");
	document.writeln("</tr>");
	document.writeln("</table>");
}

function MainSubMenu(){
	document.writeln("		<table width=\"434\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
	document.writeln("		<tr> ");
	document.writeln("		 <td width=\"60\" height=\"21\"><img src=\"http://img.hankooki.com/news/2007/12/bullet_hk_sub.gif\"> <a href=\"/news_list.htm\">ÃÖ½Å±â»ç</a></td>");
	document.writeln("		 <td width=\"38\"><img src=\"http://img.hankooki.com/news/2007/12/bullet_hk_sub.gif\"> <a href=\"/politics/politics.htm\">Á¤Ä¡</a></td>");
	document.writeln("		 <td width=\"38\"><img src=\"http://img.hankooki.com/news/2007/12/bullet_hk_sub.gif\"> <a href=\"/economy/economy.htm\">°æÁ¦</a></td>");
	document.writeln("		 <td width=\"38\"><img src=\"http://img.hankooki.com/news/2007/12/bullet_hk_sub.gif\"> <a href=\"/society/society.htm\">»çÈ¸</a></td>");
	document.writeln("		 <td width=\"38\"><img src=\"http://img.hankooki.com/news/2007/12/bullet_hk_sub.gif\"> <a href=\"/culture/culture.htm\">¹®È­</a></td>");
	document.writeln("		 <td width=\"50\"><img src=\"http://img.hankooki.com/news/2007/12/bullet_hk_sub.gif\"> <a href=\"/health/life.htm\">¶óÀÌÇÁ</a></td>");
	document.writeln("		 <td width=\"38\"><img src=\"http://img.hankooki.com/news/2007/12/bullet_hk_sub.gif\"> <a href=\"/world/world.htm\">±¹Á¦</a></td>");
	document.writeln("		 <td width=\"25\"><img src=\"http://img.hankooki.com/news/2007/12/bullet_hk_sub.gif\"> <a href=\"/it_tech/it_tech.htm\">IT</a></td>");
	document.writeln("		 <td width=\"38\"><img src=\"http://img.hankooki.com/news/2007/12/bullet_hk_sub.gif\"> <a href=\"/people/people.htm\">ÇÇÇÃ</a></td>");
	document.writeln("		 <td><img src=\"http://img.hankooki.com/news/2007/12/bullet_hk_sub.gif\"> <a href=\"/opinion/opinion.htm\">»ç¼³.Ä®·³</a></td>");
	document.writeln("		</tr>");
	document.writeln("		</table>");	
}
function SportsSubMenu(){
	document.writeln("		<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
	document.writeln("		<tr> ");
	document.writeln("		 <td width=\"38\" height=\"21\"><img src=\"http://img.hankooki.com/news/2007/12/bullet_hk_sub.gif\"><a href=\"/sports/baseball/baseball_news.htm\">¾ß±¸</a></td>");
	document.writeln("		 <td width=\"38\"><img src=\"http://img.hankooki.com/news/2007/12/bullet_hk_sub.gif\"><a href=\"/sports/football/football_news.htm\">Ãà±¸</a></td>");
	document.writeln("		 <td width=\"74\"><img src=\"http://img.hankooki.com/news/2007/12/bullet_hk_sub.gif\"><a href=\"/sports/more/more_news.htm\">½ºÆ÷Ã÷ÀÏ¹Ý</a></td>");
	document.writeln("		 <td width=\"38\"><img src=\"http://img.hankooki.com/news/2007/12/bullet_hk_sub.gif\"><a href=\"/entv/entv_tv.htm\">¹æ¼Û</a></td>");
	document.writeln("		 <td width=\"38\"><img src=\"http://img.hankooki.com/news/2007/12/bullet_hk_sub.gif\"><a href=\"/entv/entv_movie.htm\">¿µÈ­</a></td>");
	document.writeln("		 <td width=\"38\"><img src=\"http://img.hankooki.com/news/2007/12/bullet_hk_sub.gif\"><a href=\"/entv/entv_music.htm\">¹ÂÁ÷</a></td>");
	document.writeln("		</tr>");
	document.writeln("		</table>");
}
function HotIssueSubMenu(){
	document.writeln("		<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
	document.writeln("		<tr> ");
	document.writeln("		 <td width=\"65\" height=\"21\"><strong><img src=\"http://img.hankooki.com/news/2007/12/bullet_hk_sub.gif\"><a href=\"/hotissue/thema_list.php\">Å×¸¶±âÈ¹</a></strong></td>");
	document.writeln("		 <td width=\"75\"><a href=\"/hotissue/story_list.php\"><img src=\"http://img.hankooki.com/news/2007/12/bullet_hk_sub.gif\"> ±âÈ¹½ºÅä¸®</a></td>");
	document.writeln("		 <td width=\"50\"><a href=\"/hotissue/serial_list.php\"><img src=\"http://img.hankooki.com/news/2007/12/bullet_hk_sub.gif\"> ¿¬Àç¹°</a></td>");
	document.writeln("		 <td width=\"100\"><a href=\"/hotissue/news_list.php\"><img src=\"http://img.hankooki.com/news/2007/12/bullet_hk_sub.gif\"> ºÐ¾ßº°ÁÖ¿ä±â»ç</a></td>");
	document.writeln("		 <td width=\"80\"><a href=\"/hotissue/many_list.php\"><img src=\"http://img.hankooki.com/news/2007/12/bullet_hk_sub.gif\"> ¸¹ÀÌº»±â»ç</a></td>");
	document.writeln("		 <td width=\"90\"><a href=\"/hotissue/onlyhk_list.php\"><img src=\"http://img.hankooki.com/news/2007/12/bullet_hk_sub.gif\"> OnlyÇÑ±¹¾ÆÀÌ</a></td>");
	document.writeln("		 <td width=\"75\"><a href=\"/hotissue/yoji_list.php\"><img src=\"http://img.hankooki.com/news/2007/12/bullet_hk_sub.gif\"> ¿äÁö°æ¼¼»ó</a></td>");
	document.writeln("		</tr>");
	document.writeln("		</table>");
}
function PhotoSubMenu(){
	
}
function TvSubMenu(){
	
}
function PhotoOnSubMenu(){
	document.writeln("		<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
	document.writeln("		<tr> ");
	document.writeln("		 <td width=\"80\" height=\"21\"><strong><img src=\"http://img.hankooki.com/news/2007/12/bullet_hk_sub.gif\"> Æ÷Åä¿¡¼¼ÀÌ</strong></td>");
	document.writeln("		 <td width=\"75\"><img src=\"http://img.hankooki.com/news/2007/12/bullet_hk_sub.gif\"> Æ÷Åä¾Ù¹ü</td>");
	document.writeln("		 <td width=\"75\"><img src=\"http://img.hankooki.com/news/2007/12/bullet_hk_sub.gif\"> ¾ß±ÙÀÏÁö</td>");
	document.writeln("		 <td width=\"100\"><img src=\"http://img.hankooki.com/news/2007/12/bullet_hk_sub.gif\"> e-Àü½Ã</td>");
	document.writeln("		</tr>");
	document.writeln("		</table>");
}

function RightLink(){
document.writeln("	<dd class=\"mtx\"><a href=\"http://lieto.hankooki.com\" target=\"_blank\">ÃàÁ¦¼ÓÀ¸·Î</a><span class=\"line\"><a href=\"http://timescall.hankooki.com\" target=\"_blank\">ÀüÈ­¿µ¾î</a></span><span class=\"line\"><a href=\"http://donation.hankooki.com\" target=\"_blank\">Èñ¸Á»ù</a></span></dd>");
}

function PageNavigation(gourl,totpage,type,curpage){
	var list_page="";
	var next_data="";
	
	gourl = "http://news.hankooki.com/service/200712/morelist/"+gourl;
	
	list_page +="<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
	list_page +="<tr> ";
	list_page +=" <td height=\"30\" align=\"center\">";
	list_page +=" <img src=\"http://img.hankooki.com/news/2007/12/btn_b_before.gif\" width=\"12\" height=\"11\">&nbsp;&nbsp;&nbsp;";
	
	if(totpage > 100){
		maxnum=11;
		next_data = "<a href="+gourl+"?page=11&type="+type+"><img src=\"http://img.hankooki.com/news/2007/12/btn_b_after.gif\" width=\"12\" height=\"11\"></a>";
	}else{
		maxnum=Math.ceil(totpage/10);
		next_data = "<img src=\"http://img.hankooki.com/news/2007/12/btn_b_after.gif\" width=\"12\" height=\"11\">";
	}
	for(i=1;i<maxnum;i++){
		if(i==curpage) list_page +="<b class=\"paging\">"+i+"</b>&nbsp;&nbsp;&nbsp;";
		else list_page +="<a href="+gourl+"?page="+i+"&type="+type+">"+i+"</a>&nbsp;&nbsp;&nbsp;";
	}
	list_page +=next_data;
	list_page +=" </td>";
	list_page +="</tr>";
	list_page +="</table>";
	ListNavi.innerHTML=list_page;
}

//¸µÅ© ¸·±â
function GotoHkLast(section,prefix,gisacode) {
    var postval;
    if(prefix == 'PL1'){
        postval = section +  'lpage/'+ gisacode.substring(1,gisacode.length);
    }else if(prefix == 'PL2'){
        postval = gisacode;
    }else{
        postval = 'http://' + window.location.host  + '/lpage'+ section + '/' + gisacode.substr(prefix.length,6)+ '/' + gisacode;
    }
    location.href = postval;
   
}

//¸Þ´º ÅÇ
var arrTopmenuTab = ["topmenu_01","topmenu_02","topmenu_03","topmenu_04","topmenu_05","topmenu_06"];

function setTopmenuTab(tabid){
    for(i=0;i<arrTopmenuTab.length;i++){
        if(arrTopmenuTab[i]==tabid){
            document.getElementById(arrTopmenuTab[i]).style.display = "block";
            document.getElementById("tab0"+ (i+1)).className = "naviON";	    
            
        }else{   
            document.getElementById(arrTopmenuTab[i]).style.display = "none";
            document.getElementById("tab0"+ (i+1)).className = "naviOFF";	    
        }    
    }        
}