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.0
  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 && document.getElementById) x=document.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_openBrWindow(theURL,winName,features) { //v2.0
	map_window= window.open(theURL,winName,features);
	map_window.focus();  
}

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();
}
MM_reloadPage(true);
// -->

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_showHideLayers2() { 
  var i,p,v,obj,args=MM_showHideLayers2.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.display=v; }
}
function writeTop(){
	MM_preloadImages('/images/top_icon01_o.gif','/images/top_icon02_o.gif','/images/top_icon03_o.gif','/images/top_icon04_o.gif','/images/top_icon05_o.gif','/images/top_menu01_o.gif','/images/top_menu02_o.gif','/images/top_menu03_o.gif','/images/top_menu04_o.gif','/images/top_menu05_o.gif','/images/top_menu06_o.gif','/images/top_menu07_o.gif')
	return;
	
	common_top ='<tr>' +
				'	<td>' +
				'		<table width=934 cellspacing=0 cellpadding=0 border=0 height=41>' +
				'			<tr>' +
				'				<td width="201" align="left"> ' +
				'				<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="87" height="40" VIEWASTEXT> ' +
				'					<param name="movie" value="/flash/logo.swf"> ' +
				'					<PARAM NAME="menu" VALUE="false">' +
				'					<embed src="/flash/logo.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="87" height="40">' +
				'					</embed>' +
				'					</object> ' +
				'					</td>' +
				'				<td width="532" align="right">' +
			//	'					<!-- °ü¸®ÀÚ ¸ðµå ÀÓ½Ã ¸µÅ© ½ÃÀÛ -->' +
			//	'					<a href="http://203.237.0.119/Josa" target="_blank"><b>¡Ú °ü¸®ÀÚ ¸ðµå ÀÓ½Ã ÆäÀÌÁö ¸µÅ©</b></a>&nbsp;&nbsp;&nbsp;' +
			//	'					<a href="http://203.237.0.121/sp_main.html" target="_blank"><b>¡Ú º½</b></a>' +
			//	'					<a href="http://203.237.0.121/su_main02.html" target="_blank"><b>¡Ú ¿©¸§</b></a>' +
			//	'					<a href="http://203.237.0.121/au_main.html" target="_blank"><b>¡Ú °¡À»</b></a>' +
			//	'					<a href="http://203.237.0.121/wi_main.html" target="_blank"><b>¡Ú °Ü¿ï</b></a>' +
			//	'					<a href="http://203.237.0.121/sp_main2.html" target="_blank"><b>¡Ú ¹°ÀÇ³¯</b></a>' +
			//	'					<a href="http://203.237.0.121/newyear_main_1.html" target="_blank"><b>¡Ú ¼³</b></a>' +
				'					<!-- °ü¸®ÀÚ ¸ðµå ÀÓ½Ã ¸µÅ© ³¡-->' +
				'				</td>' +
				'				<td width="201" align="right">' +
			//	'				  <table cellpadding="0" cellspacing="0" width="" height="20" border="0">' +
			//	'				    <tr>' +
			//	'					      <td width="25"><a href="/sitemap.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image6\',\'\',\'/images/top_icon01_o.gif\',1)"><img name="Image6" border="0" src="/images/top_icon01.gif" width="20" height="20" alt="»çÀÌÆ®¸Ê"></a></td>' +
			//	'					      <td width="25"><a href="/help.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image7\',\'\',\'/images/top_icon02_o.gif\',1)"><img name="Image7" border="0" src="/images/top_icon02.gif" width="20" height="20" alt="µµ¿ì¹Ì"></a></td>' +
			//	'					      <td width="25"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image8\',\'\',\'/images/top_icon03_o.gif\',1)"><img name="Image8" border="0" src="/images/top_icon03.gif" width="20" height="20" alt="¿ë¾î»çÀü"></a></td>' +
			//	'					      <td width="25"><a href="/data.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image9\',\'\',\'/images/top_icon04_o.gif\',1)"><img name="Image9" border="0" src="/images/top_icon04.gif" width="20" height="20" alt="ÀÚ·á½Ç"></a></td>' +
			//	'					      <td width="25"><a href="/linksite.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image10\',\'\',\'/images/top_icon05_o.gif\',1)"><img name="Image10" border="0" src="/images/top_icon05.gif" width="20" height="20" alt="°ü·Ã»çÀÌÆ®"></a></td>' +
			//	'					</tr>' +
			//	'				  </table>' +
				'					<table cellpadding="0" cellspacing="0" width="" height="17" border="0">'+
				'						<tr>' +
				'							<td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="460" height="40">' +
				'								<param name=movie value="/flash/global_menu1_20040817.swf">' +
				'								<param name=quality value=high>' +
				'								<embed src="flash/global_menu1_20040722.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="125" height="40">' +
				'								</embed> '+
				'								</object></td>' +
				'						</tr>'+
				'					</table>' + 
				'				</td>' +
				'			</tr>' +
				'		</table>' +
				'	</td>' +
				'</tr>' +
				'<tr>' +
				'	<td>' +
				'	  <table cellpadding=0 cellspacing=0 width="100%" height="36" border=0 >' +
				'	    <tr>' +
				'		  <td width="24" height="36"><img src="/images/top_menu_left.gif" width="24" height="36" border="0"></td>' +
				'		  <td width="884" background="/images/top_menu_bg.gif"><div id="menuPanel" name="lv1Menu" style="position:absolute; left:0; height:36;width:1000;"></div></td>' +
				'		  <td width="26" height="36"><img src="/images/top_menu_right.gif" width="26" height="36" border="0"></td>' +
				'		</tr>' +
				'	  </table>' +
				'	</td>' +
				'</tr>';

	document.write(common_top);
}


function writeTop_summer(){
	MM_preloadImages('/images/top_icon01_o.gif','/images/top_icon02_o.gif','/images/top_icon03_o.gif','/images/top_icon04_o.gif','/images/top_icon05_o.gif','/images/top_menu01_o.gif','/images/top_menu02_o.gif','/images/top_menu03_o.gif','/images/top_menu04_o.gif','/images/top_menu05_o.gif','/images/top_menu06_o.gif','/images/top_menu07_o.gif')

	common_top ='<tr>' +
				'	<td>' +
				'		<table width=934 cellspacing=0 cellpadding=0 border=0 height=41>' +
				'			<tr>' +
				'				<td width="201" align="left"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="87" height="40" VIEWASTEXT> <a href="http://localhost"><param name=movie value="/flash/su_logo1.swf"></a><param name=quality value=high><embed src="/flash/SP_MAIN.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="87" height="40"></embed></object></td>' +
				'				<td width="532" align="right">' +
				'					<!-- °ü¸®ÀÚ ¸ðµå ÀÓ½Ã ¸µÅ© ½ÃÀÛ -->' +
				'					<a href="http://203.237.0.119/wamisadmin/default.html " target="_blank"><b>¡Ú °ü¸®ÀÚ ¸ðµå ÀÓ½Ã ÆäÀÌÁö ¸µÅ©</b></a>' +
				'					<!-- °ü¸®ÀÚ ¸ðµå ÀÓ½Ã ¸µÅ© ³¡-->' +
				'				</td>' +
				'				<td width="201" align="right">' +
				'				  <table cellpadding="0" cellspacing="0" width="" height="20" border="0">' +
				'				    <tr>' +
				'					      <td width="25"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image6\',\'\',\'/images/top_icon01_o.gif\',1)"><img name="Image6" border="0" src="/images/top_icon01.gif" width="20" height="20" alt="»çÀÌÆ®¸Ê"></a></td>' +
				'					      <td width="25"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image7\',\'\',\'/images/top_icon02_o.gif\',1)"><img name="Image7" border="0" src="/images/top_icon02.gif" width="20" height="20" alt="µµ¿ì¹Ì"></a></td>' +
				'					      <td width="25"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image8\',\'\',\'/images/top_icon03_o.gif\',1)"><img name="Image8" border="0" src="/images/top_icon03.gif" width="20" height="20" alt="¿ë¾î»çÀü"></a></td>' +
				'					      <td width="25"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image9\',\'\',\'/images/top_icon04_o.gif\',1)"><img name="Image9" border="0" src="/images/top_icon04.gif" width="20" height="20" alt="ÀÚ·á½Ç"></a></td>' +
				'					      <td width="25"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image10\',\'\',\'/images/top_icon05_o.gif\',1)"><img name="Image10" border="0" src="/images/top_icon05.gif" width="20" height="20" alt="°ü·Ã»çÀÌÆ®"></a></td>' +
				'					</tr>' +
				'				  </table>' +
				'				</td>' +
				'			</tr>' +
				'		</table>' +
				'	</td>' +
				'</tr>' +
				'<tr>' +
				'	<td>' +
				'	  <table cellpadding=0 cellspacing=0 width="100%" height="36" border=0 >' +
				'	    <tr>' +
				'		  <td width="24" height="36"><img src="/images/top_menu_left.gif" width="24" height="36" border="0"></td>' +
				'		  <td width="884" background="/images/top_menu_bg.gif"><div id="menuPanel" name="lv1Menu" style="position:absolute; left:0; height:36;width:1000;"></div></td>' +
				'		  <td width="26" height="36"><img src="/images/top_menu_right.gif" width="26" height="36" border="0"></td>' +
				'		</tr>' +
				'	  </table>' +
				'	</td>' +
				'</tr>';

	document.write(common_top);
}

//º½, ¹°ÀÇ³¯ ½Ç½Ã°£ Å×ÀÌºí Å¸ÀÌÆ²
function realTitle_Sp(){
	common_title =  ' <td align="middle" width="150" bgcolor="#EDF8D6" height="30"><img height ="30" src="/images/MAIN/SP_MAIN/data_tit01.gif" width= "55"></td>' +
				    ' <td align="middle" width="150" bgColor="#EDF8D6" height="30"><IMG height="30" src="/images/MAIN/SP_MAIN/data_tit02.gif" width="57"></td>' +
					' <td align="middle" width="169" bgColor="#EDF8D6" height="30"><IMG height="30" src="/images/MAIN/SP_MAIN/data_tit03.gif" width="109"></td>	';

	document.write(common_title);
}

//¿©¸§ ½Ç½Ã°£ Å×ÀÌºí Å¸ÀÌÆ²
function realTitle_Su(){
	common_title =  ' <td align="middle" width="150" bgcolor="#EAF9FE" height="30"><img height ="30" src="/images/MAIN/SU_MAIN/data_tit01.gif" width= "55"></td>' +
				    ' <td align="middle" width="150" bgColor="#EAF9FE" height="30"><IMG height="30" src="/images/MAIN/SU_MAIN/data_tit02.gif" width="57"></td>' +
					' <td align="middle" width="169" bgColor="#EAF9FE" height="30"><IMG height="30" src="/images/MAIN/SU_MAIN/data_tit03.gif" width="109"></td>	';

	document.write(common_title);
}

//°¡À» ½Ç½Ã°£ Å×ÀÌºí Å¸ÀÌÆ²
function realTitle_Au(){
	common_title =  ' <td align="middle" width="150" bgcolor="#F7EBDE" height="30"><img height ="30" src="/images/MAIN/AU_MAIN/data_tit01.gif" width= "55"></td>' +
				    ' <td align="middle" width="150" bgColor="#F7EBDE" height="30"><IMG height="30" src="/images/MAIN/AU_MAIN/data_tit02.gif" width="57"></td>' +
					' <td align="middle" width="169" bgColor="#F7EBDE" height="30"><IMG height="30" src="/images/MAIN/AU_MAIN/data_tit03.gif" width="109"></td>	';

	document.write(common_title);
}

//°Ü¿ï ½Ç½Ã°£ Å×ÀÌºí Å¸ÀÌÆ²
function realTitle_Wi(){
	common_title =  ' <td align="middle" width="150" bgcolor="#EAEEF5" height="30"><img height ="30" src="/images/MAIN/WI_MAIN/data_tit01.gif" width= "55"></td>' +
				    ' <td align="middle" width="150" bgColor="#EAEEF5" height="30"><IMG height="30" src="/images/MAIN/WI_MAIN/data_tit02.gif" width="57"></td>' +
					' <td align="middle" width="169" bgColor="#EAEEF5" height="30"><IMG height="30" src="/images/MAIN/WI_MAIN/data_tit03.gif" width="109"></td>	';

	document.write(common_title);
}

//¼³³¯ ½Ç½Ã°£ Å×ÀÌºí Å¸ÀÌÆ²
function realTitle_Ny(){
	common_title =  ' <td align="middle" width="150" bgcolor="#FFDFDE" height="30"><img height ="30" src="/images/MAIN/NY_MAIN/data_tit01.gif" width= "55"></td>' +
				    ' <td align="middle" width="150" bgColor="#FFDFDE" height="30"><IMG height="30" src="/images/MAIN/NY_MAIN/data_tit02.gif" width="57"></td>' +
					' <td align="middle" width="169" bgColor="#FFDFDE" height="30"><IMG height="30" src="/images/MAIN/NY_MAIN/data_tit03.gif" width="109"></td>	';

	document.write(common_title);
}

function writeBottom(){
	common_bottom = '<tr height="40">' +
					'	<td width="934" height="40">' +
					'		<table width="934" height="" cellpadding="0" cellspacing="0" border="0" height="40">' +
				//	'			<tr>' +
				//	'				<td bgcolor="#E7E9EB" height="15" align="center" valign="bottom" class="copy">¢Æ ÀÌ È¨ÆäÀÌÁö´Â 1024*768¿¡ ÃÖÀûÈ­ µÇ¾ú½À´Ï´Ù.  Copyright (c) 2003. WAMIS All right reserved. <a href="mailto:ssch@kowaco.or.kr">E-mail : ssch@kowaco.or.kr</a></td>' +
				//	'			</tr>' +
					'			<tr>' +
					'				<td bgcolor="#E7E9EB" height="15"  valign="bottom" class="copy">' +
					'				<div style="font-size:11px; text-align:center; color:#999999; padding:10px 5px 10px 5px;">¢Æ ÀÌ È¨ÆäÀÌÁö´Â 1024*768¿¡ ÃÖÀûÈ­ µÇ¾ú½À´Ï´Ù. Copyright (c) 2003. WAMIS All right reserved.<a href="mailto:baekley@moct.go.kr">E-mail :baekley@moct.go.kr</a></div>' +
					'				</td>' +
					'		   </tr>' +
					'			<tr>' +
					'				<td width="934" height="25"><img src="/images/copyright00.gif" width="934" height="25" border="0" align="absmiddle" alt=""></td>' +
					'			</tr>' +
					'		</table> ' +
					'	</td>'
					'</tr>';
	document.write(common_bottom);
}


function writeTime(){
	today = new Date();

	YYYY = today.getFullYear();
	MM = today.getMonth() + 1;
	DD = today.getDate();
	hh = today.getHours();
	mm = today.getMinutes();
	ss = today.getSeconds();

	if(hh >= 12){
		hh -= 12;
		ampm = "pm";
	} else {
		ampm = "am";
	}
	
	MM = (MM < 10) ? ('0' + MM) : MM;
	DD = (DD < 10) ? ('0' + DD) : DD;
	hh = (hh < 10) ? ('0' + hh) : hh;
	mm = (mm < 10) ? ('0' + mm) : mm;
	ss = (ss < 10) ? ('0' + ss) : ss;

	dateString = YYYY + '-' + MM + '-' + DD + ' ' +	hh + ':' + mm + ':' + ss + ' ' + ampm;
	lblToday.innerHTML = dateString;
	setTimeout("writeTime()", 1000);
}
												

var popup_window = null;

function popup(status,url) {
    if(status != 0) {
	    if(popup != null){
	    	 popup.focus();
		}
	    else {
	        var popup = open(url,"Popup","position=top, menubar=no,toolbar=no,resizable=no,location=no,status=yes,scrollbars=yes,width=900,height=700,left=10,top=10");
	        popup.focus(self);
		}
	}
	else {
		if(popup_window != null) popup_window.close();
	}
}

function PopupMap(url) {
  // ÁöµµÈ­¸é¿­±â
  var win = window.open(url, "map", "menubar=0,toolbar=0,location=0,directory=0,scrollbars=1,resizable=1,width=1014,height=710,left=0,top=0");
  win.focus();
}

function OpenWindow(url, tit, stat)
{
  window.open(url, tit, stat);
  return;
}


//¸ÞÀÎÈ­¸é °Ë»ö¿£Áø ÀÌ¿ëÇØ °Ë»öÇÏ±â
function SearchPageLink()
				{
					if (document.frm.txtInputData.value == "") {
					alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇÏ½Ã±â ¹Ù¶ø´Ï´Ù!!!");
					return;
					}
					
					
					
					//if (document.frm.ddlSearch.value == 0)
					//{
					//	location.href = "http://203.237.0.121/dictionary.aspx?code=" + document.frm.txtInputData.value;
					//}
					
					if (document.frm.ddlSearch.value == 1) 
					{
						document.frm.action = "http://www.empas.com/search/all.html?q=" + document.frm.txtInputData.value;
						document.frm.target = "_blank";
						//document.frm.q.value = document.frm.txtInputData.value;
						document.frm.submit();
						return;
					}
					if (document.frm.ddlSearch.value == 2)
					{
						//document.frm.action = "http://search.yahoo.co.kr/bin/search?p=" + document.frm.txtInputData.value;
						document.frm.action = "http://search.nate.com/search/srch_allindex.asp?searchfield=total&query=" + document.frm.txtInputData.value;
						document.frm.target = "_blank";
						document.frm.submit();
						return;
					}
					if (document.frm.ddlSearch.value == 3)
					{
						document.frm.action = "http://dsearch.hanmir.com/search/asearch.php?QR=" + document.frm.txtInputData.value;
						document.frm.target = "_blank";
						document.frm.submit();
						return;
					}
					if(document.frm.ddlSearch.value == 4)
					{
						document.frm.action = "http://search.naver.com/search.naver?query=" + document.frm.txtInputData.value;
						document.frm.target = "_blank";
						document.frm.submit();
						return;
					}
				}
				
function SearchPageLink_Enter()
				{
					if (document.frm.txtInputData.value == "") {
					alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇÏ½Ã±â ¹Ù¶ø´Ï´Ù!!!");
					return;
					}
					
					
					
					//if (document.frm.ddlSearch.value == 0)
					//{
					//	location.href = "http://203.237.0.121/dictionary.aspx?code=" + document.frm.txtInputData.value;
					//}
					
					if (document.frm.ddlSearch.value == 1) 
					{
						document.frm.action = "http://www.empas.com/search/all.html?q=" + document.frm.txtInputData.value;
						document.frm.target = "_blank";
						//document.frm.q.value = document.frm.txtInputData.value;
						//document.frm.submit();
						return;
					}
					if (document.frm.ddlSearch.value == 2)
					{
						//document.frm.action = "http://search.yahoo.co.kr/bin/search?p=" + document.frm.txtInputData.value;
						document.frm.action = "http://search.nate.com/search/srch_allindex.asp?searchfield=total&query=" + document.frm.txtInputData.value;
						document.frm.target = "_blank";
						//document.frm.submit();
						return;
					}
					if (document.frm.ddlSearch.value == 3)
					{
						document.frm.action = "http://dsearch.hanmir.com/search/asearch.php?QR=" + document.frm.txtInputData.value;
						document.frm.target = "_blank";
						//document.frm.submit();
						return;
					}
					if(document.frm.ddlSearch.value == 4)
					{
						document.frm.action = "http://search.naver.com/search.naver?query=" + document.frm.txtInputData.value;
						document.frm.target = "_blank";
						//document.frm.submit();
						return;
					}
				}

/**
  * Dual/Tri/Quad state rollovers from www.javascript-fx.com
  * You may use this code on any page but please leave this comment
  * in the code.
  */
var img = new Array();
var currOn = null;
function Rollover(imgName, imgOut, imgOver, imgClick, imgClickOut)
{
	if(imgClick    == null)	imgClick 	= imgOver;
	if(imgClickOut == null)	imgClickOut	= imgClick;

	var roll = new Object;

	roll.out		= imgOut;
	roll.over		= new Image();
	roll.over.src	= imgOver;
	roll.click		= new Image();
	roll.click.src	= imgClick;
	roll.click_out	= new Image();
	roll.click_out.src = imgClickOut;

	img[imgName] = roll;	
}
function mOver(imgName)
{
	if (document.images[imgName] == null) return;
	document.images[imgName].src = (imgName != currOn) ? img[imgName].over.src : img[imgName].click.src;
}
function mOut(imgName)
{
	if (document.images[imgName] == null) return;
	document.images[imgName].src = (imgName != currOn) ? img[imgName].out : img[imgName].click_out.src;
}
function mClick(imgName)
{
	if (document.images[imgName] == null) return;
	if(currOn != null) document.images[currOn].src = img[currOn].out;
	currOn = imgName;
	document.images[currOn].src = img[currOn].click.src;
}
function mSelect(imgName)
{
	if (document.images[imgName] == null) return;
	mClick(imgName);
	mOut(imgName);
}


// DHTML functions (http://www.quirksmode.org)			
function getObj(name)
{
  if (document.getElementById)
  {
  	this.obj = document.getElementById(name);
	this.style = document.getElementById(name).style;
  }
  else if (document.all)
  {
	this.obj = document.all[name];
	this.style = document.all[name].style;
  }
  else if (document.layers)
  {
	this.obj = getObjNN4(document,name);
	this.style = this.obj;
  }
}

function getObjNN4(obj,name)
{
	var x = obj.layers;
	var foundLayer;
	for (var i=0;i<x.length;i++)
	{
		if (x[i].id == name)
		 	foundLayer = x[i];
		else if (x[i].layers.length)
			var tmp = getObjNN4(x[i],name);
		if (tmp) foundLayer = tmp;
	}
	return foundLayer;
}

function getInnerHeight()
{
	if (self.innerHeight) // all except Explorer
		return self.innerHeight;
	else if (document.documentElement && document.documentElement.clientHeight)		// Explorer 6 Strict Mode
		return document.documentElement.clientHeight;
	else if (document.body) // other Explorers
		return document.body.clientHeight;
}
function getInnerWidth()
{
	if (self.innerHeight) // all except Explorer
		return self.innerWidth;
	else if (document.documentElement && document.documentElement.clientHeight)// Explorer 6 Strict Mode
		return document.documentElement.clientWidth;
	else if (document.body) // other Explorers
		return document.body.clientWidth;
}
function getScrollTop()
{
	if (self.pageYOffset) // all except Explorer
		return self.pageYOffset;
	else if (document.documentElement && document.documentElement.scrollTop)// Explorer 6 Strict
		return document.documentElement.scrollTop;
	else if (document.body) // all other Explorers
		return document.body.scrollTop;
}
function getScrollLeft()
{
	if (self.pageYOffset) // all except Explorer
		return self.pageXOffset;
	else if (document.documentElement && document.documentElement.scrollTop)// Explorer 6 Strict
		return document.documentElement.scrollLeft;
	else if (document.body) // all other Explorers
		return document.body.scrollLeft;
}
function getPageHeight()
{
	var test1 = document.body.scrollHeight;
	var test2 = document.body.offsetHeight;
	if (test1 > test2) // all but Explorer Mac
		return document.body.scrollHeight;
	else // Explorer Mac would also work in Explorer 6 Strict, Mozilla and Safari
		return document.body.offsetWidth;
}
function getPageWidth()
{
	var test1 = document.body.scrollHeight;
	var test2 = document.body.offsetHeight;
	if (test1 > test2) // all but Explorer Mac
		return document.body.scrollWidth;
	else // Explorer Mac would also work in Explorer 6 Strict, Mozilla and Safari
		return document.body.offsetWidth;
}


// #######################################################################
// DocumentWrite(MakeFlashString('image/ml_flash.swf','emb1','330','520','opaque'));
// SetInnerHTML(document.all.mm, MakeFlashString('image/ml_flash.swf','emb1','330','520','opaque'));
// @@ÁÖÀÇ »çÇ× 
//  - »óÈ£ÀÛ¿ë ¾ø´Â ÄÁÅÙÃ÷´Â DocumentWrite, SetInnerHTML µÑ´Ù »ç¿ë °¡´É
//  - »óÈ£ÀÛ¿ë ÀÖ´Â ÄÁÅÙÃ÷´Â SetInnerHTML¸¸ »ç¿ë °¡´É
// #######################################################################


function MakeFlashString(source, id, width, height, cx, cy, wmode1, wmode2)
{	
	var params = '<PARAM NAME="FlashVars" VALUE=""><PARAM NAME="Play" VALUE="-1"><PARAM NAME="Loop" VALUE="-1"><PARAM NAME="Quality" VALUE="High"><PARAM NAME="SAlign" VALUE=""><PARAM NAME="Menu" VALUE="-1"><PARAM NAME="Base" VALUE=""><PARAM NAME="AllowScriptAccess" VALUE="always"><PARAM NAME="Scale" VALUE="ShowAll"><PARAM NAME="DeviceFont" VALUE="0"><PARAM NAME="EmbedMovie" VALUE="0"><PARAM NAME="BGColor" VALUE=""><PARAM NAME="SWRemote" VALUE=""><PARAM NAME="MovieData" VALUE=""><PARAM NAME="SeamlessTabbing" VALUE="1"></OBJECT>';
	return "<OBJECT width="+width+" height="+height+" id="+id+" codeBase= http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0  classid= clsid:D27CDB6E-AE6D-11cf-96B8-444553540000  VIEWASTEXT><embed src="+source+" quality= high pluginspage=http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash type=application/x-shockwave-flash width="+width+" height="+height+" wmode="+wmode2+"></embed><PARAM NAME= WMode VALUE="+wmode1+"><PARAM NAME= Movie VALUE="+source+"><PARAM NAME=_cx VALUE="+cx+"><PARAM NAME= _cy VALUE="+cy+"><PARAM NAME= Src VALUE="+source+">"+params;

}

function MakeObjectString(classid, codebase, name, id, width,height, param)
{
	return "<object classid="+classid+" codebase="+codebase+" name="+name+" width="+width+" height="+height+" id="+id+"><param name=wmode value="+wmode+" />"+param+"</object>";
}

// innerHTML Type
function SetInnerHTML(target, code)
{ 
	target.innerHTML = code; 
}

// Direct Write Type
function DocumentWrite(src)
{
	document.write(src);
}




// ¼öÀÚ¿ø±âÃÊÀÚ·áºÐ¼® ½Ã½ºÅÛ ¿¬°è¸¦ À§ÇÑ ÇÔ¼ö
// path = '/01/xxxxx'
function goWRAS(path)
{
	var width	= 906;
	var height	= 660;
	var left	= (screen.width-width) / 2 ;
	var top		= (screen.height-height) / 2;

	var settings	= 'height='+height+
		',width='+width+
		',top='+top+
		',left='+left+
		',toolbar=no,scrollbars=false,resizable=yes';
	var win = window.open('http://www.wamis.go.kr/wras'+path+'.aspx','WRAS',settings);
}


