<!--

    function load() // FUNKCJA ŁADUJĄCA
    {
      if (GBrowserIsCompatible()) 
      {
      	// Stworzenie nowego obiektu 
      	
        var map = new GMap2(document.getElementById("map")); 
        
        // Dodanie kontrolerów do obiektu map
        
		// map.addControl(new GLargeMapControl()); // DUŻE PRZYCISKI DO OBSŁUGI MAPY
		map.addControl(new GSmallMapControl()); // MAŁE PRZYCISKI DO OBSŁUGI MAPY
				
		// Ustalenie miejsca, które będzie wskazywane po przeładowaniu strony
		
		map.setCenter(new GLatLng(51.73893538728693, 19.42279815673828), 13); 
		
		// Dodanie informacji o współrzędnych danego położenia
		
		GEvent.addListener(map, "moveend", function() {  var center = map.getCenter();  
		document.getElementById("message").innerHTML = center.toString();});
			
		
		// Stworzenie informacji do dymka
        
        function createDescription()
        {
        	var description;
        	description = "<div style=\"font-size: 12px; text-align: center;\"><b>Restauracja Lublinek</b><br/>Port Lotniczy im. W. Reymonta<br/>ul. Generała Maczka 35<br/>telefon: ( +48 ) 42 6886757<br/></div>";
        	return description;
        }
        
        // Dodanie zaznaczonego punktu na mapie ze wcześciej wykonanym napisem 
        
		// Create a base icon for all of our markers that specifies the// shadow, icon dimensions, etc.
		var baseIcon = new GIcon();
		baseIcon.shadow = "http://www.google.com/mapfiles/shadow50.png";
		baseIcon.iconSize = new GSize(20, 34);
		baseIcon.shadowSize = new GSize(37, 34);
		baseIcon.iconAnchor = new GPoint(9, 34);
		baseIcon.infoWindowAnchor = new GPoint(9, 2);
		baseIcon.infoShadowAnchor = new GPoint(18, 25);
		// Creates a marker whose info window displays the letter corresponding// to the given index.
		function createMarker(point, index) 
		{  // Create a lettered icon for this point using our icon class  
			var letter = String.fromCharCode("L".charCodeAt(0));  
			var icon = new GIcon(baseIcon);  icon.image = "http://www.google.com/mapfiles/marker" + letter + ".png";  
			var marker = new GMarker(point, icon);  
			GEvent.addListener(marker, "click", function() {    marker.openInfoWindowHtml(createDescription());  });  return marker;}
		
		var bounds = map.getBounds();
		var southWest = bounds.getSouthWest();
		var northEast = bounds.getNorthEast();
		var lngSpan = northEast.lng() - southWest.lng();
		var latSpan = northEast.lat() - southWest.lat();
		var point = new GLatLng(51.72782561421863, 19.403915405273437);  map.addOverlay(createMarker(point, 1));
    	
      }
    }
    
-->
