<!--
 SiteUrl = '';



url_list = new Array();
newwin_list = new Array();
window_list = new Array()
fullwin_list = new Array()

url_alert = new Array();

// ÇÃ·¹½ÃÆÄÀÏ¿¡¼­ ¸µÅ©°É¶§¿¡´Â
// javascript:go_site(1);
// ÀÌ·±½ÄÀ¸·Î ¸µÅ©°É¸é µË´Ï´Ù.
// ¹øÈ£´Â url_list[¹øÈ£]°ªÀ» ³ÖÀ¸¸é µË´Ï´Ù.




//##############################   ÆäÀÌÁö Á¤ÀÇ   ###############################

url_list[1] = '/index.html';                         // ¸ÞÀÎ

//È¨¸Þ´º
url_list[2] = '/index.html'; //home
url_list[3] = '/sitemap.html'; //»çÀÌÆ®¸Ê
url_list[4] = 'mailto:'; //e-mail

//Äü¸Þ´º
url_list[5] = ''; //
url_list[6] = ''; //
url_list[7] = ''; //
url_list[8] = ''; //
url_list[9] = ''; //
url_list[10] = ''; //

//´ÙÀ½¸Þ´º±îÁö ¿©À¯¸¦ µÎ°í Á¤ÀÇ


// ¸Þ´º½ÃÀÛ

// 01(»õ¼Ò½Ä,µ¿±â¼Ò½Ä)
url_list[110] = SiteUrl + '/sub01_01.html'; //
url_list[120] = SiteUrl + '/sub01_02.html'; //
url_list[130] = SiteUrl + '/sub01_03.html'; // 
url_list[140] = SiteUrl + '/board/board.php?table=board_board01'; // 


// 02(µ¿±âÈ¸È°µ¿)
url_list[210] = SiteUrl + '/board/board.php?table=board_board13'; //
url_list[220] = SiteUrl + '/board/board.php?table=board_board20&skin=blue'; //
url_list[230] = SiteUrl + '/board/board.php?table=board_board02'; //
url_list[240] = SiteUrl + '/sub02_04.html'; //


// 03(¸ð±³¼Ò°³)
url_list[310] = SiteUrl + '/board/board.php?table=board_board05';	//
url_list[320] = SiteUrl + '/board/board.php?table=board_board03';	//
url_list[330] = SiteUrl + '/sub03_03.html';	//



// 04(µ¿±âÁÖ¼Ò·Ï)
url_list[410] = SiteUrl + '/board/board.php?table=board_board06'; //
url_list[420] = SiteUrl + '/board/board.php?table=board_board17'; //
url_list[430] = SiteUrl + '/board/board.php?table=board_board07'; //
url_list[440] = SiteUrl + '/sub04_04.html'; //
url_list[450] = SiteUrl + '/board/board.php?table=board_board09'; //


// 05(µ¿±â¾÷Ã¼¼Ò°³)
url_list[510] = SiteUrl + '/board/board.php?table=board_board10'; //
url_list[520] = SiteUrl + '/board/board.php?table=board_board11'; //
url_list[530] = SiteUrl + '/board/board.php?table=board_board12'; //





// ¸Þ´º³¡



// »õÃ¢ÀÎ ¸Þ´º
//newwin_list[91] = 'true';



// À©µµ¿ì·Î ¿­¸®´Â°æ¿ì
//window_list[3] = 'width=600 height=500 scrollbars=yes resizable=no';






//ÀüÃ¼È­¸éÀÎ ¸Þ´º
//fullwin_list[10] = 'true'



//##############################   ÆäÀÌÁö Á¤ÀÇ   ###############################










// »õÃ¢ÀÎ ¸Þ´º
//newwin_list[211] = 'true';


// À©µµ¿ì·Î ¿­¸®´Â°æ¿ì
//window_list[17] = 'width=550 height=450 resizable=no';

//ÀüÃ¼È­¸éÀÎ ¸Þ´º
//fullwin_list[10] = 'true'


function go_site2(num, param)
{
	if(url_list[num])
	{
		// º»Ã¢À¸·Î ÀÌµ¿ÇÏ´Â °æ¿ì
		if(newwin_list[num] != 'true' && fullwin_list[num] != 'true' && (window_list[num] == '' || window_list[num] == null))
		{
			if(typeof(param) == "string")
				location=url_list[num] + param;
			else
				location=url_list[num];
				
		}
	}else if(url_alert[num]) {		// Alert Ã¢ ¶ç¿ï¶§
		//alert(url_alert[num]);
		window.alert("ÁØºñÁßÀÔ´Ï´Ù.");
	}
}



function go_site(num)
{
	if(url_list[num])
	{
		// º»Ã¢À¸·Î ÀÌµ¿ÇÏ´Â °æ¿ì
		if(newwin_list[num] != 'true' && fullwin_list[num] != 'true' && (window_list[num] == '' || window_list[num] == null))
		{
			location=url_list[num];
		}
	
		// À©µµ¿ì Ã¢À¸·Î ¿­¸®´Â°æ¿ì
		if(window_list[num] != '' && window_list[num] != null)
		{
			window.open(url_list[num], 'new_win', window_list[num]);
		}
	
	
		// ÀüÃ¼Ã¢À¸·Î ¿­¸®´Â °æ¿ì
		if(fullwin_list[num] == 'true')
		{
			window.open(url_list[num], 'new_win', 'width=1024 height=724 resizable=yes');
		}
	
	
		// »õÃ¢À¸·Î ¿­¸®´Â°æ¿ì
		if(newwin_list[num] == 'true')
		{
			window.open(url_list[num], '_blank', 'directories=yes, titlebar=yes, toolbar=yes, menubar=yes, statusbar=yes, scrollbars=yes, resizable=yes, location=yes, status=yes');
		}
	}else if(url_alert[num]) {		// Alert Ã¢ ¶ç¿ï¶§
		//alert(url_alert[num]);
		window.alert("ÁØºñÁßÀÔ´Ï´Ù.");
	}
}


function namosw_goto_byselect(sel, targetstr)
{
  var index = sel.selectedIndex;
  if (sel.options[index].value != '') {
     if (targetstr == 'blank') {
       window.open(sel.options[index].value, 'win1');
     } else {
       var frameobj;
       if (targetstr == '') targetstr = 'self';
       if ((frameobj = eval(targetstr)) != null)
         frameobj.location = sel.options[index].value;
     }
  }
}



function namosw_goto_byselect(sel, targetstr)
{
  var index = sel.selectedIndex;
  if (sel.options[index].value != '') {
     if (targetstr == 'blank') {
       window.open(sel.options[index].value, 'win1');
     } else {
       var frameobj;
       if (targetstr == '') targetstr = 'self';
       if ((frameobj = eval(targetstr)) != null)
         frameobj.location = sel.options[index].value;
     }
  }
}
//-->


//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 swf2(src,width,height){
object = '';
object += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id="param" width="100%" height="100%">';
object += '<param name="movie" value="'+src+'"><param name=wmode value=transparent>';
object += '<embed src="'+src+'" quality="high" wmode="transparent" bgcolor="#ffffff" menu="false" width="100%" height="100%" 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 = btn_top.top; 
yMenuTo = windows.pageYOffset + 250; 
} else if (isDOM) {
yMenuFrom = parseInt (btn_top.style.top, 10);
yMenuTo = (isNS ? window.pageYOffset : document.body.scrollTop) + 76; 
}
timeoutNextCheck = 50;

if (yMenuFrom != yMenuTo) {
yOffset = Math.ceil(Math.abs(yMenuTo - yMenuFrom) / 20);
if (yMenuTo < yMenuFrom)
yOffset = -yOffset;
if (isNS4)
btn_top.top += yOffset;
else if (isDOM)
btn_top.style.top = parseInt (btn_top.style.top, 10) + yOffset;
timeoutNextCheck = 10;
}
setTimeout ("moveRightEdge()", timeoutNextCheck);
}


//F11Å° ±ÝÁö
 document.onkeydown = function() {
  if (event.keyCode == 122) {
   event.keyCode = 505;
  }
  if (event.keyCode == 505) { 
   return false;
  }
 }


 function new_win(filename,p_name,s_width,s_height,s_scrol)
{
	x = screen.width;
	y = screen.height;
	wid = (x / 2) - (s_width / 2);
	hei = (y / 2) - (s_height / 2);

   window.open(filename, p_name, "toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0,scrollbars=" + s_scrol + ",width=" + s_width + ",height=" + s_height + ",top=" + hei + ",left=" + wid + ",scrolbar=no"); 
}


function swapPicture(img) {
	document.all.swap.src= img;
}



//pngÆÄÀÏ Åõ¸íÇÏ°Ô
function setPng24(obj) { 
  obj.width=obj.height=1; 
  obj.className=obj.className.replace(/\bpng24\b/i,''); 
  obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');" 
  obj.src='';  
  return ''; 
}















//°Ô½ÃÆÇ
	
	function sbar(st) {
		st.style.backgroundColor = '#f6f6f6';
	}
	
	function cbar(st) {
		st.style.backgroundColor = '';
	}
