function $(a){if(document.getElementById){return document.getElementById(a)}else{if(window[a]){return window[a]}}return null}function showCaption(f){var b=f.form;hideCaptions(f);var a=0;var e=b.getElementsByClassName("inputbox");for(var d=0;d<e.length;d++){if(e[d].name==f.name){a=d;e[d].style.color="";break}}var c=b.getElementsByTagName("span");for(var d=0;d<c.length;d++){if(d==a){c[d].style.display="block";shiftOpacity(c[d].id,300);break}}}function hideCaptions(d){var a=d.form;var c=a.getElementsByTagName("span");for(var b=0;b<c.length;b++){c[b].style.display="none";changeOpac(0,c[b].id)}}function opacity(f,d,a,b){var c=Math.round(b/100);var e=0;if(isAnimating(f)){return}if(d>a){for(i=d;i>=a;i--){setTimeout("changeOpac("+i+",'"+f+"')",(e*c));e++}}else{if(d<a){for(i=d;i<=a;i++){setTimeout("changeOpac("+i+",'"+f+"')",(e*c));e++}}}}function changeOpac(b,c){var a=document.getElementById(c).style;a.opacity=(b/100);a.MozOpacity=(b/100);a.KhtmlOpacity=(b/100);a.filter="alpha(opacity="+b+")";if(b==0){a.display="none"}else{a.display="block"}}function forceOpacity(c,a,b){if(b==1){opacity(c,0,100,a)}else{opacity(c,100,0,a)}}function shiftOpacity(b,a){if(!isVisible(b)){opacity(b,0,100,a)}else{opacity(b,100,0,a)}}function isVisible(a){if(document.getElementById(a).style.opacity!=1){return 0}else{return 1}}function isAnimating(a){if(document.getElementById(a).style.opacity!=0&&document.getElementById(a).style.opacity!=1){return true}else{return false}}function getXYpos(c){if(!c){return{x:0,y:0}}var d={x:c.offsetLeft,y:c.offsetTop};var b=getXYpos(c.offsetParent);for(var a in b){d[a]+=b[a]}return d}var tooltip=function(){var d="tt";var q=3;var f=3;var p=200;var g=10;var e=20;var l=95;var j=0;var m,r,n,o,k;var a=document.all?true:false;return{show:function(c,b){c=unescape(c);if(c==""){return}if(m==null){m=document.createElement("div");m.setAttribute("id",d);r=document.createElement("div");r.setAttribute("id",d+"top");n=document.createElement("div");n.setAttribute("id",d+"cont");o=document.createElement("div");o.setAttribute("id",d+"bot");m.appendChild(r);m.appendChild(n);m.appendChild(o);document.body.appendChild(m);m.style.opacity=0;m.style.filter="alpha(opacity=0)"}var h=getXYpos(b);m.style.left=(h.x+(b.offsetWidth))+"px";m.style.top=(h.y-5)+"px";m.style.display="block";n.innerHTML=c;m.style.width=p?p+"px":"auto";if(!b&&a){r.style.display="none";o.style.display="none";m.style.width=m.offsetWidth;r.style.display="block";o.style.display="block"}if(m.offsetWidth>p){m.style.width=p+"px"}k=parseInt(m.offsetHeight)+q;clearInterval(m.timer);m.timer=setInterval(function(){tooltip.fade(1)},e)},pos:function(h){var c=a?event.clientY+document.documentElement.scrollTop:h.pageY;var b=a?event.clientX+document.documentElement.scrollLeft:h.pageX;m.style.top=(c-k)+"px";m.style.left=(b+f)+"px"},fade:function(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);m.style.opacity=j*0.01;m.style.filter="alpha(opacity="+j+")"}else{clearInterval(m.timer);if(h==-1){m.style.display="none"}}},hide:function(){try{clearInterval(m.timer);m.timer=setInterval(function(){tooltip.fade(-1)},e)}catch(b){}}}}();
