// JavaScript Document
/*
* Tooltip script
*
* powered by jQuery (http://www.jquery.com)
*
* written by Youssef ELALAOUI (http://jcargoo.org)
*
* Details: http://jcargoo.org
*
*/



this.tooltip = function(){
 /* CONFIGURATION */
xOffset = 50;
yOffset = 1;
 /* END CONFIGURATION */
$("a.tooltip").hover(function(e){
	this.t = this.title;
	this.title = "";
	
$("body").append("<p id='tooltip'>"+ this.t +"</p>");

$("#tooltip")
	.css("top",(e.pageY - xOffset) + "px")
	.css("left",(e.pageX + yOffset) + "px")
	.fadeIn("fast");
	},

function(){
	this.title = this.t;
	$("#tooltip").remove();
	});
	$("a.tooltip").mousemove(function(e){
	$("#tooltip")
	.css("top",(e.pageY - xOffset) + "px")
	.css("left",(e.pageX + yOffset) + "px");
 });
};
