
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 GLargeMapControl());
    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/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: '150 Fison Avenue West',
      city: 'Eagle Farm',
      state: 'QLD',
      zip: '4009',
      country: 'Australia',
      infowindow: 'custom',
      infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: black;"><strong>Parts Distribution Centre - Eagle Farm</strong><br />150 Fison Avenue West<br />Eagle Farm, QLD 4009, Australia<br /><strong>Ph (07) 3000 6000</strong><br /><strong>Fax (07) 3000 7260</strong></span>',
      full: '150 Fison Avenue West, Eagle Farm, QLD, 4009, Australia',
      isdefault: false,
      addressType: 'address',
      loop: '',
      latitude: '',
      longitude: '',
      markerStyle: 'Google Traditional (flat)',
      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_3') {
            map.setCenter(point, 11);
            map.addOverlay(marker);
          }
        }
        else {
          map.setCenter(new GLatLng(-27.435724,153.089771), 11);
        }
      }
    );
	
    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: '69 Logan Rd',
      city: 'Woolloongabba',
      state: 'QLD',
      zip: '4102',
      country: 'Australia',
      infowindow: 'custom',
      infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: black;"><strong>Service - Woolloongabba</strong><br />69 Logan Rd<br />Woolloongabba, QLD 4102 Australia<br /><strong>Phone: 1300 754 584</strong><br/><strong>Fax (07) 3008 6232</strong></span>',
      full: '69 Logan Rd, Woolloongabba, QLD, 4102, Australia',
      isdefault: false,
      addressType: 'address',
      loop: '',
      latitude: '',
      longitude: '',
      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_3') {
            map.setCenter(point, 11);
            map.addOverlay(marker);
          }
        }
        else {
          map.setCenter(new GLatLng(-27.489676,153.038641), 11);
        }
      }
    );

    var icon_2 = new GIcon();
    icon_2.image = 'http://google.webassist.com/google/markers/traditionalflat/pacifica.png';
    icon_2.shadow = 'http://google.webassist.com/google/markers/traditionalflat/shadow.png';
    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 = 'http://google.webassist.com/google/markers/traditionalflat/pacifica.gif';
    icon_2.mozPrintImage = 'http://google.webassist.com/google/markers/traditionalflat/pacifica_mozprint.png';
    icon_2.printShadow = 'http://google.webassist.com/google/markers/traditionalflat/shadow.gif';
    icon_2.transparent = 'http://google.webassist.com/google/markers/traditionalflat/pacifica_transparent.png';
    
    var address_2 = {
      street: 'Jurgens St',
      city: 'Woolloongabba',
      state: 'QLD',
      zip: '4102',
      country: 'Australia',
      infowindow: 'custom',
      infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: black;"><strong>Parts</strong><br />Jurgens St<br />Woolloongabba, QLD 4102 Australia<br /><strong>Phone: 1300 755 905</strong><br/><strong>Fax (07) 3008 6270</strong></span>',
      full: 'Jurgens St, Woolloongabba, QLD, 4102, Australia',
      isdefault: false,
      addressType: 'address',
      loop: '',
      latitude: '',
      longitude: '',
      markerStyle: 'Google Traditional (flat)',
      markerColor: 'Pacifica'      
    };
    
    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_3') {
            map.setCenter(point, 11);
            map.addOverlay(marker);
          }
        }
        else {
          map.setCenter(new GLatLng(-27.489292,153.03662), 11);
        }
      }
    );

    var icon_3 = new GIcon();
    icon_3.image = 'http://google.webassist.com/google/markers/traditionalflat/pacifica.png';
    icon_3.shadow = 'http://google.webassist.com/google/markers/traditionalflat/shadow.png';
    icon_3.iconSize = new GSize(34,35);
    icon_3.shadowSize = new GSize(34,35);
    icon_3.iconAnchor = new GPoint(9,23);
    icon_3.infoWindowAnchor = new GPoint(19,0);
    icon_3.printImage = 'http://google.webassist.com/google/markers/traditionalflat/pacifica.gif';
    icon_3.mozPrintImage = 'http://google.webassist.com/google/markers/traditionalflat/pacifica_mozprint.png';
    icon_3.printShadow = 'http://google.webassist.com/google/markers/traditionalflat/shadow.gif';
    icon_3.transparent = 'http://google.webassist.com/google/markers/traditionalflat/pacifica_transparent.png';
    

    var address_3 = {
      street: '95 Breakfast Creek Road',
      city: 'Newstead',
      state: 'QLD',
      zip: '4006',
      country: 'Australia',
      infowindow: 'custom',
      infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: black;"><strong>Showroom and Service</strong><br />95 Breakfast Creek Road<br />Newstead, QLD 4006 Australia<br /><strong>Phone: 1300 854 394</strong></span>',
      full: '95 Breakfast Creek Road, Newstead, QLD, 4006, Australia',
      isdefault: false,
      addressType: 'address',
      loop: '',
      latitude: '',
      longitude: '',
      markerStyle: 'Google Traditional (flat)',
      markerColor: 'Pacifica'      
    };
    
    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_3') {
            map.setCenter(point, 11);
            map.addOverlay(marker);
            marker.openInfoWindowHtml(address_3.infowindowtext);
          }
        }
        else {
          map.setCenter(new GLatLng(-27.44616,153.042607), 11);
        }
      }
    );
	
	 var icon_4 = new GIcon();
    icon_4.image = 'http://google.webassist.com/google/markers/traditionalflat/pacifica.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/pacifica.gif';
    icon_4.mozPrintImage = 'http://google.webassist.com/google/markers/traditionalflat/pacifica_mozprint.png';
    icon_4.printShadow = 'http://google.webassist.com/google/markers/traditionalflat/shadow.gif';
    icon_4.transparent = 'http://google.webassist.com/google/markers/traditionalflat/pacifica_transparent.png';
    
    var address_4 = {
      street: 'Evelyn Street',
      city: 'Newstead',
      state: 'QLD',
      zip: '4006',
      country: 'Australia',
      infowindow: 'custom',
      infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: black;"><strong>Service - Newstead</strong><br />Evelyn Street<br />Newstead, QLD 4006, Australia<br /><strong>Ph 1300 755 965 </strong><br /><strong>Fax (07) 3000 7260</strong></span>',
      full: 'Evelyn Street, Newstead, QLD, 4006, Australia',
      isdefault: false,
      addressType: 'address',
      loop: '',
      latitude: '',
      longitude: '',
      markerStyle: 'Google Traditional (flat)',
      markerColor: 'Pacifica'      
    };
    
    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_3') {
            map.setCenter(point, 11);
            map.addOverlay(marker);
          }
        }
        else {
          map.setCenter(new GLatLng(-27.446941,153.043765), 11);
        }
      }
    );


  }
}