var map;

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

		var point = new GPoint(-1.10065, 53.948699);
		var mhtml = '<h4>Paraytec Limited</h4>';
		mhtml = mhtml + '<p>1a St Georges Place<br/>Tadcaster Road<br/>York<br/>YO24 1GN</p>';
		mhtml = '<div style="white-space:nowrap;">' + mhtml + '<p><a href="http://maps.google.co.uk/maps?f=q&hl=en&geocode=&q=1a+St+Georges+Place+York&sll=53.948945,-1.104104&sspn=0.008398,0.020084&ie=UTF8&ll=53.948699,-1.10065&spn=0.008398,0.020084&z=16&iwloc=addr">Get Directions using Google Maps</a></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) {
	// FF 1.5 fix
	//html = '<div style="white-space:nowrap;">' + html + directionsForm + ' </div>';
	var marker = new GMarker(point);
	GEvent.addListener(marker, "click", function() {
		marker.openInfoWindowHtml(html);
	});

	return marker;

}

