/*
 * Tooltip script 
 * powered by jQuery (http://www.jquery.com)
 * 
 * written 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(){		
	xOffset = -23;/* CONFIG */	
	$j("#nav2 li a").hover(function(e){											  
		this.t = this.title;
		this.title = "";									  
		$j("body").append("<p id='tooltip'>"+ this.t +"</p>");
		$j("#tooltip")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX - $j('#tooltip').width()/2) + "px")
			.fadeIn();		
    },
	function(){
		this.title = this.t;		
		$j("#tooltip").remove();
    });	
	$j("#nav2 li a").mousemove(function(e){
		$j("#tooltip")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX - $j('#tooltip').width()/2) + "px");
	});			
};


$j(document).ready(function(){
	tooltip();
});