//function load(MapName) {

function loadMappe() {
  if (GBrowserIsCompatible()) {
    
    function CreaMappa(MapName,locazion) {    
                        var map = new GMap2(document.getElementById(MapName));
                        //var locArtemy;
                        var centerLocation =locazion; //new GLatLng(44.39957,7.460819);

                        map.centerLocation=centerLocation;
                        map.setCenter(centerLocation, 10); //10=livello di zoom iniziale (0=zoom mondiale)

                        GEvent.addListener(map, "zoomend", function(OldLevel,NewLevel) {
                              //map.setCenter(locArtemy,NewLevel);
                              map.setCenter(map.centerLocation,NewLevel);
                            });

                        map.addControl(new GLargeMapControl());
                     
                        var mapControl = new GMapTypeControl();
                        map.addControl(mapControl);

                        // Creates a marker at the given point
                        // Clicking the marker will hide it
                        function createMarker(latlng, number) {
                          var marker = new GMarker(latlng);
                          marker.value = number;
                          
                          //togliere il commento alle 4 righe seguenti per vedere il balloon 

                          //GEvent.addListener(marker,"click", function() {
                          //  var myHtml = "<b>Eccoci qua</b><br/>";
                          //  map.openInfoWindowHtml(latlng, myHtml);
                          //});

                          return marker;
                        }

                        // Add 5 markers to the map at random locations
                        map.addOverlay(createMarker(centerLocation, 1));
                    }


    CreaMappa('Map_SanRocco', new GLatLng(44.39957,7.460819));
    CreaMappa('Map_Mondovi', new GLatLng(44.417479,7.846187)); //terzo fabbricato
    //CreaMappa('Map_Mondovi', new GLatLng(44.41797,7.846595)); //secondo fabbricato


  }
}


    //]]>
