var map;

function makeMap() {
    if (GBrowserIsCompatible()) {
      // resize the map
      var m = document.getElementById("google-map");
      m.style.height = "450px";
      m.style.width = "573px";
      // create the map
      map = new GMap(document.getElementById("google-map"));
      map.addControl(new GLargeMapControl());
      map.centerAndZoom(new GPoint(-0.1576, 51.49162), 4);
		
		var point = new GPoint(-0.1576, 51.49162);
		var mhtml = '<h4>Dr Dermot O\'Flynn</h4><p>No 2 Lower Sloane Street<br/>London<br/>SW1W 8BJ.<br/>t: 020 7584 6116</p>';
		mhtml = '<div style="white-space:nowrap;">' + mhtml + '</div>';
		
 	 	var marker = createMarker(point,mhtml);
  		map.addOverlay(marker);
		marker.openInfoWindowHtml(mhtml);
    } else {
      var m = document.getElementById("map");
      alert('Your Browser is not compatible with Google Maps');
    }
}




function createMarker(point,html) {
        // FF 1.5 fix
        //html = '<div style="white-space:nowrap;">' + html + '</div>';
        var marker = new GMarker(point);
        GEvent.addListener(marker, "click", function() {
          marker.openInfoWindowHtml(html);
        });
		  
        return marker;
		  
}  
