isIE=document.all;
isNN=!document.all&&document.getElementById;
isN4=document.layers;
isHot=false;

function ddInit1(e){
 topDog=isIE ? "BODY" : "HTML";
 whichDog=isIE ? document.all.out_pop : document.getElementById("out_pop");
 hotDog=isIE ? event.srcElement : e.target;
 while (hotDog.id!="out_pop"&&hotDog.tagName!=topDog){
  hotDog=isIE ? hotDog.parentElement : hotDog.parentNode;
 }
 if (hotDog.id=="out_pop"){
  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 ddInit2(e){
 topDog=isIE ? "BODY" : "HTML";
 whichDog=isIE ? document.all.out_pop2 : document.getElementById("out_pop2");
 hotDog=isIE ? event.srcElement : e.target;
 while (hotDog.id!="out_pop2"&&hotDog.tagName!=topDog){
  hotDog=isIE ? hotDog.parentElement : hotDog.parentNode;
 }
 if (hotDog.id=="out_pop2"){
  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 ddInit3(e){
 topDog=isIE ? "BODY" : "HTML";
 whichDog=isIE ? document.all.out_pop3 : document.getElementById("out_pop3");
 hotDog=isIE ? event.srcElement : e.target;
 while (hotDog.id!="out_pop3"&&hotDog.tagName!=topDog){
  hotDog=isIE ? hotDog.parentElement : hotDog.parentNode;
 }
 if (hotDog.id=="out_pop3"){
  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;
}

document.onmouseup=Function("ddEnabled=false");


function setCookie( name, value, expiredays )
{
	var todayDate = new Date();
	todayDate.setDate( todayDate.getDate() + expiredays );
	document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}

function pop_close(layer)
{
	document.getElementById(layer).style.visibility = "hidden";
}

function CloseWin(layer, cookie_value, frm) 
{ 
	if ( frm.Notice.checked ) 
 		setCookie( cookie_value, "done" , 1);
	document.getElementById(layer).style.visibility = "hidden";
}
