jQuery.fn.codePropertyAddress = function(){
	var container = $(this[0]);
	var args = arguments[0] || {};
	var address = args;
	var geocoder;
	var latlng;
	var marker;
	var map;
	var myOptions;
	
	geocoder = new google.maps.Geocoder();
	latlng = new google.maps.LatLng(40.702147,-74.015794); //New York, NY (Center of the Universe)
	var myOptions = {
		zoom: 13,
		center: latlng,
		mapTypeControl: false,
		scaleControl: false,
		mapTypeId: google.maps.MapTypeId.ROADMAP
	}
	map = new google.maps.Map(document.getElementById("property_map_canvas"), myOptions);
	//address = args.0;
	//alert(address);
	//return;
	geocoder.geocode({'address': address}, function(results, status) {
		if (status == google.maps.GeocoderStatus.OK) {
			map.setCenter(results[0].geometry.location);
			marker = new google.maps.Marker({
				map: map, 
				position: results[0].geometry.location
			});
		} else {
			//FAIL;
			alert("Geocode was not successful for the following reason: " + status);
		}
	});
	
};


