var map;

function makeMap() {
    if (GBrowserIsCompatible()) {
      // resize the map
      var m = document.getElementById("map");
      m.style.height = "450px";
      m.style.width = "450px";
      // create the map
      map = new GMap(document.getElementById("map"));
      map.addControl(new GLargeMapControl());
      map.centerAndZoom(new GPoint(-1.353426, 53.875052), 6);
		
		var point = new GPoint(-1.353426, 53.875052);
		var mhtml = '<h4>Fensham Howes</h4>';
		mhtml = '<div style="white-space:nowrap;">' + mhtml + '</div>';
		
 	 	var marker = createMarker(point,mhtml);
  		map.addOverlay(marker);
		//marker.openInfoWindowHtml(mhtml);
		
		// click to see where you are
		/*
   	GEvent.addListener(map, 'click', function(overlay, point) {
     	if (point) {
       	document.getElementById('ggcords').value = 'You clicked at: ' + point;
      }
   	});
		*/
    } 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;
		  
}  