
isIE=document.all;
isNN=!document.all&&document.getElementById;
isN4=document.layers;
isHot=false;

function ddInit(e){
  topDog=isIE ? "BODY" : "HTML";
  whichDog=isIE ? document.all.notice3 : document.getElementById("notice3");
  whichDog2=isIE ? document.all.notice2 : document.getElementById("notice2");
  whichDog4=isIE ? document.all.notice4 : document.getElementById("notice4");
  whichDog5=isIE ? document.all.notice5 : document.getElementById("notice5");
  hotDog=isIE ? event.srcElement : e.target;
  
  while (hotDog.id!="notice3"&&hotDog.tagName!=topDog&&hotDog.id!="notice2"&&hotDog.id!="notice4"&&hotDog.id!="notice5"){
    hotDog=isIE ? hotDog.parentElement : hotDog.parentNode;
  }

  if (hotDog.id=="notice3"){
    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;
  } else if (hotDog.id=="notice2"){
    offsetx=isIE ? event.clientX : e.clientX;
    offsety=isIE ? event.clientY : e.clientY;
    nowX=parseInt(whichDog2.style.left);
    nowY=parseInt(whichDog2.style.top);
    ddEnabled=true;
    document.onmousemove=dd2;
  } else if (hotDog.id=="notice4"){
    offsetx=isIE ? event.clientX : e.clientX;
    offsety=isIE ? event.clientY : e.clientY;
    nowX=parseInt(whichDog4.style.left);
    nowY=parseInt(whichDog4.style.top);
    ddEnabled=true;
    document.onmousemove=dd4;
  } else if (hotDog.id=="notice5"){
    offsetx=isIE ? event.clientX : e.clientX;
    offsety=isIE ? event.clientY : e.clientY;
    nowX=parseInt(whichDog5.style.left);
    nowY=parseInt(whichDog5.style.top);
    ddEnabled=true;
    document.onmousemove=dd5;
  }



}

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 dd2(e){
  if (!ddEnabled) return;
  whichDog2.style.left=isIE ? nowX+event.clientX-offsetx : nowX+e.clientX-offsetx;
  whichDog2.style.top=isIE ? nowY+event.clientY-offsety : nowY+e.clientY-offsety;
  return false;
}
function dd4(e){
  if (!ddEnabled) return;
  whichDog4.style.left=isIE ? nowX+event.clientX-offsetx : nowX+e.clientX-offsetx;
  whichDog4.style.top=isIE ? nowY+event.clientY-offsety : nowY+e.clientY-offsety;
  return false;
}
function dd5(e){
  if (!ddEnabled) return;
  whichDog5.style.left=isIE ? nowX+event.clientX-offsetx : nowX+e.clientX-offsetx;
  whichDog5.style.top=isIE ? nowY+event.clientY-offsety : nowY+e.clientY-offsety;
  return false;
}
document.onmousedown=ddInit;
document.onmouseup=Function("ddEnabled=false");

// ÀÏ¹Ý Á¾·á½Ã È£ÃâÇÏ´Â ÇÔ¼ö 
function closePopLayer(lname) 
{ 
eval(lname + ".style.display = \"none\""); 
} 

// ÄíÅ°¸¦ °Ë»çÇÏ´Â ÇÔ¼ö 
function getPopCookie(name){ 
var nameOfCookie1 = name + "="; 
var x = 0; 
while(x<=document.cookie.length){ 
var y = (x+nameOfCookie1.length); 
if (document.cookie.substring(x,y) == nameOfCookie1){ 
if ((endOfCookie=document.cookie.indexOf( ";", y )) == -1 ) 
endOfCookie = document.cookie.length; 
return unescape( document.cookie.substring( y, endOfCookie ) ); 
} 
x = document.cookie.indexOf( " ", x ) + 1; 
if ( x == 0 ) 
break; 
} 
return ""; 
} 

// ÄíÅ°¸¦ ¼ÂÆÃÇÏ´Â ÇÔ¼ö 
function setPopCookie(name,value,expiredays){ 
var todayDate1 = new Date(); 
todayDate1.setDate( todayDate1.getDate() + expiredays ); 
document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate1.toGMTString() + ";" 
} 

// ¿À´Ã ÇÏ·ç Å¬¸¯½Ã È£ÃâÇÏ´Â ÇÔ¼ö 
function cPopClose(name) 
{ 
   setPopCookie(name,"done",1); 
eval(name + ".style.display = \"none\""); 
} 

// Ã³À½ È­¸é ·Îµù½Ã ÄíÅ°¸¦ Ã¼Å©ÇÏ´Â ÇÔ¼ö 
function chkPopLayer(name) 
{ 
   // Ãß°¡³ª º¯°æÇÒ ºÎºÐ ½ÃÀÛ 
   if (getPopCookie(name)!="done"){ 
       eval(name + ".style.display = \"\""); 
   } 
} 



