
    function initialize() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map_canvas"));
        map.setMapType(G_NORMAL_MAP);
        map.setCenter(new GLatLng(49, 14), 4);
        map.setUIToDefault();


        // Create a base icon for all of our markers that specifies the
        // shadow, icon dimensions, etc.
        var baseIcon = new GIcon(G_DEFAULT_ICON);
        baseIcon.shadow = "http://www.fly4less.cz/images/markershadow.png";
        baseIcon.iconSize = new GSize(22, 22);
        baseIcon.shadowSize = new GSize(36, 24);
        baseIcon.iconAnchor = new GPoint(9, 34);
        baseIcon.infoWindowAnchor = new GPoint(9, 2);
 
        // Creates a marker whose info window displays the letter corresponding
        // to the given index.
        function createMarker(point, index, content) {
          // Create a lettered icon for this point using our icon class
          var letter = String.fromCharCode("A".charCodeAt(0) + index);
          var letteredIcon = new GIcon(baseIcon);
          // letteredIcon.image = "http://www.google.com/mapfiles/marker" + letter + ".png";
          letteredIcon.image = "http://www.fly4less.cz/images/marker.png";
 
          // Set up our GMarkerOptions object
          markerOptions = { icon:letteredIcon };
          var marker = new GMarker(point, markerOptions);
 
          GEvent.addListener(marker, "click", function() {
            // marker.openInfoWindowHtml("<b>" + letter + "</b>");
            // marker.openInfoWindowHtml("<b><u>{/literal}{if $land_name}{$land_name}{/if}{literal}</u></b><br /><a href=\"{/literal}{if $land_id}../zeme/{$land_id}-{$land_name}{/if}{literal}\">otevřít detail</a>");
            marker.openInfoWindowHtml(content);
          });
          return marker;
        }
 
        // Add 10 markers to the map at random locations
        var bounds = map.getBounds();
        var southWest = bounds.getSouthWest();
        var northEast = bounds.getNorthEast();
        var lngSpan = northEast.lng() - southWest.lng();
        var latSpan = northEast.lat() - southWest.lat();
        
        
        // 50.00773901463687	8.68798814713955
        
        // for (var i = 0; i < 10; i++) {
        //   var latlng = new GLatLng(southWest.lat() + latSpan * Math.random(),
        //     southWest.lng() + lngSpan * Math.random());
        //   map.addOverlay(createMarker(latlng, i));
        // }
        
          content = "<b>Evropa</b><br />";
          content = content+"<hr />";
          content = content+"<a href=\"http://www.fly4less.cz/zeme/4-Nemecko\" class=\"gland\">Německo <span class=\"ginfo\">[informace o zemi]</span></a><br />";
          content = content+"<a href=\"http://www.fly4less.cz/zeme/11-Recko\" class=\"gland\">Řecko <span class=\"ginfo\">[informace o zemi]</span></a><br />";
          content = content+"<a href=\"http://www.fly4less.cz/zeme/10-Italie\" class=\"gland\">Itálie <span class=\"ginfo\">[informace o zemi]</span></a><br />";
          content = content+"<a href=\"http://www.fly4less.cz/zeme/9-Norsko\" class=\"gland\">Norsko <span class=\"ginfo\">[informace o zemi]</span></a><br />";
          content = content+"<a href=\"http://www.fly4less.cz/zeme/8-velkabritanie\" class=\"gland\">Velká Británie <span class=\"ginfo\">[informace o zemi]</span></a><br />";
          content = content+"<a href=\"http://www.fly4less.cz/zeme/7-Francie\" class=\"gland\">Francie <span class=\"ginfo\">[informace o zemi]</span></a><br />";
          content = content+"<a href=\"http://www.fly4less.cz/zeme/6-Spanelsko\" class=\"gland\">Španělsko <span class=\"ginfo\">[informace o zemi]</span></a><br />";
          content = content+"<a href=\"http://www.fly4less.cz/zeme/5-Rakousko\" class=\"gland\">Rakousko <span class=\"ginfo\">[informace o zemi]</span></a>";
          
          var latlng = new GLatLng("48","10");
          map.addOverlay(createMarker(latlng, "1", content));
          
          
          content = "<b>Asie</b><br />";
          content = content+"<hr />";
          content = content+"<a href=\"http://www.fly4less.cz/zeme/17-japonsko\" class=\"gland\">Japonsko <span class=\"ginfo\">[informace o zemi]</span></a><br />";
          content = content+"<a href=\"http://www.fly4less.cz/zeme/16-cina\" class=\"gland\">Čína <span class=\"ginfo\">[informace o zemi]</span></a><br />";
          content = content+"<a href=\"http://www.fly4less.cz/zeme/15-indie\" class=\"gland\">Indie <span class=\"ginfo\">[informace o zemi]</span></a><br />";
          content = content+"<a href=\"http://www.fly4less.cz/zeme/14-thajsko\" class=\"gland\">Thajsko <span class=\"ginfo\">[informace o zemi]</span></a><br />";
          content = content+"<a href=\"http://www.fly4less.cz/zeme/13-turecko\" class=\"gland\">Turecko <span class=\"ginfo\">[informace o zemi]</span></a><br />";
           
          var latlng = new GLatLng("14.349547837185362","100.3447262942791");
          map.addOverlay(createMarker(latlng, "1", content));
          
          
          content = "<b>Afrika</b><br />";
          content = content+"<hr />";
          content = content+"<a href=\"http://www.fly4less.cz/zeme/35-jar\" class=\"gland\">Jihoafrická republika <span class=\"ginfo\">[informace o zemi]</span></a><br />";
          content = content+"<a href=\"http://www.fly4less.cz/zeme/41-tanzanie\" class=\"gland\">Tanzánie <span class=\"ginfo\">[informace o zemi]</span></a><br />";
          content = content+"<a href=\"http://www.fly4less.cz/zeme/36-kena\" class=\"gland\">Keňa <span class=\"ginfo\">[informace o zemi]</span></a><br />";
          content = content+"<a href=\"http://www.fly4less.cz/zeme/34-jar\" class=\"gland\">Ghana <span class=\"ginfo\">[informace o zemi]</span></a><br />";
          content = content+"<a href=\"http://www.fly4less.cz/zeme/33-jar\" class=\"gland\">Alžírsko <span class=\"ginfo\">[informace o zemi]</span></a><br />";
          content = content+"<a href=\"http://www.fly4less.cz/zeme/32-jar\" class=\"gland\">Egypt <span class=\"ginfo\">[informace o zemi]</span></a><br />";
          content = content+"<a href=\"http://www.fly4less.cz/zeme/37-maroko\" class=\"gland\">Maroko <span class=\"ginfo\">[informace o zemi]</span></a><br />";

          var latlng = new GLatLng("-29.305561325527698","22.825195044279");
          map.addOverlay(createMarker(latlng, "1", content));
          
          
          content = "<b>Severní a Jižní Amerika</b><br />";
          content = content+"<hr />";
          content = content+"<a href=\"http://www.fly4less.cz/zeme/42-usa\" class=\"gland\">Spojené státy státy americké <span class=\"ginfo\">[informace o zemi]</span></a><br />";
          content = content+"<a href=\"http://www.fly4less.cz/zeme/59-ekvador\" class=\"gland\">Ekvádor <span class=\"ginfo\">[informace o zemi]</span></a><br />";
          content = content+"<a href=\"http://www.fly4less.cz/zeme/58-peru\" class=\"gland\">Peru <span class=\"ginfo\">[informace o zemi]</span></a><br />";
          content = content+"<a href=\"http://www.fly4less.cz/zeme/54-brazilie\" class=\"gland\">Brazílie <span class=\"ginfo\">[informace o zemi]</span></a><br />";
          content = content+"<a href=\"http://www.fly4less.cz/zeme/49-kuba\" class=\"gland\">Kuba <span class=\"ginfo\">[informace o zemi]</span></a><br />";
          content = content+"<a href=\"http://www.fly4less.cz/zeme/44-mexiko\" class=\"gland\">Mexiko <span class=\"ginfo\">[informace o zemi]</span></a><br />";
          content = content+"<a href=\"http://www.fly4less.cz/zeme/43-kanada\" class=\"gland\">Kanada <span class=\"ginfo\">[informace o zemi]</span></a><br />";
          content = content+"<a href=\"http://www.fly4less.cz/zeme/55-argentina\" class=\"gland\">Argentina <span class=\"ginfo\">[informace o zemi]</span></a><br />";
          
          var latlng = new GLatLng("37.23032838760387","-101.9794924557209");
          map.addOverlay(createMarker(latlng, "1", content));
          
          content = "<b>Austrálie</b><br />";
          content = content+"<hr />";
          content = content+"<a href=\"http://www.fly4less.cz/zeme/60-Australie\" class=\"gland\">Austrálie <span class=\"ginfo\">[informace o zemi]</span></a><br />";
          content = content+"<a href=\"http://www.fly4less.cz/zeme/61-NovyZeland\" class=\"gland\">Nový Zéland <span class=\"ginfo\">[informace o zemi]</span></a><br />";
          
          var latlng = new GLatLng("-23.079731762449878","134.82421875");
          map.addOverlay(createMarker(latlng, "1", content));
           
        
      }
    }