
function initializeMaps() {
    if (GBrowserIsCompatible()) {
        var map = new google.maps.Map2(document.getElementById("map"), {mapTypes: [G_NORMAL_MAP, G_HYBRID_MAP]});

        map.addControl(new GScaleControl());
        map.addControl(new GLargeMapControl());
        map.addControl(new GMapTypeControl());
        map.addControl(new GOverviewMapControl());
        map.enableScrollWheelZoom();
        map.setMapType(G_NORMAL_MAP);

        map.setCenter(new google.maps.LatLng(55.65838, 12.53805), 14);

        var nettoIcon = new GIcon();
        nettoIcon.image = "/img/netto.png";
        nettoIcon.iconSize = new GSize(64, 64);
        nettoIcon.iconAnchor = new GPoint(5, 34);
        nettoIcon.infoWindowAnchor = new GPoint(5, 2);
        var nettoMarker = new GMarker(new google.maps.LatLng(55.65528, 12.5367), nettoIcon);

        var faktaIcon = new GIcon();
        faktaIcon.image = "/img/fakta.png";
        faktaIcon.iconSize = new GSize(64, 64);
        faktaIcon.iconAnchor = new GPoint(5, 34);
        faktaIcon.infoWindowAnchor = new GPoint(5, 2);
        var faktaMarker = new GMarker(new google.maps.LatLng(55.65110, 12.5362), faktaIcon);

        var irmaIcon = new GIcon();
        irmaIcon.image = "/img/irma.png";
        irmaIcon.iconSize = new GSize(64, 64);
        irmaIcon.iconAnchor = new GPoint(5, 34);
        irmaIcon.infoWindowAnchor = new GPoint(5, 2);
        var irmaMarker = new GMarker(new google.maps.LatLng(55.64820, 12.5274), irmaIcon);

        var superbestIcon = new GIcon();
        superbestIcon.image = "/img/superbest.png";
        superbestIcon.iconSize = new GSize(64, 64);
        superbestIcon.iconAnchor = new GPoint(5, 34);
        superbestIcon.infoWindowAnchor = new GPoint(5, 2);
        var superbestMarker = new GMarker(new google.maps.LatLng(55.6698, 12.5460), superbestIcon);

        var fotexIcon = new GIcon();
        fotexIcon.image = "/img/fotex.png";
        fotexIcon.iconSize = new GSize(64, 64);
        fotexIcon.iconAnchor = new GPoint(5, 34);
        fotexIcon.infoWindowAnchor = new GPoint(5, 2);
        var fotexMarker = new GMarker(new google.maps.LatLng(55.662, 12.561), fotexIcon);

        var homeMarker = new GMarker(new google.maps.LatLng(55.65838, 12.53805));

        map.addOverlay(homeMarker);
        map.addOverlay(irmaMarker);
        map.addOverlay(faktaMarker);
        map.addOverlay(nettoMarker);
        map.addOverlay(superbestMarker);
        map.addOverlay(fotexMarker);

        map.openInfoWindowHtml(map.getCenter(),
                               "Johan Kellers Vej 1, 1. th.<br />2450 København SV",
                               {noCloseOnClick: true, pixelOffset: new GSize(2, -24)});

    }
}

