function map_init() {
    makeLayer("collecto", {
        style_mark: {
            "default": {
                externalGraphic: clusterStyle("img/collecto_map.gif", "cluster/collecto/off/${count}.gif", media_url + "bruxelles_mobilite_media/"),
                graphicHeight: clusterStyle(23,35),
                graphicWidth: clusterStyle(19,32),
                graphicXOffset: clusterStyle(-9.5, -16),
                graphicYOffset: clusterStyle(-23,-35),
                cursor: clusterStyle("default", "pointer")
            },
            "select": {
                externalGraphic: clusterStyle("img/collecto_map.gif", "cluster/collecto/on/${count}.gif", media_url + "bruxelles_mobilite_media/")
            }
        },
        strategies: [new LimitedClusterStrategy({ distance: 35 })]
    }, {
        format: function (data) {
            data.ID = parseInt(data.ID);
            var code = "<b>{ID}</b> - " ;
            var format ="<b>{ARRET}</b><br/><i>{ADRESSE}</i><br/>"
            if (data.ID) format = code + format ;
            return format ;
        },
        fr: {
            "NOM_ARRET": "ARRET"
        },
        nl: {
            "NAAM_HALTE": "ARRET",
            "ADRES": "ADRESSE"
        }
    }, 
    { 
        switchs: [true],
        titles: {fr: ["Collecto"], nl: ["Collecto"]},
        icons: {all: [media_url + "bruxelles_mobilite_media/img/collecto_map.gif"]},
        visible: false
    }, 
    {
        url: media_url + "categories_files/collecto.json"
    });

    makeLayer("taxi", {
        style_mark: {
            "default": {
                externalGraphic: clusterStyle("img/taxi_map.gif", "cluster/taxi/off/${count}.gif", media_url + "bruxelles_mobilite_media/"),
                graphicHeight: clusterStyle(23,35),
                graphicWidth: clusterStyle(19,32),
                graphicXOffset: clusterStyle(-9.5, -16),
                graphicYOffset: clusterStyle(-23,-35),
                cursor: clusterStyle("default", "pointer")
            },
            "select": {
                externalGraphic: clusterStyle("img/taxi_map.gif", "cluster/taxi/on/${count}.gif", media_url + "bruxelles_mobilite_media/")
            }
        },
        strategies: [new LimitedClusterStrategy({ distance: 35 })]
    }, {
        format: "<b>{ARRET}</b><br/><i>{ADRESSE}</i><br/><i>{MU}</i><br/>",
        fr: {
            "NOM": "ARRET",
            "MU_FN": "MU"
        },
        nl: {
            "NAAM": "ARRET",
            "ADRES": "ADRESSE",
            "MU_DN": "MU"
        }
    },
    { 
        switchs: [true],
        titles: {fr: ["Taxi"], nl: ["Taxi"]},
        icons: {all: [media_url + "bruxelles_mobilite_media/img/taxi_map.gif"]}
    },
    {
        url: media_url + "categories_files/taxi.json"
    });

    var prefix = media_url + "bruxelles_mobilite_media/cluster/" ;
    for (var i = 1; i<17; ++i) {
        var c = i;
        if (c < 10) c = "0" + c ;
        $.preLoadImages(
            prefix + "taxi/on/" + c + ".gif", prefix + "taxi/off/" + c + ".gif",
            prefix + "collecto/on/" + c + ".gif", prefix + "collecto/off/" + c + ".gif"
        );
    }
}

