// JavaScript Document


//flash ie ---
function ShowFlash(url, width, height){
        document.write('<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="' + width + '" height="' + height + '" VIEresuEXT>');
        document.write('<param name="movie" value="' + url + '">');
        document.write('<param name="quality" value="high">');
        document.write('<param name="wmode" value="transparent">');
        document.write('<PARAM NAME=menu VALUE=false>');
        document.write('<embed src="' + url + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="incrlication/x-shockwave-flash" width="' + width + '" height="' + height + '" wmode="transparent"></embed>');
        document.write('</object>');
}


//open window ---
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

// rollover --
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_swapImgRernde() { //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 educ_view(viewname){
	window.open('/educne_view.php?vm='+viewname,'','width=426,height=426');
}

//top : home, sitemap, contactus
	function top01()	
    { self.location.href = '/main.html'; }
	function top02()
    { 
        window.open('/mailer.php','','width=436,height=516');
    }
	function top03()	
    { self.location.href = '/pub/scho/scho040301.html'; }
	function top04()	
    { self.location.href = '/pub/board/bbs_content.html?uid=7550'; }
	function top05()
    { 
        window.open('http://fire.or.kr/handicap/');
    }
	
//footer
	function foot01()	
    { 
        window.open('/email_refusal.html','','width=450,height=250');
    }
	function foot02()	
    { self.location.href = '#'; }
	function foot03()	
    { self.location.href = '#'; }
	

// full_menu01 function ---

 function full_menu01()
    { showHideLayer(true) }
	
 function full_menu02()
    { showHideLayer(false) }
	
		
//popupzoon
	function popup01()	
    { self.location.href = '/pub/board/bbs_free_read.html?uid=7563&cboardID=part031101&key=&orderBy=&page=1&cateID=&page=1'; }
	function popup02()	
    { self.location.href = '/pub/board/bbs_free_read.html?uid=7562&cboardID=part031101&key=&orderBy=&page=1&cateID=&page=1'; }
	function popup03()	
    { window.open('http://www.korea.kr/newsWeb/resources/html/gong.jpg','imgpopupwin','width=500,height=600,top=0,left=0,scrollbars=no, resizable-no'); }
	function popup04()	
    { 
        window.open('http://gosi.gwd.go.kr/');
    }
	function popup05()	
    { 
        window.open('http://www.kisa.or.kr/privacy_study.html','','width=407,height=507');
    }


	
	
//part_left_banner
	function left01()
	{ 
        window.open('/mov/sub04_1.php','','width=640,height=520');
    }

	function left02()
	{ 
        window.open('/popup/down/(pacer_music).mp3','','width=310,height=10');
    }
		

//nfsa
	function nfsa01()	
    { self.location.href = '/pub/board/bbs_content.html?uid=32'; }
	function nfsa02()	
    { self.location.href = '/pub/board/bbs_content.html?uid=34'; }
	function nfsa03()	
    {window.open('http://125.60.28.190/');}
	
//leftbanne
	function leftbanner04()	
     { 
        window.open('http://gosi.gwd.go.kr/');
    }
	

// zoom img
	function ten_01()	
     { 
        window.open('/img/zoom/ten_01.jpg','','width=550,height=380');
    }
		function gol_01()	
     { 
        window.open('/img/zoom/gol_01.jpg','','width=550,height=380');
    }
		function gol_02()	
     { 
        window.open('/img/zoom/gol_02.jpg','','width=550,height=380');
    }
		function gol_03()	
     { 
        window.open('/img/zoom/gol_03.jpg','','width=550,height=380');
    }
		function tak_01()	
     { 
        window.open('/img/zoom/tak_01.jpg','','width=550,height=380');
    }
		function tak_02()	
     { 
        window.open('/img/zoom/tak_02.jpg','','width=550,height=380');
    }	
		function tak_03()	
     { 
        window.open('/img/zoom/tak_03.jpg','','width=550,height=380');
    }	
		function tak_04()	
     { 
        window.open('/img/zoom/tak_04.jpg','','width=550,height=380');
    }
		function dae_01()	
     { 
        window.open('/img/zoom/dae_01.jpg','','width=550,height=380');
    }
		function dae_02()	
     { 
        window.open('/img/zoom/dae_02.jpg','','width=550,height=380');
    }
		function bad_01()	
     { 
        window.open('/img/zoom/bad_01.jpg','','width=550,height=380');
    }
		function bad_02()	
     { 
        window.open('/img/zoom/bad_02.jpg','','width=550,height=380');
    }
		function hui_01()	
     { 
        window.open('/img/zoom/hui_01.jpg','','width=550,height=380');
    }
		function hui_02()	
     { 
        window.open('/img/zoom/hui_02.jpg','','width=550,height=380');
    }
		function hui_03()	
     { 
        window.open('/img/zoom/hui_03.jpg','','width=550,height=380');
    }
		function hui_04()	
     { 
        window.open('/img/zoom/hui_04.jpg','','width=550,height=380');
    }
		function kic_01()	
     { 
        window.open('/img/zoom/kic_01.jpg','','width=550,height=380');
    }
		function kic_02()	
     { 
        window.open('/img/zoom/kic_02.jpg','','width=550,height=380');
    }
		function kic_03()	
     { 
        window.open('/img/zoom/kic_03.jpg','','width=550,height=380');
    }
		function kic_04()	
     { 
        window.open('/img/zoom/kic_04.jpg','','width=550,height=380');
    }
		function mar_01()	
     { 
        window.open('/img/zoom/mar_01.jpg','','width=550,height=380');
    }
		function mar_02()	
     { 
        window.open('/img/zoom/mar_02.jpg','','width=550,height=380');
    }
		function mar_03()	
     { 
        window.open('/img/zoom/mar_03.jpg','','width=550,height=380');
    }
		function mar_04()	
     { 
        window.open('/img/zoom/mar_04.jpg','','width=550,height=380');
    }
		function mar_05()	
     { 
        window.open('/img/zoom/mar_05.jpg','','width=550,height=380');
    }
		function mar_06()	
     { 
        window.open('/img/zoom/mar_06.jpg','','width=550,height=380');
    }
		function dry_01()	
     { 
        window.open('/img/zoom/dry_01.jpg','','width=550,height=380');
    }
		function sho_01()	
     { 
        window.open('/img/zoom/sho_01.jpg','','width=550,height=380');
    }
		function lib_01()	
     { 
        window.open('/img/zoom/lib_01.jpg','','width=550,height=380');
    }
		function res_01()	
     { 
        window.open('/img/zoom/res_01.jpg','','width=550,height=380');
    }
		function inf_01()	
     { 
        window.open('/img/zoom/inf_01.jpg','','width=550,height=380');
    }
		function inf_02()	
     { 
        window.open('/img/zoom/inf_02.jpg','','width=550,height=380');
    }
		function hos_01()	
     { 
        window.open('/img/zoom/hos_01.jpg','','width=550,height=380');
    }
		function hos_02()	
     { 
        window.open('/img/zoom/hos_02.jpg','','width=550,height=380');
    }
	

	
	
//search
	function sear01()	
    { self.location.href = '#'; }	

//educ
//	function menu010101()
//    { self.location.href = '/pub/educ/educ010101.html'; }
	function menu010101()
    { self.location.href = '/pub/board/bbs_content.html?uid=1'; }
	
	function menu010201()
    { self.location.href = '/pub/board/bbs_content.html?uid=2'; }
	
	function menu010301()
    { self.location.href = '/pub/board/bbs_content.html?uid=16'; }
	function menu010302()
    { self.location.href = '/pub/board/bbs_content.html?uid=3'; }
	function menu010303()
    { self.location.href = '/pub/board/bbs_content.html?uid=4'; }
	function menu010304()
    { self.location.href = '/pub/board/bbs_content.html?uid=5'; }
	function menu010305()
    { self.location.href = '/pub/board/bbs_content.html?uid=7'; }
	function menu010306()
     { self.location.href = '/pub/board/bbs_content.html?uid=24'; }
	function menu010307()
     { self.location.href = '/pub/board/bbs_content.html?uid=25'; }
	function menu010308()
    { self.location.href = '/pub/board/bbs_content.html?uid=26'; }

	function menu010401()
    { self.location.href = '/pub/board/bbs_content.html?uid=27'; }
	function menu010501()
   { self.location.href = '/pub/board/bbs_content.html?uid=28'; }
	function menu010601()
   { self.location.href = '/pub/board/bbs_content.html?uid=29'; }
	function menu010701()
   { self.location.href = '/pub/board/bbs_content.html?uid=30'; }
	function menu010801()
   { self.location.href = '/pub/board/bbs_content.html?uid=31'; }
	function menu010901()
    { self.location.href = '/pub/board/bbs_content.html?uid=32'; }




//guid
	function menu020101()
    { self.location.href = '/pub/board/bbs_content.html?uid=22'; }
	function menu020102()
    { self.location.href = '/pub/board/bbs_content.html?uid=23'; }

	function menu020201()
    { self.location.href = '/pub/board/bbs_content.html?uid=6'; }

	function menu020301()
    { self.location.href = '/pub/board/bbs_content.html?uid=9'; }
	//function menu020302()
    //{ self.location.href = '/pub/guid/guid020302.html'; }
	//function menu020303()
   // { self.location.href = '/pub/board/bbs_content.html?uid=8'; }

	function menu020401()
    { self.location.href = '/pub/board/bbs_content.html?uid=17'; }
	function menu020402()
    { self.location.href = '/pub/board/bbs_content.html?uid=11'; }
	function menu020403()
    { self.location.href = '/pub/board/bbs_content.html?uid=12'; }
	function menu020404()
    { self.location.href = '/pub/board/bbs_content.html?uid=13'; }
	function menu020405()
    { self.location.href = '/pub/board/bbs_content.html?uid=14'; }
	function menu020406()
    { self.location.href = '/pub/board/bbs_content.html?uid=15'; }
	//function menu020506()
    //{ self.location.href = '/pub/board/bbs_content.html?uid=15'; }




	
//part
	function menu030101()
    { self.location.href = '/pub/part/part030101.html'; }
	function menu030102()
    { self.location.href = '/pub/part/part030102.html'; }
	function menu030103()
    { self.location.href = '/pub/part/part030103.html'; }
	function menu030104()
    { self.location.href = '/pub/part/part030104.html'; }
	function menu030105()
    { self.location.href = '/pub/part/part030105.html'; }

	function menu030201()
    { self.location.href = '/pub/part/part030201.html'; }

	function menu030301()
    { self.location.href = '/pub/part/part030301.html'; }

	function menu030401()
    {window.open('http://www.nema.go.kr/nema_cms_iba/show_nema/board/law/list.jsp?c_relation=0&check_the_num=159&check_the_code=2&check_up_num=145');}
	function menu030402()
    {window.open('http://www.nema.go.kr/nema_cms_iba/show_nema/show_contents.jsp?check_the_num=158&check_the_code=3&check_up_num=145');}
	function menu030403()
    {window.open('http://www.nema.go.kr/nema_cms_iba/show_nema/show_contents.jsp?check_the_num=154&check_the_code=7&check_up_num=145');}

	function menu030501()
    { self.location.href = '/pub/part/part030401_01.html'; }

	function menu030601()
    { self.location.href = '/pub/part/part030601.html'; }

	function menu030701()
    { self.location.href = '/pub/part/part030701.html'; }
	function menu030702()
    { self.location.href = '/pub/part/part030702.html'; }
	function menu030703()
    { self.location.href = '/pub/part/part030704.html'; }
	function menu030704()
    { self.location.href = '/pub/part/part030705.html'; }
	//function menu030705()
   // { self.location.href = '/pub/part/part030705.html'; }

	function menu030801()
    { self.location.href = '/pub/board/bbs_content.html?uid=7554'; }
	function menu030901()
    { self.location.href = '/pub/part/part030901.html'; }

	function menu031001()
    { self.location.href = '/pub/part/part030501.html'; }
	
	function menu031101()
    { self.location.href = '/pub/part/part031101.html'; }
	
//scho
	function menu040101()
    { self.location.href = '/pub/scho/scho040101.html'; }
	function menu040201()
    { self.location.href = '/pub/scho/scho040201.html'; }
//	function menu040301()
 //   { self.location.href = '/pub/scho/scho040301.html'; }
	function menu040401()
    { self.location.href = '/pub/scho/scho040401.html'; }
	function menu040501()
    { self.location.href = '/pub/scho/scho040501.html'; }
	function menu040601()
    { self.location.href = '/pub/scho/scho040601.html'; }
	
	

	
	function menu040101()
    { self.location.href = '/pub/board/bbs_content.html?uid=36'; }
	function menu040102()
    { self.location.href = '/pub/scho/scho040102.html';}
	function menu040103()
    { self.location.href = '/pub/board/bbs_content.html?uid=41';}

	function menu040201()
    { self.location.href = '/pub/board/bbs_content.html?uid=40'; }
	function menu040202()
    { self.location.href = '/pub/board/bbs_content.html?uid=49';}
	function menu040203()
    { self.location.href = '/pub/board/bbs_content.html?uid=48';}	
	
	function menu040301()
    { self.location.href = '/pub/board/bbs_content.html?uid=37'; }
	function menu040302()
    { self.location.href = '/pub/board/bbs_content.html?uid=38'; }
	function menu040303()
    { self.location.href = '/pub/board/bbs_content.html?uid=39'; }
	//function menu040304()
   // { self.location.href = '/pub/scho/scho040304.html'; }
	
	function menu040401()
    { self.location.href = '/pub/scho/scho040401.html'; }

	function menu040501()
    { self.location.href = '/pub/board/bbs_content.html?uid=34'; }
	function menu040502()
    { self.location.href = '/pub/board/bbs_content.html?uid=35'; }
	function menu040503()
    { self.location.href = '/pub/board/bbs_content.html?uid=7560'; }
	function menu040504()
    { self.location.href = '/pub/board/bbs_free.html?cboardID=scho040604&boardimg='; }

	function menu040601()
    { self.location.href = '/pub/scho/scho040301.html'; }
	function menu040602()
    { self.location.href = '/pub/scho/scho040302.html'; }
	function menu040603()
    { self.location.href = '/pub/scho/scho040303.html'; }
	function menu040604()
    { self.location.href = '/pub/scho/scho040304.html'; }	

	function menu040701()
    { self.location.href = '/pub/board/bbs_content.html?uid=7550'; }
	function menu040801()
    { self.location.href = '/pub/board/bbs_content.html?uid=7551'; }
	function menu040901()
    {         window.open('/pub/scho/scho040901.html','','width=670,height=730');}
	
	
//sear
	function menu050101()
    { self.location.href = '/pub/sear/sear050101.html'; }	


var firstCall = true;

function changeFontsize(fSize, increment) {

	if (firstCall) {
		firstCall = false;
		if (increment != "") {
			changeFontsize('12', '');
		}
	}

	if (document.getElementsByTagName) {
	//var getElement = document.getElementsByTagName("td");
	var getElement = getElementsByTagNames("td,a,span","");
	var eachElement, currentFontSize, fontIncrease, newFontSize;
	for (i=0; i<getElement.length; i++) {
		eachElement = getElement[i];
		if (increment != "") {
			currentFontSize = parseInt(eachElement.style.fontSize);
			fontIncrease = parseInt(increment);
			newFontSize = currentFontSize + fontIncrease;
		}
		else if (fSize != "") {
			newFontSize = parseInt(fSize);
		}
		eachElement.style.fontSize = newFontSize + "px";
	}
}
}

function getElementsByTagNames(list,obj)

{

   if (!obj) var obj = document;

   var tagNames = list.split(',');

   var resultArray = new Array();

   for (var i=0;i<tagNames.length;i++)

   {

          var tags = obj.getElementsByTagName(tagNames[i]);

          for (var j=0;j<tags.length;j++)

          {

                  resultArray.push(tags[j]);

          }

   }

   var testNode = resultArray[0];

   if (testNode.sourceIndex)

   {

          resultArray.sort(function (a,b) {

                         return a.sourceIndex - b.sourceIndex;

          });

   }

   else if (testNode.compareDocumentPosition)

   {

          resultArray.sort(function (a,b) {

                         return 3 - (a.compareDocumentPosition(b) & 6);

          });

   }

   return resultArray;

}
