function load() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
        map.setCenter(new GLatLng(46.06912937694263, 18.230448961257935), 13);
		map.addControl(new TextualZoomControl());

		//map.addControl(new GMapTypeControl());
      	//map.openInfoWindow(map.getCenter(),document.createTextNode("<b>Pécsi Pékinas Kft.</b><br/>7630 Pécs,Hengermalom u. 8."));

		/*	
		GEvent.addListener(map, "moveend", function() {
		  var center = map.getCenter();
		  document.getElementById("message").innerHTML = center.toString();
		});
		*/


		// 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("A".charCodeAt(0) + index);
		  var icon = new GIcon(baseIcon);
		  icon.image = "http://www.google.com/mapfiles/markerX.png";
		  var marker = new GMarker(point, icon);
		
		  GEvent.addListener(marker, "click", function() {
			marker.openInfoWindowHtml("<b style='color:#b00000; font-family:Arial; font-size:12px;'>Fordan center - Pécs</b><br/><span style='color:#333333;font-family:Arial; font-size:12px;'>7622 Pécs, Bajcsy Zsilinszky u. 14-16</span>");
		  });
		  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();
		
		
		 var point = new GLatLng(46.06921125602757, 18.230266571044922);
		 map.addOverlay(createMarker(point, 1));
				

      }

  }




//map controll

    function TextualZoomControl() {
    }
    TextualZoomControl.prototype = new GControl();

    // Creates a one DIV for each of the buttons and places them in a container
    // DIV which is returned as our control element. We add the control to
    // to the map container and return the element for the map class to
    // position properly.
    TextualZoomControl.prototype.initialize = function(map) {
      var container = document.createElement("div");

      var zoomInDiv = document.createElement("div");
      this.setButtonStyle_(zoomInDiv);
      container.appendChild(zoomInDiv);
      zoomInDiv.appendChild(document.createTextNode("Közelít"));
      GEvent.addDomListener(zoomInDiv, "click", function() {
        map.zoomIn();
      });

      var zoomOutDiv = document.createElement("div");
      this.setButtonStyle_(zoomOutDiv);
      container.appendChild(zoomOutDiv);
      zoomOutDiv.appendChild(document.createTextNode("Távolít"));
      GEvent.addDomListener(zoomOutDiv, "click", function() {
        map.zoomOut();
      });
	  
     /* var normalDiv = document.createElement("div");
      this.setButtonStyle2_(normalDiv);
      container.appendChild(normalDiv);
      normalDiv.appendChild(document.createTextNode("Térkép"));
      GEvent.addDomListener(normalDiv, "click", function() {
       map.setMapType(G_NORMAL_MAP);
      });
	  
	  var satDiv = document.createElement("div");
      this.setButtonStyle3_(satDiv);
      container.appendChild(satDiv);
      satDiv.appendChild(document.createTextNode("Szatelit"));
      GEvent.addDomListener(satDiv, "click", function() {
       map.setMapType(G_SATELLITE_MAP);
      });
	  
	  var mindketDiv = document.createElement("div");
      this.setButtonStyle4_(mindketDiv);
      container.appendChild(mindketDiv);
      mindketDiv.appendChild(document.createTextNode("Mindkét"));
      GEvent.addDomListener(mindketDiv, "click", function() {
       map.setMapType(G_HYBRID_MAP);
      });
*/
      map.getContainer().appendChild(container);
      return container;
    }

    // By default, the control will appear in the top left corner of the
    // map with 7 pixels of padding.
    TextualZoomControl.prototype.getDefaultPosition = function() {
      return new GControlPosition(G_ANCHOR_TOP_LEFT, new GSize(7, 7));
    }

    // Sets the proper CSS for the given button element.
    TextualZoomControl.prototype.setButtonStyle_ = function(button) {
      button.style.textDecoration = "none";
      button.style.color = "#413e33";
      button.style.backgroundColor = "#c9c09a";
      button.style.font = "small Arial";
      button.style.border = "2px solid #fffae7";
      button.style.padding = "2px";
      button.style.marginBottom = "3px";
      button.style.textAlign = "center";
      button.style.width = "6em";
      button.style.cursor = "pointer";
    }
	

	
	

