//Microsoft Virtual Earth - http://dev.live.com/virtualearth/
var map = null;
var fixedMap = false;
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;
var zoomLevelMtn = 12;
var pushPinNbr = 0;
var mtnLatLong = new Array();
mtnLatLong["centerColorado"] = new VELatLong(39.0256, -105.546);
mtnLatLong["antero"] = new VELatLong(38.6737, -106.246);mtnLatLong["belford"] = new VELatLong(38.9606, -106.361);mtnLatLong["bierstadt"] = new VELatLong(39.5828, -105.668);mtnLatLong["blanca"] = new VELatLong(37.5772, -105.485);mtnLatLong["bross"] = new VELatLong(39.3353, -106.107);mtnLatLong["capitol"] = new VELatLong(39.1503, -107.083);mtnLatLong["castle"] = new VELatLong(39.0097, -106.861);mtnLatLong["challenger"] = new VELatLong(37.9803, -105.606);mtnLatLong["columbia"] = new VELatLong(38.9039, -106.297);mtnLatLong["crestoneneedle"] = new VELatLong(37.9647, -105.576);mtnLatLong["crestone_pk"] = new VELatLong(37.9667, -105.585);mtnLatLong["culebra"] = new VELatLong(37.1222, -105.185);mtnLatLong["democrat"] = new VELatLong(39.3397, -106.139);mtnLatLong["elbert"] = new VELatLong(39.1178, -106.445);mtnLatLong["eldiente"] = new VELatLong(37.8394, -108.005);mtnLatLong["ellingwood"] = new VELatLong(37.5825, -105.492);mtnLatLong["eolus"] = new VELatLong(37.6228, -107.621);mtnLatLong["evans"] = new VELatLong(39.5886, -105.643);mtnLatLong["grays"] = new VELatLong(39.6339, -105.817);mtnLatLong["handies"] = new VELatLong(37.9131, -107.504);mtnLatLong["harvard"] = new VELatLong(38.9244, -106.320);mtnLatLong["holycross"] = new VELatLong(39.4681, -106.479);mtnLatLong["humboldt"] = new VELatLong(37.9761, -105.555);mtnLatLong["huron"] = new VELatLong(38.9453, -106.438);mtnLatLong["kitcarson"] = new VELatLong(37.9797, -105.602);mtnLatLong["laplata"] = new VELatLong(39.0294, -106.473);mtnLatLong["lincoln"] = new VELatLong(39.3514, -106.111);mtnLatLong["lindsey"] = new VELatLong(37.5847, -105.440);mtnLatLong["littlebear"] = new VELatLong(37.5667, -105.497);mtnLatLong["longs"] = new VELatLong(40.2547, -105.615);mtnLatLong["maroon"] = new VELatLong(39.0708, -106.989);mtnLatLong["maroon_north"] = new VELatLong(39.0758, -106.987);mtnLatLong["massive"] = new VELatLong(39.1872, -106.475);mtnLatLong["matterhorn"] = new VELatLong(38.0652, -107.496);mtnLatLong["missouri"] = new VELatLong(38.9472, -106.378);mtnLatLong["oxford"] = new VELatLong(38.9647, -106.338);mtnLatLong["pikes"] = new VELatLong(38.8406, -105.044);mtnLatLong["princeton"] = new VELatLong(38.7494, -106.242);mtnLatLong["pyramid"] = new VELatLong(39.0714, -106.950);mtnLatLong["quandary"] = new VELatLong(39.3972, -106.106);mtnLatLong["red"] = new VELatLong(37.1123, -105.181);mtnLatLong["redcloud"] = new VELatLong(37.9408, -107.421);mtnLatLong["sanluis"] = new VELatLong(37.9869, -106.931);mtnLatLong["shavano"] = new VELatLong(38.6189, -106.239);mtnLatLong["sherman"] = new VELatLong(39.2250, -106.169);mtnLatLong["sneffels"] = new VELatLong(38.0033, -107.792);mtnLatLong["snowmass"] = new VELatLong(39.1189, -107.066);mtnLatLong["sunlight"] = new VELatLong(37.6272, -107.595);mtnLatLong["sunshine"] = new VELatLong(37.9228, -107.425);mtnLatLong["tabeguache"] = new VELatLong(38.6260, -106.260);mtnLatLong["torreys"] = new VELatLong(39.6428, -105.821);mtnLatLong["uncompahgre"] = new VELatLong(38.0717, -107.461);mtnLatLong["wetterhorn"] = new VELatLong(38.0606, -107.510);mtnLatLong["wilson_mt"] = new VELatLong(37.8392, -107.991);mtnLatLong["wilson_pk"] = new VELatLong(37.8603, -107.984);mtnLatLong["windom"] = new VELatLong(37.6214, -107.591);mtnLatLong["yale"] = new VELatLong(38.8442, -106.313);
function GetMap()
{
map = new VEMap("myMap");
map.SetDashboardSize(VEDashboardSize.Normal);
map.LoadMap(mtnLatLong["centerColorado"],zoomLevelColorado,VEMapStyle.Hybrid,fixedMap,VEMapMode.Mode2D,mapModeSwitch);
AddPushPins();
}
function AddPushPins() {
try {
pushPinNbr = 0;
AddMtnPushPin("longs","Longs Peak","14,255","Front","15th","3","40.2547","-105.615",false);AddMtnPushPin("torreys","Torreys Peak","14,267","Front","11th","2","39.6428","-105.821",true);AddMtnPushPin("grays","Grays Peak","14,270","Front","9th","1","39.6339","-105.817",true);AddMtnPushPin("evans","Mount Evans","14,264","Front","14th","2","39.5886","-105.643",true);AddMtnPushPin("bierstadt","Mount Bierstadt","14,060","Front","39th","2","39.5828","-105.668",true);AddMtnPushPin("quandary","Quandary Peak","14,265","Tenmile","12th","1","39.3972","-106.106",true);AddMtnPushPin("lincoln","Mount Lincoln","14,286","Mosquito","8th","1","39.3514","-106.111",true);AddMtnPushPin("democrat","Mount Democrat","14,148","Mosquito","29th","2","39.3397","-106.139",true);AddMtnPushPin("bross","Mount Bross","14,172","Mosquito","22nd","1","39.3353","-106.107",true);AddMtnPushPin("sherman","Mount Sherman","14,036","Mosquito","46th","2","39.2250","-106.169",true);AddMtnPushPin("challenger","Challenger Point","14,081","Sangre de Cristo","35th","2+","37.9803","-105.606",true);AddMtnPushPin("kitcarson","Kit Carson Peak","14,165","Sangre de Cristo","23rd","3","37.9797","-105.602",true);AddMtnPushPin("humboldt","Humboldt Peak","14,064","Sangre de Cristo","38th","2","37.9761","-105.555",true);AddMtnPushPin("crestone_pk","Crestone Peak","14,294","Sangre de Cristo","7th","3","37.9667","-105.585",true);AddMtnPushPin("crestoneneedle","Crestone Needle","14,197","Sangre de Cristo","18th","3","37.9647","-105.576",true);AddMtnPushPin("ellingwood","Ellingwood Point","14,042","Sangre de Cristo","43rd","2","37.5825","-105.492",true);AddMtnPushPin("blanca","Blanca Peak","14,345","Sangre de Cristo","4th","2","37.5772","-105.485",true);AddMtnPushPin("littlebear","Little Bear Peak","14,037","Sangre de Cristo","45th","4","37.5667","-105.497",false);AddMtnPushPin("lindsey","Mount Lindsey","14,042","Sangre de Cristo","43rd","2+","37.5847","-105.440",true);AddMtnPushPin("culebra","Culebra Peak","14,047","Sangre de Cristo","42nd","2","37.1222","-105.185",true);AddMtnPushPin("red","Red Mountain","13,908","Sangre de Cristo","69th","2","37.1123","-105.181",true);AddMtnPushPin("capitol","Capitol Peak","14,130","Elk","30th","4","39.1503","-107.083",false);AddMtnPushPin("snowmass","Snowmass Mountain","14,092","Elk","32nd","3","39.1189","-107.066",true);AddMtnPushPin("maroon_north","North Maroon Peak","14,014","Elk","51st","4","39.0758","-106.987",false);AddMtnPushPin("pyramid","Pyramid Peak","14,018","Elk","48th","4","39.0714","-106.950",false);AddMtnPushPin("maroon","Maroon Peak","14,156","Elk","25th","3","39.0708","-106.989",false);AddMtnPushPin("castle","Castle Peak","14,265","Elk","12th","2","39.0097","-106.861",true);AddMtnPushPin("holycross","Mount of the Holy Cross","14,005","Sawatch","53rd","2","39.4681","-106.479",true);AddMtnPushPin("massive","Mount Massive","14,421","Sawatch","2nd","2","39.1872","-106.475",true);AddMtnPushPin("elbert","Mount Elbert","14,433","Sawatch","1st","1","39.1178","-106.445",true);AddMtnPushPin("laplata","La Plata Peak","14,336","Sawatch","5th","2","39.0294","-106.473",true);AddMtnPushPin("oxford","Mount Oxford","14,153","Sawatch","27th","2","38.9647","-106.338",true);AddMtnPushPin("belford","Mount Belford","14,197","Sawatch","18th","2","38.9606","-106.361",true);AddMtnPushPin("missouri","Missouri Mountain","14,067","Sawatch","37th","2","38.9472","-106.378",true);AddMtnPushPin("huron","Huron Peak","14,003","Sawatch","54th","2","38.9453","-106.438",true);AddMtnPushPin("harvard","Mount Harvard","14,420","Sawatch","3rd","2","38.9244","-106.320",true);AddMtnPushPin("columbia","Mount Columbia","14,073","Sawatch","36th","2","38.9039","-106.297",true);AddMtnPushPin("yale","Mount Yale","14,196","Sawatch","21st","2","38.8442","-106.313",true);AddMtnPushPin("princeton","Mount Princeton","14,197","Sawatch","18th","2","38.7494","-106.242",true);AddMtnPushPin("antero","Mount Antero","14,269","Sawatch","10th","2","38.6737","-106.246",true);AddMtnPushPin("tabeguache","Tabeguache Peak","14,155","Sawatch","26th","2","38.6260","-106.260",true);AddMtnPushPin("shavano","Mount Shavano","14,229","Sawatch","17th","2","38.6189","-106.239",true);AddMtnPushPin("pikes","Pikes Peak","14,110","Front","31st","1","38.8406","-105.044",true);AddMtnPushPin("sanluis","San Luis Peak","14,014","San Juan","51st","1","37.9869","-106.931",true);AddMtnPushPin("sneffels","Mount Sneffels","14,150","San Juan","28th","2+","38.0033","-107.792",true);AddMtnPushPin("uncompahgre","Uncompahgre Peak","14,309","San Juan","6th","2","38.0717","-107.461",true);AddMtnPushPin("matterhorn","Matterhorn Peak","13,590","San Juan","127th","3","38.0652","-107.496",true);AddMtnPushPin("wetterhorn","Wetterhorn Peak","14,015","San Juan","50th","3","38.0606","-107.510",true);AddMtnPushPin("redcloud","Redcloud Peak","14,034","San Juan","47th","2","37.9408","-107.421",true);AddMtnPushPin("sunshine","Sunshine Peak","14,001","San Juan","55th","2","37.9228","-107.425",true);AddMtnPushPin("handies","Handies Peak","14,048","San Juan","41st","2","37.9131","-107.504",true);AddMtnPushPin("wilson_pk","Wilson Peak","14,017","San Juan","49th","3","37.8603","-107.984",true);AddMtnPushPin("eldiente","El Diente Peak","14,159","San Juan","24th","3","37.8394","-108.005",true);AddMtnPushPin("wilson_mt","Mount Wilson","14,246","San Juan","16th","4","37.8392","-107.991",true);AddMtnPushPin("sunlight","Sunlight Peak","14,059","San Juan","40th","4","37.6272","-107.595",false);AddMtnPushPin("eolus","Mount Eolus","14,083","San Juan","33rd","3","37.6228","-107.621",false);AddMtnPushPin("windom","Windom Peak","14,082","San Juan","34th","2+","37.6214","-107.591",false);
}
catch(e) {}
}
function AddMtnPushPin (mtnCode,mtnName,elevation,range,mtnrank,mtnclass,latitude,longitude,linked) {
var mtnText = linked ? ""+mtnName+"" : mtnName;
var forecastText = "Weather Forecast";
var pin = new VEPushpin(pushPinNbr++,mtnLatLong[mtnCode],"http://www.mtnzone.com/images/mtnpin_yellow.gif",mtnText,"Elevation: "+elevation+" ft
Mountain Range: "+range+"
Colorado Rank: "+mtnrank+"
Class Rating: "+mtnclass+"
Latitude: "+latitude+"
Longitude: "+longitude+"
"+forecastText,"iconStyle");
map.AddPushpin(pin);
}
function RemovePushPins() {
map.DeleteAllPushpins();
}
function resizeMap(mapDivID,width,height,objSelectElement) {
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;
objSelectElement.selectedIndex = 0;
GetMap();
}
}
function GoToMtn(objSelectElement) {
if (objSelectElement.selectedIndex != 0) {
var mtnCode = objSelectElement.options[objSelectElement.selectedIndex].value;
var zoomLevel = mtnCode!="centerColorado" ? zoomLevelMtn : zoomLevelColorado;
map.SetCenterAndZoom(mtnLatLong[mtnCode],zoomLevel);
}
}