wm=(function(){var gMap=null;return returnValue={setupMap:function(){gMap=new google.maps.Map(document.getElementById("idMap"),{draggable:false,scaleControl:false,navigationControl:false,streetViewControl:false,mapTypeControl:true,mapTypeId:google.maps.MapTypeId.TERRAIN,mapTypeControlOptions:{mapTypeIds:[google.maps.MapTypeId.TERRAIN,google.maps.MapTypeId.ROADMAP,google.maps.MapTypeId.HYBRID]}});tm.initialize(gMap);tm.addAllPolylines();var aC=tm.getEnclosingBounds();gMap.fitBounds(aC);var center=aC.getCenter();gMap.setCenter(center);pgm.registerEvents();},viewSectionMap:function(){var aK,pageName;var markerType=document.getElementsByName("markerType");if(markerType[0].checked){aK="0";}else if(markerType[1].checked){aK="4";}else if(markerType[2].checked){aK="3";}else if(markerType[3].checked){aK="11";}else if(markerType[4].checked){aK="7";}else if(markerType[5].checked){aK="2";}else if(markerType[6].checked){aK="10";}else if(markerType[7].checked){aK="14";}else if(markerType[8].checked){aK="12";}else if(markerType[9].checked){aK="5";}else if(markerType[10].checked){aK="15";}else if(markerType[11].checked){aK="13";}else if(markerType[12].checked){aK="8";}else if(markerType[13].checked){aK="16";}else if(markerType[14].checked){aK="6";}var section=document.getElementsByName("section");if(section[0].checked){pageName="eastern_missouri";}else if(section[1].checked){pageName="western_missouri";}else if(section[2].checked){pageName="nebraska_iowa";}else if(section[3].checked){pageName="south_dakota";}else if(section[4].checked){pageName="southern_north_dakota";}else if(section[5].checked){pageName="western_north_dakota";}else if(section[6].checked){pageName="northern_montana";}else if(section[7].checked){pageName="southern_montana";}else if(section[8].checked){pageName="northwestern_montana";}else if(section[9].checked){pageName="southwestern_montana";}else if(section[10].checked){pageName="idaho";}else if(section[11].checked){pageName="southeastern_washington_state";}else if(section[12].checked){pageName="lower_columbia_river";}else if(section[13].checked){pageName="pacific_coast";}var lastSlash=window.location.pathname.lastIndexOf("/");var dirPath=window.location.pathname.substr(0,lastSlash+1);window.location="http://"+window.location.hostname+dirPath+"maps/"+pageName+".html?t="+aK;}};})();
