$(document).ready(function(){
	var pos, text;
	var xpos;
	var ypos;
	
	function imouse(){
	  ypos=event.y+document.body.scrollTop;
	  xpos=event.x+document.body.scrollLeft;
	}
	//document.onmousemove=imouse;	

	$("*", document.body).mousemove(function (e) {
		pos = $(this).offset();
		imouse();
	})
	$('#map area').bind('mouseover', function(){
		text = $(this).attr('alt');
		$(this).removeAttr("alt");
		var left = xpos-30//pos.left+430;
		var top  = ypos//pos.top+375;
	
		$('.map-tip').html(text);
		$('.map-tip').css({'left': left+'px', 'top': top+'px'});
		$('.map-tip').fadeIn()//show();
	});
	
	$('#map area').bind('mouseout', function(){
		$('.map-tip').hide();
		$(this).attr("alt", text);
	});
	
	$('.map-tip').bind('mouseover', function(){
		$(this).show();
		$(this).attr("title", '');
	});
	
	$('.map-tip').bind('mouseout', function(){
		$(this).hide();
	});

});
