var onl=window.onload||Function;

onload=function(){
  onl();
  for(var i=0,d,dE,D=document,span;d=D.getElementsByTagName('*')[i++];){
      if(d.getAttribute('title')){
          d.onmouseover=function(e){
              var e=e||event;
              span=D.createElement('span');
              span.id='tooltip';
              span.appendChild(D.createTextNode(this.getAttribute('title')));
              with(span.style){
                  position='absolute';
                  top=e.clientY+(dE=D.documentElement).scrollTop+20+'px';
                  left=e.clientX+dE.scrollLeft+20+'px';
              }
              this.title_ex=this.title;
              this.title='';
              
              D.body.appendChild(span);
          }
          d.onmouseout=function(){
              this.title=this.title_ex;
              D.body.removeChild(span);
          }
      }
  }
}
