var centerLatitude = 53.203615533721646;
var centerLongitude = -1.6045001149177551;
var startZoom = 15;
var currZoom = startZoom;
var markersArray = new Array();
var map;
var description = '<div style="width:240px;"><ul><li><b>Post Cottage</b></li><li><b>tel:</b>xxxxx xxx xxx</li><li><b>email:</b><a href="mailto:enquiries@postcottagebeeley.co.uk">enquiries@postcottagebeeley.co.uk</a></li></ul></div>';

function addMarker(latitude, longitude, description)
{
    var marker = new GMarker(new GLatLng(latitude, longitude));
    GEvent.addListener(marker, 'click',

        function()
        {
            marker.openInfoWindowHtml(description);
        }
    );

map.addOverlay(marker);

}

function init()
{
   if (GBrowserIsCompatible()) 
   {
      map = new GMap2(document.getElementById("googlemap"));
      map.addControl(new GLargeMapControl());	  
	  map.addControl(new GMapTypeControl());
      map.setMapType(G_HYBRID_MAP);
      addMarker(centerLatitude, centerLongitude, description);	  
      var location = new GLatLng(centerLatitude, centerLongitude);
      map.setCenter(location, startZoom);      
      var marker = new GMarker(location);

    }
}

window.onload = init;
window.onunload = GUnload;

