    //<![CDATA[

    if (GBrowserIsCompatible()) {
    
      // arrays to hold copies of the markers and html
      // because the function closure trick doesnt work there
      var gmarkers = [];
      var htmls = [];
      var i = 0;
	  
	  // Create some custom icons
      
      // This icon uses the same shape as the default Google marker
      // So we can use its details for everything except the image 
      var blueIcon = new GIcon();
      blueIcon.image = "coldmarker.png";
      blueIcon.shadow = "http://www.google.com/mapfiles/shadow50.png";
      blueIcon.iconSize = new GSize(20, 34);
      blueIcon.shadowSize = new GSize(37, 34);
      blueIcon.iconAnchor = new GPoint(9, 34);
      blueIcon.infoWindowAnchor = new GPoint(9, 2);
      blueIcon.infoShadowAnchor = new GPoint(18, 25);
      blueIcon.transparent = "http://www.google.com/intl/en_ALL/mapfiles/markerTransparent.png";
      blueIcon.printImage = "coldmarkerie.gif";
      blueIcon.mozPrintImage = "coldmarkerff.gif";


      // This icon is a different shape, so we need our own settings       
      var hotelIcon = new GIcon();
      hotelIcon.image = "_img/nw.png";
      hotelIcon.shadow = "http://www.google.com/mapfiles/shadow50.png";
      hotelIcon.iconSize = new GSize(20, 34);
      hotelIcon.shadowSize = new GSize(36, 34);
      hotelIcon.iconAnchor = new GPoint(5, 34);
      hotelIcon.infoWindowAnchor = new GPoint(5, 2);
      hotelIcon.infoShadowAnchor = new GPoint(14, 25);
      hotelIcon.transparent = "_img/nw.png";
      hotelIcon.printImage = "_img/nw.gif";
      hotelIcon.mozPrintImage = "_img/nw.gif";
      
      // An array of GIcons, to make the selection easier
      var icons = [];
      icons[0] = blueIcon;
      icons[1] = hotelIcon;

      // A function to create the marker and set up the event window
      function createMarker(point,name,html,icontype) {
        var marker = new GMarker(point,icons[icontype]);
        GEvent.addListener(marker, "click", function() {
          marker.openInfoWindowHtml(html);
        });
        // save the info
        gmarkers[i] = marker;
        htmls[i] = html;
        i++;
        return marker;
      }


      // This function picks up the click and opens the corresponding info window
      function myclick(i) {
        gmarkers[i].openInfoWindowHtml(htmls[i]);
      }

      var map = new GMap2(document.getElementById("map"));
	  map.addControl(new GSmallMapControl());
      map.addControl(new GMapTypeControl());
	  map.setCenter(new GLatLng(52.366916, 4.893189), 13);


      // Read the data from maps_en.xml
      var request = GXmlHttp.create();
      request.open("GET", "maps/maps_fr.xml", true);
      request.onreadystatechange = function() {
        if (request.readyState == 4) {
          var xmlDoc = GXml.parse(request.responseText);
          // obtain the array of markers and loop through it
          var markers = xmlDoc.documentElement.getElementsByTagName("marker");
          
          for (var i = 0; i < markers.length; i++) {
            // obtain the attribues of each marker
            var lat = parseFloat(markers[i].getAttribute("lat"));
            var lng = parseFloat(markers[i].getAttribute("lng"));
            var point = new GLatLng(lat,lng);
            var html = markers[i].getAttribute("html");
            var label = markers[i].getAttribute("label");
			var icontype = parseInt(markers[i].getAttribute("icontype"));
            // create the marker
            var marker = createMarker(point,label,html,icontype);
            map.addOverlay(marker);
            if (i==0) {
            	GEvent.trigger(marker,  "click");
            }            
          }
        }
      }
      request.send(null);
    }

    else {
      alert("Helaas, Google Maps API is niet geschikt voor uw browser");
    }

    //]]>
