var map = null;
var geocoder = null;

function GMapInitialise() {
	if (GBrowserIsCompatible()) {
		geocoder = new GClientGeocoder();
		geocoder.setBaseCountryCode('AU');
	}
}

function GMapShowAddress(address, controls) {
	if(controls == null) {
		controls = true;
	}
	if (geocoder) {
		geocoder.getLatLng(
			address,
			function(point) {
				if (point) {
					map = new GMap2($("map_canvas"));
					if(controls)map.addControl(new GSmallMapControl());
					map.setCenter(point, 13);
					var marker = new GMarker(point);
					map.addOverlay(marker);
				} else {
					$('map_canvas').destroy();
				}
			}
		);
	}
}