function initializeGoogleMap() {
    //alert("about to initialize");
    if(googleMaps!='n') {
	if(googleMaps!='l') {  //if not 'centered on suburb' use supplied lat long
            //alert("drawinging google map with supplied longitude & latitude");
	    drawGoogleMap(new google.maps.LatLng(latitude,longitude));
	} else {
            //alert("about to geocode");
	    geocode(address, true, false);
	}
    }
}

function geocodeResultHandler(latLng) {
    drawGoogleMap(latLng);
}

function drawGoogleMap(latLng) {
  var myOptions = {
     zoom: zoomLevel,
     center: latLng,
     mapTypeId: mapTypeId,
     streetViewControl: true 
  };
  var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);

  if(googleMaps!="l") {
    var marker = new google.maps.Marker({
        map: map, 
        position: latLng
    });
  }
}


