
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_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 MM_findObj(n, d) { //v4.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);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}



function MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}


//ÇÃ·¡½¬ÆÄÀÏ·Îµå
function loadFlash(flash_path, width, height, isTransparent)
{
	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 + '"> <param name="movie" value="' + flash_path + '" />');
	document.write('<param name="quality" value="high" />');
	if(isTransparent)
		document.write('<param name=wmode value=transparent>');
	document.write('<embed src="' + flash_path + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '"></embed></object>');
}
/**************************************************************************
   Layer °íÁ¤ °ª È®ÀÎ
**************************************************************************/
function checked(eventObj){
     var imgSrc = '';
     if (browser_info  == 'Ie'){
         imgSrc = event.srcElement;
     }
     else if( browser_info == "Ns6" ){
         window.captureEvents(Event.CLICK);
         imgSrc = eventObj;
     }
     else{
         alert('ÁË¼ÛÇÕ´Ï´Ù. º» ºê¶ó¿ìÀú¿¡¼­´Â Áö¿øµÇÁö ¾Ê½À´Ï´Ù.');
         return;
     }

     if (!pick_fixed){ //¸Þ´º °íÁ¤ÀÌ ¾Æ´Ñ »óÅÂ
          pick_fixed = true;
          fixedLayer();
      }
      else{
          pick_fixed = false;
          onSlide();
      }
}

    var scrollerwidth=406 // ½ºÅ©·Ñ·¯ÀÇ °¡·Î 
    var scrollerheight=57   // ½ºÅ©·Ñ·¯ÀÇ ¼¼·Î 
    var scrollerbgcolor=''  // ½ºÅ©·Ñ·¯ ¹è°æ»ö 
    var scrollerbackground=''  // ½ºÅ©·Ñ·¯ ¹è°æÀÌ¹ÌÁö 
            
    // ·Ñ¸µ °¹¼ö 
    var num = 4
    var index=0 
                     
    // ¸ØÃß´Â ½Ã°£ 
    var scrollspeed='4000'   
               
    // Scrolling ¼Óµµ         
    var waitingtime='45'                   
              
    var image=new Array() 
    if (image.length>1)   
    j=2   
    else   
    j=0   
            
    function move1(whichlayer){   
    tlayer=eval(whichlayer)   
    if (tlayer.top>0&&tlayer.top<=num){   
    tlayer.top=0   
    setTimeout("move1(tlayer)",scrollspeed)   
    setTimeout("move2(document.main.document.second)",scrollspeed)   
    return   
    }   
    if (tlayer.top>=tlayer.document.height*-1){   
    tlayer.top-=num 
    setTimeout("move1(tlayer)",waitingtime)   
    }else{   
    tlayer.top=scrollerheight   
    tlayer.document.write(image[j])   
    tlayer.document.close()   
    if (j==image.length-1)   
    j=0   
    else   
    j++   
    }   
    }   
                       
    function move2(whichlayer){   
    tlayer2=eval(whichlayer)   
    if (tlayer2.top>0&&tlayer2.top<=num){   
    tlayer2.top=0   
    setTimeout("move2(tlayer2)",scrollspeed)   
    setTimeout("move1(document.main.document.first)",scrollspeed)   
    return   
    }   
    if (tlayer2.top>=tlayer2.document.height*-1){   
    tlayer2.top-=num 
    setTimeout("move2(tlayer2)",waitingtime)   
    }else{   
    tlayer2.top=scrollerheight   
    tlayer2.document.write(image[j])   
    tlayer2.document.close()   
    if (j==image.length-1)   
    j=0   
    else   
    j++   
    }   
    }   
                       
    function move3(whichdiv){   
    tdiv=eval(whichdiv)   
    if (tdiv.style.pixelTop>0&&tdiv.style.pixelTop<=num){   
    tdiv.style.pixelTop=0   
    setTimeout("move3(tdiv)",scrollspeed)   
    setTimeout("move4(second2)",scrollspeed)   
    return   
    }   
    if (tdiv.style.pixelTop>=tdiv.offsetHeight*-1){   
    tdiv.style.pixelTop-=num 
    setTimeout("move3(tdiv)",waitingtime)   
    }else{   
    tdiv.style.pixelTop=scrollerheight   
    tdiv.innerHTML=image[j]   
    if (j==image.length-1)   
    j=0   
    else   
    j++   
    }   
    }   
                       
    function move4(whichdiv){   
    tdiv2=eval(whichdiv)   
    if (tdiv2.style.pixelTop>0&&tdiv2.style.pixelTop<=num){   
    tdiv2.style.pixelTop=0   
    setTimeout("move4(tdiv2)",scrollspeed)   
    setTimeout("move3(first2)",scrollspeed)   
    return   
    }   
    if (tdiv2.style.pixelTop>=tdiv2.offsetHeight*-1){   
    tdiv2.style.pixelTop-=num   
    setTimeout("move4(second2)",waitingtime)   
                                     
    if(j==index) { 
    index= 200; 
    j=2; 
    } 
                                                
    }else{
    tdiv2.style.pixelTop=scrollerheight   
    tdiv2.innerHTML=image[j]   
    if (j==image.length-1)   
    j=0   
    else   
    j++   
    }   
    }   
                       
    function startscroll(){   
    if (document.all){   
    move3(first2)   
    second2.style.top=scrollerheight   
    second2.style.visibility='visible'   
    }else if (document.layers){   
    document.main.visibility='show'   
    move1(document.main.document.first)   
    document.main.document.second.top=scrollerheight+num   
    document.main.document.second.visibility='show'   
    }   
    }   
                       
    var image=new Array(); 
            
                             
    // ½ºÅ©·Ñ·¯¿¡ µé¾î°¥ ³»¿ëµéÀ» ÅÂ±×¿Í ÇÔ²² ³Ö¾î ÁÝ´Ï´Ù 
            
    image[0]='';
    image[1]='';
            
    image[0] = '<img src=img/banner01.gif border=0 usemap=#banner01>'
    image[1] = '<img src=img/banner02.gif border=0 usemap=#banner02>'
    image[2] = '<img src=img/banner01.gif border=0 usemap=#banner01>'
    image[3] = '<img src=img/banner02.gif border=0 usemap=#banner02>'