$(document).ready(function() {
	var map = new Map;
	map.buildMap(document.getElementById("map")); // Builds a plain map
	map.addControl("home"); // Add control to the map
	map.load(); // Load geometries from database with no control
	
	$('a#close-updates').click(function() {
		$('#updates-body').hide("slow");
		$('#updates').animate({height:"20px", top:"570px"},"slow").animate({width:"180px"},"medium");
	});
	$('a#open-updates').click(function() {
		$('#updates').animate({width:"520px"},"medium").animate({top:"530px", height:"60px"}, "slow");
		$('#updates-body').slideDown("slow");
		
	});
	
	$('#map').height($('#leftcol').height());
	
});
