/** Simple tooltip by Michael Leigeber */
var tooltip=function(){var f='tt';var g=3;var j=3;var k=300;var m=10;var n=20;var o=95;var p=0;var q,t,c,b,h;var r=document.all?true:false;return{show:function(v,w){if(q==null){q=document.createElement('div');q.setAttribute('id',f);t=document.createElement('div');t.setAttribute('id',f+'top');c=document.createElement('div');c.setAttribute('id',f+'cont');b=document.createElement('div');b.setAttribute('id',f+'bot');q.appendChild(t);q.appendChild(c);q.appendChild(b);document.body.appendChild(q);q.style.opacity=0;q.style.filter='alpha(opacity=0)';document.onmousemove=this.pos}q.style.display='block';c.innerHTML=v;q.style.width=w?w+'px':'auto';if(!w&&r){t.style.display='none';b.style.display='none';q.style.width=q.offsetWidth;t.style.display='block';b.style.display='block'}if(q.offsetWidth>k){q.style.width=k+'px'}h=parseInt(q.offsetHeight)+g;clearInterval(q.timer);q.timer=setInterval(function(){tooltip.fade(1)},n)},pos:function(e){var u=r?event.clientY+document.documentElement.scrollTop:e.pageY;var l=r?event.clientX+document.documentElement.scrollLeft:e.pageX;q.style.top=(u-h)+'px';q.style.left=(l+j)+'px'},fade:function(d){var a=p;if((a!=o&&d==1)||(a!=0&&d==-1)){var i=m;if(o-a<m&&d==1){i=o-a}else if(p<m&&d==-1){i=a}p=a+(i*d);q.style.opacity=p*.01;q.style.filter='alpha(opacity='+p+')'}else{clearInterval(q.timer);if(d==-1){q.style.display='none'}}},hide:function(){clearInterval(q.timer);q.timer=setInterval(function(){tooltip.fade(-1)},n)}}}();