   
   $j=jQuery.noConflict();   
//console.log("single location map");



$j(document).ready(function() {
	loadMapScript(GMapsKey);
});

function loadMapScript(key) {
	var script = document.createElement("script");
	script.setAttribute("src", "http://maps.google.com/maps?file=api&v=2.x&key=" + key + "&c&async=2&callback=initialize");
	script.setAttribute("type", "text/javascript");
	document.documentElement.firstChild.appendChild(script);
}

 

   var map = null;
    var geocoder = null;
	
 
     function initialize() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map_canvas"));
		
        map.setCenter(new GLatLng(37.4419, -122.1419), 13);
        map.setUIToDefault();
        map.disableScrollWheelZoom();
        // Create our "tiny" marker icon
        var blueIcon = new GIcon(G_DEFAULT_ICON);
        blueIcon.image = "http://gmaps-samples.googlecode.com/svn/trunk/markers/blue/blank.png";
		
		// Set up our GMarkerOptions object
		markerOptions = { icon:blueIcon };

        map.setCenter(new GLatLng(35.6870, -105.9378 ), 15);
        geocoder = new GClientGeocoder();
		 if (geocoder) {
        geocoder.getLatLng(
          address,
          function(point) {
            if (!point) {
              alert(address + " not found");
            } else {
              map.setCenter(point, 15);
              var marker = new GMarker(point, markerOptions);
              map.addOverlay(marker);
              marker.openInfoWindowHtml(map_text);
			  	 GEvent.addListener(marker, "click", function() {
  					 marker.openInfoWindowHtml(map_text);
  				});

            }
          }
        );
      }
      }
    }






