    var map;
    var gdir;
    var geocoder = null;
    var addressMarker;

    function initialize() {
      if (GBrowserIsCompatible()) {
        var map2 = new GMap2(document.getElementById('map_canvas'))
        map2.setCenter(new GLatLng(50.932569, -0.174783), 13);
        map2.addControl(new GSmallMapControl());
        map2.addControl(new GMapTypeControl());



		// This icon is a different shape, so we need our own settings
		var imaIcon = new GIcon();
		imaIcon.image = '/images/maplink2.png';
		imaIcon.shadow = '';
		imaIcon.iconSize = new GSize(40, 40);
		imaIcon.shadowSize = new GSize(36, 34);
		imaIcon.iconAnchor = new GPoint(0, 15);
		//imaIcon.infoWindowAnchor = new GPoint(5, 2);
		//imaIcon.infoShadowAnchor = new GPoint(14, 25);
		//imaIcon.transparent = 'previewtran.png';
		//imaIcon.printImage = 'previewie.gif';
		//imaIcon.mozPrintImage = 'previewff.gif';


		//var location2 = new GLatLng(50.93287029930117, -0.176256000995636);
        var location2 = new GLatLng(50.93307029930117, -0.176856000995636);
		var marker2 = new GMarker(location2, imaIcon);
		map2.addOverlay(marker2);


        //gdir = new GDirections(map, document.getElementById('directions'));
        //GEvent.addListener(gdir, 'load', onGDirectionsLoad);
        //GEvent.addListener(gdir, 'error', handleErrors);

        //setDirections('', 'Hurstpierpoint', 'en_GB');
      }
    }

    function setDirections(fromAddress, toAddress, locale) {
      gdir.load('from: ' + fromAddress + ' to: ' + toAddress,
                { 'locale': locale });
    }


	function onGDirectionsLoad(){
      // Use this function to access information about the latest load()
      // results.

      // e.g.
      // document.getElementById('getStatus').innerHTML = gdir.getStatus().code;
	  // and yada yada yada...
	}