// JavaScript Document
    var map = null;
    var geocoder = null;

    function initialize() {
      if (GBrowserIsCompatible()) {
        map = new GMap2(document.getElementById("map_canvas"));
        map.setCenter(new GLatLng(33.441254, -111.933775), 13);
        map.setUIToDefault();
        geocoder = new GClientGeocoder();

		//map.addOverlay(new GMarker(latlng, markerOptions));
		
		showAddress();
      }
    }

    function showAddress() {
	  var address = '80 E Rio Salado Pkwy, Tempe, Arizona 85281';
      if (geocoder) {
        geocoder.getLatLng(
          address,
          function(point) {
            if (!point) {
              alert(address + " not found");
            } else {
              map.setCenter(point, 13);
		  
			  // Create our "tiny" marker icon
  			  var customIcon = new GIcon(G_DEFAULT_ICON);
			  customIcon.image = "assets/images/logos/marker.png";
			  customIcon.iconSize = new GSize(27, 27);
			  customIcon.clickable = true;
			
			  // Set up our GMarkerOptions object
			  markerOptions = { icon:customIcon };
				
              var marker = new GMarker(point, markerOptions);
              map.addOverlay(marker);
			  var html = '<strong>SunCor</strong><br />80 E Rio Salado Pkwy, Suite 410<br />Tempe, AZ 85281<p><a href=\"http://maps.google.com/maps?daddr=' + address + '\" target=\"_blank\">Get Directions</a></p>'
              marker.openInfoWindowHtml(html);
			  marker.click = marker.openInfoWindowHtml(html);
            }
          }
        );
      }
    }
