
function wagmp_map_1() {
  if(GBrowserIsCompatible()) {
    if(!document.getElementById('wagmp_map_1')) return false;
    var map = new GMap2(document.getElementById('wagmp_map_1'));
    map.enableContinuousZoom();
    map.enableDoubleClickZoom();
	map.enableDoubleClickZoom();
	map.removeMapType(G_NORMAL_MAP);
	map.removeMapType(G_HYBRID_MAP);
    map.addControl(new GSmallMapControl());
    map.addControl(new GScaleControl());
    map.addControl(new GMapTypeControl());
    map.addControl(new GOverviewMapControl());
    var geocoder = new GClientGeocoder();
    
    var fromAddress = {
      enabled: false,
      street: '',
      city: '',
      state: '',
      zip: '',
      country: '',
      full: ''
    };

    var icon_0 = new GIcon();
    icon_0.image = 'http://google.webassist.com/google/markers/pin/pacifica.png';
    icon_0.shadow = 'http://google.webassist.com/google/markers/pin/shadow.png';
    icon_0.iconSize = new GSize(31,23);
    icon_0.shadowSize = new GSize(31,23);
    icon_0.iconAnchor = new GPoint(17,22);
    icon_0.infoWindowAnchor = new GPoint(17,0);
    icon_0.printImage = 'http://google.webassist.com/google/markers/pin/pacifica.gif';
    icon_0.mozPrintImage = 'http://google.webassist.com/google/markers/pin/pacifica_mozprint.png';
    icon_0.printShadow = 'http://google.webassist.com/google/markers/pin/shadow.gif';
    icon_0.transparent = 'http://google.webassist.com/google/markers/pin/pacifica_transparent.png';
    
    var address_0 = {
      street: '',
      city: '',
      state: '',
      zip: '',
      country: '',
      infowindow: 'custom',
      infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: black;"><strong>Gharb Village:</strong><br />One of the oldest villages in Gozo on the westernmost end of the island. <br />(36.0602, 14.2085)</span>',
      full: '36.0602,14.2085',
      isdefault: false,
      addressType: 'coordinates',
      loop: '',
      latitude: '36.0602',
      longitude: '14.2085',
      markerStyle: 'Pin',
      markerColor: 'Pacifica'      
    };
    
    geocoder.getLatLng (
      address_0.full,
      function(point) {
        if(point) {
          var marker = new GMarker(point, icon_0);
          GEvent.addListener(marker, 'click', function() {
            marker.openInfoWindowHtml(address_0.infowindowtext);
          });
          if(!fromAddress.enabled || 'address_0' != 'address_1') {
            map.setCenter(point, 13);
            map.addOverlay(marker);
          }
        }
        else {
          map.setCenter(new GLatLng(37.4419, -122.1419), 13);
        }
      }
    );

    var icon_1 = new GIcon();
    icon_1.image = 'http://google.webassist.com/google/markers/traditionalflat/pacifica.png';
    icon_1.shadow = 'http://google.webassist.com/google/markers/traditionalflat/shadow.png';
    icon_1.iconSize = new GSize(34,35);
    icon_1.shadowSize = new GSize(34,35);
    icon_1.iconAnchor = new GPoint(9,23);
    icon_1.infoWindowAnchor = new GPoint(19,0);
    icon_1.printImage = 'http://google.webassist.com/google/markers/traditionalflat/pacifica.gif';
    icon_1.mozPrintImage = 'http://google.webassist.com/google/markers/traditionalflat/pacifica_mozprint.png';
    icon_1.printShadow = 'http://google.webassist.com/google/markers/traditionalflat/shadow.gif';
    icon_1.transparent = 'http://google.webassist.com/google/markers/traditionalflat/pacifica_transparent.png';
    
    var address_1 = {
      street: '',
      city: '',
      state: '',
      zip: '',
      country: '',
      infowindow: 'custom',
      infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: black;"><strong>Victoria</strong><br />Capital of Gozo. Surrounding the Fortified Citadel<br />(36.0433, 14.2421)</span>',
      full: '36.0433,14.2421',
      isdefault: true,
      addressType: 'coordinates',
      loop: '',
      latitude: '36.0433',
      longitude: '14.2421',
      markerStyle: 'Google Traditional (flat)',
      markerColor: 'Pacifica'      
    };
    
    geocoder.getLatLng (
      address_1.full,
      function(point) {
        if(point) {
          var marker = new GMarker(point, icon_1);
          GEvent.addListener(marker, 'click', function() {
            marker.openInfoWindowHtml(address_1.infowindowtext);
          });
          if(!fromAddress.enabled || 'address_1' != 'address_1') {
            map.setCenter(point, 13);
            map.addOverlay(marker);
            marker.openInfoWindowHtml(address_1.infowindowtext);
          }
        }
        else {
          map.setCenter(new GLatLng(37.4419, -122.1419), 13);
        }
      }
    );


  }
}
