
var map;

function makeMap() {
	if (GBrowserIsCompatible()) {
		
		// resize the map
		var m = document.getElementById("map");
		m.style.height = "450px";
		m.style.width = "525px";
		
		// create the map
		map = new GMap(document.getElementById("map"));
		map.addControl(new GLargeMapControl());
		
		map.centerAndZoom(new GPoint(-1.095038, 53.952449), 4);
var point = new GPoint(-1.095038, 53.952449);
var mhtml = '<div style="white-space:nowrap;"><h4>Wheatlands Lodge</h4><p>75-85 Scarcroft Road,<br />York<br />YO24 1DB</p></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) {
	var marker = new GMarker(point);
	GEvent.addListener(marker, "click", function() {
		marker.openInfoWindowHtml(html);
	});
	return marker;
}