function wagt_map(el) {
	if(GBrowserIsCompatible()) {
		if(!document.getElementById('wagt_map_1')) return false;
		var map = new GMap2(document.getElementById('wagt_map_1'));
		map.enableContinuousZoom();
		map.enableDoubleClickZoom();
		map.addControl(new GSmallMapControl());
		map.addControl(new GScaleControl());
    map.addControl(new GMapTypeControl());
		var geocoder = new GClientGeocoder();
		
		var icon = new GIcon();
		var markerStyle = 'Google Traditional (flat)';
		var markerColor = 'Desert Spice';
		icon.image = 'images/map/desertspice.png';
		icon.shadow = 'images/map/shadow.png';
		icon.iconSize = new GSize(34,35);
		icon.shadowSize = new GSize(34,35);
		icon.iconAnchor = new GPoint(9,23);
		icon.infoWindowAnchor = new GPoint(19,0);
		icon.printImage = 'images/map/desertspice.gif';
		icon.mozPrintImage = 'images/map/desertspice_mozprint.png';
		icon.printShadow = 'images/map/shadow.gif';
		icon.transparent = 'images/map/desertspice_transparent.png';
		
		var thisAddress = el;
		
		switch (thisAddress) {
		
			case 0:
			
			var address_0 = {
				street: '124 S. Broadway',
				city: 'Manhattan',
				state: 'MT',
				zip: '59741',
				country: '',
				infowindow: 'default',
				infowindowtext: '<h3>Manhattan Bank</h3>124 S. Broadway<br />Manhattan, MT 59741',
				full: '124 S. Broadway, Manhattan, MT, 59741',
				isdefault: true
			};
			
			geocoder.getLatLng (
				address_0.full,
				function(point) {
					/*if(!point) {*/
						var point = new GLatLng(45.856191693008846, -111.33327126502991);
					/*}
					if(point) {*/
						map.setCenter(point, 15);
						var marker = new GMarker(point, icon);
						GEvent.addListener(marker, 'click', function() {
							marker.openInfoWindowHtml(address_0.infowindowtext);
						});
						map.addOverlay(marker);
						marker.openInfoWindowHtml(address_0.infowindowtext);
					/*}
					else {
						map.setCenter(new GLatLng(37.4419, -122.1419), 13);
					}*/
				}
			);
			
			break;
			
			case 1:
			
			var address_1 = {
				street: '7175 Churchill Road',
				city: 'Manhattan',
				state: 'MT',
				zip: '59741',
				country: '',
				infowindow: 'default',
				infowindowtext: '<h3>Churchill Branch</h3>7175 Churchill Road<br />Manhattan, MT 59741',
				full: '7175 Churchill Road, Manhattan, MT 59741',
				isdefault: false
			};
			
			geocoder.getLatLng (
				address_1.full,
				function(point) {
					/*if(!point) {*/
						var point = new GLatLng(45.75786760057136, -111.3100004196167);
					/*}
					if(point) {*/
						map.setCenter(point, 15);
						var marker = new GMarker(point, icon);
						GEvent.addListener(marker, 'click', function() {
							marker.openInfoWindowHtml(address_1.infowindowtext);
						});
						map.addOverlay(marker);
						marker.openInfoWindowHtml(address_1.infowindowtext);
					/*}
					else {
						map.setCenter(new GLatLng(37.4419, -122.1419), 13);
					}*/
				}
			);
			
			break;
			
			case 2:
			
			var address_2 = {
				street: '2 N Railway Ave',
				city: 'Three Forks',
				state: 'MT',
				zip: '59752',
				country: '',
				infowindow: 'default',
				infowindowtext: '<h3>Three Forks Branch</h3>2 N. Railway Avenue<br />Three Forks, MT 59752',
				full: '2 N Railway Ave, Three Forks, MT, 59752',
				isdefault: false
			};
			
			geocoder.getLatLng (
				address_2.full,
				function(point) {
					/*if(!point) {*/
						var point = new GLatLng(45.895601167715434, -111.55248284339905);
					/*}
					if(point) {*/
						map.setCenter(point, 15);
						var marker = new GMarker(point, icon);
						GEvent.addListener(marker, 'click', function() {
							marker.openInfoWindowHtml(address_2.infowindowtext);
						});
						map.addOverlay(marker);
						marker.openInfoWindowHtml(address_2.infowindowtext);
					/*}
					else {
						map.setCenter(new GLatLng(45.895601167715434, -111.55248284339905), 13);
					}*/
				}
			);
			
			break;
			
			case 3:
			
			var address_3 = {
				street: '2610 W. Main',
				city: 'Bozeman',
				state: 'MT',
				zip: '59718',
				country: '',
				infowindow: 'default',
				infowindowtext: '<h3>Bozeman Branch</h3>2610 W. Main<br />Bozeman, MT 59718',
				full: '2610 W. Main, Bozeman, MT, 59718',
				isdefault: false
			};
			
			geocoder.getLatLng (
				address_3.full,
				function(point) {
					/*if(!point) {*/
						var point = new GLatLng(45.673990358551855, -111.07230305671692);
					/*}
					if(point) {*/
						map.setCenter(point, 15);
						var marker = new GMarker(point, icon);
						GEvent.addListener(marker, 'click', function() {
							marker.openInfoWindowHtml(address_3.infowindowtext);
						});
						map.addOverlay(marker);
						marker.openInfoWindowHtml(address_3.infowindowtext);
					/*}
					else {
						map.setCenter(new GLatLng(37.4419, -122.1419), 13);
					}*/
				}
			);
			
			break;			
			
		}
	}
}
