
		var map;
		var icon;
		var eat_icon;
		var opts = new Object();
		var infoTabs = Array();
		var marker = Array();

		opts.maxWidth = 230; 

        //<![CDATA[
		function load() {
			if (GBrowserIsCompatible()) {
				
				icon = new GIcon()
				icon.image = "images/red_pushpin.png";
				icon.shadow = "images/pushpin_shadow.png";
				icon.iconSize = new GSize(30, 30);
				icon.shadowSize = new GSize(56, 30);
				icon.iconAnchor = new GPoint(16, 30);
				icon.infoWindowAnchor = new GPoint(16, 0);
				
				eat_icon = new GIcon()
				eat_icon.image = "images/blue_pushpin.png";
				eat_icon.shadow = "images/pushpin_shadow.png";
				eat_icon.iconSize = new GSize(30, 30);
				eat_icon.shadowSize = new GSize(56, 30);
				eat_icon.iconAnchor = new GPoint(16, 30);
				eat_icon.infoWindowAnchor = new GPoint(16, 0);
				
				market_icon = new GIcon()
				market_icon.image = "images/yell_pushpin.png";
				market_icon.shadow = "images/pushpin_shadow.png";
				market_icon.iconSize = new GSize(30, 30);
				market_icon.shadowSize = new GSize(56, 30);
				market_icon.iconAnchor = new GPoint(16, 30);
				market_icon.infoWindowAnchor = new GPoint(16, 0);
				
				
				map = new GMap2(document.getElementById("map"));
				
				//map.setCenter(new GLatLng(  51.014487 , -0.129811 ), 9);
				map.setCenter(new GLatLng(  51.001556  , -0.072892  ), 9);
				map.addControl(new GSmallMapControl());
				map.addControl(new GScaleControl());
				//map.addControl(new GOverviewMapControl());
				
				map.addMapType(G_PHYSICAL_MAP);
				var hierarchy = new GHierarchicalMapTypeControl();
				hierarchy.addRelationship(G_SATELLITE_MAP, G_HYBRID_MAP, null, true);
                                map.addControl(hierarchy);
                                
				map.enableContinuousZoom();
				map.enableDoubleClickZoom();

				
				retailers();
			}
		}

		function retailers() {
			
			infoTabs[3] = [
				new GInfoWindowTab('Description','<div style="width:180px"><h5>Chaussy&rsquo;s Gun Hill Farm Shop</h5><p>Horam,<br/>TN21 0JU</p></div>')
						,new GInfoWindowTab('Directions', '<div style="width:180px"><form action="http://maps.google.com/maps" method="get" target="_blank"><input type="hidden" name="daddr" value="TN21 0JU" /><label for="saddr"><strong>Your postcode::</strong></label><br/><input type="text" name="saddr" id="saddr" value="" />&nbsp;<input type="submit" value="Find" name="submit" /></form></div>')
					];
			
			var point = new GLatLng(50.908021  , 0.223778 );
			marker[3] = createMarker(point, infoTabs[3], icon);
			map.addOverlay(marker[3]);

					popup_3 = function(id) { marker[id].openInfoWindowTabsHtml(infoTabs[id], opts); }
//=========================================================================================================
					infoTabs[4] = [
				new GInfoWindowTab('Description','<div style="width:180px"><h5>Downsview Butchers</h5><p>Willingdon,<br/>BN220PR</p></div>')
						,new GInfoWindowTab('Directions', '<div style="width:180px"><form action="http://maps.google.com/maps" method="get" target="_blank"><input type="hidden" name="daddr" value="BN220PR" /><label for="saddr"><strong>Your postcode:</strong></label><br/><input type="text" name="saddr" id="saddr" value="" />&nbsp;<input type="submit" value="Find" name="submit" /></form></div>')
					];
			
			var point = new GLatLng(50.806974  , 0.252871 );
			marker[4] = createMarker(point, infoTabs[4], icon);
			map.addOverlay(marker[4]);

					popup_4 = function(id) { marker[id].openInfoWindowTabsHtml(infoTabs[id], opts); }					
//=========================================================================================================
					infoTabs[5] = [
				new GInfoWindowTab('Description','<div style="width:180px"><h5>Laughton Village Store</h5><p>Laughton,<br/>BN8 6BG</p></div>')
						,new GInfoWindowTab('Directions', '<div style="width:180px"><form action="http://maps.google.com/maps" method="get" target="_blank"><input type="hidden" name="daddr" value="BN8 6BG" /><label for="saddr"><strong>Your postcode:</strong></label><br/><input type="text" name="saddr" id="saddr" value="" />&nbsp;<input type="submit" value="Find" name="submit" /></form></div>')
					];
			
			var point = new GLatLng(50.898841  , 0.135506 );
			marker[5] = createMarker(point, infoTabs[5], icon);
			map.addOverlay(marker[5]);

					popup_5 = function(id) { marker[id].openInfoWindowTabsHtml(infoTabs[id], opts); }		
//=========================================================================================================
//					tbd Martins Wood
//												
//=========================================================================================================
					infoTabs[7] = [
				new GInfoWindowTab('Description','<div style="width:180px"><h5>Mile Oak Farm Shop</h5><p>Portslade,<br/>BN41 2RF</p></div>')
						,new GInfoWindowTab('Directions', '<div style="width:180px"><form action="http://maps.google.com/maps" method="get" target="_blank"><input type="hidden" name="daddr" value="BN41 2RF" /><label for="saddr"><strong>Your postcode:</strong></label><br/><input type="text" name="saddr" id="saddr" value="" />&nbsp;<input type="submit" value="Find" name="submit" /></form></div>')
					];
			
			var point = new GLatLng(50.857978  , -0.236153 );
			marker[7] = createMarker(point, infoTabs[7], icon);
			map.addOverlay(marker[7]);

					popup_7 = function(id) { marker[id].openInfoWindowTabsHtml(infoTabs[id], opts); }		
//=========================================================================================================
					infoTabs[8] = [
				new GInfoWindowTab('Description','<div style="width:180px"><h5>Old Spot Farm Shop</h5><p>Piltdown,<br/>TN21 0JU</p></div>')
						,new GInfoWindowTab('Directions', '<div style="width:180px"><form action="http://maps.google.com/maps" method="get" target="_blank"><input type="hidden" name="daddr" value="TN21 0JU" /><label for="saddr"><strong>Your postcode:</strong></label><br/><input type="text" name="saddr" id="saddr" value="" />&nbsp;<input type="submit" value="Find" name="submit" /></form></div>')
					];
			
			var point = new GLatLng(50.98018 , 0.04447);
			marker[8] = createMarker(point, infoTabs[8], icon);
			map.addOverlay(marker[8]);

					popup_8 = function(id) { marker[id].openInfoWindowTabsHtml(infoTabs[id], opts); }							
//=========================================================================================================
					infoTabs[9] = [
				new GInfoWindowTab('Description','<div style="width:180px"><h5>Park Farm Shop</h5><p>Falmer,<br/>BN1 9PG</p></div>')
						,new GInfoWindowTab('Directions', '<div style="width:180px"><form action="http://maps.google.com/maps" method="get" target="_blank"><input type="hidden" name="daddr" value="BN1 9PG" /><label for="saddr"><strong>Your postcode:</strong></label><br/><input type="text" name="saddr" id="saddr" value="" />&nbsp;<input type="submit" value="Find" name="submit" /></form></div>')
					];
			
			var point = new GLatLng(50.863038  , -0.078737);
			marker[9] = createMarker(point, infoTabs[9], icon);
			map.addOverlay(marker[9]);

					popup_9 = function(id) { marker[id].openInfoWindowTabsHtml(infoTabs[id], opts); }	
//=========================================================================================================
					infoTabs[10] = [
				new GInfoWindowTab('Description','<div style="width:180px"><h5>Ripe Village Stores</h5><p>Ripe,<br/>BN8 6AS</p></div>')
						,new GInfoWindowTab('Directions', '<div style="width:180px"><form action="http://maps.google.com/maps" method="get" target="_blank"><input type="hidden" name="daddr" value="BN8 6AS " /><label for="saddr"><strong>Your postcode:</strong></label><br/><input type="text" name="saddr" id="saddr" value="" />&nbsp;<input type="submit" value="Find" name="submit" /></form></div>')
					];
			
			var point = new GLatLng(50.870127  , 0.145138 );
			marker[10] = createMarker(point, infoTabs[10], icon);
			map.addOverlay(marker[10]);

					popup_10 = function(id) { marker[id].openInfoWindowTabsHtml(infoTabs[id], opts); }
//=========================================================================================================
					infoTabs[11] = [
				new GInfoWindowTab('Description','<div style="width:180px"><h5>Shell World</h5><p>Brighton,<br/>BN1 1NA</p></div>')
						,new GInfoWindowTab('Directions', '<div style="width:180px"><form action="http://maps.google.com/maps" method="get" target="_blank"><input type="hidden" name="daddr" value="BN1 1NA" /><label for="saddr"><strong>Your postcode:</strong></label><br/><input type="text" name="saddr" id="saddr" value="" />&nbsp;<input type="submit" value="Find" name="submit" /></form></div>')
					];
			
			var point = new GLatLng(50.820544  , -0.143221 );
			marker[11] = createMarker(point, infoTabs[11], icon);
			map.addOverlay(marker[11]);

					popup_11 = function(id) { marker[id].openInfoWindowTabsHtml(infoTabs[id], opts); }
//=========================================================================================================
					infoTabs[12] = [
				new GInfoWindowTab('Description','<div style="width:180px"><h5>Sussex and the City</h5><p>Brighton,<br/>BN1 1HB</p></div>')
						,new GInfoWindowTab('Directions', '<div style="width:180px"><form action="http://maps.google.com/maps" method="get" target="_blank"><input type="hidden" name="daddr" value="BN1 1HB" /><label for="saddr"><strong>Your postcode:</strong></label><br/><input type="text" name="saddr" id="saddr" value="" />&nbsp;<input type="submit" value="Find" name="submit" /></form></div>')
					];
			
			var point = new GLatLng(50.822088 , -0.140775 );
			marker[12] = createMarker(point, infoTabs[12], icon);
			map.addOverlay(marker[12]);

					popup_12 = function(id) { marker[id].openInfoWindowTabsHtml(infoTabs[id], opts); }
//=========================================================================================================
					infoTabs[13] = [
				new GInfoWindowTab('Description','<div style="width:180px"><h5>Swain&rsquo;s Farm Shop</h5><p>Henfield,<br/>BN5 9RP</p></div>')
						,new GInfoWindowTab('Directions', '<div style="width:180px"><form action="http://maps.google.com/maps" method="get" target="_blank"><input type="hidden" name="daddr" value="BN5 9RP" /><label for="saddr"><strong>Your postcode:</strong></label><br/><input type="text" name="saddr" id="saddr" value="" />&nbsp;<input type="submit" value="Find" name="submit" /></form></div>')
					];
			
			var point = new GLatLng(50.927539 , -0.259436 );
			marker[13] = createMarker(point, infoTabs[13], icon);
			map.addOverlay(marker[13]);

					popup_13 = function(id) { marker[id].openInfoWindowTabsHtml(infoTabs[id], opts); }							
//=========================================================================================================
					infoTabs[14] = [
				new GInfoWindowTab('Description','<div style="width:180px"><h5>Tulleys Farm Shop</h5><p>Turners Hill,<br/>RH10 4PE</p></div>')
						,new GInfoWindowTab('Directions', '<div style="width:180px"><form action="http://maps.google.com/maps" method="get" target="_blank"><input type="hidden" name="daddr" value="RH10 4PE" /><label for="saddr"><strong>Your postcode:</strong></label><br/><input type="text" name="saddr" id="saddr" value="" />&nbsp;<input type="submit" value="Find" name="submit" /></form></div>')
					];
			
			var point = new GLatLng(51.110013  , -0.113586 );
			marker[14] = createMarker(point, infoTabs[14], icon);
			map.addOverlay(marker[14]);

					popup_14 = function(id) { marker[id].openInfoWindowTabsHtml(infoTabs[id], opts); }												
//=========================================================================================================
					infoTabs[15] = [
				new GInfoWindowTab('Description','<div style="width:180px"><h5>Turners Traditional Butchers</h5><p>Ringmer,<br/>BN8 5AR</p></div>')
						,new GInfoWindowTab('Directions', '<div style="width:180px"><form action="http://maps.google.com/maps" method="get" target="_blank"><input type="hidden" name="daddr" value="BN8 5AR" /><label for="saddr"><strong>Your postcode:</strong></label><br/><input type="text" name="saddr" id="saddr" value="" />&nbsp;<input type="submit" value="Find" name="submit" /></form></div>')
					];
			
			var point = new GLatLng( 50.903401 , 0.088778  );
			marker[15] = createMarker(point, infoTabs[15], icon);
			map.addOverlay(marker[15]);

					popup_15 = function(id) { marker[id].openInfoWindowTabsHtml(infoTabs[id], opts); }
//=========================================================================================================
					infoTabs[16] = [
				new GInfoWindowTab('Description','<div style="width:180px"><h5>The Sussex Ox</h5><p>Alfriston,<br/>BN26 5RL</p></div>')
						,new GInfoWindowTab('Directions', '<div style="width:180px"><form action="http://maps.google.com/maps" method="get" target="_blank"><input type="hidden" name="daddr" value="BN26 5RL" /><label for="saddr"><strong>Your postcode:</strong></label><br/><input type="text" name="saddr" id="saddr" value="" />&nbsp;<input type="submit" value="Find" name="submit" /></form></div>')
					];
			
			var point = new GLatLng( 50.815550 , 0.172008  );
			marker[16] = createMarker(point, infoTabs[16], eat_icon);
			map.addOverlay(marker[16]);

					popup_16 = function(id) { marker[id].openInfoWindowTabsHtml(infoTabs[id], opts); }
//=========================================================================================================
					infoTabs[17] = [
				new GInfoWindowTab('Description','<div style="width:180px"><h5>The Royal Oak</h5><p>Poynings,<br/>BN45 7AQ</p></div>')
						,new GInfoWindowTab('Directions', '<div style="width:180px"><form action="http://maps.google.com/maps" method="get" target="_blank"><input type="hidden" name="daddr" value="BN45 7AQ" /><label for="saddr"><strong>Your postcode:</strong></label><br/><input type="text" name="saddr" id="saddr" value="" />&nbsp;<input type="submit" value="Find" name="submit" /></form></div>')
					];
			
			var point = new GLatLng( 50.893621  ,  -0.206808 );
			marker[17] = createMarker(point, infoTabs[17], eat_icon);
			map.addOverlay(marker[17]);

					popup_17 = function(id) { marker[id].openInfoWindowTabsHtml(infoTabs[id], opts); }
//=========================================================================================================

					infoTabs[18] = [
				new GInfoWindowTab('Description','<div style="width:180px"><h5>The Foresters Arms</h5><p>Graffham,<br/>GU28 0QA</p></div>')
						,new GInfoWindowTab('Directions', '<div style="width:180px"><form action="http://maps.google.com/maps" method="get" target="_blank"><input type="hidden" name="daddr" value="GU28 0QA" /><label for="saddr"><strong>Your postcode:</strong></label><br/><input type="text" name="saddr" id="saddr" value="" />&nbsp;<input type="submit" value="Find" name="submit" /></form></div>')
					];
			
			var point = new GLatLng( 50.950583  , -0.678059   );
			marker[18] = createMarker(point, infoTabs[18], eat_icon);
			map.addOverlay(marker[18]);

					popup_18 = function(id) { marker[id].openInfoWindowTabsHtml(infoTabs[id], opts); }
//=========================================================================================================
					infoTabs[19] = [
				new GInfoWindowTab('Description','<div style="width:180px"><h5>The Countryman Inn</h5><p>Graffham,<br/>RH13 8PZ</p></div>')
						,new GInfoWindowTab('Directions', '<div style="width:180px"><form action="http://maps.google.com/maps" method="get" target="_blank"><input type="hidden" name="daddr" value="RH13 8PZ" /><label for="saddr"><strong>Your postcode:</strong></label><br/><input type="text" name="saddr" id="saddr" value="" />&nbsp;<input type="submit" value="Find" name="submit" /></form></div>')
					];
			
			var point = new GLatLng( 50.980561   , -0.379984 );
			marker[19] = createMarker(point, infoTabs[19], eat_icon);
			map.addOverlay(marker[19]);

					popup_19 = function(id) { marker[id].openInfoWindowTabsHtml(infoTabs[id], opts); }
//=========================================================================================================
					infoTabs[20] = [
				new GInfoWindowTab('Description','<div style="width:180px"><h5>Grub Cafe-Bar</h5><p>110-112 London Road,<br/>East Grinstead<br/>RH19 2BU</p></div>')
						,new GInfoWindowTab('Directions', '<div style="width:180px"><form action="http://maps.google.com/maps" method="get" target="_blank"><input type="hidden" name="daddr" value="RH19 2BU" /><label for="saddr"><strong>Your postcode:</strong></label><br/><input type="text" name="saddr" id="saddr" value="" />&nbsp;<input type="submit" value="Find" name="submit" /></form></div>')
					];
			
			var point = new GLatLng( 51.137296    , -0.013541 );
			marker[20] = createMarker(point, infoTabs[20], eat_icon);
			map.addOverlay(marker[20]);

					popup_20 = function(id) { marker[id].openInfoWindowTabsHtml(infoTabs[id], opts); }
					
//=========================================================================================================
					infoTabs[21] = [
				new GInfoWindowTab('Description','<div style="width:180px"><h5>Hailsham Farmers Market</h5><p>Market Street,<br/>Hailsham<br/>BN27 2AG</p></div>')
						,new GInfoWindowTab('Directions', '<div style="width:180px"><form action="http://maps.google.com/maps" method="get" target="_blank"><input type="hidden" name="daddr" value="BN27 2AG" /><label for="saddr"><strong>Your postcode:</strong></label><br/><input type="text" name="saddr" id="saddr" value="" />&nbsp;<input type="submit" value="Find" name="submit" /></form></div>')
					];
			
			var point = new GLatLng( 50.861012     , 0.262055 );
			marker[21] = createMarker(point, infoTabs[21], market_icon);
			map.addOverlay(marker[21]);

					popup_21 = function(id) { marker[id].openInfoWindowTabsHtml(infoTabs[id], opts); }
					
//=========================================================================================================
					infoTabs[22] = [
				new GInfoWindowTab('Description','<div style="width:180px"><h5>The Old Dairy Farm & Shop</h5><p>Sliders Lane,<br/>Furners Green<br/>TN22 3RT</p></div>')
						,new GInfoWindowTab('Directions', '<div style="width:180px"><form action="http://maps.google.com/maps" method="get" target="_blank"><input type="hidden" name="daddr" value="TN22 3RT" /><label for="saddr"><strong>Your postcode:</strong></label><br/><input type="text" name="saddr" id="saddr" value="" />&nbsp;<input type="submit" value="Find" name="submit" /></form></div>')
					];
			
			var point = new GLatLng( 51.015350     , 0.003143 );
			marker[22] = createMarker(point, infoTabs[22], icon);
			map.addOverlay(marker[22]);

					popup_22 = function(id) { marker[id].openInfoWindowTabsHtml(infoTabs[id], opts); }
//=========================================================================================================
					infoTabs[23] = [
				new GInfoWindowTab('Description','<div style="width:180px"><h5>Crowhurst Park</h5><p>Telham Lane,<br/>Battle<br/>TN33 0SL</p></div>')
						,new GInfoWindowTab('Directions', '<div style="width:180px"><form action="http://maps.google.com/maps" method="get" target="_blank"><input type="hidden" name="daddr" value="TN33 0SL"/><label for="saddr"><strong>Your postcode:</strong></label><br/><input type="text" name="saddr" id="saddr" value="" />&nbsp;<input type="submit" value="Find" name="submit" /></form></div>')
					];
			
			var point = new GLatLng( 50.894301     , 0.519986  );
			marker[23] = createMarker(point, infoTabs[23], icon);
			map.addOverlay(marker[23]);

					popup_23 = function(id) { marker[id].openInfoWindowTabsHtml(infoTabs[id], opts); }
//=========================================================================================================
					infoTabs[24] = [
				new GInfoWindowTab('Description','<div style="width:180px"><h5>Corbin&rsquo;s Deli</h5><p>23 High Street,<br/>Uckfield<br/>TN22 1AG</p></div>')
						,new GInfoWindowTab('Directions', '<div style="width:180px"><form action="http://maps.google.com/maps" method="get" target="_blank"><input type="hidden" name="daddr" value="TN22 1AG"/><label for="saddr"><strong>Your postcode:</strong></label><br/><input type="text" name="saddr" id="saddr" value="" />&nbsp;<input type="submit" value="Find" name="submit" /></form></div>')
					];
			
			var point = new GLatLng( 50.970022     , 0.095939  );
			marker[24] = createMarker(point, infoTabs[24], icon);
			map.addOverlay(marker[24]);

					popup_24 = function(id) { marker[id].openInfoWindowTabsHtml(infoTabs[id], opts); }
//=========================================================================================================
					infoTabs[25] = [
				new GInfoWindowTab('Description','<div style="width:180px"><h5>Washbrooks Family Farm</h5><p>Brighton Road,<br/>Hurstpierpoint<br/>BN6 9EF</p></div>')
						,new GInfoWindowTab('Directions', '<div style="width:180px"><form action="http://maps.google.com/maps" method="get" target="_blank"><input type="hidden" name="daddr" value="BN6 9EF"/><label for="saddr"><strong>Your postcode:</strong></label><br/><input type="text" name="saddr" id="saddr" value="" />&nbsp;<input type="submit" value="Find" name="submit" /></form></div>')
					];
			
			var point = new GLatLng( 50.928898    , -0.180435  );
			marker[25] = createMarker(point, infoTabs[25], icon);
			map.addOverlay(marker[25]);

					popup_25 = function(id) { marker[id].openInfoWindowTabsHtml(infoTabs[id], opts); }
//=========================================================================================================
					infoTabs[26] = [
				new GInfoWindowTab('Description','<div style="width:180px"><h5>Wellingham Herb Garden</h5><p>Wellingham Lane,<br/>Lewes<br/>BN8 5SW</p></div>')
						,new GInfoWindowTab('Directions', '<div style="width:180px"><form action="http://maps.google.com/maps" method="get" target="_blank"><input type="hidden" name="daddr" value="BN8 5SW"/><label for="saddr"><strong>Your postcode:</strong></label><br/><input type="text" name="saddr" id="saddr" value="" />&nbsp;<input type="submit" value="Find" name="submit" /></form></div>')
					];
			
			var point = new GLatLng(   50.902872   ,  0.033143 );
			marker[26] = createMarker(point, infoTabs[26], icon);
			map.addOverlay(marker[26]);

					popup_26 = function(id) { marker[id].openInfoWindowTabsHtml(infoTabs[id], opts); }
						
				}
		
		function createMarker(point, infoTabs, icon) {
			
			var marker = new GMarker(point, icon);
	
			GEvent.addListener(marker, "click", function() {
				marker.openInfoWindowTabsHtml(infoTabs, opts);
			});

			return marker;
		} 
		
		// arrange for our onload handler to 'listen' for onload events
		if (window.attachEvent) {
			window.attachEvent("onload", function() {
				load();	// Internet Explorer
			});
		} else {
			window.addEventListener("load", function() {
				load(); // Firefox and standard browsers
			}, false);
		} //]]>	