(function($){
$.fn.jTT=function(_2){
var _3={time:500,distanceX:-150,distanceY:-15,hideDelay:100,defaultHeader:"\u0420\u045f\u0420\u0455\u0420\u0491\u0421\u0403\u0420\u0454\u0420\xb0\u0420\xb7\u0420\u0454\u0420\xb0",hideDelayTimer:null,template:"<div class=\"ttip\">"+"<div>"+"<h1>%header%</h1>"+"<p>%message%</p>"+"</div></div>",ttShow:function(tt){
tt.fadeIn("slow");
},ttHide:function(tt){
tt.fadeOut("slow");
},notice:null};
var _2=$.extend(_3,_2);
return this.each(function(){
var t=$(this);
if(_2.notice==null){
_2.notice=$("<div id=\"tool-tip\"></div>").appendTo("body").hide();
}
t.mouseover(function(e){
e.preventDefault();
e.stopPropagation();
var _8=t.attr("title").split("|");
var _9=(_8.length>1)?_8[0]:_2.defaultHeader;
var _a=(_8.length>1)?_8[1]:_8[0];
var _b=_2.template;
_b=r(_b,/%header%/,_9);
_b=r(_b,/%message%/,_a);
_2.notice.html(_b);
_2.notice.css({top:e.pageY+_2.distanceY-_2.notice.height(),left:t.offset().left+t.width()/2-_2.notice.width()/2});
_2.ttShow(_2.notice);
}).mouseout(function(){
_2.ttHide(_2.notice);
});
function r(_c,_d,_e){
while(_d.test(_c)){
_c=_c.replace(_d,_e);
}
return _c;
}
});
};
})(jQuery);

