
	
	//<![CDATA[
	var base_flag
	function load() {
		if (GBrowserIsCompatible()) {
        
			//Init map
        		var map = new GMap2(document.getElementById("google_map_inner"));
        		
        		//Set centre & type
        		var centre = new GLatLng(50.527397,-3.823242);
			map.setCenter(centre, 7);
			map.setMapType(G_PHYSICAL_MAP);
			
			//setup controls
			map.addControl(new GSmallMapControl());
			map.addControl(new GMapTypeControl());
			map.removeMapType(G_HYBRID_MAP);
			map.removeMapType(G_SATELLITE_MAP);
			map.addMapType(G_PHYSICAL_MAP);
		
			//set up base icons
			base_flag = new GIcon();
    			base_flag.shadow = "http://southwestcoastalpath.co.uk/img/flags/walk_start_shadow_sm.png";
	       	base_flag.iconSize = new GSize(61, 34);
   			base_flag.shadowSize = new GSize(61, 34);
  			base_flag.iconAnchor = new GPoint(14, 32);
		
			var marker = new GMarker(centre);
			var point = new GLatLng(50.666301,-2.600112);
			map.addOverlay(createWalkMarker(point, 'start'));
			point = new GLatLng(50.608408,-2.453213);
			map.addOverlay(createWalkMarker(point, 'end'));
						
		}else{
			document.getElementById('google_map_inner').innerHTML = 'Browser not compatible with Google Maps';
		}		
    }
    		
    		
	function createWalkMarker(point,markertype) {
			var walk_icon = new GIcon(base_flag);
  			walk_icon.image = "http://southwestcoastalpath.co.uk/img/flags/walk_" + markertype + "_sm.png";
			var marker = new GMarker(point, {icon:walk_icon});
			return marker;
	}

    		
    //]]>