MooGoogle = new Class({
	options: {},
	
	initialize: function(){
		this.geocoder = new google.maps.Geocoder();
	},
	getLongLat: function(address, callback){
		this.geocoder.geocode({'address': address}, function(response, status){
			if (status == google.maps.GeocoderStatus.OK) {
				var lat = response[0].geometry.location.lat().toFixed(5);
				var lng = response[0].geometry.location.lng().toFixed(5);
				callback({lat:lat, lng:lng});
			}else{
				//console.log(error);
			}
		});
	}
});
