var focusDiv=null;
var contentDiv=null;
var idc=null;

function mouseOver(divId){

idc=divId;
focusDiv=idc;
var mousex = 0;
var mousey = 0;

init();

function init(){
  document.onmousemove = update; // update(event) implied on NS, update(null) implied on IE
  update();
}

function getMouseXY(e){ 
  if (!e) e = window.event; // works on IE, but not NS (we rely on NS passing us the event)

  if (e)
  { 
    if (e.pageX || e.pageY)
    { // this doesn't work on IE6!! (works on FF,Moz,Opera7)
      mousex = e.pageX;
      mousey = e.pageY;
      algor = '[e.pageX]';
      if (e.clientX || e.clientY) algor += ' [e.clientX] '
    }
    else if (e.clientX || e.clientY)
    { // works on IE6,FF,Moz,Opera7
      mousex = e.clientX + document.body.scrollLeft;
      mousey = e.clientY + document.body.scrollTop;
      algor = '[e.clientX]';
      if (e.pageX || e.pageY) algor += ' [e.pageX] '
    }  
  }
}

function update(e){
getMouseXY(e); // NS is passing (event), while IE is passing (null)

document.getElementById(idc).style.top =(mousey-100)+'px';
document.getElementById(idc).style.left = (mousex+20)+'px';
}

document.getElementById(idc).style.display ="block";
}







function mouseOut(idc){
document.getElementById(idc).style.display ="none";
}


