    //<![CDATA[
    var map;
    var mgr;
    var icons = {};

    function load() {
      if (GBrowserIsCompatible()) {
        map = new GMap2(document.getElementById("map"));
        map.addControl(new GLargeMapControl());
        map.addControl(new GScaleControl());
        map.setCenter(new GLatLng(52.092873, 5.777676), 13);
        //map.setMapType(G_HYBRID_MAP);
        
        if (typeof getRandomBdr == 'function') {
        	getRandomBdr();
        	}
        
        
        map.enableDoubleClickZoom();
		GEvent.addListener(map, "click", function(marker, point) {
			if (map.getZoom() < 10) { if (marker) { map.setCenter(marker.getPoint(), 10);  } }
			});        

		GEvent.addListener(map, "zoomend", function(zmold, zmnew) {
			if (zmold < zmnew && zmnew < 7) { map.closeInfoWindow(); }
			if (zmnew < 6) { map.setZoom(7); }
			});        

        window.setTimeout(setupFootzyMarkers, 0);
      }
    }

    function getIcon(images) {
      var icon = null;
      if (images) {
        if (icons[images[0]]) {
          icon = icons[images[0]];
        } else {
          icon = new GIcon();
          icon.image = "_images/" + images[0] + ".png";
          var size = iconData[images[0]];
          icon.iconSize = new GSize(size.width, size.height);
          icon.iconAnchor = new GPoint(size.width >> 1, size.height >> 1);
          icon.shadow = "_images/" + images[1] + ".png";
          size = iconData[images[1]];
          icon.shadowSize = new GSize(size.width, size.height);
          icons[images[0]] = icon;
        }
      }
      return icon;
    }

	function createMarker(point, titel, icoon, html) {
	  var marker = new GMarker(point, { title: titel, icon: icoon });
	  GEvent.addListener(marker, "click", function() {
		  if (map.getZoom() >= 10) {
		    map.openInfoWindowHtml(point, html);
		    }
	  });
	  return marker;
	}

    function setupFootzyMarkers() {
      mgr = new GMarkerManager(map);
      for (var i in footzyLayer) {
        var layer = footzyLayer[i];
        var markers = [];
        for (var j in layer["places"]) {
          var place = layer["places"][j];
          var icon = getIcon(place["icon"]);
          var htmltxt = place["bdrtxt"];
          var posn = new GLatLng(place["posn"][0], place["posn"][1]);
          //var marker = new GMarker(posn, { title: place["name"], icon: icon });
	  var marker = createMarker(posn, place["name"], icon, htmltxt);
          markers.push(marker);
        }
        mgr.addMarkers(markers, layer["zoom"][0], layer["zoom"][1]);

      }
      mgr.refresh();
    }

    //]]>