this.tooltip = function(){	
	/* CONFIG */		
		xOffset = 10;
		yOffset = 20;		
		// these 2 variable determine popup's distance from the cursor
		// you might want to adjust to get the right result		
	/* END CONFIG */		
	$(".tooltip").hover(function(e){											  
		this.t = this.title;
		this.a = this.alt;
		
		this.title = "";									  
		$("body").append("<div id ='tooltip'><p id='tooltipTitle'>"+ this.a +"</p>" + "<p id='tooltipTxt'>"+ this.t +"</p></div>");
		
		
		
		$("#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();

			//alert ("success!");
 			
			$(".tableBott").click(function() {
 			//alert ("success!");
 			
			$(this).addClass("tableBottClosed");
			
			$("#mainBodyContent").css("height", "1455px");
			$("#chartContainer").css("height", "1455px");
			//alert (bgImage);
			});
 
			$(".tableBottCloser").click(function() {
 			//alert ("success!");
 			
			$(".tableBott").removeClass("tableBottClosed");
			$("#mainBodyContent").css("height", "760px");
			$("#chartContainer").css("height", "760px");
			
			//alert (bgImage);
			});


});