// GoogleMaps - 3 Roderick Place, West Linton

var gmap=null; // Defines map container

function gmapload()
{
	  
      if (GBrowserIsCompatible())
      {
      	// This creates an instance of the map and positions it at the
	  	// div tag id="map" within the body of the HTML.
	  	// The size of the map is defined by the boundaries of the div tag.
	  	gmap=new GMap2(document.getElementById("map"));
      	
      	// adds the zoom and pan controls
        gmap.addControl(new GSmallMapControl());
        
        // adds the "Normal", "Satellite", and "Hybrid" view buttons
		gmap.addControl(new GMapTypeControl());
		
		// This centers the map and sets the initial zoom level.
		// The coordinates are (latitude, longitude).
		// The zoom level is from 0 to 17, with 0 being zoomed out, and 17 being zoomed in.
		var point = new GLatLng(55.7473, -3.3536);
        gmap.setCenter(point,13);
		gmap.addOverlay(new GMarker(point));
	  }
	  else {
      alert("Sorry, the Google Maps API is not compatible with this browser");
      }
}

addLoadEvent(gmapload);