
$(document).ready(function()
{
	$("a.tooltip").click(function(e){
		$("#tooltip").remove();
		this.t = this.title;
		this.title = "";
		var offset = $("#map_j").offset();
		topV = offset.top+50;
		leftV = offset.left+0;
		/*
		if ( this.t == "right" ) {
			topV = offset.top+360;
			leftV = offset.left+230;
		}
		*/
		//var tooltipTxt = $("#"+this.t).html();
		var tooltipTxt = $(this).next().html();
		$("body").append("<div id='tooltip'>"+ tooltipTxt +"</div>");
		$("#tooltip")
			.css("top", topV + "px")
			.css("left", leftV + "px")
			.fadeIn("fast");
	});
	
	/*
	bgcolor="#F6F8FB"
	
	
	$("a.tooltip img").hover(function(e){
			$(this).css("opacity", "50");
		},
		function(){
			$(this).css("opacity", "100");
	});
	*/
});
