var zindex=1000;var qtip_timeouts=Array();var on_delay=150;var off_delay=150;function getElementPosition(b){var a=0,c=0;while(b!=null){a+=b.offsetLeft-b.scrollLeft;c+=b.offsetTop-b.scrollTop;b=b.offsetParent}return{x:a,y:c}}function getWindowDimensions(){var a=0,b=0;if(self.innerHeight){a=self.innerWidth;b=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){a=document.documentElement.clientWidth;b=document.documentElement.clientHeight}else{if(document.body){a=document.body.clientWidth;b=document.body.clientHeight}}}return{width:a,height:b}}function turnoff_qtip(a){if(qtip_timeouts[a]){clearTimeout(qtip_timeouts[a])}qtip_timeouts[a]=setTimeout('toggle_qtip("'+a+'", false)',on_delay)}function turnon_qtip(a){if(qtip_timeouts[a]){clearTimeout(qtip_timeouts[a])}qtip_timeouts[a]=setTimeout('toggle_qtip("'+a+'", true)',off_delay)}function toggle_qtip(o,i){if(qtip_timeouts[o]){clearTimeout(qtip_timeouts[o])}var a=document.getElementById("rep_"+o);if(a){var v=document.getElementById("rep_handle_"+o);var l=document.getElementById("mini_"+o);var m=document.getElementById("tip_"+o);var u=document.getElementById("bg_rep_"+o);var n=document.getElementById("bg_top_rep_"+o);var p=(i==true)?"block":"none";var w=(l!=null)?(l.style.display=="block"):null;var h=a.offsetHeight;var r=a.offsetWidth;var z=getElementPosition(v).y;var f=Math.round(h/2)-4;var e=getWindowDimensions(a).height;var k=26;var g=-5;var t=navigator.userAgent.toLowerCase();var y=t.indexOf("msie")>-1;var j=(t.match(/.*mac.*/)!=null&&y);var c=(j)?-15:0;var q=2;var s=-6;if(!i&&w){l.style.display=p;if(l.className.match(/.*static.*/)==null){l.style.left=-1000}if(u!=null){u.removeNode(true)}}if(i&&!w){if(v==null||l.className.match(/.*static.*/)!=null){a.style.zIndex=zindex++;l.style.display=p}else{l.style.left="-1000px";a.style.zIndex=zindex++;l.style.display=p;var d=l.offsetHeight;if(z+g<c+q){f+=(z+g-c+q);g=c+q-z}if(z+g+d>e+c+s){f+=(z+g+d-e-c-s);g-=(z+g+d-e-c-s)}if(f<g){f=2}if(f+k>=d){f=d-k-1}l.style.top=g+"px";l.style.left=r+73+"px";m.style.top=f+"px"}var x=m.offsetWidth;m.style.display=p;if(!n&&!j){var b=document.createElement("DIV");b.id="bg_top_"+a.id;b.className="mini_bg_top";l.appendChild(b);b=document.createElement("DIV");b.id="bg_mid_"+a.id;b.className="mini_bg_mid";b.style.height=l.offsetHeight-25+3;l.appendChild(b);b=document.createElement("DIV");b.id="bg_bot_"+a.id;b.className="mini_bg_bot";b.style.top=l.offsetHeight-10;l.appendChild(b)}m.style.zIndex=zindex++;a.style.zIndex=zindex++;if(y&&!j&&l.className.match(/.*static.*/)!=null){var b=document.createElement("IFRAME");b.id="bg_"+a.id;b.src="/null.html";b.style.height=l.offsetHeight-8;b.className=l.className;b.style.display=p;b.style.zIndex-=1;a.appendChild(b)}}}};