//Microsoft Virtual Earth - http://dev.live.com/virtualearth/ var map = null; var markersArray = []; if (navigator.userAgent.toLowerCase().indexOf("opera")==-1 && (navigator.userAgent.toLowerCase().indexOf("msie 6.")!=-1 || navigator.userAgent.toLowerCase().indexOf("msie 7.")!=-1)) { var mapModeSwitch = true; } else { var mapModeSwitch = false; } var zoomLevelColorado = 7; if (document.documentElement.clientWidth < 960) zoomLevelColorado = 6; var zoomLevelMtn = 14; var mtnLatLong = new Array(); mtnLatLong["ColoradoMap"] = new google.maps.LatLng(39.0256, -105.546); mtnLatLong["adams"] = new google.maps.LatLng(38.007296, -105.604863);mtnLatLong["antero"] = new google.maps.LatLng(38.673889, -106.246109);mtnLatLong["apostle_north"] = new google.maps.LatLng(38.919660, -106.434350);mtnLatLong["atlantic"] = new google.maps.LatLng(39.413500, -106.125900);mtnLatLong["belford"] = new google.maps.LatLng(38.960600, -106.361000);mtnLatLong["bierstadt"] = new google.maps.LatLng(39.582800, -105.668000);mtnLatLong["bison"] = new google.maps.LatLng(39.238486, -105.497643);mtnLatLong["blanca"] = new google.maps.LatLng(37.577491, -105.485649);mtnLatLong["bross"] = new google.maps.LatLng(39.335300, -106.107000);mtnLatLong["cameron"] = new google.maps.LatLng(39.347200, -106.119000);mtnLatLong["capitol"] = new google.maps.LatLng(39.150300, -107.083000);mtnLatLong["castle"] = new google.maps.LatLng(39.009636, -106.861324);mtnLatLong["challenger"] = new google.maps.LatLng(37.980300, -105.606000);mtnLatLong["columbia"] = new google.maps.LatLng(38.903900, -106.297000);mtnLatLong["columbia_point"] = new google.maps.LatLng(37.979007, -105.598168);mtnLatLong["conundrum"] = new google.maps.LatLng(39.014400, -106.864000);mtnLatLong["conundrum_north"] = new google.maps.LatLng(39.015682, -106.862749);mtnLatLong["crestoneneedle"] = new google.maps.LatLng(37.964700, -105.576000);mtnLatLong["crestone_pk"] = new google.maps.LatLng(37.966829, -105.585473);mtnLatLong["crystal"] = new google.maps.LatLng(39.434570, -106.114450);mtnLatLong["culebra"] = new google.maps.LatLng(37.122200, -105.185000);mtnLatLong["democrat"] = new google.maps.LatLng(39.339700, -106.139000);mtnLatLong["elbert"] = new google.maps.LatLng(39.117732, -106.445203);mtnLatLong["eldiente"] = new google.maps.LatLng(37.839400, -108.005000);mtnLatLong["ellingwood"] = new google.maps.LatLng(37.582500, -105.492000);mtnLatLong["eolus"] = new google.maps.LatLng(37.622800, -107.621000);mtnLatLong["eolus_north"] = new google.maps.LatLng(37.625200, -107.621000);mtnLatLong["evans"] = new google.maps.LatLng(39.588600, -105.643000);mtnLatLong["fletcher"] = new google.maps.LatLng(39.403330, -106.128890);mtnLatLong["grays"] = new google.maps.LatLng(39.633715, -105.817589);mtnLatLong["grizzly"] = new google.maps.LatLng(39.042430, -106.597630);mtnLatLong["hagerman"] = new google.maps.LatLng(39.111990, -107.060200);mtnLatLong["handies"] = new google.maps.LatLng(37.913100, -107.504000);mtnLatLong["harvard"] = new google.maps.LatLng(38.924452, -106.320765);mtnLatLong["holycross"] = new google.maps.LatLng(39.468100, -106.479000);mtnLatLong["humboldt"] = new google.maps.LatLng(37.976100, -105.555000);mtnLatLong["huron"] = new google.maps.LatLng(38.945300, -106.438000);mtnLatLong["ice"] = new google.maps.LatLng(38.914870, -106.437040);mtnLatLong["kitcarson"] = new google.maps.LatLng(37.979700, -105.602000);mtnLatLong["kitcarson_point_13799"] = new google.maps.LatLng(37.978423, -105.588359);mtnLatLong["laplata"] = new google.maps.LatLng(39.029396, -106.472921);mtnLatLong["lincoln"] = new google.maps.LatLng(39.351504, -106.111584);mtnLatLong["lindsey"] = new google.maps.LatLng(37.584700, -105.440000);mtnLatLong["littlebear"] = new google.maps.LatLng(37.566700, -105.497000);mtnLatLong["longs"] = new google.maps.LatLng(40.254700, -105.615000);mtnLatLong["maroon"] = new google.maps.LatLng(39.070800, -106.989000);mtnLatLong["maroon_north"] = new google.maps.LatLng(39.075800, -106.987000);mtnLatLong["massive"] = new google.maps.LatLng(39.187286, -106.475514);mtnLatLong["matterhorn"] = new google.maps.LatLng(38.065200, -107.496000);mtnLatLong["meeker"] = new google.maps.LatLng(40.248497, -105.605016);mtnLatLong["missouri"] = new google.maps.LatLng(38.947200, -106.378000);mtnLatLong["oxford"] = new google.maps.LatLng(38.964700, -106.338000);mtnLatLong["pacific"] = new google.maps.LatLng(39.423144, -106.123039);mtnLatLong["pikes"] = new google.maps.LatLng(38.840600, -105.044000);mtnLatLong["princeton"] = new google.maps.LatLng(38.749400, -106.242000);mtnLatLong["pyramid"] = new google.maps.LatLng(39.071400, -106.950000);mtnLatLong["quandary"] = new google.maps.LatLng(39.397200, -106.106000);mtnLatLong["red"] = new google.maps.LatLng(37.112300, -105.181000);mtnLatLong["redcloud"] = new google.maps.LatLng(37.940800, -107.421000);mtnLatLong["sanluis"] = new google.maps.LatLng(37.986900, -106.931000);mtnLatLong["shavano"] = new google.maps.LatLng(38.618900, -106.239000);mtnLatLong["sherman"] = new google.maps.LatLng(39.225000, -106.169000);mtnLatLong["sneffels"] = new google.maps.LatLng(38.003300, -107.792000);mtnLatLong["snowmass"] = new google.maps.LatLng(39.118900, -107.066000);mtnLatLong["spanish_east"] = new google.maps.LatLng(37.393510, -104.920163);mtnLatLong["spanish_west"] = new google.maps.LatLng(37.375588, -104.993396);mtnLatLong["sunlight"] = new google.maps.LatLng(37.627200, -107.595000);mtnLatLong["sunshine"] = new google.maps.LatLng(37.922800, -107.425000);mtnLatLong["tabeguache"] = new google.maps.LatLng(38.626000, -106.260000);mtnLatLong["torreys"] = new google.maps.LatLng(39.642759, -105.821178);mtnLatLong["uncompahgre"] = new google.maps.LatLng(38.071653, -107.462165);mtnLatLong["wetterhorn"] = new google.maps.LatLng(38.060600, -107.510000);mtnLatLong["wilson_mt"] = new google.maps.LatLng(37.839200, -107.991000);mtnLatLong["wilson_pk"] = new google.maps.LatLng(37.860300, -107.984000);mtnLatLong["windom"] = new google.maps.LatLng(37.621400, -107.591000);mtnLatLong["yale"] = new google.maps.LatLng(38.844200, -106.313000); function GetMap(mtnOptionValue) { $('#selectMtn').val(mtnOptionValue); BuildLinkToPeakMainPage(); var mtnCode = mtnOptionValue.split("|")[0]; var zoomLevel = mtnCode!="ColoradoMap" ? zoomLevelMtn : zoomLevelColorado; var mapOptions = { center: mtnLatLong[mtnCode], mapTypeId: google.maps.MapTypeId.TERRAIN, zoom: zoomLevel }; map = new google.maps.Map(document.getElementById("map-canvas"), mapOptions); AddPushPins(); google.maps.event.addListener(marker, 'click', function() { infowindow.open(map,marker); }); google.maps.event.trigger(map, "resize"); } function AddPushPins() { try { AddMtnPushPin("longs","Longs Peak","14,255","Front","15th","3","40.254700","-105.615000",true,"Aug 19, 2009",1);AddMtnPushPin("meeker","Mount Meeker","13,911","Front","68th","3","40.248497","-105.605016",false,"",2);AddMtnPushPin("torreys","Torreys Peak","14,267","Front","11th","2","39.642759","-105.821178",true,"Jun 12, 2011",3);AddMtnPushPin("grays","Grays Peak","14,270","Front","9th","1","39.633715","-105.817589",true,"Sep 26, 2021",4);AddMtnPushPin("evans","Mount Blue Sky (formerly Evans)","14,264","Front","14th","2","39.588600","-105.643000",true,"Jul 11, 2009",5);AddMtnPushPin("bierstadt","Mount Bierstadt","14,060","Front","38th","2","39.582800","-105.668000",true,"Jul 11, 2009",6);AddMtnPushPin("bison","Bison Peak","12,431","Front","","1","39.238486","-105.497643",true,"Jun 21, 2019",7);AddMtnPushPin("crystal","Crystal Peak","13,852","Tenmile","82nd","2","39.434570","-106.114450",true,"Sep 3, 2012",8);AddMtnPushPin("pacific","Pacific Peak","13,950","Tenmile","61st","2","39.423144","-106.123039",true,"Jul 22, 2012",9);AddMtnPushPin("atlantic","Atlantic Peak","13,841","Tenmile","86th","2","39.413500","-106.125900",true,"Jul 12, 2015",10);AddMtnPushPin("fletcher","Fletcher Mountain","13,951","Tenmile","59th","2","39.403330","-106.128890",true,"Sep 8, 2018",11);AddMtnPushPin("quandary","Quandary Peak","14,265","Tenmile","12th","1","39.397200","-106.106000",true,"Feb 13, 2011",12);AddMtnPushPin("lincoln","Mount Lincoln","14,286","Mosquito","8th","1","39.351504","-106.111584",true,"Sep 3, 2005",13);AddMtnPushPin("cameron","Mount Cameron","14,238","Mosquito","","2","39.347200","-106.119000",true,"Sep 3, 2005",14);AddMtnPushPin("democrat","Mount Democrat","14,148","Mosquito","28th","2","39.339700","-106.139000",true,"Sep 3, 2005",15);AddMtnPushPin("bross","Mount Bross","14,172","Mosquito","22nd","1","39.335300","-106.107000",true,"Sep 3, 2005",16);AddMtnPushPin("sherman","Mount Sherman","14,036","Mosquito","45th","2","39.225000","-106.169000",true,"Jun 7, 2009",17);AddMtnPushPin("adams","Mount Adams","13,931","Sangre de Cristo","66th","2+","38.007296","-105.604863",true,"Aug 10, 2010",18);AddMtnPushPin("challenger","Challenger Point","14,081","Sangre de Cristo","34th","2+","37.980300","-105.606000",true,"Jul 17, 2007",19);AddMtnPushPin("kitcarson","Kit Carson Peak","14,165","Sangre de Cristo","23rd","3","37.979700","-105.602000",true,"Jul 17, 2007",20);AddMtnPushPin("columbia_point","Columbia Point (Kat Carson)","13,980","Sangre de Cristo","58th","2+","37.979007","-105.598168",false,"",21);AddMtnPushPin("kitcarson_point_13799","Kit Carson Mountain - Point 13,799 (Obstruction Peak)","13,799","Sangre de Cristo","107th","2","37.978423","-105.588359",false,"",22);AddMtnPushPin("humboldt","Humboldt Peak","14,064","Sangre de Cristo","37th","2","37.976100","-105.555000",true,"Aug 5, 2006",23);AddMtnPushPin("crestone_pk","Crestone Peak","14,294","Sangre de Cristo","7th","3","37.966829","-105.585473",true,"Aug 3, 2008",24);AddMtnPushPin("crestoneneedle","Crestone Needle","14,197","Sangre de Cristo","18th","3","37.964700","-105.576000",true,"Sep 30, 2007",25);AddMtnPushPin("ellingwood","Ellingwood Point","14,042","Sangre de Cristo","42nd","2","37.582500","-105.492000",true,"Sep 2, 2006",26);AddMtnPushPin("blanca","Blanca Peak","14,345","Sangre de Cristo","4th","2","37.577491","-105.485649",true,"Sep 2, 2006",27);AddMtnPushPin("lindsey","Mount Lindsey","14,042","Sangre de Cristo","43rd","2+","37.584700","-105.440000",true,"Jul 22, 2007",28);AddMtnPushPin("littlebear","Little Bear Peak","14,037","Sangre de Cristo","44th","4","37.566700","-105.497000",true,"Aug 12, 2009",29);AddMtnPushPin("spanish_east","East Spanish Peak","12,683","Sangre de Cristo","","2+","37.393510","-104.920163",false,"",30);AddMtnPushPin("spanish_west","West Spanish Peak","13,626","Sangre de Cristo","183rd","2","37.375588","-104.993396",true,"Aug 30, 2014",31);AddMtnPushPin("culebra","Culebra Peak","14,047","Sangre de Cristo","41st","2","37.122200","-105.185000",true,"Jul 2, 2007",32);AddMtnPushPin("red","Red Mountain","13,908","Sangre de Cristo","69th","2","37.112300","-105.181000",true,"Jul 2, 2007",33);AddMtnPushPin("capitol","Capitol Peak","14,130","Elk","29th","4","39.150300","-107.083000",true,"Jul 18, 2009",34);AddMtnPushPin("snowmass","Snowmass Mountain","14,092","Elk","31st","3","39.118900","-107.066000",true,"Jun 26, 2008",35);AddMtnPushPin("hagerman","Hagerman Peak","13,841","Elk","86th","2+","39.111990","-107.060200",true,"Aug 15, 2012",36);AddMtnPushPin("maroon_north","North Maroon Peak","14,014","Elk","","4","39.075800","-106.987000",true,"Aug 16, 2009",37);AddMtnPushPin("pyramid","Pyramid Peak","14,018","Elk","47th","4","39.071400","-106.950000",true,"Sep 6, 2008",38);AddMtnPushPin("maroon","Maroon Peak","14,156","Elk","24th","3","39.070800","-106.989000",true,"Aug 9, 2009",39);AddMtnPushPin("conundrum","Conundrum Peak","14,022","Elk","","2","39.014400","-106.864000",true,"Jun 26, 2010",40);AddMtnPushPin("conundrum_north","North Conundrum Peak","14,060","Elk","","2","39.015682","-106.862749",true,"Jun 26, 2010",41);AddMtnPushPin("castle","Castle Peak","14,265","Elk","12th","2","39.009636","-106.861324",true,"Jun 26, 2010",42);AddMtnPushPin("holycross","Mount of the Holy Cross","14,005","Sawatch","51st","2","39.468100","-106.479000",true,"Sep 19, 2006",43);AddMtnPushPin("massive","Mount Massive","14,421","Sawatch","2nd","2","39.187286","-106.475514",true,"Oct 1, 2005",44);AddMtnPushPin("elbert","Mount Elbert","14,433","Sawatch","1st","1","39.117732","-106.445203",true,"Aug 21, 2005",45);AddMtnPushPin("grizzly","Grizzly Peak A","13,988","Sawatch","54th","2+","39.042430","-106.597630",true,"Jul 4, 2011",46);AddMtnPushPin("laplata","La Plata Peak","14,336","Sawatch","5th","2","39.029396","-106.472921",true,"Jun 4, 2006",47);AddMtnPushPin("oxford","Mount Oxford","14,153","Sawatch","26th","2","38.964700","-106.338000",true,"Sep 18, 2004",48);AddMtnPushPin("belford","Mount Belford","14,197","Sawatch","18th","2","38.960600","-106.361000",true,"Sep 18, 2004",49);AddMtnPushPin("missouri","Missouri Mountain","14,067","Sawatch","36th","2","38.947200","-106.378000",true,"Jul 22, 2006",50);AddMtnPushPin("huron","Huron Peak","14,003","Sawatch","52nd","2","38.945300","-106.438000",true,"Oct 19, 2008",51);AddMtnPushPin("apostle_north","North Apostle","13,860","Sawatch","79th","2","38.919660","-106.434350",false,"",52);AddMtnPushPin("ice","Ice Mountain","13,951","Sawatch","59th","3","38.914870","-106.437040",false,"",53);AddMtnPushPin("harvard","Mount Harvard","14,420","Sawatch","3rd","2","38.924452","-106.320765",true,"Sep 10, 2005",54);AddMtnPushPin("columbia","Mount Columbia","14,073","Sawatch","35th","2","38.903900","-106.297000",true,"Sep 24, 2005",55);AddMtnPushPin("yale","Mount Yale","14,196","Sawatch","21st","2","38.844200","-106.313000",true,"Aug 23, 2003",56);AddMtnPushPin("princeton","Mount Princeton","14,197","Sawatch","18th","2","38.749400","-106.242000",true,"Sep 25, 2001",57);AddMtnPushPin("antero","Mount Antero","14,269","Sawatch","10th","2","38.673889","-106.246109",true,"Aug 15, 2004",58);AddMtnPushPin("tabeguache","Tabeguache Peak","14,155","Sawatch","25th","2","38.626000","-106.260000",true,"Aug 31, 2003",59);AddMtnPushPin("shavano","Mount Shavano","14,229","Sawatch","17th","2","38.618900","-106.239000",true,"Aug 31, 2003",60);AddMtnPushPin("pikes","Pikes Peak","14,110","Front","30th","1","38.840600","-105.044000",true,"Jul 5, 2009",61);AddMtnPushPin("sanluis","San Luis Peak","14,014","San Juan","50th","1","37.986900","-106.931000",true,"Sep 1, 2004",62);AddMtnPushPin("sneffels","Mount Sneffels","14,150","San Juan","27th","2+","38.003300","-107.792000",true,"Aug 30, 2004",63);AddMtnPushPin("uncompahgre","Uncompahgre Peak","14,309","San Juan","6th","2","38.071653","-107.462165",true,"Jul 27, 2015",64);AddMtnPushPin("matterhorn","Matterhorn Peak","13,590","San Juan","193rd","3","38.065200","-107.496000",true,"Aug 28, 2007",65);AddMtnPushPin("wetterhorn","Wetterhorn Peak","14,015","San Juan","49th","3","38.060600","-107.510000",true,"Jul 29, 2015",66);AddMtnPushPin("redcloud","Redcloud Peak","14,034","San Juan","46th","2","37.940800","-107.421000",true,"Aug 6, 2003",67);AddMtnPushPin("sunshine","Sunshine Peak","14,001","San Juan","53rd","2","37.922800","-107.425000",true,"Aug 6, 2003",68);AddMtnPushPin("handies","Handies Peak","14,048","San Juan","40th","2","37.913100","-107.504000",true,"Aug 4, 2003",69);AddMtnPushPin("wilson_pk","Wilson Peak","14,017","San Juan","48th","3","37.860300","-107.984000",true,"Aug 19, 2008",70);AddMtnPushPin("eldiente","El Diente Peak","14,159","San Juan","","3","37.839400","-108.005000",true,"Aug 18, 2008",71);AddMtnPushPin("wilson_mt","Mount Wilson","14,246","San Juan","16th","4","37.839200","-107.991000",true,"Aug 20, 2008",72);AddMtnPushPin("sunlight","Sunlight Peak","14,059","San Juan","39th","4","37.627200","-107.595000",true,"Jul 28, 2009",73);AddMtnPushPin("eolus_north","North Eolus","14,039","San Juan","","3","37.625200","-107.621000",true,"Jul 29, 2009",74);AddMtnPushPin("eolus","Mount Eolus","14,083","San Juan","32nd","3","37.622800","-107.621000",true,"Jul 29, 2009",75);AddMtnPushPin("windom","Windom Peak","14,082","San Juan","33rd","2+","37.621400","-107.591000",true,"Jul 28, 2009",76); } catch(e) {} } function AddMtnPushPin (mtnCode,mtnName,elevation,range,mtnrank,mtnclass,latitude,longitude,climbed,climbDate,zIndexValue) { var mtnText = ""+mtnName+""; var pushPinIcon = climbed ? "/images/mtnpin_yellow_15x15.png" : "/images/mtnpin_red_15x15.png"; var forecastText = "Weather Forecast"; var marker = new google.maps.Marker({ position: mtnLatLong[mtnCode], map: map, title: mtnName, icon: pushPinIcon, zIndex: climbed ? zIndexValue : 0 }); climbDate = climbDate == "" ? "Not yet" : climbDate; var contentString = '
' + mtnText + "
Elevation: "+elevation+" ft
Mountain Range: "+range+"
Colorado Rank: "+mtnrank+"
Class Rating: "+mtnclass+"
Latitude: "+latitude+"
Longitude: "+longitude+"
Last Summited: " + climbDate +"
" + forecastText + '
'; var infowindow = new google.maps.InfoWindow({ content: contentString }); markersArray.push(marker); google.maps.event.addListener(marker, 'click', function() { infowindow.open(map,marker); }); } function RemovePushPins() { for (var i = 0; i < markersArray.length; i++ ) { markersArray[i].setMap(null); } markersArray.length = 0; } function ResizeMap(mapDivID,width,height) { var currentWidth = document.getElementById(mapDivID).style.width; var currentHeight = document.getElementById(mapDivID).style.height; if (width != currentWidth || height != currentHeight) { document.getElementById(mapDivID).style.width=width; document.getElementById(mapDivID).style.height=height; GetMap($('#selectMtn').val()); } } function GoToMtn(isKeepZoomLevel) { var mtnCode = $('#selectMtn').val().split("|")[0]; var zoomLevel; if (isKeepZoomLevel) { zoomLevel = map.getZoom(); } else { zoomLevel = mtnCode!="ColoradoMap" ? zoomLevelMtn : zoomLevelColorado; } map.setCenter(mtnLatLong[mtnCode]); map.setZoom(zoomLevel); BuildLinkToPeakMainPage(); } function ResetZoom() { var mtnCode = $('#selectMtn').val().split("|")[0]; var zoomLevel = mtnCode!="ColoradoMap" ? zoomLevelMtn : zoomLevelColorado; map.setZoom(zoomLevel); } function BuildLinkToPeakMainPage() { if ($('#selectMtn').attr('selectedIndex') != 0) { var mtnCode = $('#selectMtn').val().split("|")[0]; var mtnText = $('#selectMtn').val().split("|")[1]; if (mtnCode != "ColoradoMap") { $('#linkToPeakPage').html('Go To ' + mtnText + ' Main Page' + ''); } else { $('#linkToPeakPage').html(' '); } } else { $('#linkToPeakPage').html(' '); } }