var map = null;
var geocoder = null;
// Call this function when the page has been loaded 
function initialize() {
    if (GBrowserIsCompatible()) {
        map = new GMap2(document.getElementById("map"));
        map.addControl(new GSmallZoomControl);
        map.addControl(new GMapTypeControl());
        map.setCenter(new GLatLng(51.03970062662675, -114.09380848815918),14);
        // Create our "tiny" marker icon
        var blueIcon = new GIcon(G_DEFAULT_ICON);
        blueIcon.image = "http://www.google.com/intl/en_us/mapfiles/ms/micons/blue-dot.png";
        // Set up our GMarkerOptions object
        markerOptions = { icon:blueIcon };
        var location = new GLatLng(51.03970062662675, -114.09380848815918);
        var clinic = new GMarker(location, markerOptions);
        // pop up baloon 
        GEvent.addListener(clinic, "click", function() {
          clinic.openInfoWindowHtml("Centre for Soft Tissue Pain<br />#108, 1330 - 15 Ave. S.W.");
        });
        
        map.addOverlay(clinic);
        geocoder = new GClientGeocoder();
    }
    else {
      alert("Your browser is not able to display Google maps")
    }
}
window.onload=initialize;
