$(function() { // when the document is ready to be manipulated.
  if (GBrowserIsCompatible()) { // if the browser is compatible with Google Map's


	var map = new GMap2(document.getElementById("map_canvas"),
    { size: new GSize(445,400) } );
	map.setCenter(new GLatLng(29.714415,-95.397047), 14);
	map.setUIToDefault();

      function createMarker(point,html) {
        // ======== Add a "directions" link ======
        html += ' | <a href="http://maps.google.com/maps?saddr=&daddr=' + point.toUrlValue() + '" target ="_blank">Directions<\/a>';
      
        var marker = new GMarker(point);
        GEvent.addListener(marker, "click", function() {
          marker.openInfoWindowHtml(html);
        });
        return marker;
      }

      // Set up three markers with info windows 
    

      var point = new GLatLng(29.714434,-95.39786);
      var marker = createMarker(point,'<a href="http://www.uth.tmc.edu/schools/med/imed/"><strong>The University of Texas<br />Medical School at Houston<br />Department of Internal Medicine</strong></a><br />6431 Fannin, MSB 1.150<br />Houston Texas 77030')
      map.addOverlay(marker);

	  
}
else {alert("Your browser is not compatible with this instance of Google Maps.");}
});
