isIE=document.all;
isNN=!document.all&&document.getElementById;
isN4=document.layers;
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;
 }
}
function hideMe()
{
 if (isIE||isNN) whichDog.style.visibility="hidden";
 else if (isN4) document.theLayer.visibility="hide";
}
function showMe()
{
 if (isIE||isNN) whichDog.style.visibility="visible";
 else if (isN4) document.theLayer.visibility="show";
}
document.onmousedown=ddInit;