
	var address = "";
	var suburb = "";
	var geocoder;
	var map;
		
	function mapInit(a,s) {
		
		address = a+", Australia";
		suburb = s;
		
		if (GBrowserIsCompatible()) {
			map = new GMap2(document.getElementById("map"));
			
			bikeIcon = new GIcon(G_DEFAULT_ICON);
			bikeIcon.image = "/images/maps/purple_icon.png";
			bikeIcon.iconSize = new GSize(32,30);
			bikeIcon.shadow = "/images/maps/purple_icon_shadow.png";
			bikeIcon.shadowSize = new GSize(45,30);
			
			//map.addControl(new GMapTypeControl());
			map.addControl(new GSmallMapControl());
			map.enableContinuousZoom();
			// Create new geocoding object
			geocoder = new GClientGeocoder();
			// Decode address -> Long/Lat
			geocoder.getLocations(address, addToMap);
		}
		
	}
	
	
	function addToMap(response) {
		// Retrieve the object
		place = response.Placemark[0];
		// Retrieve the latitude and longitude
		point = new GLatLng(place.Point.coordinates[1],place.Point.coordinates[0]);
		// Center the map on this point
		map.setCenter(point, 9);
		// Create a marker
		marker = new GMarker(point,{title: suburb, icon: bikeIcon});
		// Add the marker to map
		map.addOverlay(marker);
		// Add address information to marker
		//marker.openInfoWindowHtml('Tim is cool');
   }
