
    function VFR_CustomGetTileUrl(a,b)
    {
        if ( b == 4 && a.x >= 8 && a.x <= 8 && a.y >= 5 && a.y <= 5 )
        {
            return "/maps/vfr/Z" + b + "/" + a.y + "/" + a.x + ".png"; 
        }
        else if ( b == 5 && a.x >= 16 && a.x <= 17 && a.y >= 10 && a.y <= 11 )
        {
            return "/maps/vfr/Z" + b + "/" + a.y + "/" + a.x + ".png"; 
        }
        else if ( b == 6 && a.x >= 32 && a.x <= 35 && a.y >= 20 && a.y <= 22 )
        {
            return "/maps/vfr/Z" + b + "/" + a.y + "/" + a.x + ".png"; 
        }
        else if ( b == 7 && a.x >= 65 && a.x <= 70 && a.y >= 40 && a.y <= 45 )
        {
            return "/maps/vfr/Z" + b + "/" + a.y + "/" + a.x + ".png"; 
        }
        else if ( b == 8 && a.x >= 131 && a.x <= 141 && a.y >= 80 && a.y <= 91 )
        {
            return "/maps/vfr/Z" + b + "/" + a.y + "/" + a.x + ".png"; 
        }
        else if ( b == 9 && a.x >= 262 && a.x <= 283 && a.y >= 161 && a.y <= 183 )
        {
            return "/maps/vfr/Z" + b + "/" + a.y + "/" + a.x + ".png"; 
        }
        else if ( b == 10 && a.x >= 524 && a.x <= 567 && a.y >= 322 && a.y <= 367 )
        {
            return "/maps/vfr/Z" + b + "/" + a.y + "/" + a.x + ".png"; 
        }
        return G_NORMAL_MAP.getTileLayers()[0].getTileUrl(a,b);
    }

    // ============================================================
    function loadVFR(thisMap)
    {
            // Create the copyright collection
            var copyCollection = new GCopyrightCollection('VFR-Bulletin Karte');
            var copyright = new GCopyright(1, new GLatLngBounds(new GLatLng(40.9798981, 0.0000000), new GLatLng(55.7765730, 22.5000000)), 0, DFS_COPYRIGHT_STRING);
            copyCollection.addCopyright(copyright);

            // Setup the tile layers
            var tilelayers = new Array();
			
            tilelayers[0] = new GTileLayer(copyCollection, 4, 10 );
            tilelayers[0].getTileUrl = VFR_CustomGetTileUrl
            tilelayers[0].getOpacity = function () {return 1.00;};//of the non transparent part
            tilelayers[0].isPng = function() {return true;}; 

			
            // Setup the options for our map layer
            var GMapTypeOptions = new Object();
            GMapTypeOptions.minResolution = 2;
            GMapTypeOptions.maxResolution = 10;
            GMapTypeOptions.errorMessage = "No map data available";
			GMapTypeOptions.alt = "zeige VFR-Bulletin Karte";
            

            // Create our custom map layer
            var custommap = new GMapType(tilelayers, new GMercatorProjection(22), "VFR", GMapTypeOptions);
            custommap.getTextColor = function() {return "#000000";};
			thisMap.addMapType(custommap);
			return custommap;
    }
