	/* initialize google maps */
		
	var geocoder;
  	var map;
	
	function initialize(coordinates, coordinates1) {
	    geocoder = new google.maps.Geocoder();
		var hornsbylocation = coordinates;
		var hornsbylocation1 = coordinates1;
		
	    var latlng = new google.maps.LatLng(hornsbylocation, hornsbylocation1);
	    var myOptions = {
	      zoom: 17,
	      center: latlng,
	      mapTypeId: google.maps.MapTypeId.ROADMAP
	    }
	    map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
        
        var marker = new google.maps.Marker({
            map: map, 
            position: latlng
        });  
  	}	

	/* Geocode address */
	
	function codeAddress(mapaddress) {
			
		var address = mapaddress;
		
		if (geocoder) {
		  geocoder.geocode( { 'address': address}, function(results, status) {
		    
			if (status == google.maps.GeocoderStatus.OK) {
		      map.setCenter(results[0].geometry.location);
		      var marker = new google.maps.Marker({
		          map: map, 
		          position: results[0].geometry.location
		      });
		    } else {
		      /*alert("Geocode was not successful for the following reason: " + status);*/
		    }
		 
		  });
		}
	}

