/* Tooltip by Alen Grakalic [http://cssglobe.com] for more info visit http://cssglobe.com/post/1695/easiest-tooltip-and-image-preview-using-jquery */

this.tooltip = function(){	
	/* CONFIG */		
	xOffset = 15;
	yOffset = 15;		
	/* END CONFIG */		
	$("dl a, dl abbr").hover(function(e){											  
		this.t = this.title;
		this.title = "";									  
		$("body").append("<p id='tooltip'>"+ this.t +"</p>");
		$("p#tooltip")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px")
			.fadeIn("fast");		
	},
	function(){
		this.title = this.t;		
		$("p#tooltip")
			.fadeOut("fast")
			.remove();
	});	
	$("a, abbr").mousemove(function(e){
		$("p#tooltip")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px");
	});			
};

$(document).ready(function(){
	tooltip();
});

