(function($){ $.fn.simpletooltip = function(){
	return this.each(function() {
		var text = $(this).attr("title");
		var rel = $(this).attr("rel");
		$(this).attr("title", "");
		if(rel != undefined || text != undefined){
			$(this).hover(function(e){
				var tipX = e.pageX + 12;
				var tipY = e.pageY + 12;
				$(this).attr("title", ""); 
				if(rel != undefined){
					$("body").append("<div id='tooltip' style='position: absolute; z-index: 100; display: none;'></div>");
					$("#tooltip").load(rel,function(){
						if($.browser.msie) var tipWidth = $("#tooltip").outerWidth(true)
						else var tipWidth = $("#tooltip").width()
						$("#tooltip").width(tipWidth);
						$("#tooltip").css("left", tipX).css("top", tipY).fadeIn("medium");
					});
				}else{
					$("body").append("<div id='tooltip' style='position: absolute; z-index: 100; display: none;'>" + text + "</div>");
					if($.browser.msie) var tipWidth = $("#tooltip").outerWidth(true)
					else var tipWidth = $("#tooltip").width()
					$("#tooltip").width(tipWidth);
					$("#tooltip").css("left", tipX).css("top", tipY).fadeIn("medium");
				}
			}, function(){
				$("#tooltip").remove();
				$(this).attr("title", text);
			});
		}
	});
}})(jQuery);
$(document).ready(function(){

	$(".tooltip").simpletooltip();
    
	$(".utropstecken").click(function () {
		  $(this).effect("shake", {times:1}, 70);
	});

});