jQuery("html").addClass("has-js");

jQuery().ready(function() {
	


    var data = "Redfern, Barangaroo".split(",");
	$("#AuspostQ").autocomplete( {url : 'ajax/', matchContains : true, minChars : 1} );

	
	
	(function() {

		var myLatlng,
		    myOptions,
		    map,
		    geocoder,
		    address;
		
		address = jQuery("h1").text();


		
	    myLatlng = new google.maps.LatLng(-34.397, 150.644);
	    geocoder = new google.maps.Geocoder();	    
	    myOptions = {
	      zoom: 15,
	      center: myLatlng,
	      mapTypeId: google.maps.MapTypeId.SATELLITE
	    }
	    map = new google.maps.Map(document.getElementById("pageheadingmap"), myOptions);
	    
	    
	    
	    geocoder.geocode( { 'address': address}, function(results, status) {
	        if (status == google.maps.GeocoderStatus.OK) {
	          map.setCenter(results[0].geometry.location);
	        } else {
	         // alert("Geocode was not successful for the following reason: " + status);
	        }
	    });

	    
	})();
	
	

	


	
	
});