var map;

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

		var point = new GPoint(-1.100307, 53.989802);
		var mhtml = '<h4 style="margin: 0 .5em .25em 0;font-size: 1em; color: #333;">Self Direct</h4>';
		mhtml = mhtml + '<p style="margin: 0 1em .25em 0;font-size: .85em; color: #666;">York Eco Business Centre,<br/>Amy Johnson Way,<br/>Clifton Moor,<br/>York YO30 4AG</p>';
		mhtml = '<div style="white-space:nowrap;width:250px;">' + 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;

}

