/**
*
*	simpleTooltip jQuery plugin, by Marius ILIE
*	visit http://dev.mariusilie.net for details
*
**/
(function($){ $.fn.simpletooltip = function(){
	return this.each(function() {
		var text = $(this).attr("title");
		$(this).attr("title", "");
		if(text != undefined) {
			$(this).hover(function(e){
				var tipX = e.pageX + 3;
				var tipY = e.pageY + 0;
				
				var tipX1 = e.pageX + 0;
				var tipY1 = e.pageY + 3;
				
				var tipX2 = e.pageX + 0;
				var tipY2 = e.pageY + 0;
				
				$(this).attr("title", ""); 
				$("body").append("<div class='simpleTooltip' style='position: absolute; z-index: 100; display: none;'>" + text + "</div>");
				
				if($.browser.msie) var tipWidth = $(".simpleTooltip").outerWidth(true)
				else var tipWidth = $(".simpleTooltip").width()
				$(".simpleTooltip").width(tipWidth);
				$(".simpleTooltip").css("left", tipX).css("top", tipY).fadeIn("medium");
				
				
			}, function(){
				$(".simpleTooltip").remove();
				$(this).attr("title", text);
			});
			
		}
	});
}})(jQuery);

(function($){ $.fn.simpletooltip1 = function(){
	return this.each(function() {
		var text = $(this).attr("title");
		$(this).attr("title", "");
		if(text != undefined) {
			$(this).hover(function(e){
				var tipX = e.pageX + 3;
				var tipY = e.pageY + 0;
				
				var tipX1 = e.pageX + 0;
				var tipY1 = e.pageY + 3;
				
				var tipX2 = e.pageX + 0;
				var tipY2 = e.pageY + 0;
				
				$(this).attr("title", ""); 
				$("body").append("<div class='simpleTooltip1' style='position: absolute; z-index: 100; display: none;'>" + text + "</div>");
				$("body").append("<div class='simpleTooltip2' style='position: absolute; z-index: 100; display: none;'>" + text + "</div>");
				$("body").append("<div class='simpleTooltip3' style='position: absolute; z-index: 100; display: none;'>" + text + "</div>");
				
				if($.browser.msie) var tipWidth = $(".simpleTooltip1").outerWidth(true)
				else var tipWidth = $(".simpleTooltip1").width()
				$(".simpleTooltip1").width(tipWidth);
				$(".simpleTooltip1").css("left", tipX).css("top", tipY).fadeIn("medium");
				
				if($.browser.msie) var tipWidth1 = $(".simpleTooltip2").outerWidth(true)
				else var tipWidth1 = $(".simpleTooltip2").width()
				$(".simpleTooltip2").width(tipWidth1);
				$(".simpleTooltip2").css("left", tipX1).css("top", tipY1).fadeIn("medium");
				
				if($.browser.msie) var tipWidth2 = $(".simpleTooltip3").outerWidth(true)
				else var tipWidth2 = $(".simpleTooltip3").width()
				$(".simpleTooltip3").width(tipWidth2);
				$(".simpleTooltip3").css("left", tipX2).css("top", tipY2).fadeIn("medium");
				
			}, function(){
				$(".simpleTooltip1").remove();
				$(".simpleTooltip2").remove();
				$(".simpleTooltip3").remove();
				$(this).attr("title", text);
			});
			
		}
	});
}})(jQuery);
