
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 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://www.retreatcare.com/images/sun.png';
    icon_0.shadow = 'http://www.retreatcare.com/images/shadow.png';
    icon_0.iconSize = new GSize(25,14);
    icon_0.shadowSize = new GSize(25,14);
    icon_0.iconAnchor = new GPoint(9,13);
    icon_0.infoWindowAnchor = new GPoint(9,0);
    icon_0.printImage = 'http://google.webassist.com/google/markers/house/pacifica.gif';
    icon_0.mozPrintImage = 'http://google.webassist.com/google/markers/house/pacifica_mozprint.png';
    icon_0.printShadow = 'http://google.webassist.com/google/markers/house/shadow.gif';
    icon_0.transparent = 'http://google.webassist.com/google/markers/house/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;">The Retreat<br />Belle Vue Road<br />Plympton, Plymouth<br />PL9 9NR</span>',
      full: '50.351122,-4.10673',
      isdefault: true,
      addressType: 'coordinates',
      loop: '',
      latitude: '50.348897',
      longitude: '-4.106848',
      markerStyle: 'House',
      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_0') {
            map.setCenter(point, 15);
            map.addOverlay(marker);

          }
        }
        else {
          map.setCenter(new GLatLng(50.361014,-4.106483), 15);
        }
      }
    );


  }

}