(function(F){var B={},L,N,P,K=F.browser.msie&&/MSIE\s(5\.5|6\.)/.test(navigator.userAgent),A=false;F.tooltip={blocked:false,defaults:{delay:200,fade:false,showURL:true,seeing:false,showOnClick:false,extraClass:"",top:15,left:15,id:"tooltip"},block:function(){F.tooltip.blocked=!F.tooltip.blocked}};F.fn.extend({tooltip:function(Q){Q=F.extend({},F.tooltip.defaults,Q);I(Q);if(Q.showOnClick){return this.each(function(){F.data(this,"tooltip",Q);this.tOpacity=B.parent.css("opacity");this.tooltipText=this.title;F(this).removeAttr("title");this.alt=""}).click(M)}else{return this.each(function(){F.data(this,"tooltip",Q);this.tOpacity=B.parent.css("opacity");this.tooltipText=this.title;F(this).removeAttr("title");this.alt=""}).mouseover(M).mouseout(G).click(G)}},fixPNG:K?function(){return this.each(function(){var Q=F(this).css("backgroundImage");if(Q.match(/^url\(["']?(.*\.png)["']?\)$/i)){Q=RegExp.$1;F(this).css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='"+Q+"')"}).each(function(){var R=F(this).css("position");if(R!="absolute"&&R!="relative"){F(this).css("position","relative")}})}})}:function(){return this},unfixPNG:K?function(){return this.each(function(){F(this).css({filter:"",backgroundImage:""})})}:function(){return this},hideWhenEmpty:function(){return this.each(function(){F(this)[F(this).html()?"show":"hide"]()})},url:function(){return this.attr("href")||this.attr("src")}});function I(Q){if(B.parent){return }B.parent=F('<div id="'+Q.id+'"><h3></h3><div class="body"></div><div class="url"></div></div>').appendTo(document.body).hide();if(F.fn.bgiframe){B.parent.bgiframe()}B.title=F("h3",B.parent);B.body=F("div.body",B.parent);B.url=F("div.url",B.parent)}function D(Q){return F.data(Q,"tooltip")}function H(Q){if(D(this).delay){P=setTimeout(O,D(this).delay)}else{O()}A=!!D(this).track;F(document.body).bind("mousemove",E);E(Q)}function M(){if(F.tooltip.blocked||this==L||(!this.tooltipText&&!D(this).bodyHandler)){return }L=this;N=this.tooltipText;if(D(this).bodyHandler){B.title.hide();var T=D(this).bodyHandler.call(this);if(T.nodeType||T.jquery){B.body.empty().append(T)}else{B.body.html(T)}B.body.show()}else{if(D(this).showBody){var S=N.split(D(this).showBody);B.title.html(S.shift()).show();B.body.empty();for(var R=0,Q;(Q=S[R]);R++){if(R>0){B.body.append("<br/>")}B.body.append(Q)}B.body.hideWhenEmpty()}else{B.title.html(N).show();B.body.hide()}}if(D(this).showURL&&F(this).url()){B.url.html(F(this).url().replace("http://","")).show()}else{B.url.hide()}B.parent.addClass(D(this).extraClass);if(D(this).fixPNG){B.parent.fixPNG()}H.apply(this,arguments)}function O(){P=null;if((!K||!F.fn.bgiframe)&&D(L).fade){if(B.parent.is(":animated")){B.parent.stop().show().fadeTo(D(L).fade,L.tOpacity)}else{B.parent.is(":visible")?B.parent.fadeTo(D(L).fade,L.tOpacity):B.parent.fadeIn(D(L).fade)}}else{B.parent.show()}E()}function E(T){if(F.tooltip.blocked){return }if(T&&T.target.tagName=="OPTION"){return }if(!A&&B.parent.is(":visible")){F(document.body).unbind("mousemove",E)}if(L==null){F(document.body).unbind("mousemove",E);return }B.parent.removeClass("viewport-right").removeClass("viewport-bottom");var V=B.parent[0].offsetLeft;var U=B.parent[0].offsetTop;if(T){V=T.pageX+D(L).left;U=T.pageY+D(L).top;var R="auto";if(D(L).positionLeft){R=F(window).width()-V;V="auto"}B.parent.css({left:V,right:R,top:U})}var Q=J(),S=B.parent[0];if(Q.x+Q.cx<S.offsetLeft+S.offsetWidth){V-=S.offsetWidth+20+D(L).left;B.parent.css({left:V+"px"}).addClass("viewport-right")}if(Q.y+Q.cy<S.offsetTop+S.offsetHeight){U-=S.offsetHeight+20+D(L).top;B.parent.css({top:U+"px"}).addClass("viewport-bottom")}}function J(){return{x:F(window).scrollLeft(),y:F(window).scrollTop(),cx:F(window).width(),cy:F(window).height()}}function G(S){if(F.tooltip.blocked){return }if(P){clearTimeout(P)}L=null;var R=D(this);function Q(){B.parent.removeClass(R.extraClass).hide().css("opacity","")}if((!K||!F.fn.bgiframe)&&R.fade){if(B.parent.is(":animated")){B.parent.stop().fadeTo(R.fade,0,Q)}else{B.parent.stop().fadeOut(R.fade,Q)}}else{Q()}if(D(this).fixPNG){B.parent.unfixPNG()}}function C(){if(!D(this).seeing){B.body.show();D(this).seeing=true}else{B.body.hide();D(this).seeing=false}}})(jQuery);