var map = null;
var geocoder = null;

function showAddress(address,mapToAddTo,depth) {
	if (geocoder) {
		geocoder.getLatLng(
			address,
			function(point) {
				if (!point) {
					alert(address + " not found");
				} else {
					mapToAddTo.setCenter(point, depth);
					var marker = new GMarker(point);
					mapToAddTo.addOverlay(marker);
				}
			}
		);
	}
}

$(document).ready(
	function(){
		initialize();
		
		$('body').unload(function() {
			GUnload();
		});
	}
);