/*****************************************
  Copyright (c) 2004 Tomasz Elendt- Elus
*****************************************/
function tooltip(d,E,b,i,a)
{
  d=document;E=d.documentElement;b=d.body;if(!E)return;
  for(i=0;a=b.getElementsByTagName("a")[i];i++){
    if(a.title)
{
      with(a.t=d.createElement("div"))
  {
        id="tooltip";
        innerHTML=a.title.replace(/\|/g,"<br />")
      };
      a.onmouseover=function(e)
  {
        with(this){title="";onmousemove(e)}
        b.appendChild(this.t)
      };
      a.onmouseout=function(x)
  {
        with(this){title=t.innerHTML.replace(/<br \/>/g,"\|")}
        if(x=d.getElementById("tooltip"))b.removeChild(x)
      };
      a.onclick=function(x)
  {
        with(this){title=t.innerHTML.replace(/<br \/>/g,"\|")}
        if(x=d.getElementById("tooltip"))b.removeChild(x);
        return true;
      };
      a.onmousemove=function(e)
  {
        e=e||event;with(this.t.style)
{
         left=e.clientX+(E.scrollLeft||b.scrollLeft)+"px";
         top=e.clientY+(E.scrollTop||b.scrollTop)+"px";
        }
      }
    }
  }
}

function addNEvent(O,E,F,x)
{
  return(x=O.addEventListener)?x(E,F,1):(x=O.attachEvent)?x('on'+E,F):!1
}
addNEvent(window,'load',tooltip);