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