var hover, hoverY = 0, offsetY = 25, offsetX = -60;

var ns4=document.layers
var ns6=document.getElementById&&!document.all
var ie4=document.all

function initializeHover() {
 if (ns4) {
  hover = document.fly;
 }
 else if (ns6) {
  hover = document.getElementById("fly").style;
 }
 else if (ie4) {
  hover=document.all.fly.style;
 }

 if (ns4) {
  document.captureEvents(Event.MOUSEMOVE);
 }
 else {
  hover.visibility = "visible";
  hover.display="none";
 }
 document.onmousemove = moveHover;
}

function showHover(str) {
 var s = str;

 hoverY = offsetY;

 if (ns4) {
  hover.document.write(s);
  hover.document.close();
  hover.visibility = "visible";
 }
 if (ns6) {
  document.getElementById("fly").innerHTML = s;
  hover.display = "";
 }
 if (ie4) {
  document.all("fly").innerHTML = s;
  hover.display = "";
 }
}

function moveHover(e) {
 var x = (ns4 || ns6) ? e.pageX : event.x+document.body.scrollLeft;

 hover.left = x + offsetX;

 var y = (ns4 || ns6) ? e.pageY : event.y+document.body.scrollTop;
 hover.top= y + hoverY;
}

function hideHover() {
 //yyy=-1000;
 if (ns4) {
  hover.visibility = "hidden";
 }
 else if (ns6 || ie4) {
  hover.display = "none";
 }
}
