var g_s = false, g_id, g_p, g_pt, g_pf, g_e, g_ept, g_epf; 
function gof(o, l) { 
 var res = 0 
 while(o.offsetParent) { 
   if (l) {res = res + o.offsetLeft;} else {res = res + o.offsetTop;}; 
   o = o.offsetParent 
 } return res 
} 
function m_ov(id, p) { 
 var e = document.getElementById(id) 
 g_pt = gof(p, true); 
 g_pf = gof(p, false); 
 e.style.visibility = 'visible' 
 e.style.left = g_pt - 0.25*e.offsetWidth - 38 + 'px'
 e.style.top = ((document.all)?-1:-1)+p.offsetHeight+g_pf+'px' 
 e.style.display = 'block';
 g_id = id 
 g_e = e 
 g_p = p 
 g_ept = parseInt(e.style.left) 
 g_epf = parseInt(e.style.top) 
 g_s = true 
 document.onmousemove = tm_ov 
 return false; 
} 
function m_h(e) { 
 if (e.style.visibility == 'visible') { 
  document.onmousemove = null; 
  e.style.visibility = 'hidden' 
  g_s = false 
  return false; 
 } 
} 
function tm_ov(e) { 
 if (!g_s) {
        return 
 }
 var x, y;
 if (document.all) { 
   x = event.clientX + document.body.scrollLeft 
   y = event.clientY + document.body.scrollTop 
 } else { 
   x = e.pageX 
   y = e.pageY 
 } 
 if ((x >= g_pt && x <= g_pt+g_p.offsetWidth && 
      y >= g_pf && y <= g_pf+85) || 
     (x >= g_ept && x <= g_ept+g_e.offsetWidth && 
      y >= g_epf && y <= g_epf+20) 
    ) { 
   return false 
 } 
 return m_h(g_e) 
} 

