
this.tooltip = function(){	
	/* CONFIG */		
		xOffset = 120;
		yOffset = -122;		
		// these 2 variable determine popup's distance from the cursor
		// you might want to adjust to get the right result		
	/* END CONFIG */		
	$(".gallery .entry").hover(function(e){		
		
		this.t = $(this).find('a.tooltip').attr('tool');
		$(this).find('a.tooltip').tool = "";									  
		$("body").append("<div id='tooltip'><div class='tip-t'></div><div class='tip-c'><p>"+ this.t +"</p></div><div class='tip-b'></div></div>");
		$("#tooltip")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px")
			.fadeIn("fast");		
    },
	function(){
		this.tool = this.t;		
		$("#tooltip").remove();
    });	
	$(".gallery .entry").mousemove(function(e){
		$("#tooltip")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px");
	});			
};

