    var map = null;
    var geocoder = null;

    function initialize(address) {
      if (GBrowserIsCompatible()) {
        map = new GMap2(document.getElementById("zakazkaMapa"));
        map.addControl(new GLargeMapControl());
        map.addControl(new GMapTypeControl());
        map.size = 
        geocoder = new GClientGeocoder();
        showAddress(address);
      }
    }

    function showAddress(address) {
      if (geocoder) {
        geocoder.getLatLng(
          address,
          function(point) {
            if (!point) {
              alert(address + " not found");
            } else {
              map.setCenter(point, 16);
              var marker = new GMarker(point);
              map.addOverlay(marker);
              marker.openInfoWindowHtml(address);
            }
          }
        );
      }
    }
    
    function showMap(address) {
    	initialize(address);
    }
    function hideMap() {
    	map = null;
    }

