var PedigreeMap = {
	url: '',
	getLocation: function( marker, url )
	{
	  this.url = url;
	  
	  geocoder = new google.maps.ClientGeocoder();
	  geocoder.getLocations( marker, this.processGeocode );
	},
	processGeocode: function( response, url )
	{
		
		if ( response || response.Status.code == 200 )
		{
			place = response.Placemark[0];
			geodata = Object.toJSON( place );
			
			new Ajax.Updater( { success: 'geo_opt' }, PedigreeMap.url, {
					asynchronous:true, 
					evalScripts:true,
					parameters: { geocode: geodata },
					insertion: Insertion.Bottom
			});
		}
	}
}
