//activex * »ç¿ë¹ý <script>swf('./images/top_menu.swf',660,64);</script>
function swf(src,width,height){
object = '';
object += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id="param" width="'+width+'" height="'+height+'">';
object += '<param name="movie" value="'+src+'"><param name=wmode value=transparent>';
object += '<embed src="'+src+'" quality="high" wmode="transparent" bgcolor="#ffffff" menu="false" width="'+width+'" height="'+height+'" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
object += '<\/object>';
document.write(object);
}


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 go_to_station(stationform){
 var MoveTo;    MoveTo=stationform.stationselect.selectedIndex;    
 window.open(stationform.stationselect.options[MoveTo].value, target="_blank");
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

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; }
}

//¸¶Å°
  var Toggle =1;

  function DWtop(chk) {
    Toggle = 0;
    switch(chk) {
          case 1: pf.stop(); break;
          case 2: pf.stop(); break;
    }
  }

  function DWstart(chk) {
    Toggle = 1;
    switch(chk) {
          case 1: pf.start(); break;
          case 2: pf.start(); break;
    }
  }
 
  function DWtop2(chk) {
    Toggle = 0;
    switch(chk) {
          case 1: pf2.stop(); break;
          case 2: pf2.stop(); break;
    }
  }

  function DWstart2(chk) {
    Toggle = 1;
    switch(chk) {
          case 1: pf2.start(); break;
          case 2: pf2.start(); break;
    }
  }

  function DWtop3(chk) {
    Toggle = 0;
    switch(chk) {
          case 1: pf3.stop(); break;
          case 2: pf3.stop(); break;
    }
  }

  function DWstart3(chk) {
    Toggle = 1;
    switch(chk) {
          case 1: pf3.start(); break;
          case 2: pf3.start(); break;
    }
  }

  function DWtop4(chk) {
    Toggle = 0;
    switch(chk) {
          case 1: bpf.stop(); break;
          case 2: bpf.stop(); break;
    }
  }

  function DWstart4(chk) {
    Toggle = 1;
    switch(chk) {
          case 1: bpf.start(); break;
          case 2: bpf.start(); break;
    }
  }
//¸µÅ©
function LinkSelect(form, sel)
{
  c = sel.selectedIndex;
  adrs = sel.options[c].value;
  if (adrs != "-" )
     {
       LinkWin=window.open("","NewPage");
       LinkWin.location.href=adrs;
    }
}

//Á¡ Á¦°Å
function focusblur() 
{
	for (i = 0; i < document.links.length; i++)
	{
		document.links[i].onfocus = document.links[i].blur;
	}
}


//¼­ºê¸Þ´º
function Toggle_Menu(obj){
	if( obj != "" ) {
		if(document.getElementById){		
			var el = document.getElementById(obj);
			var ar = document.getElementById("maindiv").getElementsByTagName("tr"); 
			if(el.style.display != "block"){
				for (var i=0; i<ar.length; i++){
					if (ar[i].className=="submenu") 
						ar[i].style.display = "none";
				}
				el.style.display = "block";
			}else{
				el.style.display = "none";
			}
		}
	}
}


//open_window

function Open_Window(url, n, w, h, s) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+s+',resizable=0'
win = window.open(url, n, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

//open_etc
function open_etc(what) {	
	var mleft = screen.width-100/ 2; 
	var mtop = screen.height-100/ 2; 
		
	var imgwin = window.open("","WIN","scrollbars=yes,status=no,toolbar=no,resizable=1,location=no,menu=no,height=100,width=100,left="+mleft+",top="+mtop); 	
	imgwin.focus(); 
	imgwin.document.open(); 
	imgwin.document.write("<html>\n"); 
	imgwin.document.write("<head>\n"); 
	imgwin.document.write("<title>.</title>\n"); 
		
	imgwin.document.write("<sc"+"ript>\n"); 
	imgwin.document.write("function resize() {\n");
	imgwin.document.write("pic = document.il;\n");
	imgwin.document.write("if (eval(pic).height) { var name = navigator.appName\n"); 
	imgwin.document.write("  if (name == 'Microsoft Internet Explorer') {\n");
	imgwin.document.write("  	 myHeight = eval(pic).height + 40;\n"); 
	imgwin.document.write("  	 myWidth = eval(pic).width + 12;\n"); 
	imgwin.document.write("  	 if (myWidth > 750) {myWidth = 750}\n");
	imgwin.document.write("  	 if (myHeight > 572) {myHeight = 572}\n");	
	imgwin.document.write("  } else { myHeight = eval(pic).height + 9; myWidth = eval(pic).width; }\n"); 
	imgwin.document.write("  clearTimeout();\n"); 
	imgwin.document.write("  var height = screen.height;\n"); 
	imgwin.document.write("  var width = screen.width;\n"); 
	imgwin.document.write("  var leftpos = width / 2 - myWidth / 2;\n"); 
	imgwin.document.write("  var toppos = height / 2 - myHeight / 2; \n"); 
	imgwin.document.write("  self.moveTo(leftpos, toppos);\n"); 
	imgwin.document.write("  self.resizeTo(myWidth, myHeight);\n"); 
	imgwin.document.write("}else setTimeOut(resize(), 100);}\n"); 
	imgwin.document.write("</sc"+"ript>\n"); 
		
	imgwin.document.write("</head>\n"); 
	imgwin.document.write('<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" bgcolor="#FFFFFF">\n'); 
		
	imgwin.document.write("<img border=0 src="+what+" xwidth=100 xheight=9 name=il onload='resize();'>\n"); 
	imgwin.document.write("</body>\n"); 
	imgwin.document.close(); 
}

//iframe
function reSize()
{
try
{
var objBody = iframe0.document.body;
var objFrame = document.all["iframe0"];
ifrmHeight = objBody.scrollHeight + (objBody.offsetHeight - objBody.clientHeight);
objFrame.style.height = ifrmHeight;
}
catch(e) {}
}

function init_iframe()
{
reSize();
setTimeout('init_iframe()',1)
}
init_iframe();

//open
function openWin(theURL,winName,features) { 
  window.open(theURL,winName,features);
}


//¼ýÀÚ¸¸ ÀÔ·Â
function num_only()
{
if(((event.keyCode<48) || (event.keyCode>57)) && (event.keyCode != 46)) {
event.returnValue=false;
}
}			


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() { //v6.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; }
}

//Å¾½ºÅ©·Ñ

var isDOM = (document.getElementById ? true : false); 
var isIE4 = ((document.all && !isDOM) ? true : false);
var isNS4 = (document.layers ? true : false);
var isNS = navigator.appName == "Netscape";

function getRef(id) {
if (isDOM) return document.getElementById(id);
if (isIE4) return document.all[id];
if (isNS4) return document.layers[id];
}

function getSty(id) {
x = getRef(id);
return (isNS4 ? getRef(id) : getRef(id).style);
}

function moveRightEdge() {
var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck;

if (isNS4) {
yMenuFrom = quick.top; 
yMenuTo = windows.pageYOffset + 250; 
} else if (isDOM) {
yMenuFrom = parseInt (quick.style.top, 10);
yMenuTo = (isNS ? window.pageYOffset : document.body.scrollTop) + 270; 
}
timeoutNextCheck = 50;

if (yMenuFrom != yMenuTo) {
yOffset = Math.ceil(Math.abs(yMenuTo - yMenuFrom) / 20);
if (yMenuTo < yMenuFrom)
yOffset = -yOffset;
if (isNS4)
quick.top += yOffset;
else if (isDOM)
quick.style.top = parseInt (quick.style.top, 10) + yOffset;
timeoutNextCheck = 10;
}
setTimeout ("moveRightEdge()", timeoutNextCheck);
}


// °ü·Ã±â°ü ¸µÅ©---
function homepageSend(url){
var openwindow = window.open(url,'all','toolbar=yes,scrollbars=yes,resizable=yes,location=yes,status=yes,menubar=yes,directories=yes,width=1024,height=720');
}