//<![CDATA[
function showMap() {
    if (GBrowserIsCompatible()) {

        // Ottiene l'elemento della pagina chiamato "map" (il DIV)
        //   e crea la mappa utilizzandolo come contenitore.

        var map = new GMap2(document.getElementById("mapcontainer"));

        // Aggiunge dei controlli per lo zoom e lo spostamento 
        map.addControl(new GLargeMapControl());

        // Aggiunge dei controlli "Mappa -Satellite - Ibrida"
        map.addControl(new GMapTypeControl());

        // Centra la mappa, con uno zoom di 13 
        map.setCenter(new GLatLng(45.497203,9.146783), 13);



        // Create a base icon for all of our markers that specifies the
        // shadow, icon dimensions, etc.
        var baseIcon = new GIcon();
        baseIcon.shadow = "http://www.google.com/mapfiles/shadow50.png";
        baseIcon.iconSize = new GSize(20, 34);
        baseIcon.shadowSize = new GSize(37, 34);
        baseIcon.iconAnchor = new GPoint(9, 34);
        baseIcon.infoWindowAnchor = new GPoint(9, 2);
        baseIcon.infoShadowAnchor = new GPoint(18, 25);

        // Creates a marker whose info window displays the letter corresponding
        // to the given index.
        function createMarker(point) {
            // Create a lettered icon for this point using our icon class
            var marker = new GMarker(point);

            GEvent.addListener(marker, "click", function() {

                marker.openInfoWindowHtml("<b>Technolux</b>");

            });
            return marker;
        }

        // Add markers and labels to the map at defined locations

        var point = new GLatLng(40.883888, 17.16823);
        map.addOverlay(createMarker(point));

    }
}
//]]>
    