var map;

function makeMap() {
	if (GBrowserIsCompatible()) {
		// resize the map
		var m = document.getElementById("google-map");
		m.style.height = "500px";
		m.style.width = "660px";
		// create the map
		map = new GMap(document.getElementById("google-map"));
		map.addControl(new GLargeMapControl());
		map.centerAndZoom(new GPoint(-2.315, 53.921577), 3);

		var point = new GPoint(-2.315, 53.921577);
		var mhtml = '<h4 style="margin: 0;">Beat-Herder Festival</h4>';
		mhtml = mhtml + '<p style="margin: 0;">The Event is signposted from about<br/>1 mile either side of the Sawley road<br/>junction on the A59.</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;

}

