
	
	//<![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_NORMAL_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/shadow_sm.png";
	       	base_flag.iconSize = new GSize(15, 15);
   			base_flag.shadowSize = new GSize(32, 15);
  			base_flag.iconAnchor = new GPoint(3, 15);       					
		
			var marker = new GMarker(centre);
			var point = new GLatLng(50.908905,-4.553361);
			map.addOverlay(createWalkMarker(point, 'pub'));
						
		}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/" + markertype + "_sm.png";
			var marker = new GMarker(point, {icon:walk_icon});
			return marker;
	}

    		
    //]]>