if (window.Event) // ³Ý½ºÄÉÀÌÇÁ¿¡¼­¸¸ ´ë¹®ÀÚ E.
  document.captureEvents(Event.MOUSEUP); // mouse up ÀÌº¥Æ®¸¦ ÀâÀ½

function nocontextmenu() // IE4¿¡¼­¸¸ Àû¿ë, ´Ù¸¥ ºê¶ó¿ìÀú´Â ¹«½Ã
{
   event.cancelBubble = true
   event.returnValue = false;

   return false;
}

function norightclick(e)   // ´Ù¸¥ ¸ðµç ºê¶ó¿ìÀú¿¡¼­ ÀÛµ¿
{
   if (window.Event)   // ´Ù½Ã, IE ¶Ç´Â NAV ?
   {

   }
   else
      if (event.button == 2 || event.button == 3)
      {
         event.cancelBubble = true
         event.returnValue = false;
         return false;
      }
   
}

document.oncontextmenu = nocontextmenu;      // IE5+ ¿ë
document.onmousedown = norightclick;      // ´Ù¸¥ ºê¶ó¿ìÀú ¿ë

n=document.layers
ie=document.all

//°ø¹éÁ¦°Å..
String.prototype.trim = function()
 {
  return this.replace(/(^\s*)|(\s*$)/g, "");
 }

function hide(){
	if(ie || n){
		if(n) document.Load.visibility="hidden"
		else Load.style.visibility="hidden"
	}
}



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 changeEmbed(arg1, arg2, arg3)
{
  document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'");
  document.write("        codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='"+arg2+"' height='"+arg3+"'>");
  document.write("<param name='movie' value='"+arg1+"'>");
  document.write("<param name='quality' value='high'>");
  document.write("<param name = wmode value = transparent>");
  document.write("<embed src='"+arg1+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+arg2+"' height='"+arg3+"'></embed>");
  document.write("</object>");
}


 

function toggleView(target){
    var sTarget = target.href.split("#");
    var aTarget = document.getElementById(sTarget[sTarget.length-1]);
    if(aTarget.style.display == "none") aTarget.style.display = "block";
    else aTarget.style.display = "none";    
}
