function o_tab(){var h,b;var c,g;var d;function e(i){return document.getElementById(i)}function f(){for(var j=0;j<h.length;j++){h[j].cur_no=j;if(d==""){h[j].onclick=a}else{h[j].onmouseover=a;h[j].onmouseout=a}}}function a(){for(var j=0;j<h.length;j++){e(b+(j+1)).style.display=(j==this.cur_no)?"block":"none";h[j].className=(j==this.cur_no)?c:g}return false}this.init=function(o,l,k,i,n,m,j){h=e(o).getElementsByTagName(l);b=k;c=i;g=n;d=j;h[m-1].className=c;e(b+m).style.display="block";f()}}function tooltip(){var d="tt";var r=3;var f=3;var q=300;var g=10;var e=20;var l=95;var j=0;var n,u,o,p,k;var a=document.all?true:false;var m=false;this.show=function(c,b){if(!m){return}if(n==null){n=document.createElement("div");n.setAttribute("id",d);n.style.position="absolute";u=document.createElement("div");u.setAttribute("id",d+"top");o=document.createElement("div");o.setAttribute("id",d+"cont");p=document.createElement("div");p.setAttribute("id",d+"bot");n.appendChild(u);n.appendChild(o);n.appendChild(p);document.body.appendChild(n);n.style.opacity=0;n.style.filter="alpha(opacity=0)";document.onmousemove=this.pos}n.style.display="block";o.innerHTML=c;n.style.width=b?b+"px":"auto";if(!b&&a){u.style.display="none";p.style.display="none";n.style.width=n.offsetWidth;u.style.display="block";p.style.display="block"}if(n.offsetWidth>q){n.style.width=q+"px"}k=parseInt(n.offsetHeight)+r;clearInterval(n.timer);n.timer=setInterval(function(){i(1)},e)};this.pos=function(h){var c=a?event.clientY+document.documentElement.scrollTop:h.pageY;var b=a?event.clientX+document.documentElement.scrollLeft:h.pageX;n.style.top=(c-k)+"px";n.style.left=(b+f)+"px"};function i(h){var b=j;if((b!=l&&h==1)||(b!=0&&h==-1)){var c=g;if(l-b<g&&h==1){c=l-b}else{if(j<g&&h==-1){c=b}}j=b+(c*h);n.style.opacity=j*0.01;n.style.filter="alpha(opacity="+j+")"}else{clearInterval(n.timer);if(h==-1){n.style.display="none"}}}this.hide=function(){if(!m||n==null){return}clearInterval(n.timer);n.timer=setInterval(function(){i(-1)},e)};function s(){if(a){window.attachEvent("onload",function(){m=true})}else{window.addEventListener("load",function(){m=true},false)}}s()}var tp=new tooltip();
