var ds_Module_Web_Community = ds_Base.extend({

    options: {},

    initialize: function(options) {
        this.setOptions(options);
    },

    initGmap: function (markers) {
        var map = new ds_Plugin_Gmaps({
            mapSizeX: 750,
            mapSizeY: 970,
            zoomlevel: 8
        });
        map.initMap();
        var GmapMarkers = markers;
        $each(GmapMarkers, function(oMarker, i) {
            var point = new GLatLng(oMarker.Latitude, oMarker.Longitude);
            var marker = new GMarker(point);
            GEvent.addListener(marker, "mouseover", function() {

                var sHtml = '<div class="item" style="width: 300px; min-height: 150px;">';
                sHtml += (oMarker.hash != '0') ? '<img src="/Files/Image/get/hash/' + oMarker.hash + '/width/280" title="' + oMarker.title + '" />' : '';
                sHtml += '<h4>' + oMarker.title + '</h4>';
                sHtml += (oMarker.text != '') ? oMarker.text + '</div>' : 'Interesse in een Toolboxpakket en deelname regionaal atelier? Klik hier voor het <a href="/Web/Pagina/contact" alt="Gebruik het contactformulier">contactformulier</a>.</div>';
                sHtml += '<div style="clear: both;"></div>'
                sHtml += '<p>Klik <a href="' + oMarker.website_url + '" alt="Klik hier om naar de omgeving te gaan">hier</a> om naar de omgeving te gaan.</p>';
                sHtml += '<p>Klik <a href="/Web/Edupro/bekijk-project/id/' + oMarker.id + '" alt="Klik hier om alle deelnemers uit deze omgeving te bekijken">hier</a> voor alle deelnemers.</p>';
                marker.openInfoWindowHtml(sHtml);
            });

            map.map.addOverlay(marker);
        });
    }
});

ds_Module_Web_Community.implement(new Options);
