   var map = null;
    var geocoder = null;
	

    function initialize() {
		if (GBrowserIsCompatible()) {
		  map = new GMap2(document.getElementById("map"));
		  map.addControl(new GSmallMapControl());
          map.addControl(new GMapTypeControl());
		  map.setCenter(new GLatLng(-42.126300, 148.2902218), 13);
		  
		  geocoder = new GClientGeocoder();
		  geocoder.setCache(null);
		  geocoder.setBaseCountryCode("AU");
		  window.setTimeout(showLocation, 50);
		  }
    }
	
	// showLocation() geocodes the address 
    // and adds a marker to the map at that location.
    function showLocation() {
      var address = document.getElementById("googlemapAdress").value;
      geocoder.getLocations(address, addAddressToMap);
    }

    // addAddressToMap() is called when the geocoder returns an
    // answer.  It adds a marker to the map with an open info window
    // showing the nicely formatted version of the address and the country code.
    function addAddressToMap(response) {
      map.clearOverlays();
	  if (response && response.Status.code == 200) {
        place = response.Placemark[0];
        point = new GLatLng(place.Point.coordinates[1],
                            place.Point.coordinates[0]);
        marker = new GMarker(point);
        map.addOverlay(marker);
        marker.openInfoWindowHtml(place.address);
      }
    }

