//<![CDATA[
if (GBrowserIsCompatible()) {
	
	var map = new GMap2(document.getElementById("map"));
//Create Co-ordinates of RAF Waddington
	var ASlng = -0.5347037315368652
	var ASlat = 53.23072667508682
	var showPoint = new GLatLng(ASlat, ASlng);
//Add Controls and centre map
    map.addControl(new GLargeMapControl());
	map.addControl(new GOverviewMapControl);
    map.setCenter(showPoint, 16); //RAF Waddington
//create roundel logo image
	var icon = new GIcon();
	icon.image = "googleMap/logo.png"; icon.shadow = "googleMap/logoShadow.png";
	icon.iconSize = new GSize(55, 34);
	icon.shadowSize = new GSize(55, 34);
	icon.iconAnchor = new GPoint(12, 12);
	icon.infoWindowAnchor = new GPoint(12, 12);
	var ASmarker = new GMarker(showPoint, icon); 
//create Air Show html
	var html = '<div id="mapTxt">' +
		'<div id="title"><strong>The Nomad Trust</strong><br />15/a Monks Road, Lincoln. LN2 5HL</div>';
	var html0 = '<br />Directions: <a href="javascript:tohere();">To Nomad</a> - <a href="javascript:fromhere();">From Nomad</a></div>';
	var html1 = '<br />Directions: To Nomad</b> - <a href="javascript:fromhere();">From Nomad</a><br>Start address or Postcode:<form action="http://maps.google.co.uk/maps" method="get" target="_blank" style="margin:0px;"><input type="text" name="saddr" id="saddr" value="" class="formele" style="width:190px;" /><br /><INPUT value="Get Directions" TYPE="SUBMIT" class="formbtn" style="width:190px;" />' +
		'<input type="hidden" name="daddr" value="' + ASlat + ',' + ASlng + "(The Nomad Trust)" + '"/></form></div>';              
	var html2 = '<br />Directions: <a href="javascript:tohere();">To Nomad</a> - <b>From Nomad</b><br>End address or Postcode:<form action="http://maps.google.co.uk/maps" method="get"" target="_blank" style="margin:0px;"><input type="text" name="daddr" id="daddr" value="" class="formele" style="width:190px;" /><br /><INPUT value="Get Directions" TYPE="SUBMIT" class="formele" style="width:190px;" />' +
		'<input type="hidden" name="saddr" value="' + ASlat + ',' + ASlng + "(The Nomad Trust)" + '" /></form></div>';
	
//Add Logo and Info Window
	function AScreateMarker(showPoint) { 
	  map.addOverlay(ASmarker);
	  ASmarker.openInfoWindowHtml(html+html0); 
	  GEvent.addListener(ASmarker, "click", function() {
		ASmarker.openInfoWindowHtml(html+html0);
		});
	  return ASmarker; 
	}
	AScreateMarker(showPoint);
	  function tohere() {
        ASmarker.openInfoWindowHtml(html+html1);
      }
      function fromhere() {
        ASmarker.openInfoWindowHtml(html+html2);
      }
	  
	  
}else {
      document.getElementById("map").innerHTML="Sorry, your browser isn't compatible with Google Maps so we are unable to display the air show location map";
    }
	
//]]>