var map;

function makeMap() {
    if (GBrowserIsCompatible()) {
      // resize the map
      var m = document.getElementById("google-map");
      m.style.height = "398px";
      m.style.width = "398px";
      // create the map
      map = new GMap(document.getElementById("google-map"));
      map.addControl(new GSmallMapControl());
      map.addControl(new GOverviewMapControl());
      map.centerAndZoom(new GPoint(-1.546349, 53.958722), 5);
		
		var point = new GPoint(-1.546349, 53.958722);
		var mhtml = '<h4>Derrick Kershaw Partnership</h4><p> 	55-57 Burn Bridge Road, Harrogate, HG3 1PB <br />Phone: 01423 870890</p>';
		mhtml = '<div class="info_window" 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;
		  
}  