/* To unminify this script, go to http://www.kevadamson.com/assets/scripts/jquery/jquery.tooltip.js?nomin=1 */
(function(e){var g={},j,m,o,k=e.browser.msie&&/MSIE\s(5\.5|6\.)/.test(navigator.userAgent),b=false;e.tooltip={blocked:false,defaults:{delay:100,fade:true,showURL:true,extraClass:"",top:15,left:15,id:"tooltip"},block:function(){e.tooltip.blocked=!e.tooltip.blocked}};e.fn.extend({tooltip:function(p){p=e.extend({},e.tooltip.defaults,p);h(p);return this.each(function(){e.data(this,"tooltip",p);this.tOpacity=g.parent.css("opacity");this.tooltipText=this.title;e(this).removeAttr("title");this.alt=""}).mouseover(l).mouseout(f).click(f)},fixPNG:k?function(){return this.each(function(){var p=e(this).css("backgroundImage");if(p.match(/^url\(["']?(.*\.png)["']?\)$/i)){p=RegExp.$1;e(this).css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='"+p+"')"}).each(function(){var q=e(this).css("position");if(q!="absolute"&&q!="relative"){e(this).css("position","relative")}})}})}:function(){return this},unfixPNG:k?function(){return this.each(function(){e(this).css({filter:"",backgroundImage:""})})}:function(){return this},hideWhenEmpty:function(){return this.each(function(){e(this)[e(this).html()?"show":"hide"]()})},url:function(){return this.attr("href")||this.attr("src")}});function h(p){if(g.parent){return}g.parent=e('<div id="'+p.id+'"><h3></h3><p></p><div class="url"></div></div>').appendTo(document.body).hide();if(e.fn.bgiframe){g.parent.bgiframe()}g.title=e("h3",g.parent);g.body=e("p",g.parent);g.url=e("div.url",g.parent)}function c(p){return e.data(p,"tooltip")}function a(p){if(c(this).delay){o=setTimeout(n,c(this).delay)}else{n()}b=!!c(this).track;e(document.body).bind("mousemove",d);d(p)}function l(){if(e.tooltip.blocked||this==j||(!this.tooltipText&&!c(this).bodyHandler)){return}j=this;m=this.tooltipText;if(c(this).bodyHandler){g.title.hide();var s=c(this).bodyHandler.call(this);if(s.nodeType||s.jquery){g.body.empty().append(s)}else{g.body.html(s)}g.body.show()}else{if(c(this).showBody){var r=m.split(c(this).showBody);g.title.html(r.shift()).show();g.body.empty();for(var q=0,p;(p=r[q]);q++){if(q>0){g.body.append("<br/>")}g.body.append(p)}g.body.hideWhenEmpty()}else{g.title.html(m).show();g.body.hide()}}if(c(this).showURL&&e(this).url()){g.url.html(e(this).url().replace("http://","")).show()}else{g.url.hide()}g.parent.addClass(c(this).extraClass);if(c(this).fixPNG){g.parent.fixPNG()}a.apply(this,arguments)}function n(){o=null;if((!k||!e.fn.bgiframe)&&c(j).fade){if(g.parent.is(":animated")){g.parent.stop().show().fadeTo(c(j).fade,j.tOpacity)}else{g.parent.is(":visible")?g.parent.fadeTo(c(j).fade,j.tOpacity):g.parent.fadeIn(c(j).fade)}}else{g.parent.show()}d()}function d(s){if(e.tooltip.blocked){return}if(s&&s.target.tagName=="OPTION"){return}if(!b&&g.parent.is(":visible")){e(document.body).unbind("mousemove",d)}if(j==null){e(document.body).unbind("mousemove",d);return}g.parent.removeClass("viewport-right").removeClass("viewport-bottom");var u=g.parent[0].offsetLeft;var t=g.parent[0].offsetTop;if(s){u=s.pageX+c(j).left;t=s.pageY+c(j).top;var q="auto";if(c(j).positionLeft){q=e(window).width()-u;u="auto"}g.parent.css({left:u,right:q,top:t})}var p=i(),r=g.parent[0];if(p.x+p.cx<r.offsetLeft+r.offsetWidth){u-=r.offsetWidth+20+c(j).left;g.parent.css({left:u+"px"}).addClass("viewport-right")}if(p.y+p.cy<r.offsetTop+r.offsetHeight){t-=r.offsetHeight+20+c(j).top;g.parent.css({top:t+"px"}).addClass("viewport-bottom")}}function i(){return{x:e(window).scrollLeft(),y:e(window).scrollTop(),cx:e(window).width(),cy:e(window).height()}}function f(r){if(e.tooltip.blocked){return}if(o){clearTimeout(o)}j=null;var p=c(this);function q(){g.parent.removeClass(p.extraClass).hide().css("opacity","")}if((!k||!e.fn.bgiframe)&&p.fade){if(g.parent.is(":animated")){g.parent.stop().fadeTo(p.fade,0,q)}else{g.parent.stop().fadeOut(p.fade,q)}}else{q()}if(c(this).fixPNG){g.parent.unfixPNG()}}})(jQuery);
