function geolocationAutoLocate() {
	navigator.geolocation.getCurrentPosition(function(pos) {
		if (pos.coords.accuracy < 2500) {		
	    	document.getElementById('searchLatitude').value = pos.coords.latitude;
	    	document.getElementById('searchLongitude').value = pos.coords.longitude;
        	
			new Request.HTML({  
			     method: 'post',  
				 data: {'ajax' : '1'},
			     url: ("/places?ajax=1&geolocation=1&radius=.4&radius_unit=mi&latitude=" + pos.coords.latitude + "&longitude=" + pos.coords.longitude),
			     onComplete: function(response) { 
					if (response[0].nodeValue) {
						document.getElementById('autoLocateHTMLGeolocation').innerHTML = response[0].nodeValue; 
						new Fx.Morph('autoLocateHTMLGeolocation', {duration: 1000, transition: Fx.Transitions.Sine.easeOut}).start({
							'height': [0, 100],
					    	'width': [580, 580],
					    	'display': 'block',
						});
					}
				}
			 }).send();
		}
	});
}
