// JavaScript Document
toolTip =
  {
    name : "tooltip",
    tip : null,
    offsetX : -88,
    offsetY : -23,
    init:function()
    {
      if(!document.getElementById) return;
      this.tip = document.getElementById(this.name);
      document.onmousemove = function(evt){toolTip.move(evt)};
    },
    move:function(evt)
    {
      if(!this.tip) return;
      var x = 0, y = 0;
      if(document.all)
      {
        x = document.body.scrollLeft;
        y = document.body.scrollTop;
        if((document.documentElement) && (typeof document.documentElement.scrollLeft != "undefined") && (typeof document.documentElement.scrollTop != "undefined"))
        {
          x = Math.max(x, document.documentElement.scrollLeft);
          y = Math.max(y, document.documentElement.scrollTop);
        }
        x += window.event.clientX;
        y += window.event.clientY;
      }
      else
      {
        x = evt.pageX;
        y = evt.pageY;
      }
     /*----------------------------------------
     4/13/07 DAC Jira PVA 6579.
     Added absolute positioning and left and top 
     positions to repair tool tips. Also added 
     some styles to pro_bose.css.
     ------------------------------------------*/
      this.tip.style.position = "absolute";		
      this.tip.style.left = (x+this.offsetX)+"px";
      this.tip.style.top = (y+this.offsetY)+"px";
    },
    show:function(text)
    {
      if(!this.tip) return;
      this.tip.innerHTML = text;
      this.tip.style.visibility = "visible";
      this.tip.style.display = "block";
    },
    hide:function()
    {
      if(!this.tip) return;
      this.tip.style.visibility = "hidden";
      this.tip.style.display = "none";
      this.tip.innerHTML = "";
    }
  };
