$(function() {

	var map_items = $("div.map_item");

	var title = $("#map_item_name");
	
	map_items.each(function(i, o) {
		var mi = $(this);

		mi.children('span.map_item_link').hover(
				function(obj) {
					
					b = parseInt(mi.css('bottom')) - 7;
					l = parseInt(mi.css('left')) + 10;
					title.text(mi.attr('id'));
					title.css('bottom', b);
					title.css('left', l);
					title.css('visibility', 'visible'); 
					
				}, 
				function(obj) {	
					title.css('visibility', 'hidden');
				}
		);
	});

	$("#map_select").change(
			function() 
			{
				var url = $(this).val();
				window.location.replace(url);

			} 
		); 
	$("#map_select2").change(
			function() 
			{
				var url = $(this).val();
				window.location.replace(url);

			} 
		); 
});
