//<![CDATA[
if (GBrowserIsCompatible()) {
	
	var map = new GMap2(document.getElementById("map"));
//Create Co-ordinates
	var ASlng = -0.540476
	var ASlat = 53.230598
	var showPoint = new GLatLng(ASlat, ASlng);
//Add Controls and centre map
    map.addControl(new GSmallMapControl());
    map.addControl(new GMapTypeControl());
	map.addControl(new GOverviewMapControl);
    map.setCenter(showPoint, 16);
//create logo image
	var icon = new GIcon();
	icon.image = "../cmsimages/s.png"; icon.shadow = "../cmsimages/sShadow.png";
	icon.iconSize = new GSize(46, 19);
	icon.shadowSize = new GSize(46, 19);
	icon.iconAnchor = new GPoint(20, 5);
	icon.infoWindowAnchor = new GPoint(15, 5);
	var ASmarker = new GMarker(showPoint, icon); 
//create html
	var html = '<div id="mapTxt" style="margin-bottom:10px;">' +
		'<div id="mapTitle"><strong>J.E. Sills &amp; Sons Ltd</strong><br />19 Corporation Street, Lincoln. LN2 1HL</div>';
	var html0 = '<br />Directions: <a href="javascript:tohere();">To J.E. Sills</a> - <a href="javascript:fromhere();">From J.E. Sills</a></div>';
	var html1 = '<br />Directions: To J.E. Sills</b> - <a href="javascript:fromhere();">From J.E. Sills</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:150px;" /> <INPUT value="Get Directions" TYPE="SUBMIT" class="formbtn" style="width:150px;" />' +
		'<input type="hidden" name="daddr" value="' + ASlat + ',' + ASlng + "(J.E. Sills &amp; Sons Ltd)" + '"/></form></div>';              
	var html2 = '<br />Directions: <a href="javascript:tohere();">To J.E.Sills</a> - <b>From J.E.Sills</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:150px;" /> <INPUT value="Get Directions" TYPE="SUBMIT" class="formele" style="width:150px;" />' +
		'<input type="hidden" name="saddr" value="' + ASlat + ',' + ASlng + "(J.E. Sills &amp; Sons Ltd)" + '" /></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";
    }
	
//]]>
