
//ÀÎÁõ¼­½ºÅ©¸³Æ®

function view(id)
{
if(document.all)
{
document.all["a"].style.visibility="hidden";
document.all["b"].style.visibility="hidden";
document.all["c"].style.visibility="hidden";
}
else if(document.layers)
{
document.layers["a"].style.visibility="hide";
document.layers["b"].style.visibility="hide";
document.layers["c"].style.visibility="hide";
}
if(document.all)
{
document.all[id].style.visibility="visible";
}
else if(document.layers)
{
document.all[id].style.visibility="show";
}
}

function makeWin04() {
   winobject=window.open("certi04.htm", "certi04", "scrollbars=no,resizable=no,width=420,height=590");
}

function makeWin05() {
   winobject=window.open("certi05.htm", "certi05", "scrollbars=no,resizable=no,width=650,height=450");
}

function makeWin06() {
   winobject=window.open("certi06.htm", "certi06", "scrollbars=no,resizable=no,width=420,height=590");
}
function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}

//-->
//



//scroll
function CheckUIElements()
{
        var yMenuFrom, yMenuTo, yButtonFrom, yButtonTo, yOffset, timeoutNextCheck;


				yMenuFrom   = parseInt (divMenu.style.top, 10);
                yMenuTo     = document.body.scrollTop +450; // À§ÂÊ À§Ä¡
   
        timeoutNextCheck = 500;

        if ( Math.abs (yButtonFrom - (yMenuTo + 152)) < 6 && yButtonTo < yButtonFrom ) {
                setTimeout ("CheckUIElements()", timeoutNextCheck);
                return;
        }


        if ( yButtonFrom != yButtonTo ) {
                yOffset = Math.ceil( Math.abs( yButtonTo - yButtonFrom ) / 10 );
                if ( yButtonTo < yButtonFrom )
                        yOffset = -yOffset;
                        divMenu.style.top = parseInt (divMenu.style.top, 10) + yOffset;
             			timeoutNextCheck = 10;
        }
        if ( yMenuFrom != yMenuTo ) {
                yOffset = Math.ceil( Math.abs( yMenuTo - yMenuFrom ) / 20 );
                if ( yMenuTo < yMenuFrom )
                        yOffset = -yOffset;
                        divMenu.style.top = parseInt (divMenu.style.top, 10) + yOffset;
                		timeoutNextCheck = 10;
        }

        setTimeout ("CheckUIElements()", timeoutNextCheck);
}



function OnLoad()
{
        var y;


     

				divMenu.style.top = document.body.scrollTop + 300;
                divMenu.style.visibility = "visible";


     

        CheckUIElements();
        return true;}
		
		
// ·¹ÀÌ¾î
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) { //v3.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); 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_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 popup(url,wid,hei,opt) {
	option = "width=" + wid +",height=" + hei;
	if (opt != "") {
		option = option + "," + opt;
	}
	window.open(url,"",option)
}	

function body_size() {
	wid = document.body.scrollWidth+10;
	hei = document.body.scrollHeight+29;
	self.resizeTo(wid,hei);
}


//* Right Popup *//
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}



//* popup size *ÁöÁ¤//

function popup(url,wname,wwidth,wheight) {
var newwin = window.open(url,wname,"toolbar=no,directories=no,menubar=no,scrollbars=no,width=" + wwidth + ",height=" + wheight + ",left=10,top=0,resizable=no");
newwin.focus();
}

var ImgName;
function ImgOn(Path,Name)
	{
	ImgName  =  Name;
	SwitchImg = "/images/" + Path + "/" + Name + "_on.gif"; 
	document.images[Name].src=SwitchImg;
	} 

function Fix(Path)
	{
	SwitchImg = "/images/" + Path + "/" + ImgName + ".gif";
	document.images[ImgName].src=SwitchImg;
	}

//°ü·Ã»çÀÌÆ® ÀÌµ¿
function MovePage(url) {
	if(url=="#"||url=="") {
	
	} else {
			window.open(url,"new");
	}
}


function Select_target(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 bluring(){ 
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
} 
document.onfocusin=bluring; 


