(function(){var b=null;var a=null;jQuery.fn.mousetip=function(c){c=typeof(c)==="undefined"?null:c;b=jQuery(this);if(a===null||c!==null){a=new Mousetip(c)}return a};Mousetip=function(d){d=typeof(d)==="undefined"?null:d;if(typeof jQuery=="undefined"){throw"Mousetip exception: jQuery not found."}var e={};e.enabled=true;e.offset=[10,-10];e.cssClass="";var h=jQuery([]);var j=jQuery([]);var g=null;var i=function(k){e=jQuery.extend(e,k);if(e.enabled){h=jQuery("<div />").attr("class","mousetip"+(e.cssClass?" "+e.cssClass:"")).css("display","none").css("position","absolute").append(jQuery("<div />").addClass("pre")).append(j=jQuery("<div />").addClass("content")).append(jQuery("<div />").addClass("post")).appendTo(jQuery("body"));jQuery("body").mousemove(function(l){h.css("left",(l.pageX||l.clientX)+e.offset[0]).css("top",(l.pageY||l.clientY)+e.offset[1])})}i=function(){}};var c=function(k){if(!e.enabled||!k){return}j.html(k);if(g!=null){clearTimeout(g);g=null}else{h.fadeIn(100)}};var f=function(k){if(g==null){g=setTimeout(function(){h.fadeOut(100);g=null},k)}};this.show=function(l,k){k=typeof(k)!=="undefined"?k:0;c(l);f(k)};this.bind=function(k){b.each(function(l){jQuery(this).mouseover(function(){c(k)});jQuery(this).mouseout(function(){f()})})};this.alt=function(k){b.each(function(l){jQuery(this).filter("img").mousetip().bind(jQuery(this).attr("alt"))})};this.text=function(){b.each(function(k){jQuery(this).mousetip().bind(jQuery(this).text())})};this.end=function(){return b};jQuery(document).ready(function(){i(d)})}})();