// Script Source: CodeLifter.com
// Copyright 2003
// Do not remove this header

var isIE=document.all;
var isNN=!document.all&&document.getElementById;
var 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 mail_hideMe(){
  whichDog.style.visibility="hidden";
}

function mail_showMe(){
  whichDog.style.visibility="visible";
  if(arguments[0] && document.forms['sendform'].elements['send_ginvit']) {
    document.forms['sendform'].elements['send_ginvit'].value = arguments[0];
  }
 if(arguments[1] && document.forms['sendform'].elements['gemail'])
    document.forms['sendform'].elements['gemail'].value = arguments[1];
 if(arguments[2] && document.forms['sendform'].elements['gsex'])
    document.forms['sendform'].elements['gsex'].value = arguments[2];
 if(arguments[3] && document.forms['sendform'].elements['gfname'])
    document.forms['sendform'].elements['gfname'].value = arguments[3];
    window.document.location = '#sigtop';

}

document.onmousedown=ddInit;
document.onmouseup=Function("ddEnabled=false");


