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