	var map;
	var geocoder;

	function load() {
      if (GBrowserIsCompatible()) {

        map = new GMap2(document.getElementById("map"));
		map.addControl(new GMapTypeControl());
		map.addControl(new GLargeMapControl());
		map.addControl(new GScaleControl());
		map.enableDoubleClickZoom();
		map.enableScrollWheelZoom();
		map.enableContinuousZoom();
        map.setCenter(new GLatLng(48.5, 19.7), 7);
		GEvent.addDomListener(map.getContainer(), "DOMMouseScroll", wheelevent);
		map.getContainer().onmousewheel = wheelevent; 

		geocoder = new GClientGeocoder();

		map.hideControls();
		GEvent.addListener(map, "mouseover", function(){
		map.showControls();
		});
		GEvent.addListener(map, "mouseout", function(){
		map.hideControls();
		});

	  }
    }

	function wheelevent(e) {
		if (!e){
			e = window.event
		}
		if (e.preventDefault) {
			e.preventDefault()
		}
		e.returnValue = false;
	}

    function showAddress(address, zoom) {
      if (!zoom) zoom = 13;
      if (geocoder) {
        geocoder.getLatLng(address, function(point) {
            if (!point) {
              alert(address + " na mape nie je.");
            } else {
              map.setCenter(point, zoom);
            }
          });
      }
    }

