
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.addControl(new GSmallMapControl());
    map.addControl(new GScaleControl());
    map.addControl(new GMapTypeControl());
    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/traditionalflat/pacifica.png';
    icon_0.shadow = 'http://google.webassist.com/google/markers/traditionalflat/shadow.png';
    icon_0.iconSize = new GSize(34,35);
    icon_0.shadowSize = new GSize(34,35);
    icon_0.iconAnchor = new GPoint(9,23);
    icon_0.infoWindowAnchor = new GPoint(19,0);
    icon_0.printImage = 'http://google.webassist.com/google/markers/traditionalflat/pacifica.gif';
    icon_0.mozPrintImage = 'http://google.webassist.com/google/markers/traditionalflat/pacifica_mozprint.png';
    icon_0.printShadow = 'http://google.webassist.com/google/markers/traditionalflat/shadow.gif';
    icon_0.transparent = 'http://google.webassist.com/google/markers/traditionalflat/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>C Coy<br />The Royal Hamilton Light Infantry (WR)</strong><br />3230 Fairview Street,<br />Burlington, ON</span>',
      full: '43.3497,-79.79',
      isdefault: false,
      addressType: 'coordinates',
      loop: '',
      latitude: '43.3497',
      longitude: '-79.79',
      markerStyle: 'Google Traditional (pillow)',
      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_2') {
            map.setCenter(point, 12);
            map.addOverlay(marker);
          }
        }
        else {
          map.setCenter(new GLatLng(43.3084, -79.8275), 12);
        }
      }
    );

    var icon_1 = new GIcon();
    icon_1.image = 'http://google.webassist.com/google/markers/traditionalpillow/pacifica.png';
    icon_1.shadow = 'http://google.webassist.com/google/markers/traditionalpillow/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/traditionalpillow/pacifica.gif';
    icon_1.mozPrintImage = 'http://google.webassist.com/google/markers/traditionalpillow/pacifica_mozprint.png';
    icon_1.printShadow = 'http://google.webassist.com/google/markers/traditionalpillow/shadow.gif';
    icon_1.transparent = 'http://google.webassist.com/google/markers/traditionalpillow/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>HQ & B Coy<br />The Royal Hamilton Light Infantry (WR)</strong><br />The Honorary Lieutenant-Colonel<br />John Weir Fooote, VC, CD Armoury<br />200 James Street North<br />Hamilton, ON</span>',
      full: '43.2618,-79.8668',
      isdefault: false,
      addressType: 'coordinates',
      loop: '',
      latitude: '43.2618',
      longitude: '-79.8668',
      markerStyle: 'Google Traditional (pillow)',
      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_2') {
            map.setCenter(point, 12);
            map.addOverlay(marker);
          }
        }
        else {
          map.setCenter(new GLatLng(43.3084, -79.8275), 12);
        }
      }
    );

/*var icon_2 = new GIcon();
    icon_2.image = '';
    icon_2.shadow = '';
    icon_2.iconSize = new GSize(34,35);
    icon_2.shadowSize = new GSize(34,35);
    icon_2.iconAnchor = new GPoint(9,23);
    icon_2.infoWindowAnchor = new GPoint(19,0);
    icon_2.printImage = '';
    icon_2.mozPrintImage = '';
    icon_2.printShadow = '';
    icon_2.transparent = '';
*/    
    var address_2 = {
      street: '',
      city: '',
      state: '',
      zip: '',
      country: '',
	  infowindow: '',
      infowindowtext: '',
      full: '43.3084,-79.8275',
      isdefault: false,
      addressType: 'coordinates',
      loop: '',
      latitude: '43.3084',
      longitude: '-79.8275',
      markerStyle: '',
      markerColor: ''      
    };
    
    geocoder.getLatLng (
      address_2.full,
      function(point) {
        if(point) {
          var marker = new GMarker(point, icon_2);
          GEvent.addListener(marker, 'click', function() {
            marker.openInfoWindowHtml(address_2.infowindowtext);
          });
          if(!fromAddress.enabled || 'address_2' != 'address_2') {
            map.setCenter(point, 12);
            map.addOverlay(marker);
            marker.openInfoWindowHtml(address_2.infowindowtext);
          }
        }
        else {
          map.setCenter(new GLatLng(43.3084, -79.8275), 12);
        }
      }
    );


  }
}