$(document).ready(function () {
							
$("#lower-top ul li:first-child").addClass("first");
$("#lower-top ul li:last-child").addClass("last");
$("#path li:first-child").addClass("first");
$("#path li:last-child").addClass("last");
$("#left .users ul li:last-child").addClass("last");
$("#left .review ul li:last-child").addClass("last");
$("#stock ul li:first-child").addClass("first");
$("#news ul li:first-child").addClass("first");
$("#left .social ul:first-child").addClass("first");
$("#left .social ul:last-child").addClass("last");
$("#group-list ul li:last-child").addClass("last");
$("#gal ul li:last-child").addClass("last");
$("#rec ul li:last-child").addClass("last");

});

this.tooltip = function(){	
	/* CONFIG */		
		xOffset = 90;
		yOffset = 20;		
		// these 2 variable determine popup's distance from the cursor
		// you might want to adjust to get the right result		
	/* END CONFIG */		
	$("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");
	});		
	
};
$(document).ready(function() {
tooltip();
						   });

