      var offsetFromCursorY=15 // y offset of ToolTipText  
      var ie=document.all && !window.opera;  
      var ns6=document.getElementById && !document.all;  
      var tipObj,op;  
      var ua = navigator.userAgent.toLowerCase(); 
      function ToolTipText(el,html)  
      {  
          tipObj=document.getElementById('mess'); 
 
          tipObj.className = "ZToolTipText"; 
  
          tipObj.innerHTML = html;  
 
          op = 0.1;     
  
          tipObj.style.opacity = op;   
 
          tipObj.style.visibility="visible";  
  
          el.onmousemove=PositionTip;  
  
          Appear(); 
 
      }  

      function HideInfo(el)  
  
      {  

          document.getElementById('mess').style.visibility='hidden';       
 
          el.onmousemove='';  

      }  
  
        
  
      function IeTrueBody() 
 
      { return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body }  
 
      function PositionTip(e)  
 
      {  
 
          var curX=(ns6)?e.pageX : event.clientX+IeTrueBody().scrollLeft;  
  
          var curY=(ns6)?e.pageY : event.clientY+IeTrueBody().scrollTop;  
  
          var winwidth=ie&&!window.opera? IeTrueBody().clientWidth : window.innerWidth-20  
 
          var winheight=ie&&!window.opera? IeTrueBody().clientHeight : window.innerHeight-20  
 
            

          var rightedge=ie&&!window.opera? winwidth-event.clientX : winwidth-e.clientX;  
 
          var bottomedge=ie&&!window.opera? winheight-event.clientY-offsetFromCursorY : winheight-e.clientY-offsetFromCursorY;  
   
  
          if (rightedge<tipObj.offsetWidth)   tipObj.style.left=curX-tipObj.offsetWidth+"px";  
 
          else tipObj.style.left=curX+"px";  
    
  
          if (bottomedge<tipObj.offsetHeight) tipObj.style.top=curY-tipObj.offsetHeight-offsetFromCursorY+"px"  

          else tipObj.style.top=curY+offsetFromCursorY+"px";  

      }  
  
        
  
      function Appear()    
  
      {     
  
          if(op < 1)   
  
          {  
  
              (ua.indexOf('opera') == -1) ? op+=0.1 : op+=100; // special exeption on Opera 
  
              tipObj.style.opacity = op;  
  
              tipObj.style.filter = 'alpha(opacity='+op*100+')';  
 
              t = setTimeout('Appear()', 30);  
            }  
  
      }  