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;
  }  
}

function hideMe(TLayer){
	if (isIE||isNN) {
  		whichDog.style.visibility="hidden";
		whichDog2=isIE ? eval('document.all.'+TLayer) : eval('document.getElementById("'+TLayer+'")');
		whichDog2.style.visibility="hidden";
	} else if (isN4) {
		document.theLayer.visibility="hide";
		whichDog2=eval('document.'+TLayer);
		whichDog2.visibility="hide";
	}
}

function showMe(TLayer){
	if (isIE||isNN) {
//		whichDog.style.left=parseInt(document.Show.MouseX.value) - parseInt(260);
  		whichDog.style.visibility="visible";
		whichDog2=isIE ? eval('document.all.'+TLayer) : eval('document.getElementById("'+TLayer+'")');
//		whichDog2.style.left=parseInt(document.Show.MouseX.value) - parseInt(250);
		whichDog2.style.visibility="visible";
	} else if (isN4) {
		document.theLayer.visibility="show";
//		document.theLayer.left=parseInt(document.Show.MouseX.value) - parseInt(260);
		whichDog2=eval('document.'+TLayer);
//		whichDog2.left=parseInt(document.Show.MouseX.value) - parseInt(250);
		whichDog2.visibility="show";
	}
}

document.onmouseover=ddInit;
document.onmouseout=Function("ddEnabled=false");

var IE = document.all?true:false
if (!IE) document.captureEvents(Event.MOUSEMOVE)
document.onmousemove = getMouseXY;
var tempX = 0
var tempY = 0
function getMouseXY(e) {
  if (IE) { // grab the x-y pos.s if browser is IE
    tempX = event.clientX + document.body.scrollLeft
    tempY = event.clientY + document.body.scrollTop
  } else {  // grab the x-y pos.s if browser is NS
    tempX = e.pageX
    tempY = e.pageY
  }  
  if (tempX < 0){tempX = 0}
  if (tempY < 0){tempY = 0}  
  document.Show.MouseX.value = tempX
  document.Show.MouseY.value = tempY
  return true
}
