function wagt_map() {
  var address_1 = {
      street: 'Pařížská 11',
      city: 'Praha',
      state: 'Czech Republic',
      zip: '110 00',
      country: '',
      infowindow: 'default',
      infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: #000;"><strong>Address:</strong><br />Pařížská 11<br />Praha, Czech Republic 110 00</span>',
      full: 'Pařížská 11, Praha, Czech Republic, 110 00',
      isdefault: true
   };
   var address_2 = {
      street: 'Vsehrdova 23',
      city: 'Praha',
      state: 'Czech Republic',
      zip: '110 00',
      country: '',
      infowindow: 'default',
      infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: #000;"><strong>Address:</strong><br />Vsehrdova 23<br />Praha, Czech Republic 110 00</span>',
      full: 'Vsehrdova 23, Praha, Czech Republic, 110 00',
      isdefault: true
    };
    var address_3 = {
      street: 'V lesicku 1',
      city: 'Praha',
      state: 'Czech Republic',
      zip: '150 00',
      country: '',
      infowindow: 'default',
      infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: #000;"><strong>Address:</strong><br />V lesicku 1<br />Praha, Czech Republic 150 00</span>',
      full: 'V lesicku 1, Praha, Czech Republic, 150 00',
      isdefault: true
    };
  
  if(GBrowserIsCompatible()) {
  	var address_0 = null;
  	var map = null;
    if(document.getElementById('wagt_map_3')){
     	address_0 = address_3;
     	map = new GMap2(document.getElementById('wagt_map_3'));
    }
    else if(document.getElementById('wagt_map_2')){
    	address_0 = address_2;
    	map = new GMap2(document.getElementById('wagt_map_2'));
    }
    else{ 
    	address_0 = address_1;
    	map = new GMap2(document.getElementById('wagt_map_1'));
    }
  
    map.enableContinuousZoom();
    map.enableDoubleClickZoom();
    map.addControl(new GSmallMapControl());
    map.addControl(new GMapTypeControl());
    var geocoder = new GClientGeocoder();
    
    var icon = new GIcon();
    var markerStyle = 'Google Traditional (pillow)';
    var markerColor = 'Yosemite';
    icon.image = 'http://google.webassist.com/google/markers/traditionalpillow/yosemite.png';
    icon.shadow = 'http://google.webassist.com/google/markers/traditionalpillow/shadow.png';
    icon.iconSize = new GSize(34,35);
    icon.shadowSize = new GSize(34,35);
    icon.iconAnchor = new GPoint(9,23);
    icon.infoWindowAnchor = new GPoint(19,0);
    icon.printImage = 'http://google.webassist.com/google/markers/traditionalpillow/yosemite.gif';
    icon.mozPrintImage = 'http://google.webassist.com/google/markers/traditionalpillow/yosemite_mozprint.png';
    icon.printShadow = 'http://google.webassist.com/google/markers/traditionalpillow/shadow.gif';
    icon.transparent = 'http://google.webassist.com/google/markers/traditionalpillow/yosemite_transparent.png';

    geocoder.getLatLng (
      address_0.full,
      function(point) {
        if(point) {
          map.setCenter(point, 13);
          var marker = new GMarker(point, icon);
          GEvent.addListener(marker, 'click', function() {
            marker.openInfoWindowHtml(address_0.infowindowtext);
          });
          map.addOverlay(marker);
          marker.openInfoWindowHtml(address_0.infowindowtext);
        }
        else {
          map.setCenter(new GLatLng(37.4419, -122.1419), 13);
        }
      }
    );

  }
}