
 
(function($) {

	$.fn.easyTooltip = function(options){
	  
		// default configuration properties
		var defaults = {	
			xOffset: -220,
			yOffset: 25,
			tooltipId: "easyTooltip",
			clickRemove: false,
			content: "",
			useElement: ""
		}; 
		var options = $.extend(defaults, options);  
		var content;
		this.each(function() {  				
			$(this).hover(function(e){											 							   
				content = (options.useElement != "") ? $(this).next("." + options.useElement).html() : content;
                $(this).next()
                        .css("position","absolute")
						.css("top",(e.pageY - options.yOffset) + "px")
						.css("left",(e.pageX + options.xOffset) + "px")
						.css("display","none")
						.fadeIn("slow");				
			},
			function(){	
				$(this).next().hide();
			});	
			$(this).mousemove(function(e){
				$(this).next()
					.css("top",(e.pageY - options.yOffset) + "px")
					.css("left",(e.pageX + options.xOffset) + "px")					
			});	
		});
	};
})(jQuery);

