isIE=document.all;
isNN=!document.all&&document.getElementById;
isN4=document.layers;
isHot=false;

function ddInit(e){
  whichDog=isIE ? document.all.theLayer : document.getElementById("theLayer");  
}


function hideMe(){
  if (isIE||isNN) whichDog.style.visibility="hidden";
  else if (isN4) document.theLayer.visibility="hide";
}

function getposi(e,was) {
  var zx = 0
  var zy = 0
  while (e.tagName != "BODY" ) {
	zx = zx + e.offsetTop
	zy = zy + e.offsetLeft
	e = e.offsetParent
  }
  if (was == 'x') {
	return zx;
  } else {
	return zy;
  }
}


function showMe(woher,text,x,y){
  if(text != "") {
  	if (isIE||isNN) { 
	  	whichDog.style.visibility="visible";
	  	whichDog.style.top=getposi(woher,'x') - x;
	  	whichDog.style.left=getposi(woher,'y') + y;
	  	whichDog.innerHTML =text
  	} else if (isN4) {
	  	document.theLayer.visibility="show";
  	}
  }
}
document.onmouseover=ddInit;
document.onmouseout=Function("ddEnabled=false");

