(function(c){function q(){return this.each(function(){c(this)[c(this).html()?"show":"hide"]()})}function m(){return this.attr("href")||this.attr("src")}function e(a){return c.data(a,"tooltip")}function r(a){if(e(this).delay)j=setTimeout(n,e(this).delay);else n();o=!!e(this).track;c(document.body).bind("mousemove",i);i(a)}function s(){if(!(c.tooltip.blocked||this==f||!this.getAttribute("tooltipText")&&!e(this).bodyHandler)){f=this;l=this.getAttribute("tooltipText");var a=e(this);if(a.bodyHandler){b.c.hide();
var d=a.bodyHandler.call(this);d.nodeType||d.jquery?b.b.empty().append(d):b.b.html(d);b.b.show()}else if(a.showBody){d=l.split(a.showBody);b.c.html(d.shift()).show();b.b.empty();for(var g=0,h;h=d[g];g++){g>0&&b.b.append("
");b.b.append(h)}q.call(b.b)}else{b.c.html(l).show();b.b.hide()}a.showURL&&m.call(c(this))?b.d.html(m.call(c(this)).replace("http://","")).show():b.d.hide();a.extraClass&&b.a.addClass(a.extraClass);a.fixPNG&&t.call(b.a);r.apply(this,arguments)}}function n(){j=undefined;if((!k||
!c.fn.bgiframe)&&e(f).fade)if(b.a.is(":animated"))b.a.stop().show().fadeTo(e(f).fade,parseInt(f.getAttribute("tOpacity"),10));else b.a.is(":visible")?b.a.fadeTo(e(f).fade,parseInt(f.getAttribute("tOpacity"),10)):b.a.fadeIn(e(f).fade);else b.a.show();i()}function i(a){if(!c.tooltip.blocked&&!(a&&a.target.tagName=="OPTION")){!o&&b.a.is(":visible")&&c(document.body).unbind("mousemove",i);if(f==null)c(document.body).unbind("mousemove",i);else{b.a.removeClass("viewport-right").removeClass("viewport-bottom");
var d=b.a[0].offsetLeft,g=b.a[0].offsetTop;if(a){d=a.pageX+e(f).left;g=a.pageY+e(f).top;a="auto";if(e(f).g){a=c(window).width()-d;d="auto"}b.a.css({left:d,right:a,top:g})}a=c(window);a={x:a.scrollLeft(),y:a.scrollTop(),e:a.width(),f:a.height()};var h=b.a[0];if(a.x+a.e').appendTo(document.body).hide();c.fn.bgiframe&&b.a.bgiframe();b.c=c("h3",b.a);b.b=c("div.body",b.a);b.d=c("div.url",b.a)}return this.each(function(){c.data(this,"tooltip",a);c(this).attr({tooltipText:this.title,tOpacity:b.a.css("opacity")}).removeAttr("title").removeAttr("alt")}).mouseover(s).mouseout(p).click(p)}});var t=k?function(){return this.each(function(){var a=c(this).css("backgroundImage");
if(a=/^url\(["']?(.*\.png)['"]?\)$/i.exec(a)){a=a[1];c(this).css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='"+a+"')"}).each(function(){var d=c(this),g=d.css("position");g!="absolute"&&g!="relative"&&d.css("position","relative")})}})}:function(){return this},u=k?function(){return this.each(function(){c(this).css({filter:"",backgroundImage:""})})}:function(){return this}})(jQuery);