this.tooltip = function(){	
	/* CONFIG */		
	// these 2 variable determine popup's distance from the cursor
	// you might want to adjust to get the right result		
	xOffset = 10;
	yOffset = 20;		
	/* END CONFIG */		

	jQuery("a.tooltip").hover(function(e){											  
		this.t = jQuery('#'+this.id+'_tooltip').html();
		jQuery("body").append("<p id='tooltip'>"+ this.t +"</p>");
		jQuery("#tooltip")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px")
			.fadeIn("fast")
    },
	function(){
		jQuery("#tooltip").remove();
    });	
	jQuery("a.tooltip").mousemove(function(e){
		jQuery("#tooltip")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px");
	});			
};

// starting the script on page load
jQuery(document).ready(function(){
	tooltip();
});