/*
	author: neo, neo.infeo.pl
	licence: http://creativecommons.org/licenses/by-sa/2.5/deed.pl
	use only with this comment
*/
onl=window.onload||Function;
onload=function(){
    onl();
    for(var i=0,d,D=document,E=D.documentElement,B=D.body,span,v;d=D.getElementsByTagName('*')[i++];){
        if(d.getAttribute('title')){
            d.old=d.title;
            d.removeAttribute('title');
            d.onmouseover=function(e){
              t=this;
              this.o=setTimeout(
                function(){
                  with(span.style){
                      display='inline';
                      left=t.l;
                      top=t.t;
                  }
                  span.firstChild.nodeValue=t.old;
                }, 1000)//definicja opóźnienia - czas w milisekundach
            };
            d.onmouseout=function(){
                clearTimeout(this.o);
                span.style.display='none';
            }
            d.onmousemove=function(e){
              this.l=(e=e||event).clientX+(E.scrollLeft||B.scrollLeft)+'px';
              this.t=e.clientY+(E.scrollTop||B.scrollTop)+'px';
            }
        }
    }
    span=D.createElement('span');
    span.id='tooltip';
    span.appendChild(D.createTextNode('tooltip'));
    D.body.appendChild(span);
  }