var ToolTips={attachBehavior:function(){$$("a").each(function(b){this.attach(b)}.bind(this))},attach:function(b){var a=b.getAttribute("title");if(!a){return}b.setAttribute("nicetitle",a);b.removeAttribute("title");Event.observe(b,"mouseover",this.onMouseover.bindAsEventListener(this));Event.observe(b,"mouseout",this.out.bind(this));Event.observe(b,"focus",this.onFocus.bindAsEventListener(this));Event.observe(b,"blur",this.out.bind(this))},onMouseover:function(a){this.onOver(a,[Event.pointerX(a),Event.pointerY(a)])},onFocus:function(a){this.onOver(a,Position.cumulativeOffset(Event.element(a)))},onOver:function(b,a){if(this.timeout){clearTimeout(this.timeout)}this.element=Event.element(b);this.timeout=setTimeout(function(){this.show(a)}.bind(this),300)},out:function(){if(this.timeout){clearTimeout(this.timeout)}if(this.current){this.current.remove();this.current=null;var a=$("iframe_tt");if(a){a.hide()}}},show:function(n){try{if(this.current){this.out()}var o=this.element;while(!o.getAttribute("nicetitle")&&o.nodeName.toLowerCase()!="body"){o=o.parentNode}var a=o.getAttribute("nicetitle");if(!a){return}var l=$(document.createElement("DIV"));l.id="toolTip";l.addClassName("nicetitle");l.update(a);var k=100,g=600;if(window.innerWidth){g=Math.min(g,window.innerWidth-20)}if(document.body&&document.body.scrollWidth){g=Math.min(g,document.body.scrollWidth-20)}var b=0;a.replace(/<br ?\/>/g,"\n").split("\n").each(function(d){b=Math.max(b,d.stripTags().length)});var f=b*7,q=b*10,p;if(f>k){p=f}else{if(k>q){p=q}else{p=k}}var c=n[0]+20,m=window.innerWidth||document.documentElement.clientWidth||document.body.offsetWidth,h=window.pageXOffset||document.documentElement.scrollLeft;if(m&&((c+p)>(m+h))){c=m-p-40+h}if(document.body.scrollWidth&&((c+p)>(document.body.scrollWidth+h))){c=document.body.scrollWidth-p-25+h}l.setStyle({left:Math.max(c,5)+"px",width:Math.min(p,g)+"px",top:(n[1]+10)+"px"});l.show();document.body.appendChild(l);this.current=l;if(typeof ToolTips_Option_Windowed_Controls!="undefined"){var i=$("iframe_tt");if(!i){i=$(document.createElement("IFRAME"));i.src="javascript:false;";i.name=i.id="iframe_tt";i.setAttribute("scrolling","no");i.setAttribute("frameborder",0);i.hide();document.body.appendChild(i)}i.setStyle({width:l.offsetWidth,height:l.offsetHeight,top:l.style.top,left:l.style.left,position:"absolute",display:"block",zIndex:99});l.setStyle({zIndex:100})}}catch(j){}}};Event.observe(window,"load",ToolTips.attachBehavior.bind(ToolTips));Event.observe(window,"unload",ToolTips.out.bind(ToolTips));