function fl_view(objhtml) { 
    document.write(objhtml); 
} 

function MM_swapImgRestore() { //v3.0
	var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
	if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
	d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}



//ÇÁ·¹ÀÓ »çÀÌÁî Á¶Àý	
function resizeFrame(iframeObj, height){	
	if(iframeObj.src.indexOf("http://") == -1){
		var innerBody = iframeObj.contentWindow.document.body;
		oldEvent = innerBody.onclick;
		innerBody.onclick = function(){ resizeFrame(iframeObj, 1);oldEvent; };
		var innerHeight = innerBody.scrollHeight + (innerBody.offsetHeight - innerBody.clientHeight);
		iframeObj.style.height = innerHeight;
		var innerWidth = innerBody.scrollWidth + (innerBody.offsetWidth - innerBody.clientWidth);
		iframeObj.style.width = innerWidth;     
		if( !arguments[1] )        /* Æ¯Á¤ ÀÌº¥Æ®·Î ÀÎÇÑ È£Ãâ½Ã ½ºÅ©·ÑÀ» ±×³É µÐ´Ù. */
			this.scrollTo(1,1);
	}
}	

//ÄÁÅÙÃ÷ Url
function parkContent(){
	document.all["content"].src = iframesrc;
}


function SetCookie (name, value) {
  var argv = SetCookie.arguments;
  var argc = SetCookie.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;
  document.cookie = name + "=" + escape (value) +
      ((expires == null) ? "" : 
        ("; expires=" + expires.toGMTString())) +
      ((path == null) ? "" : ("; path=" + path)) +
      ((domain == null) ? "" : ("; domain=" + domain)) +
      ((secure == true) ? "; secure" : "");
} 


//¸ÞÀÎ Top Menu
function infoTopBar(MemberNM){
document.write("\
<table width=\"572\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\
	<tr>\
		<td id=\"logname\" name=\"logname\" align=\"right\" style=\"DISPLAY:none;padding-right:8px;padding-top:3px;\" width=\"100\"></td>\
		<td id=\"logoutname\" name=\"logoutname\" align=\"right\" style=\"DISPLAY:none;padding-right:8px;padding-top:3px;\" width=\"100\"><Font style=\"Font-size:9pt;font-weight:bold;\"></td>\
		<td width=\"2\"><img src=\"http://visit.knps.or.kr/img/topinfoline.gif\"></td>\
		<td width=\"33\" height=\"16\">\
		<a href=\"http://www.knps.or.kr\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('top_bt_01','','./img/index/top_menu_01_r.jpg',1)\"><img src=\"img/index/top_menu_01.jpg\" name=\"top_bt_01\" width=\"33\" height=\"17\" border=\"0\" alt=\"È¨\"></a></td>\
		<td width=\"53\" height=\"16\">\
		<IMG id=\"login\" style=\"DISPLAY: none; CURSOR: hand\" onclick=\"window.open('/KNPS/MEMBERWEB/POP_LOGIN.aspx','win2','width=550,height=380,scrollbars=no');\" alt=\"·Î±×ÀÎ\" src=\"img/index/top_menu_02.jpg\" border=\"0\" name=\"login\">\
		<IMG id=\"logout\" style=\"DISPLAY: none; CURSOR: hand\" onclick=\"javascript:clearCookie();\" alt=\"·Î±×¾Æ¿ô\" src=\"img/index/top_menu_02_out.jpg\" border=\"0\" name=\"logout\">\
		</td>\
		<td width=\"62\" height=\"16\">\
		<a href=\"http://visit.knps.or.kr/KNPS/divide.aspx?menu=008&amp;submenu=001\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('top_bt_03','','./img/index/top_menu_03_r.jpg',1)\">\
		<img src=\"img/index/top_menu_03.jpg\" name=\"top_bt_03\" width=\"62\" height=\"17\" border=\"0\" alt=\"È¸¿ø°¡ÀÔ\" id=\"Member\" style=\"DISPLAY: none; CURSOR: hand\"></a>\
		<a href=\"http://visit.knps.or.kr/KNPS/knps_main.aspx?link=divide.aspx%menu=006|submenu=001\" target=\"_blank\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('top_bt_00','','./img/index/top_menu_03_2r.jpg',1)\">\
		<img src=\"img/index/top_menu_03_2.jpg\" name=\"top_bt_00\" border=\"0\" alt=\"¸¶ÀÌÆäÀÌÁö\" id=\"mypage\" style=\"DISPLAY:none;Cursor:hand;\"></a></td>\
		<td width=\"62\" height=\"16\">\
		<a href=\"./divide.aspx?menu=008&amp;submenu=004&amp;src=/Information/etc/sitemap.html\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('top_bt_05','','./img/index/top_menu_05_r.jpg',1)\">\
		<img src=\"img/index/top_menu_05.jpg\" name=\"top_bt_05\" width=\"62\" height=\"17\" border=\"0\" alt=\"»çÀÌÆ®¸Ê\"></a></td>\
		<td width=\"64\" height=\"16\">\
		<a href=\"http://english.knps.or.kr\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('top_bt_06','','./img/index/top_menu_06_r.jpg',1)\">\
		<img src=\"img/index/top_menu_06.jpg\" name=\"top_bt_06\" width=\"64\" height=\"17\" border=\"0\" alt=\"ENGLISH\"></a></td>\
		<td width=\"68\" height=\"16\">\
		<a href=\"http://ecotour.knps.or.kr\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('top_menu','','http://visit.knps.or.kr/KNPS/image/top_eco_on.gif',1)\">\
		<img src=\"http://visit.knps.or.kr/KNPS/image/top_eco.gif\" name=\"top_menu\" width=\"68\" height=\"17\" border=\"0\" alt=\"¿¡ÄÚÅõ¾î\"></a></td>\
		<td height=\"16\"></td>\
		<td width=\"98\" height=\"16\">\
		<img src=\"img/index/top_menu_08.jpg\" width=\"98\" height=\"17\" border=\"0\" alt=\"±¹¸³°ø¿ø°ü¸®°ø´Ü\"></td>\
	</tr>\
</table>\
");
}


//Å½¹æº° Top Menu
function visitTopBar(MemberNM){
document.write("\
<table cellSpacing=\"0\" cellPadding=\"0\" width=\"655\" border=\"0\">\
	<tr>\
		<td id=\"logname\" name=\"logname\" align=\"right\" style=\"DISPLAY:none;padding-right:8px;padding-top:3px;\" width = \"100\"></td>\
		<td id=\"logoutname\" name=\"logoutname\" align=\"right\" style=\"DISPLAY:none;padding-right:8px;padding-top:3px;\" width = \"100\"><Font style=\"Font-size:9pt;font-weight:bold;\"></td>\
		<td width=\"2\"><img src=\"http://visit.knps.or.kr/img/topvisitline.gif\"></td>\
		<td width=\"37\"><A href=\"http://www.knps.or.kr\"><IMG height=\"17\" alt=\"È¨\" src=\"img/index/top_menu_01.gif\" width=\"37\" border=\"0\"></A></td>\
		<td width=\"53\">\
		<IMG id=\"login\" style=\"DISPLAY: none; CURSOR: hand\" onclick=\"window.open('/KNPS/MEMBERWEB/POP_LOGIN.aspx','win2','width=550,height=380,scrollbars=no');\" alt=\"·Î±×ÀÎ\" src=\"img/index/top_menu_02.gif\" border=\"0\" name=\"login\">\
		<IMG id=\"logout\" style=\"DISPLAY: none; CURSOR: hand\" onclick=\"javascript:clearCookie();\" alt=\"·Î±×¾Æ¿ô\" src=\"img/index/top_menu_02_out.gif\" border=\"0\" name=\"logout\">\
		<td width=\"62\"><A href=\"./divide.aspx?menu=008&amp;submenu=001\">\
		<IMG height=\"17\" alt=\"È¸¿ø°¡ÀÔ\" src=\"img/index/top_menu_03.gif\" width=\"62\" border=\"0\" id=\"member\" style=\"DISPLAY: none; CURSOR: hand\"> <A href=\"./divide.aspx?menu=006&amp;submenu=001\">\
					<IMG alt=\"¸¶ÀÌÆäÀÌÁö\" src=\"./img/temp/sub_top_add_btn07.gif\" border=\"0\" id=\"mypage\" style=\"DISPLAY: none; CURSOR: hand\"></A></td>\
		<td width=\"83\"><A href=\"./divide.aspx?menu=007&amp;submenu=001\"><IMG height=\"17\" alt=\"ÀÚÁÖÇÏ´ÂÁú¹®\" src=\"img/index/top_menu_04.gif\" width=\"83\" border=\"0\"></A></td>\
		<td width=\"62\"><A href=\"./divide.aspx?menu=009&amp;submenu=003\"><IMG height=\"17\" alt=\"»çÀÌÆ®¸Ê\" src=\"img/index/top_menu_05.gif\" width=\"62\" border=\"0\"></A></td>\
		<td width=\"64\"><A href=\"http://english.knps.or.kr\" target=\"_blank\"><IMG height=\"17\" alt=\"ENGLISH\" src=\"img/index/top_menu_06.gif\" width=\"63\" border=\"0\"></A></td>\
		<td width=\"68\"><IMG height=\"17\" alt=\"¿¡ÄÚÅõ¾î\" src=\"http://visit.knps.or.kr/KNPS/image/top_eco_on.gif\" width=\"68\" border=\"0\"></td>\
		<td></td>\
		<td width=\"88\">\
		<A onmouseover=\"MM_swapImage('999','','img/index/top_menu_08_r.gif',1)\" onmouseout=\"MM_swapImgRestore();\" href=\"http://main.knps.or.kr/\"><IMG height=\"17\" alt=\"±¹¸³°ø¿ø°ü¸®°ø´Ü\" src=\"img/index/top_menu_08.gif\" width=\"88\" border=\"0\" name=\"top_menu\"></A></td>\
	</tr>\
</table>\
");
}


//°ø¿øº° Top Menu
function parkTopBar(MemberNM){
document.write("\
<table height=\"26\" cellSpacing=\"0\" cellPadding=\"0\" width=\"100%\" background=\"img/top/bg_top.gif\" border=\"0\">\
	<tr>\
		<td align=\"right\" width=\"900\">\
			<table cellSpacing=\"0\" cellPadding=\"0\" border=\"0\">\
				<tr>\
					<td id=\"logname\" name=\"logname\" style=\"DISPLAY:none;padding-right:8px;padding-top:3px;\"></td>\
					<td id=\"logoutname\" name=\"logoutname\" style=\"DISPLAY:block;padding-right:8px;padding-top:3px;\"><Font style=\"Font-size:9pt;font-weight:bold;\"></td>\
					<td width=\"2\"><img src=\"http://visit.knps.or.kr/img/topparkline.gif\"></td>\
					<td id=\"memberid\"></td>\
					<td width=\"35\"><A href=\"http://www.knps.or.kr\"><IMG src=\"img/top/top_m_01.gif\" border=\"0\" alt=\"È¨\"></A></td>\
					<td width=\"53\"><img id=\"login\" name=\"login\" src=\"img/top/top_m_02.gif\" border=\"0\" alt=\"·Î±×ÀÎ\" style=\"DISPLAY:block;CURSOR:hand\" onclick=\"window.open('/knps/MEMBERWEB/POP_LOGIN.aspx','win2','width=550,height=380,scrollbars=no');\">\
					<img id=\"logout\" name=\"logout\" src=\"img/top/top_m_02_out.gif\" border=\"0\" alt=\"·Î±×¾Æ¿ô\" style=\"DISPLAY:none;CURSOR:hand\" onclick=\"javascript:clearCookie();\"></td>\
					<td width=\"62\"><A href=\"http://visit.knps.or.kr/divide.aspx?menu=008&submenu=001\"><IMG src=\"img/top/top_m_03.gif\" border=\"0\" alt=\"È¸¿ø°¡ÀÔ\" id=member  style=\"cursor:hand;display:'block'\"></A>\
					<a href=\"http://visit.knps.or.kr/divide.aspx?menu=006&submenu=001\" target=\"_blank\"><IMG src=\"img/top/top_m_03_02.gif\" border=\"0\" alt=\"¸¶ÀÌÆäÀÌÁö\" style=\"cursor:hand;display:'none'\" id=mypage></A></td>\
					<td width=\"83\"><a href=\"/divide.aspx?menu=006&submenu=001\"><img src=\"img/top/top_m_04.gif\" border=\"0\" alt=\"ÀÚÁÖÇÏ´Â Áú¹®\"></a></td>\
					<td width=\"62\"><A href=\"/divide.aspx?menu=006&submenu=002\"><IMG src=\"img/top/top_m_05.gif\" border=\"0\" alt=\"»çÀÌÆ®¸Ê\"></A></td>\
					<td width=\"50\"><A href=\"/eng\" target=\"_parent\"><IMG src=\"img/top/top_m_06.gif\" border=\"0\" alt=\"¿µ¹®»çÀÌÆ®¹Ù·Î°¡±â\"></A></td>\
					<td width=\"10\"></td>\
					<td><A onMouseOver=\"MM_swapImage('top_bt_02','','http://visit.knps.or.kr/KNPS/image/top_eco_on.gif',1)\" onMouseOut=\"MM_swapImgRestore()\"	href=\"http://ecotour.knps.or.kr\"  target=\"_blank\"><IMG height=\"17\" src=\"http://visit.knps.or.kr/KNPS/image/top_eco.gif\" border=\"0\" name=\"top_bt_02\" alt=\"¿¡ÄÚÅõ¾î\"></A></td>\
					<td width=\"5\"></td>\
					<td><A onMouseOver=\"MM_swapImage('top_bt_01','','img/top/top_bt_01_r.gif',1)\" onMouseOut=\"MM_swapImgRestore()\"	href=\"http://main.knps.or.kr\"  target=\"_parent\"><IMG height=\"17\" src=\"img/top/top_bt_01.gif\" border=\"0\" name=\"top_bt_01\" alt=\"±¹¸³°ø¿ø°ü¸®°ø´Ü\"></A></td>\
				</tr>\
			</table>\
		</td>\
		<td>&nbsp;</td>\
	</tr>\
</table>\
");
}

//°ø¿øº° flash Menu
function parkTop(){
document.write("\
<table width=\"901\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\
	<tr>\
		<td width=\"236\"><a href=\"./index.aspx\">\
		<IMG height=\"85\" src=\"img/top/logo.gif\" width=\"250\" border=\"0\"></a></td>\
		<td width=\"665\" align=\"right\" valign=\"bottom\">\
		<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" width=\"628\" height=\"70\">\
		<param name=\"movie\" value=\"swf/" + swffilename + "\">\
		<param name=\"quality\" value=\"high\">\
		<embed src=\"swf/" + swffilename + "\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"628\" height=\"70\">\
		</embed></object></td>\
	</tr>\
</table>\
");
}

////LEFT
//
//function fnSetContent(e){
//	location.href = "./divide.aspx?menu=001&submenu="+e;			
//}
//		 
//function fnSetContent1(e){
//	location.href = "./divide.aspx?menu=001&submenu="+e;			
//}
//	
//		 
////LEFT 2		 
// function fnSetContent2(e){
//	location.href = "./divide.aspx?menu=002&submenu="+e;
//}
// 
// 
////LEFT3
//function fnSetContent3(e){
//	location.href = "./divide.aspx?menu=003&submenu="+e;
//}
// 
// 
////LEFT4
//function fnSetContent4(e){
//	location.href = "./divide.aspx?menu=004&submenu="+e;
//}
//	
//	
////LEFT5
//function fnSetContent5(e){
//	location.href = "./divide.aspx?menu=005&submenu="+e;
//}
//
////LEFT6
//function fnSetContent6(e){
//	location.href = "./divide.aspx?menu=006&submenu="+e;
//}
//
////LEFT7
//function fnSetContent7(e){
//	location.href = "./divide.aspx?menu=007&submenu="+e;
//}
//	
////LEFT8
//function fnSetContent8(e){
//	location.href = "./divide.aspx?menu=008&submenu="+e;
//}	
//
////LEFT9
//function fnSetContent9(e){
//	location.href = "./divide.aspx?menu=009&submenu="+e;
//}	
////LEFT10
//function fnSetContent10(e){
//	location.href = "./divide.aspx?menu=010&submenu="+e;
//}	