// JavaScript Document

    //<![CDATA[

    if (GBrowserIsCompatible()) {

      var map = new GMap(document.getElementById("mainmap"));
      map.addControl(new GScaleControl());

   var copyright = new GCopyright(1,
                              new GLatLngBounds(new GLatLng(-90, -180), 
                                                new GLatLng(90, 180)),
                              0,
                              "in Esclusiva su AbcNapoli.com la versione digitale");

      var copyrightCollection = new GCopyrightCollection('Map Data:');
      copyrightCollection.addCopyright(copyright);
      
      // ============================================================
               CustomGetTileUrl=function(a,b){
		  if (b==14 && a.x>=8051 && a.x<=8070 && a.y>=5271 && a.y<= 5284) {
          return a.x+"_"+a.y+"_"+(17-b)+".gif"
        } else {
          return "blank.jpg";
        }
      }
      
      // ============================================================
      var tilelayers = [new GTileLayer(copyrightCollection,14,14)];
      tilelayers[0].getTileUrl = CustomGetTileUrl;
      // ============================================================
      var custommap = new GMapType(tilelayers, new GMercatorProjection(15), "Trasporti");
      map.addMapType(custommap);
      map.setCenter(new GLatLng(53.79983975761748, -2.8070068359375), 14, custommap);
    }

    
    // display a warning if the browser was not compatible
    else {
      alert("Sorry, the Google Maps API is not compatible with this browser");
    }
   
