    //<![CDATA[

    function load() {


    if (GBrowserIsCompatible()) {

      var map = new GMap(document.getElementById("map"));
      //map.addControl(new GScaleControl());
      map.addControl(new GLargeMapControl());
      //var ovcontrol = new GOverviewMapControl();
      //map.addControl(ovcontrol);
			//map.addControl(new GMapTypeControl());
			map.enableContinuousZoom();
      map.enableDoubleClickZoom();
      
      //var ovmap = ovcontrol.getOverviewMap();

//      GEvent.addListener(ovmap, "zoomend", function(oldZ, newZ) {
//  				ovmap.setZoom(0);
//				});
      
      
      // ============================================================
      // ====== Create a copyright entry =====
      var copyright = new GCopyright(1,
          new GLatLngBounds(new GLatLng(-90.3,-180),new GLatLng(90,180) ),
          0, "Enrico Fustinoni");


      // ============================================================
      // ====== Create a copyright collection =====
      // ====== and add the copyright to it   =====
      var copyrightCollection = new GCopyrightCollection('Map Data:');
      copyrightCollection.addCopyright(copyright);
      

      // ============================================================
      // == Write our own getTileUrl function ========
      // In this case the tiles are names like  8053_5274_3.jpg      
      CustomGetTileUrl=function(a,b){
          //copyright.text = a.x+"_"+a.y+"_"+ b ;
          return  (b) + "/" + a.x + "_" + a.y + ".jpg"
      }


      // ============================================================
      // ===== Create the GTileLayer =====
      // ===== adn apply the CustomGetTileUrl to it
      var tilelayers = [new GTileLayer(copyrightCollection,0,6)];
      tilelayers[0].getTileUrl = CustomGetTileUrl;
      
      
      // ============================================================
      // ===== Create the GMapType =====
      // ===== and add it to the map =====
      var custommap = new GMapType(tilelayers, new GMercatorProjection(15), "Venice",{errorMessage:""});
      map.addMapType(custommap);
     

      map.setCenter(new GLatLng(0,0), 0, custommap);
    }

    
    // display a warning if the browser was not compatible
    else {
      alert("Sorry, the Google Maps API is not compatible with this browser");
    }

    // This Javascript is based on code provided by the
    // Blackpool Community Church Javascript Team
    // http://www.commchurch.freeserve.co.uk/   
    // http://www.econym.demon.co.uk/googlemaps/



// Monitor the window resize event and let the map know when it occurs
 //if (window.attachEvent) { window.attachEvent("onresize", function() {this.map.onResize()} ); } else { window.addEventListener("resize", function() {this.map.onResize()} , false); }

}

    //]]>

