
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/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: '686 - 692 Nicklin Way',
      city: 'Currimundi',
      state: 'QLD',
      zip: '4551',
      country: 'Australia',
      infowindow: 'custom',
      infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: black;"><strong>Citroen Sunshine Coast</strong><br /><strong>New, Used, Parts + Service</strong><br />686 - 692 Nicklin Way<br />Currimundi, QLD 4511 Australia<br /><strong>(07) 5493 8311</strong></span>',
      full: '686 - 692 Nicklin Way, Currimundi, QLD, 4551, Australia',
      isdefault: true,
      addressType: 'address',
      loop: '',
      latitude: '',
      longitude: '',
      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_0') {
            map.setCenter(point, 13);
            map.addOverlay(marker);
            marker.openInfoWindowHtml(address_0.infowindowtext);
          }
        }
        else {
          map.setCenter(new GLatLng(37.4419, -122.1419), 13);
        }
      }
    );


  }
}