var layers = [
  {
    "id": 1,
    "name": "Foot",
    "activeIcon": "images\/icon_foot.gif",
    "inactiveIcon": "images\/icon_foot_mo.gif",
    "display": "block",
	"zoomLevelOnSelect": 1,
    "features": [
      {
        "name": "London Underground",
        "legend": "icons\/9_.png",
        "icon": "icons\/9_.png",
        "iconwidth": 16,
        "iconheight": 13,
        "tag": "underground",
        "display": false,
        "displayAtZoom": [
		  5,
		  4,
		  3,
          2,
		  1,
		  0,
        ],
        "geometry": "p",
        "select": "",
        "header": [
          
        ],
        "markupCols": [
          
        ],
        "table": "railtube",
        "template": "<h4>{if defined('name')} ${name} {else}London Underground{\/if}<\/h4>{if defined('routes')}<table>{if defined('routes')}<tr><th>Lines<\/th><td>${routes}<\/td><\/tr>{\/if}<\/table>{else}<p>No information available.<\/p>{\/if}",
        "where": "",
        "style": {
          "externalGraphicIsIcon": true,
          "graphicWidth": 16,
          "graphicHeight": 13,
		  "cursor": 'pointer'
        },
        "headerfields": [
          
        ],
        "headerfieldstext": [
          
        ]
      },
      {
        "name": "Railway Station",
        "legend": "icons\/railtube_.png",
        "icon": "icons\/railtube_.png",
        "iconwidth": 14,
        "iconheight": 14,
        "tag": "railwaystation",
        "display": false,
        "displayAtZoom": [
		  5,
		  4,
		  3,
          2,
		  1,
		  0,
        ],
        "geometry": "p",
        "select": "",
        "header": [
          
        ],
        "markupCols": [
          
        ],
        "table": "railtube",
        "template": "<h4>{if defined('name')} ${name} {else}Railway Station{\/if}<\/h4>{if defined('address_1') || defined('address_postcode') || defined('phone')}<p>{if defined('address_1')}${address_1}<br\/>{\/if}{if defined('address_postcode')}${address_postcode}<br\/>{\/if}{if defined('phone')}Phone: ${phone}{\/if}<\/p>{else}<p>No information available.<\/p>{\/if}",
        "where": "",
        "style": {
          "externalGraphicIsIcon": true,
          "graphicWidth": 14,
          "graphicHeight": 14,
		  "cursor": 'pointer'
        },
        "headerfields": [
          
        ],
        "headerfieldstext": [
          
        ]
      }    
    ]
  },
  {
    "id": 2,
    "name": "Bus",
    "activeIcon": "images\/icon_bus.gif",
    "inactiveIcon": "images\/icon_bus_mo.gif",
    "display": "block",
    "zoomLevelOnSelect": 3,
    "features": [
      {
        "name": "Bus Stop",
        "legend": "icons\/busstop_lords.png",
        "icon": "icons\/busstop_lords.png",
        "iconwidth": 14,
        "iconheight": 14,
        "tag": "busstop",
        "display": false,
        "displayAtZoom": [
		  5,
		  4,
		  3,
          2
        ],
        "geometry": "p",
        "select": "",
        "header": [
          
        ],
        "markupCols": [
          
        ],
        "table": "busstop",
        "template": "<h4>Bus Stop{if defined('letter')} ${letter} {\/if}<\/h4>{if defined('site_name') || defined('routes')}<table>{if defined('site_name')}<tr><th>Site name<\/th><td>${site_name}<\/td><\/tr>{\/if}{if defined('routes')}<tr><th>Routes stopping<\/th><td>${routes}<\/td><\/tr>{\/if}<\/table>{else}<p>No information available.<\/p>{\/if}",
        "where": "",
        "style": {
          "externalGraphicIsIcon": true,
          "graphicWidth": 14,
          "graphicHeight": 14,
		  "cursor": 'pointer'
        },
        "headerfields": [
          
        ],
        "headerfieldstext": [
          
        ]
      }
    ]
  },
  {
    "id": 3,
    "name": "Blue Badge",
    "activeIcon": "images\/icon_blue_badge.gif",
    "inactiveIcon": "images\/icon_blue_badge_mo.gif",
    "display": "block",
    "zoomLevelOnSelect": 1,
    "features": [
      {
        "name": "Blue Badge Parking Bay",
        "legend": "icons\/bluebadgebay.png",
        "icon": "icons\/bluebadgebay.png",
        "iconwidth": 20,
        "iconheight": 20,
        "tag": "bluebadgeparkingbay",
        "display": false,
        "displayAtZoom": [
          5,
		  4,
		  3,
		  2,
          1,
          0
        ],
        "geometry": "p",
        "select": "",
        "header": [
          
        ],
        "markupCols": [
          
        ],
        "table": "bluebadgeparkingbay",
        "template": "<h4>Blue Badge Parking Bay<\/h4>{if defined('street_name') || defined('no_bays') || defined('max_stay')|| defined('permit_required') || defined('restrictions')}<table>{if defined('street_name')}<tr><th>Street name<\/th><td>${street_name}<\/td><\/tr>{\/if}{if defined('no_bays')}<tr><th>Number of bays<\/th><td>${no_bays}<\/td><\/tr>{\/if}{if defined('max_stay')}<tr><th>Max stay<\/th><td>{if max_stay == 24}unlimited{elseif max_stay == 99}check local limits{else}${max_stay} hours{\/if}<\/td><\/tr>{\/if}{if defined('permit_required')}<tr><th>Permit required<\/th><td>${permit_required}<\/td><\/tr>{\/if}{if defined('restrictions')}<tr><th>Restrictions<\/th><td>${restrictions}<\/td><\/tr>{\/if}<\/table>{else}<p>No information available.<\/p>{\/if}",
        "where": "",
        "style": {
          "externalGraphicIsIcon": true,
          "graphicWidth": 20,
          "graphicHeight": 20,
		  "cursor": 'pointer'
        },
        "headerfields": [
          
        ],
        "headerfieldstext": [
          
        ]
      },
      {
        "name": "Red Route Disabled Bay",
        "legend": "icons\/redroute_boxbay.png",
        "icon": "icons\/redroute_boxbay.png",
        "iconwidth": 20,
        "iconheight": 20,
        "tag": "redrouteboxbay",
        "display": false,
        "displayAtZoom": [
          5,
		  4,
		  3,
		  2,
          1,
          0
        ],
        "geometry": "p",
        "select": "",
        "header": [
          
        ],
        "markupCols": [
          
        ],
        "table": "redrouteboxbay",
        "template": "<h4>Red Route Disabled Bay<\/h4>{if defined('street_name') || defined('no_bays') || defined('description') || defined('time_limit')}<table>{if defined('street_name')}<tr><th>Street name<\/th><td>${street_name}<\/td><\/tr>{\/if}{if defined('no_bays')}<tr><th>Number of bays<\/th><td>${no_bays}<\/td><\/tr>{\/if}{if defined('description')}<tr><th>Description<\/th><td>${description}<\/td><\/tr>{\/if}{if defined('time_limit')}<tr><th>Time Limit<\/th><td>{if time_limit<=24}${time_limit} hrs{else}Check locally{/if}<\/td><\/tr>{\/if}<\/table>{else}<p>No information available.<\/p>{\/if}",
        "where": "",
        "style": {
          "externalGraphicIsIcon": true,
          "graphicWidth": 20,
          "graphicHeight": 20,
		  "cursor": 'pointer'
        },
        "headerfields": [
          
        ],
        "headerfieldstext": [
          
        ]
      }
    ]
  },
  {
    "id": 4,
    "name": "Car",
    "activeIcon": "images\/icon_car.gif",
    "inactiveIcon": "images\/icon_car_mo.gif",
    "display": "block",
    "zoomLevelOnSelect": 1,
    "features": [
      {
        "name": "Local Car Park",
        "legend": "icons\/carpark_.png",
        "icon": "icons\/carpark_.png",
        "iconwidth": 20,
        "iconheight": 20,
        "tag": "carpark",
        "display": false,
        "displayAtZoom": [
          5,
		  4,
		  3,
		  2,
          1,
          0
        ],
        "geometry": "p",
        "select": "",
        "header": [
          
        ],
        "markupCols": [
          
        ],
        "table": "carpark",
        "template": "<h4>{if defined('name')}${name}{else}Car Park{\/if}<\/h4>{if defined('description')}<p>${description}<\/p>{\/if}{if defined('address_1')}<p>{if defined('address_building_name')}${address_building_name}<br\/>{\/if}{if defined('address_building_number')}${address_building_number}&nbsp;{\/if}${address_1}{if defined('address_2')}<br\/> ${address_2}{\/if}{if defined('address_3')}<br \/> ${address_3}{\/if}{if defined('address_4')}<br \/> ${address_4}{\/if}{if defined('address_city')}<br \/> ${address_city}{\/if}{if defined('address_postcode')}&nbsp;${address_postcode}{\/if}<\/p>{\/if}{if defined('phone')}<p>Tel: ${phone}<\/p>{\/if}{if defined('height_restriction') || defined('no_bays') || defined('no_disabled_bays') || defined('disabled_toilet')|| defined('disabled_access_type') || defined('disabled_facilities') || defined('disabled_discounts')|| defined('cost_overnight_max') || defined('cost_per_hour') || defined('means_of_payment') || defined('public_toilet') || defined('congestion_charge_point')}<table>{if defined('height_restriction')}<tr><th>Height Restrictions<\/th><td>${height_restriction}m<\/td><\/tr>{\/if}{if defined('no_bays')}<tr><th>Number of Bays<\/th><td>${no_bays}<\/td><\/tr>{\/if}{if defined('no_disabled_bays')}<tr><th>Number of Disabled Bays<\/th><td>${no_disabled_bays}<\/td><\/tr>{\/if}{if defined('disabled_toilet')}<tr><th>Disabled Toilet<\/th><td>{if disabled_toilet=='t'}Yes{else}No{\/if}<\/td><\/tr>{\/if}{if defined('disabled_access_type')}<tr><th>Disabled Access Types<\/th><td>${disabled_access_type}<\/td><\/tr>{\/if}{if defined('disabled_facilities')}<tr><th> Disabled Facilities<\/th><td>${disabled_facilities}<\/td><\/tr>{\/if}{if defined('disabled_discounts')}<tr><th>Disabled Discounts<\/th><td>${disabled_discounts}<\/td><\/tr>{\/if}{if defined('cost_overnight_max')}<tr><th>Maximium Overnight Cost<\/th><td>&pound;${cost_overnight_max}<\/td><\/tr>{\/if}{if defined('cost_per_hour')}<tr><th>Cost Per Hour<\/th><td>&pound;${cost_per_hour}<\/td><\/tr>{\/if}{if defined('means_of_payment')}<tr><th>Methods of Payment<\/th><td>${means_of_payment}<\/td><\/tr>{\/if}{if defined('public_toilet')}<tr><th>Public Toilet<\/th><td>{if public_toilet=='t'}Yes{else}No{\/if}<\/td><\/tr>{\/if}{if defined('congestion_charge_point')}<tr><th>Congestion Charge Point<\/th><td>{if congestion_charge_point=='t'}Yes{else}No{\/if}<\/td><\/tr>{\/if}<\/table>{\/if}",
        "where": "",
        "style": {
          "externalGraphicIsIcon": true,
          "graphicWidth": 20,
          "graphicHeight": 20,
		  "cursor": 'pointer'
        },
        "headerfields": [
          
        ],
        "headerfieldstext": [
          
        ]
      }
    ]
  },
  {
    "id": 5,
    "name": "Hotel",
    "activeIcon": "images\/icon_hotel_.gif",
    "inactiveIcon": "images\/icon_hotel_mo_.gif",
    "display": "block",
	"zoomLevelOnSelect": '0',
    "features": [
      {
        "name": "Local Hotel",
        "legend": "icons\/hotelx.png",
        "icon": "icons\/hotelx.png",
        "iconwidth": 20,
        "iconheight": 20,
        "tag": "hotel",
        "display": false,
        "displayAtZoom": [
          5,
		  4,
		  3,
		  2,
          1,
          0
        ],
        "geometry": "p",
        "select": "",
        "header": [
          
        ],
        "markupCols": [
          
        ],
        "table": "hotel",
        "template": "<h4>${name}<\/h4>{if defined('description')}<p>${description}<\/p>{\/if}{if defined('address_1')}<p>{if defined('address_building_name')}${address_building_name}<br\/>{\/if}{if defined('address_building_number')}${address_building_number}&nbsp;{\/if}${address_1}{if defined('address_2')}<br\/> ${address_2}{\/if}{if defined('address_3')}<br \/> ${address_3}{\/if}{if defined('address_4')}<br \/> ${address_4}{\/if}{if defined('address_city')}<br \/> ${address_city}{\/if}{if defined('address_postcode')}&nbsp;${address_postcode}{\/if}<\/p>{\/if}{if defined('phone')}<p>Tel: ${phone}<\/p>{\/if}{if defined('web')}<p>Web: <a href=${web} target=\\\"_blank\\\">click here<\/a><\/p>{\/if}",
        "where": "",
        "style": {
          "externalGraphicIsIcon": true,
          "graphicWidth": 20,
          "graphicHeight": 20,
		  "cursor": 'pointer'
        },
        "headerfields": [
          
        ],
        "headerfieldstext": [
          
        ]
      }
    ]
  },
  {
    "id": 6,
    "name": "Restaurant",
    "activeIcon": "images\/icon_restaurant.gif",
    "inactiveIcon": "images\/icon_restaurant_mo.gif",
    "display": "block",
    "features": [
      {
        "name": "Local Bars & Restaurants",
        "legend": "icons\/barrestaurantx.png",
        "icon": "icons\/barrestaurantx.png",
        "iconwidth": 20,
        "iconheight": 20,
        "tag": "selectedbarsrestaurants",
        "display": false,
        "displayAtZoom": [
          5,
		  4,
		  3,
		  2,
          1,
          0
        ],
        "geometry": "p",
        "select": "",
        "header": [
          
        ],
        "markupCols": [
          
        ],
        "table": "selectedbarsrestaurants",
        "template": "<h4>${name}<\/h4>{if defined('description')}<p>${description}<\/p>{\/if}{if defined('address_1')}<p>{if defined('address_building_name')}${address_building_name}<br\/>{\/if}{if defined('address_building_number')}${address_building_number}&nbsp;{\/if}${address_1}{if defined('address_2')}<br\/> ${address_2}{\/if}{if defined('address_3')}<br \/> ${address_3}{\/if}{if defined('address_4')}<br \/> ${address_4}{\/if}{if defined('address_city')}<br \/> ${address_city}{\/if}{if defined('address_postcode')}&nbsp;${address_postcode}{\/if}<\/p>{\/if}{if defined('phone')}<p>Tel: ${phone}<\/p>{\/if}",
        "where": "",
        "style": {
          "externalGraphicIsIcon": true,
          "graphicWidth": 20,
          "graphicHeight": 20,
		  "cursor": 'pointer'
        },
        "headerfields": [
          
        ],
        "headerfieldstext": [
          
        ]
      }
    ]
  }
];

