                //<!CDATA[
                if (GBrowserIsCompatible()) {
            			var gshops = [];
                  var map;
                  
                  // create the map
                  map = new GMap2(document.getElementById("map"));
                  map.addControl(new GLargeMapControl());
                  map.addControl(new GMapTypeControl());
                  // CUSTOMISE - Change the coordinates and zoom level as appropriate
                  map.setCenter(new GLatLng(49.359839, 16.644984), 16);
                  
            
                  // A function to create the marker and set up the event window
                  function createMarker(point,name,html,zoom) {
                    var marker = new GMarker(point);
                    GEvent.addListener(marker, "click", function() {
            	      	map.panTo(point);
            	      	marker.openInfoWindowHtml(html);
                    });
                    return marker;
                  }
            
            			xmlFile = "mapdata.xml";
            			if (xmlFile) { 
            	      // Read the data from example.xml
            	      var request = GXmlHttp.create();
            	      request.open("GET", xmlFile, true);
            	      request.onreadystatechange = function() {
            	        if (request.readyState == 4) { 
            	          var xmlDoc = request.responseXML;
            	          // obtain the array of markers and loop through it
            	          var markers = xmlDoc.documentElement.getElementsByTagName("Placemark"); 
            	          for (var i = 0; i < markers.length; i++) {
            	            // obtain the attribues of each marker
            	            // připravím si HTML element - obrázek
                          var img = document.createElement('img');
                          img.style.width = "200px";
                          img.style.height = "134px";
                          img.src = 'img/adast.jpg';           
            	            var addr = markers[i].getElementsByTagName("description")[0].firstChild.nodeValue;
            	            var coords = markers[i].getElementsByTagName("coordinates")[0].firstChild.nodeValue.split(",");
            	            var lng = parseFloat(coords[1]);
            	            var lat = parseFloat(coords[0]);
            	            var point = new GLatLng(lat,lng);
            	            var name = markers[i].getElementsByTagName("name")[0].firstChild.nodeValue;
            	            var html = "";
            	            // create the marker
                        	html = "<b>"+name+"</b><br/>"+addr; 
                        	html = "<div class='map-okno'>"+html+"</div>";
                        	var marker = createMarker(point,name,html,0);
            	            map.addOverlay(marker);
            	            gshops.push(marker);
            	          }
            	        }
            	      }
            	      request.send(null);
            	    }	    
                }
            
                else {
                  alert("Sorry, the Google Maps are not compatible with this browser");
                }
                //]>
