/*** Load GoogleMap ***/
googlemap = {
	lat: 50.893106,
	lng:  0.540208,
	init: function() {
		if (typeof(GBrowserIsCompatible) == "function" && GBrowserIsCompatible()) {
			var frame = id("container").insertBefore(document.createElement("div"), id("content"));
			frame.className = "mapframe";
			map = frame.appendChild(document.createElement("div"));
			map.className = "googlemap";
			map = new GMap2(map);
			map.setCenter(new GLatLng(googlemap.lat, googlemap.lng), 13);
			map.addControl(new GLargeMapControl());
			
			// Create marker
			var icon = new GIcon();
			icon.image = "http://www.bannatyne.co.uk/hotel/hastings/images/marker.png";
			icon.iconSize = new GSize(196, 100);
			icon.iconAnchor = new GPoint(43, 87);
	
			map.addOverlay(new GMarker(map.getCenter(), icon));
		};
	}
};
/**********************/

// set Loaded functions
addDOMLoadEvent(googlemap.init);