// Tooltips pcvisit

tooltip = null;
 
document.onmousemove = updateTooltip;
 
function updateTooltip(e) {
  if (tooltip != null) {
    x = (document.all) ? window.event.x + tooltip.offsetParent.scrollLeft : e.pageX;
    y = (document.all) ? window.event.y + tooltip.offsetParent.scrollTop  : e.pageY;
    tooltip.style.left = (x + 2) + "px";
    tooltip.style.top   = (y + 2) + "px";
  }
}
 
function showTooltip(id) {
  tooltip = document.getElementById(id);
  tooltip.style.display = "block"
}
 
function hideTooltip() {
  tooltip.style.display = "none";
}
