(function(a){a.fn.ldtt=function(c){var b=jQuery.extend({Position:"top",X:0,Y:0,Theme:"LDTT",Delay:0,FadeIn:false},c);a("body").append('<div id="'+b.Theme+'"></div>');return this.each(function(){var d=a(this).attr("title");a.data(this,"title",d);a(this).attr("title","");a(this).hover(function(){var k=a.data(this,"title");var l=a("#"+b.Theme);a(l).html(k);if(k.length>0){var h=a(this).offset();var j=a(this).outerWidth();var i=a(this).outerHeight();var e=a(l).outerWidth();var m=a(l).outerHeight();switch(b.Position){case"left":var g=h.left+b.X-e;var f=h.top+i/2-m/2+b.Y;break;case"right":var g=h.left+b.X+j;var f=h.top+i/2-m/2+b.Y;break;case"bottom":var g=h.left+j/2-e/2+b.X;var f=h.top+b.Y+i;break;default:var g=h.left+j/2-e/2+b.X;var f=h.top+b.Y-m;break}a("body").data("LDTTTimer",setTimeout(function(){var n={left:g+"px",top:f+"px"};if(b.FadeIn){a(l).css(n).fadeIn(b.FadeIn)}else{a(l).css(n).show()}},b.Delay))}},function(){clearTimeout(a("body").data("LDTTTimer"));a("#"+b.Theme).stop(true,true).hide()})})}})(jQuery);

(function($) {
	$.fn.encode = function(options) {
		var settings = jQuery.extend({
			atsign: "-tws-"
		}, options);

		return this.each(function() {
			var address = $(this).attr("href");
			var formatedAddress = address.replace(settings.atsign, "@");
			$(this).attr("href", "mailto:" + formatedAddress);
		});
	};
})(jQuery);

