var map;
var gdir;

function initialize() {
   if (GBrowserIsCompatible()) {
     map = new GMap2(document.getElementById("map_canvas"));
     gdir=new GDirections(map);
     var center_point = new GLatLng(26.2350,-80.1400);
     var dti_point = new GLatLng(26.22375,-80.1388);

     map.addControl(new GLargeMapControl());
     map.setCenter(center_point, 13);

     var marker = createMarker(dti_point,map);
     map.addOverlay(marker);
     GEvent.trigger(marker,"click");
     GEvent.addListener(gdir,"load", function() {
        setTimeout('customPanel(map,"map",gdir,document.getElementById("directions"))', 1);
      });
   }else {
			alert("Sorry, the Google Maps API is not compatible with this browser");
   }
}
function createMarker(point, map) {
      var marker = new GMarker(point);
      var label1 = 'DDC';
      var html1 = '<div id="office_image_block"><img id="map_image" src="/images/contact_map_image.jpg"></div>';
      GEvent.addListener(marker,"click", function() {
       marker.openInfoWindowTabsHtml([new GInfoWindowTab(label1,html1)]);
      });
	  return marker;
}
