<!--
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_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_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_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() { //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; }
}
function MM_showlayer() { //v6.0
  var i,p,v,obj,args=MM_showlayer.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=='')?'':(v=='none')?'none':v; }
    obj.display=v; }
}

function chkcyber(f){

	url = "http://cyber.yangcheon.go.kr/__Login/Login.asp";
	f.target = "_new";
	f.action = url;

}
function chkEdu(f){

	url = "https://yangcheonedu.seoul.go.kr/Esp/EspLogin.asp";
	f.target = "_new";
	f.action = url;

}
function Srv_view(val)
{
		if(val=="1")
		{
			document.all.Image98.src = "/images/main-03-3-btnover_03.jpg";
			document.all.Image99.src = "/images/main-03-3_05.jpg";
			document.all.Image100.src = "/images/main-03-3_07.jpg";
			document.all["showTag1"].style.display="";
			document.all["showTag2"].style.display="none";
			document.all["showTag3"].style.display="none";

		}else if(val=="2")
		{
			document.all.Image98.src = "/images/main-03-3_03.jpg";
			document.all.Image99.src = "/images/main-03-3-btnover_05.jpg";
			document.all.Image100.src = "/images/main-03-3_07.jpg";
			document.all["showTag1"].style.display="none";
			document.all["showTag2"].style.display="";
			document.all["showTag3"].style.display="none";

		}else if(val=="3")
		{
			document.all.Image98.src = "/images/main-03-3_03.jpg";
			document.all.Image99.src = "/images/main-03-3_05.jpg";
			document.all.Image100.src = "/images/main-03-3-btnover_07.jpg";
			document.all["showTag1"].style.display="none";
			document.all["showTag2"].style.display="none";
			document.all["showTag3"].style.display="";
		}
		
		
}

function chk_sel(str)
	{
		if( str == "1")
		{			MM_showlayer('select1','','','select2','','none','select3','','none','select4','','none','select5','','none','select6','','none');
		} else if( str =="2"){
		MM_showlayer('select1','','none','select2','','','select3','','none','select4','','none','select5','','none','select6','','none');
		} else if ( str =="3"){
		MM_showlayer('select1','','none','select2','','none','select3','','','select4','','none','select5','','none','select6','','none');
		} else if ( str =="4"){
		MM_showlayer('select1','','none','select2','','none','select3','','none','select4','','','select5','','none','select6','','none');
		} else if ( str =="5"){
		MM_showlayer('select1','','none','select2','','none','select3','','none','select4','','none','select5','','','select6','','none');
		} else if ( str =="6"){
		MM_showlayer('select1','','none','select2','','none','select3','','none','select4','','none','select5','','none','select6','','');
		}
	}


function menu_view(fimg1,nimg1,fimg2,nimg2,fimg3,nimg3,dv1,sdv1,dv2,sdv2,dv3,sdv3)
{
		eval("document."+nimg1+".src='/main_img/"+fimg1+"'");
		eval("document."+nimg2+".src='/main_img/"+fimg2+"'");
		eval("document."+nimg3+".src='/main_img/"+fimg3+"'");
		eval("document.all."+dv1+".style.display='"+sdv1+"'");
		eval("document.all."+dv2+".style.display='"+sdv2+"'");
		eval("document.all."+dv3+".style.display='"+sdv3+"'");

}

isIE=document.all;
isNN=!document.all&&document.getElementById;
isN4=document.layers;
isHot=false;

function ddInit(e){
  topDog=isIE ? "BODY" : "HTML";
  whichDog=isIE ? document.all.theLayer : document.getElementById("theLayer");  
  hotDog=isIE ? event.srcElement : e.target;  
  while (hotDog.id!="titleBar"&&hotDog.tagName!=topDog){
    hotDog=isIE ? hotDog.parentElement : hotDog.parentNode;
  }  
  if (hotDog.id=="titleBar"){
    offsetx=isIE ? event.clientX : e.clientX;
    offsety=isIE ? event.clientY : e.clientY;
    nowX=parseInt(whichDog.style.left);
    nowY=parseInt(whichDog.style.top);
    ddEnabled=true;
    document.onmousemove=dd;
  }
}

function dd(e){
  if (!ddEnabled) return;
  whichDog.style.left=isIE ? nowX+event.clientX-offsetx : nowX+e.clientX-offsetx; 
  whichDog.style.top=isIE ? nowY+event.clientY-offsety : nowY+e.clientY-offsety;
  return false;  
}

function ddN4(whatDog){
  if (!isN4) return;
  N4=eval(whatDog);
  N4.captureEvents(Event.MOUSEDOWN|Event.MOUSEUP);
  N4.onmousedown=function(e){
    N4.captureEvents(Event.MOUSEMOVE);
    N4x=e.x;
    N4y=e.y;
  }
  N4.onmousemove=function(e){
    if (isHot){
      N4.moveBy(e.x-N4x,e.y-N4y);
      return false;
    }
  }
  N4.onmouseup=function(){
    N4.releaseEvents(Event.MOUSEMOVE);
  }
}

function hideMe(){

 if (theLayer.filters(0).status == 2) { 
        theLayer.filters(0).Stop(); 
    if (theLayer.style.visibility == "hidden") 
        theLayer.style.visibility = "visible"; 
        else 
            theLayer.style.visibility = "hidden"; 
            window.setTimeout("hideMe()", 1); } 
            theLayer.filters(0).Apply(); 
    if (theLayer.style.visibility == "hidden") 
        theLayer.style.visibility = "visible"; 
        else 
            theLayer.style.visibility = "hidden"; 
            theLayer.filters(0).Play(); 



 // if (isIE||isNN) whichDog.style.visibility="hidden";
 // else if (isN4) document.theLayer.visibility="hide";
}

function showMe(){
 
 
if (theLayer.filters(0).status == 2) { 
        theLayer.filters(0).Stop(); 
    if (theLayer.style.visibility == "hidden") 
        theLayer.style.visibility = "visible"; 
        else 
            theLayer.style.visibility = "hidden"; 
            window.setTimeout("hideMe()", 1); } 
            theLayer.filters(0).Apply(); 
    if (theLayer.style.visibility == "hidden") 
        theLayer.style.visibility = "visible"; 
        else 
            theLayer.style.visibility = "hidden"; 
            theLayer.filters(0).Play(); 
}

function showMe_List(){

	if(m_pop.document.all["popLayer"].style.display==""){
		m_pop.document.all["popLayer"].style.display="none";
	}else{

		m_pop.document.all["popLayer"].style.display="";
	}
}
function CloseMe_List(){

	document.all["popLayer"].style.display="none";
}

document.onmousedown=ddInit;
document.onmouseup=Function("ddEnabled=false");

function vPrj(idx)
{
	// ÀÏ¹Ý Ã¢À¸·Î ¿­±â 
	opt_str = "width=940,height=538 , scrollbars=yes, status=yes , menu=yes , titlebar=yes , resizable=yes, toolbar=yes ,location=yes , menubar=yes ";
	url_str = "/project/index.asp?pn="+idx
	if( idx == 15 )
	{
		url_str = "/image/admin_info/vision2020.wmv"

	}
	if( idx == 16 )
	{
		url_str  = "/admin_info/vision_info_04.asp";
	}
	
	
	myPrj = window.open( url_str , "ProjectWindow" , opt_str);
	goMaximize( myPrj );	
	
}

function goMaximize( wnd_obj )
{
	wnd_obj.window.moveTo(0,0);
	if (document.all) 
	{
			   wnd_obj.window.resizeTo(screen.availWidth,screen.availHeight);
	} 
	else if (document.layers||document.getElementById) 
	{
		if (wnd_obj.window.outerHeight<screen.availHeight||wnd_obj.window.outerWidth<screen.availWidth)
		{
				wnd_obj.window.outerHeight = screen.availHeight;
				wnd_obj.window.outerWidth = screen.availWidth;
	  }
	}
}

function hideURL(){window.status="";} // ±èº´Ã¶ 2007-01-24 Ãß°¡


  /*****Zoom In & Zoom Out Script*****/

    var zoomRate = 10;            // È®´ë/Ãà¼Ò½Ã Áõ°¨·ü
    var maxRate = 300;            //ÃÖ´ëÈ®´ë·ü
    var minRate = -300;            //ÃÖ¼ÒÃà¼Ò·ü

    function GetCookie(name){
        if (document.cookie != "") {
            zoomc = document.cookie.split("; ");
            for (var i=0; i < zoomc.length; i++) {
                zoomv = zoomc[i].split("="); 
                if (zoomv[0] == name) {
                    return  unescape(zoomv[1]);
                }
            }
        }else{
            return "";
        }
    }

    function SetCookie(name,value){
        document.cookie = name + "=" + escape (value)+";";
    }

    function GoZoom(contentid){
        if(GetCookie("zoomVal") != null && GetCookie("zoomVal") != ""){
            document.all[contentid].style.zoom = GetCookie("zoomVal");
            currZoom=GetCookie("zoomVal");
        }
        else{
            document.all[contentid].style.zoom = '100%'; 
            currZoom = '100%';
        }
    }

	function zoomBasic(contentid, how) {
		 document.all[contentid].style.zoom = '100%'; 
		 SetCookie("zoomVal",document.all[contentid].style.zoom); 
	}

    //Zoom In & Zoom Out
    function zoomInOut(contentid, how) {

        if(GetCookie("zoomVal") != null && GetCookie("zoomVal") != ""){
            document.all[contentid].style.zoom = GetCookie("zoomVal");
            currZoom=GetCookie("zoomVal");
        }
        else{
            document.all[contentid].style.zoom = '100%'; 
            currZoom = '100%';
        }
        if (((how == "in") && (parseInt(currZoom) >= maxRate)) || ((how == "out") && (parseInt(currZoom) <= minRate)) ) {
            return; 
        }
        if (how == "in") {
			//FontPlus();
            document.all[contentid].style.zoom = parseInt(document.all[contentid].style.zoom)+zoomRate+'%'
        }
        else {
            document.all[contentid].style.zoom = parseInt(document.all[contentid].style.zoom)-zoomRate+'%'
        }
        SetCookie("zoomVal",document.all[contentid].style.zoom);
    }

    //    +, - key event
    document.onkeypress = getKey;
    
    function getKey(keyStroke) {
        isNetscape=(document.layers);
        eventChooser = (isNetscape) ? keyStroke.which : event.keyCode;
        which = String.fromCharCode(eventChooser).toLowerCase();
        which2 = eventChooser;

        var el=event.srcElement;

        if ((el.tagName != "INPUT") && (el.tagName != "TEXTAREA"))        //input,textarea ¾È¿¡¼­ÀÇ +.-°ªÀº ½ÇÇà¾ÈµÇµµ·Ï
        {            
            if(which == "+" )
                zoomInOut('zoom', 'in');
            else if(which == "-" )
                zoomInOut('zoom', 'out');
        }
    }
    
    function jsiPrint()
    {
        var width = 730;
        var height = 350;
        var x, y;
        var screen_width  = screen.width;
        var screen_height = screen.height;
        x = (screen_width  / 2) - (width  / 2);
        y = (screen_height / 2) - (height / 2);
        var pop = window.open ( "./for_print.jsp","print","width=" + width + ", height=" + height + ", left=" + x + ", top=" + y + ", toolbar=no, status=no, menubar=no, scrollbars=yes, resizable=yes");
        pop.focus();
        return;
    }
	
	function itsNotTerm(){alert("°¡µ¿ÇöÈ²Àº ¼ö¹æ±â°£ Áß(¸Å³â 5¿ù15ÀÏ¿¡¼­\n\n 10¿ù 15ÀÏ)¿¡¸¸ Á¦°øµË´Ï´Ù.\n\n°¨»çÇÕ´Ï´Ù.");}
	function itsOkTerm(){url="http://pump.yangcheon.go.kr/";temp=window.open(url,"pump");}

function pop(url,name,property) {
	window.open(url,name,property);
}


function msgMail()
{
window.open('/popup/popup_090219.htm','mailpop','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=376,height=249, top=0, left=0');
}
//-->


/* È­¸é È®´ë Ãà¼Ò ½ÃÀÛ IE Àü¿ë */
 var nowZoom = 100; // ÇöÀçºñÀ²
 var maxZoom = 200; // ÃÖ´ëºñÀ²(500À¸·ÎÇÏ¸é 5¹è Ä¿Áø´Ù)
 var minZoom = 80; // ÃÖ¼ÒºñÀ²


 //È­¸é Å°¿î´Ù.
 function zoomIn() {
  if (nowZoom < maxZoom) {
   nowZoom += 10; //25%¾¿ Ä¿Áø´Ù.
  } else {
   return;
  }

  document.body.style.zoom = nowZoom + "%";
 }

 //È­¸é ÁÙÀÎ´Ù.
 function zoomOut() {
  if (nowZoom > minZoom) {
   nowZoom -= 10; //25%¾¿ ÀÛ¾ÆÁø´Ù.
  } else {
   return;
  }

  document.body.style.zoom = nowZoom + "%";
 }

 //È­¸é ±âº»
 function zoomBase() {
   document.body.style.zoom = '100%';
 }