


function wagt_map_1() {
  if(GBrowserIsCompatible()) {
    if(!document.getElementById('wagt_map_1')) return false;
	
    var map = new GMap2(document.getElementById('wagt_map_1'));
	map.setCenter(new GLatLng(37.4419, -122.1419), 13);
    map.enableContinuousZoom();
    map.enableDoubleClickZoom();
    map.addControl(new GLargeMapControl());
	
	
	
    var geocoder = new GClientGeocoder();
	var icon = new GIcon();
    var markerStyle = 'Push-Pin';
    var markerColor = 'Yosemite';
    icon.image = 'http://maps.google.com/mapfiles/ms/icons/red-pushpin.png';
    icon.shadow = 'http://google.webassist.com/google/markers/pushpin/shadow.png';
    icon.iconSize = new GSize(40,41);
    icon.shadowSize = new GSize(40,41);
    icon.iconAnchor = new GPoint(7,36);
    icon.infoWindowAnchor = new GPoint(26,4);
    icon.printImage = 'http://google.webassist.com/google/markers/pushpin/yosemite.gif';
    icon.mozPrintImage = 'http://google.webassist.com/google/markers/pushpin/yosemite_mozprint.png';
    icon.printShadow = 'http://google.webassist.com/google/markers/pushpin/shadow.gif';
    icon.transparent = 'http://google.webassist.com/google/markers/pushpin/yosemite_transparent.png';
	
	// ground overlay
        var boundaries = new GLatLngBounds(new GLatLng(44.35624686756641,-116.1558473839809), new GLatLng(49.05014532909851,-103.9714757153706));
        var oldmap = new GGroundOverlay("http://www.hrcxi.org/maps/montana-county-map.png", boundaries);
        map.addOverlay(oldmap);
	
    var address_0 = {
      street: '2229 5th Ave',
      city: 'Havre',
      state: 'MT',
      zip: '59501',
      country: 'USA',
      infowindow: 'custom',
      infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: #000;"><strong>Havre<br>District 4 HRDC</strong><br />2229 5th Ave<br />Havre, MT 59501 USA<br /><A href="http://www.hrdc4.org"><FONT face=Arial>www.hrdc4.org</FONT></A></span>',
      full: '2229 5th Ave, Havre, MT, 59501, USA',
      isdefault: false
    };
    
    geocoder.getLatLng (
      address_0.full,
      function(point) {
        if(point) {
          map.setCenter(point, 6);
          var marker = new GMarker(point, icon);
          GEvent.addListener(marker, 'click', function() {
            marker.openInfoWindowHtml(address_0.infowindowtext);
          });
          map.addOverlay(marker);
        }
        else {
          map.setCenter(new GLatLng(47.0625, -109.4275), 6);
        }
      }
    );

    var address_1 = {
      street: ' 700 Casey Street',
      city: 'Butte',
      state: 'MT',
      zip: '59701',
      country: 'USA',
      infowindow: 'custom',
      infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: #000;"><strong>Butte<br>Human Resource Council, District 12</strong><br /> 700 Casey Street<br />Butte, MT 59701 USA<br /><A href="http://www.hrc12.org">www.hrc12.org</A></span>',
      full: '700 Casey Street Butte, MT 59701 USA',
      isdefault: false
    };
    
    geocoder.getLatLng (
      address_1.full,
      function(point) {
        if(point) {
          map.setCenter(point, 6);
          var marker = new GMarker(point, icon);
          GEvent.addListener(marker, 'click', function() {
            marker.openInfoWindowHtml(address_1.infowindowtext);
          });
          map.addOverlay(marker);
        }
        else {
          map.setCenter(new GLatLng(47.0625, -109.4275), 6);
        }
      }
    );

    var address_2 = {
      street: '7 North 31st Street',
      city: 'Billings',
      state: 'MT',
      zip: '59103',
      country: 'USA',
      infowindow: 'custom',
      infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: #000;"><strong>Billings - District 7 HRDC</strong><br />7 North 31st Street<br />Billings, MT 59103 USA<br /><A href="http://www.hrdc7.org"><FONT face=Arial>www.hrdc7.org</FONT></A></span>',
      full: '7 North 31st Street, Billings, MT, 59103, USA',
      isdefault: false
    };
    
    geocoder.getLatLng (
      address_2.full,
      function(point) {
        if(point) {
          map.setCenter(point, 6);
          var marker = new GMarker(point, icon);
          GEvent.addListener(marker, 'click', function() {
            marker.openInfoWindowHtml(address_2.infowindowtext);
          });
          map.addOverlay(marker);
        }
        else {
          map.setCenter(new GLatLng(47.0625, -109.4275), 6);
        }
      }
    );

    var address_3 = {
      street: '200 South Cruse',
      city: 'Helena',
      state: 'MT',
      zip: '59624',
      country: 'USA',
      infowindow: 'custom',
      infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: #000;"><strong>Helena<br>Rocky Mountain Development Council, District 8</strong><br />200 South Cruse<br />Helena, MT 59624 USA<br /><A href="http://www.rmdc.net"><FONT face=Arial>www.rmdc.net</FONT></A></span>',
      full: '200 South Cruse, Helena, MT, 59624, USA',
      isdefault: false
    };
    
    geocoder.getLatLng (
      address_3.full,
      function(point) {
        if(point) {
          map.setCenter(point, 6);
          var marker = new GMarker(point, icon);
          GEvent.addListener(marker, 'click', function() {
            marker.openInfoWindowHtml(address_3.infowindowtext);
          });
          map.addOverlay(marker);
        }
        else {
          map.setCenter(new GLatLng(47.0625, -109.4275), 6);
        }
      }
    );

    var address_4 = {
      street: '32 South Tracy',
      city: 'Bozeman',
      state: 'MT',
      zip: '59715',
      country: 'USA',
      infowindow: 'custom',
      infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: #000;"><strong>Bozeman<br>District 9 HRDC</strong><br />32 South Tracy<br />Bozeman, MT 59715 USA<br /><A href="http://www.thehrdc.org"><FONT face=Arial>www.thehrdc.org</FONT></A></span>',
      full: '32 South Tracy, Bozeman, MT, 59715, USA',
      isdefault: false
    };
    
    geocoder.getLatLng (
      address_4.full,
      function(point) {
        if(point) {
          map.setCenter(point, 6);
          var marker = new GMarker(point, icon);
          GEvent.addListener(marker, 'click', function() {
            marker.openInfoWindowHtml(address_4.infowindowtext);
          });
          map.addOverlay(marker);
        }
        else {
          map.setCenter(new GLatLng(47.0625, -109.4275), 6);
        }
      }
    );

    var address_5 = {
      street: '214 Main Street',
      city: 'Kalispell',
      state: 'MT',
      zip: '59904',
      country: 'USA',
      infowindow: 'custom',
      infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: #000;"><strong>Kalispell<br>Northwest Montana Human Resources, District 10</strong><br />214 Main Street<br />Kalispell, MT 59904 USA<br /><A href="http://www.nmhr-dist10.org">www.nmhr-dist10.org</A></span>',
      full: '214 Main Street, Kalispell, MT, 59904, USA',
      isdefault: false
    };
    
    geocoder.getLatLng (
      address_5.full,
      function(point) {
        if(point) {
          map.setCenter(point, 6);
          var marker = new GMarker(point, icon);
          GEvent.addListener(marker, 'click', function() {
            marker.openInfoWindowHtml(address_5.infowindowtext);
          });
          map.addOverlay(marker);
        }
        else {
          map.setCenter(new GLatLng(47.0625, -109.4275), 6);
        }
      }
    );

    var address_6 = {
      street: '1801 S. Higgins',
      city: 'Missoula',
      state: 'MT',
      zip: '59801',
      country: 'USA',
      infowindow: 'custom',
      infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: #000;"><strong>Missoula<br>Human Resource Council District XI</strong><br />1801 S. Higgins<br />Missoula, MT 59801 USA<br /><A href="http://www.hrcxi.org">www.hrcxi.org</A></span>',
      full: '1801 S. Higgins, Missoula, MT, 59802, USA',
      isdefault: true
    };
    
    geocoder.getLatLng (
      address_6.full,
      function(point) {
        if(point) {
          map.setCenter(point, 6);
          var marker = new GMarker(point, icon);
          GEvent.addListener(marker, 'click', function() {
            marker.openInfoWindowHtml(address_6.infowindowtext);
          });
          map.addOverlay(marker);
        }
        else {
          map.setCenter(new GLatLng(47.0625, -109.4275), 6);
        }
      }
    );

    var address_7 = {
      street: ' 2030 N. Merrill Av',
      city: 'Glendive',
      state: 'MT',
      zip: '59330',
      country: 'USA',
      infowindow: 'custom',
      infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: #000;"><strong>Glendive<br>Action for Eastern Montana, Districts 1,2, & 3</strong><br /> 2030 N. Merrill Av<br />Glendive, MT 59330 USA<br /><A href="http://www.aemt.org">www.aemt.org</A></span>',
      full: '2030 N. Merrill Av, Glendive, MT, 59330, USA',
      isdefault: false
    };
    
    geocoder.getLatLng (
      address_7.full,
      function(point) {
        if(point) {
          map.setCenter(point, 6);
          var marker = new GMarker(point, icon);
          GEvent.addListener(marker, 'click', function() {
            marker.openInfoWindowHtml(address_7.infowindowtext);
          });
          map.addOverlay(marker);
        }
        else {
          map.setCenter(new GLatLng(47.0625, -109.4275), 6);
        }
      }
    );

    var address_8 = {
      street: '905 1st Avenue North',
      city: 'Great Falls',
      state: 'MT',
      zip: '49403',
      country: 'USA',
      infowindow: 'custom',
      infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: #000;"><strong>Great Falls<br>Opportunities, Inc.</strong><br />905 1st Avenue North<br />Great Falls, MT 49403 USA<br /><A href="http://www.gfoppinc.org"><FONT face=Arial>www.gfoppinc.org</FONT></A></span>',
      full: '905 1st Avenue North, Great Falls, MT, 49403, USA',
      isdefault: false
    };
    
    geocoder.getLatLng (
      address_8.full,
      function(point) {
        if(point) {
          map.setCenter(point, 6);
          var marker = new GMarker(point, icon);
          GEvent.addListener(marker, 'click', function() {
            marker.openInfoWindowHtml(address_8.infowindowtext);
          });
          map.addOverlay(marker);
        }
        else {
          map.setCenter(new GLatLng(47.0625, -109.4275), 6);
        }
      }
    );
	
	
	
var address_9 = {
      street: '300 1st Avenue N',
      city: 'Lewistown',
      state: 'MT',
      zip: '59457',
      country: 'USA',
      infowindow: 'custom',
      infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: #000;"><strong>Lewistown<br>District 6 HRDC</strong><br />300 1st Avenue N<br />Lewistown, MT 59457 USA<br /><A href="http://www.hrdc6.org"><FONT face=Arial>www.hrdc6.org</FONT></A></span>',
      full: '300 1st Avenue N, Lewistown, MT, 59457, USA',
      isdefault: false
    };
    
    geocoder.getLatLng (
      address_9.full,
      function(point) {
        if(point) {
          map.setCenter(point, 6);
          var marker = new GMarker(point, icon);
          GEvent.addListener(marker, 'click', function() {
            marker.openInfoWindowHtml(address_9.infowindowtext);
          });
          map.addOverlay(marker);
        }
        else {
          map.setCenter(new GLatLng(47.0625, -109.4275), 6);
        }
      }
    );
  }
}


	
	
	