
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());
    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/flag/desertspice.png';
    icon_0.shadow = 'http://google.webassist.com/google/markers/flag/shadow.png';
    icon_0.iconSize = new GSize(31,35);
    icon_0.shadowSize = new GSize(31,35);
    icon_0.iconAnchor = new GPoint(4,27);
    icon_0.infoWindowAnchor = new GPoint(8,3);
    icon_0.printImage = 'http://google.webassist.com/google/markers/flag/desertspice.gif';
    icon_0.mozPrintImage = 'http://google.webassist.com/google/markers/flag/desertspice_mozprint.png';
    icon_0.printShadow = 'http://google.webassist.com/google/markers/flag/shadow.gif';
    icon_0.transparent = 'http://google.webassist.com/google/markers/flag/desertspice_transparent.png';
    
    var address_0 = {
      street: '123 Eagle Street',
      city: 'City',
      state: 'QLD',
      zip: '4000',
      country: 'Australia',
      infowindow: 'custom',
      infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: black;"><strong>Parking</strong><br />Riverside Centre 123 Eagle Street</span>',
      full: '123 Eagle Street, City, QLD, 4000, Australia',
      isdefault: false,
      addressType: 'coordinates',
      loop: '',
      latitude: '-27.465792',
      longitude: '153.030341',
      markerStyle: 'Flag',
      markerColor: 'Desert Spice'      
    };
    
    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_5') {
            map.setCenter(point, 16);
            map.addOverlay(marker);
          }
        }
        else {
          map.setCenter(new GLatLng(37.4419, -122.1419), 16);
        }
      }
    );

    var icon_1 = new GIcon();
    icon_1.image = 'http://google.webassist.com/google/markers/flag/desertspice.png';
    icon_1.shadow = 'http://google.webassist.com/google/markers/flag/shadow.png';
    icon_1.iconSize = new GSize(31,35);
    icon_1.shadowSize = new GSize(31,35);
    icon_1.iconAnchor = new GPoint(4,27);
    icon_1.infoWindowAnchor = new GPoint(8,3);
    icon_1.printImage = 'http://google.webassist.com/google/markers/flag/desertspice.gif';
    icon_1.mozPrintImage = 'http://google.webassist.com/google/markers/flag/desertspice_mozprint.png';
    icon_1.printShadow = 'http://google.webassist.com/google/markers/flag/shadow.gif';
    icon_1.transparent = 'http://google.webassist.com/google/markers/flag/desertspice_transparent.png';
    
    var address_1 = {
      street: '66 Eagle St',
      city: 'City',
      state: 'QLD',
      zip: '4000',
      country: 'Australia',
      infowindow: 'custom',
      infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: black;"><strong>Parking</strong><br />66 Eagle St</span>',
      full: '66 Eagle St, City, QLD, 4000, Australia',
      isdefault: false,
      addressType: 'address',
      loop: '',
      latitude: '',
      longitude: '',
      markerStyle: 'Flag',
      markerColor: 'Desert Spice'      
    };
    
    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_5') {
            map.setCenter(point, 16);
            map.addOverlay(marker);
          }
        }
        else {
          map.setCenter(new GLatLng(37.4419, -122.1419), 16);
        }
      }
    );

    var icon_2 = new GIcon();
    icon_2.image = 'http://google.webassist.com/google/markers/flag/desertspice.png';
    icon_2.shadow = 'http://google.webassist.com/google/markers/flag/shadow.png';
    icon_2.iconSize = new GSize(31,35);
    icon_2.shadowSize = new GSize(31,35);
    icon_2.iconAnchor = new GPoint(4,27);
    icon_2.infoWindowAnchor = new GPoint(8,3);
    icon_2.printImage = 'http://google.webassist.com/google/markers/flag/desertspice.gif';
    icon_2.mozPrintImage = 'http://google.webassist.com/google/markers/flag/desertspice_mozprint.png';
    icon_2.printShadow = 'http://google.webassist.com/google/markers/flag/shadow.gif';
    icon_2.transparent = 'http://google.webassist.com/google/markers/flag/desertspice_transparent.png';
    
    var address_2 = {
      street: '',
      city: '',
      state: '',
      zip: '',
      country: '',
      infowindow: 'custom',
      infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: black;"><strong>Parking</strong><br />346 Queen St</span>',
      full: '-27.466417,153.029053',
      isdefault: false,
      addressType: 'coordinates',
      loop: '',
      latitude: '-27.466417',
      longitude: '153.029053',
      markerStyle: 'Flag',
      markerColor: 'Desert Spice'      
    };
    
    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_5') {
            map.setCenter(point, 16);
            map.addOverlay(marker);
          }
        }
        else {
          map.setCenter(new GLatLng(37.4419, -122.1419), 16);
        }
      }
    );

    var icon_3 = new GIcon();
    icon_3.image = 'http://google.webassist.com/google/markers/flag/desertspice.png';
    icon_3.shadow = 'http://google.webassist.com/google/markers/flag/shadow.png';
    icon_3.iconSize = new GSize(31,35);
    icon_3.shadowSize = new GSize(31,35);
    icon_3.iconAnchor = new GPoint(4,27);
    icon_3.infoWindowAnchor = new GPoint(8,3);
    icon_3.printImage = 'http://google.webassist.com/google/markers/flag/desertspice.gif';
    icon_3.mozPrintImage = 'http://google.webassist.com/google/markers/flag/desertspice_mozprint.png';
    icon_3.printShadow = 'http://google.webassist.com/google/markers/flag/shadow.gif';
    icon_3.transparent = 'http://google.webassist.com/google/markers/flag/desertspice_transparent.png';
    
    var address_3 = {
      street: '338 Adelaide St',
      city: 'City',
      state: 'QLD',
      zip: '4000',
      country: 'Australia',
      infowindow: 'custom',
      infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: black;"><strong>Parking</strong><br />338 Adelaide St</span>',
      full: '338 Adelaide St, City, QLD, 4000, Australia',
      isdefault: false,
      addressType: 'address',
      loop: '',
      latitude: '',
      longitude: '',
      markerStyle: 'Flag',
      markerColor: 'Desert Spice'      
    };
    
    geocoder.getLatLng (
      address_3.full,
      function(point) {
        if(point) {
          var marker = new GMarker(point, icon_3);
          GEvent.addListener(marker, 'click', function() {
            marker.openInfoWindowHtml(address_3.infowindowtext);
          });
          if(!fromAddress.enabled || 'address_3' != 'address_5') {
            map.setCenter(point, 16);
            map.addOverlay(marker);
          }
        }
        else {
          map.setCenter(new GLatLng(37.4419, -122.1419), 16);
        }
      }
    );

    var icon_4 = new GIcon();
    icon_4.image = 'http://google.webassist.com/google/markers/traditionalflat/slate.png';
    icon_4.shadow = 'http://google.webassist.com/google/markers/traditionalflat/shadow.png';
    icon_4.iconSize = new GSize(34,35);
    icon_4.shadowSize = new GSize(34,35);
    icon_4.iconAnchor = new GPoint(9,23);
    icon_4.infoWindowAnchor = new GPoint(19,0);
    icon_4.printImage = 'http://google.webassist.com/google/markers/traditionalflat/slate.gif';
    icon_4.mozPrintImage = 'http://google.webassist.com/google/markers/traditionalflat/slate_mozprint.png';
    icon_4.printShadow = 'http://google.webassist.com/google/markers/traditionalflat/shadow.gif';
    icon_4.transparent = 'http://google.webassist.com/google/markers/traditionalflat/slate_transparent.png';
    
    var address_4 = {
      street: '',
      city: '',
      state: '',
      zip: '',
      country: '',
      infowindow: 'custom',
      infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: black;"><strong>Riverside Centre</strong></span>',
      full: '-27.467127,153.030453',
      isdefault: false,
      addressType: 'coordinates',
      loop: '',
      latitude: '-27.467127',
      longitude: '153.030453',
      markerStyle: 'Google Traditional (flat)',
      markerColor: 'Slate'      
    };
    
    geocoder.getLatLng (
      address_4.full,
      function(point) {
        if(point) {
          var marker = new GMarker(point, icon_4);
          GEvent.addListener(marker, 'click', function() {
            marker.openInfoWindowHtml(address_4.infowindowtext);
          });
          if(!fromAddress.enabled || 'address_4' != 'address_5') {
            map.setCenter(point, 16);
            map.addOverlay(marker);
          }
        }
        else {
          map.setCenter(new GLatLng(37.4419, -122.1419), 16);
        }
      }
    );

    var icon_5 = new GIcon();
    icon_5.image = 'http://google.webassist.com/google/markers/pushpin/tahitisea.png';
    icon_5.shadow = 'http://google.webassist.com/google/markers/pushpin/shadow.png';
    icon_5.iconSize = new GSize(40,41);
    icon_5.shadowSize = new GSize(40,41);
    icon_5.iconAnchor = new GPoint(7,38);
    icon_5.infoWindowAnchor = new GPoint(26,4);
    icon_5.printImage = 'http://google.webassist.com/google/markers/pushpin/tahitisea.gif';
    icon_5.mozPrintImage = 'http://google.webassist.com/google/markers/pushpin/tahitisea_mozprint.png';
    icon_5.printShadow = 'http://google.webassist.com/google/markers/pushpin/shadow.gif';
    icon_5.transparent = 'http://google.webassist.com/google/markers/pushpin/tahitisea_transparent.png';
    
    var address_5 = {
      street: '',
      city: '',
      state: '',
      zip: '',
      country: '',
      infowindow: 'custom',
      infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: black;"><strong>Alchemy Restaurant + Bar</strong><br />175 Eagle St<br />Brisbane QLD 4000<br /><strong>Phone: 07 3229 3175</strong></span>',
      full: '-27.465765,153.030871',
      isdefault: true,
      addressType: 'coordinates',
      loop: '',
      latitude: '-27.465765',
      longitude: '153.030871',
      markerStyle: 'Push-Pin',
      markerColor: 'Tahiti Sea'      
    };
    
    geocoder.getLatLng (
      address_5.full,
      function(point) {
        if(point) {
          var marker = new GMarker(point, icon_5);
          GEvent.addListener(marker, 'click', function() {
            marker.openInfoWindowHtml(address_5.infowindowtext);
          });
          if(!fromAddress.enabled || 'address_5' != 'address_5') {
            map.setCenter(point, 16);
            map.addOverlay(marker);
            marker.openInfoWindowHtml(address_5.infowindowtext);
          }
        }
        else {
          map.setCenter(new GLatLng(37.4419, -122.1419), 16);
        }
      }
    );


  }
}