var Horde_ToolTips={attachBehavior:function(b){var a=b;$(a).select("a").each(function(c){Horde_ToolTips.attach(c)}.bind(Horde_ToolTips))},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(m){try{if(this.current){this.out()}var n=this.element;while(!n.getAttribute("nicetitle")&&n.nodeName.toLowerCase()!="body"){n=n.parentNode}var a=n.getAttribute("nicetitle");if(!a){return}var k=$(document.createElement("DIV"));k.id="horde_toolTip";k.addClassName("horde_nicetitle");k.update(a);var j=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,p=b*10,o;if(f>j){o=f}else{if(j>p){o=p}else{o=j}}var c=m[0]+20,l=window.innerWidth||document.documentElement.clientWidth||document.body.offsetWidth,h=window.pageXOffset||document.documentElement.scrollLeft;if(l&&((c+o)>(l+h))){c=l-o-40+h}if(document.body.scrollWidth&&((c+o)>(document.body.scrollWidth+h))){c=document.body.scrollWidth-o-25+h}k.setStyle({left:Math.max(c,5)+"px",width:Math.min(o,g)+"px",top:(m[1]+10)+"px"});k.show();document.body.appendChild(k);this.current=k}catch(i){}}};