var baseURL = "http://www.coloradowebcam.net/" var tlapse = "tlapse.php?camid="; var vidWin = null; var numCams = 19; var camInfo = new Array(numCams); camInfo["3"] = new Array("352","240","204.10.24.26"); camInfo["15"] = new Array("352","240","173.164.52.97:5633"); camInfo["18"] = new Array("352","240","216.237.87.171"); camInfo["22"] = new Array("352","240","70.41.79.234"); camInfo["29"] = new Array("352","240","24.9.206.236"); camInfo["31"] = new Array("320","240","173.8.226.241"); camInfo["32"] = new Array("352","240","208.72.66.146:1025"); camInfo["33"] = new Array("352","240","208.72.66.146"); camInfo["35"] = new Array("320","240","208.72.42.252:5632"); camInfo["36"] = new Array("320","240","208.72.42.252:5633"); camInfo["37"] = new Array("320","240","208.72.42.252"); camInfo["40"] = new Array("320","240","63.227.22.24"); camInfo["42"] = new Array("352","240","74.93.232.138:5631"); camInfo["46"] = new Array("320","240","173.8.253.105"); camInfo["47"] = new Array("352","240","148.64.37.66"); camInfo["50"] = new Array("352","240","208.72.69.117:5636"); camInfo["52"] = new Array("352","240","208.72.69.117:5632"); camInfo["53"] = new Array("352","240","208.72.69.117:5634"); camInfo["55"] = new Array("352","240","62.219.112.154:5635"); function closeVid() { if(vidWin != null) vidWin.close(); } function launchVideo(camid, bsmall) { var w, h, u, wh, ww; w = bsmall ? camInfo[camid][0] * 1 : camInfo[camid][0] * 2; h = bsmall ? camInfo[camid][1] * 1 : camInfo[camid][1] * 2; if(!bsmall) { ww = w; wh = h + 90; } else { ww = 352; wh = h + 80; } u = baseURL + "vidembed.php?id=" + camid + "&ip=" + camInfo[camid][2] + "&w=" + w + "&h=" + h + "&large=" + !bsmall; if(vidWin != null && !vidWin.closed) vidWin.close(); vidWin = window.open(u , "video", "width=" + ww + ",height=" + wh + ",location=no,menubar=no,resizable=no"); } function launchMain(camid) { var URLs = new Array(numCams); URLs["3"] = "http://www.vail-lodging.com/borders/index.htm"; URLs["15"] = "http://www.absolutecomputerdesign.com"; URLs["18"] = "http://www.vail-lodging.com/borders/index.htm"; URLs["22"] = "http://www.medbowlodge.com"; URLs["29"] = "http://www.nordicgardens.com"; URLs["31"] = "www.absolutecomputerdesign.com"; URLs["32"] = "http://absolutecomputerdesign.com"; URLs["33"] = "http://absolutecomptuerdesign.com"; URLs["35"] = "http://www.aspensquarehotel.com"; URLs["36"] = "http://www.aspensquarehotel.com"; URLs["37"] = "http://www.aspensquarehotel.com"; URLs["40"] = "http://www.tempranillorestaurant.com/"; URLs["42"] = "http://www.basalt66.com/"; URLs["46"] = "http://www.absolutecomputerdesign.com"; URLs["47"] = "http://www.absolutecomputerdesign.com"; URLs["50"] = "http://www.absolutecomputerdesign.com"; URLs["52"] = "http://www.absolutecomputerdesign.com"; URLs["53"] = "http://www.absolutecomputerdesign.com"; URLs["55"] = "http://www.kdnk.org/"; window.location = URLs[camid]; } function launchTlapse(camid) { var w, h, u, wh; w = camInfo[camid][0] * 2; h = camInfo[camid][1] * 2; wh = h + 105; u = baseURL + tlapse + camid; if(vidWin != null && !vidWin.closed) vidWin.close(); vidWin = window.open(u , "TimeLapse", "width=" + w + ",height=" + wh + ",location=no,menubar=no,resizable=no"); //window.location = baseURL + tlapse + camid; } function launchWeather(camid) { var URLs = new Array(numCams); URLs["3"] = "http://www.crh.noaa.gov/forecasts/COZ010.php?warncounty=COC037&city=Vail"; URLs["15"] = "http://forecast.weather.gov/MapClick.php?CityName=Glenwood+Springs&state=CO&site=GJT&textField1=39.5449&textField2=-107.33"; URLs["18"] = "http://www.crh.noaa.gov/forecasts/COZ010.php?warncounty=COC037&city=Vail"; URLs["22"] = "http://forecast.weather.gov/MapClick.php?CityName=Saratoga&state=WY&site=CYS&textField1=41.4515&textField2=-106.812"; URLs["29"] = "http://forecast.weather.gov/MapClick.php?CityName=Carbondale&state=CO&site=GJT&textField1=39.3973&textField2=-107.214"; URLs["31"] = "http://forecast.weather.gov/MapClick.php?CityName=Snowmass+Village&state=CO&site=GJT&textField1=39.1955&textField2=-106.939"; URLs["32"] = "http://forecast.weather.gov/MapClick.php?CityName=Carbondale&state=CO&site=GJT&textField1=39.3973&textField2=-107.214"; URLs["33"] = "http://forecast.weather.gov/MapClick.php?CityName=Carbondale&state=CO&site=GJT&textField1=39.3973&textField2=-107.214"; URLs["35"] = "http://forecast.weather.gov/MapClick.php?CityName=Aspen&state=CO&site=GJT&textField1=39.1946&textField2=-106.827"; URLs["36"] = "http://forecast.weather.gov/MapClick.php?CityName=Aspen&state=CO&site=GJT&textField1=39.1946&textField2=-106.827"; URLs["37"] = "http://forecast.weather.gov/MapClick.php?CityName=Aspen&state=CO&site=GJT&textField1=39.1946&textField2=-106.827"; URLs["40"] = "http://forecast.weather.gov/MapClick.php?CityName=Basalt&state=CO&site=GJT&textField1=39.3667&textField2=-107.027"; URLs["42"] = "http://forecast.weather.gov/MapClick.php?CityName=Basalt&state=CO&site=GJT&textField1=39.3667&textField2=-107.027"; URLs["46"] = "http://forecast.weather.gov/MapClick.php?CityName=Carbondale&state=CO&site=GJT&textField1=39.3973&textField2=-107.214"; URLs["47"] = "http://forecast.weather.gov/MapClick.php?CityName=Gunnison&state=CO&site=GJT&textField1=38.5447&textField2=-106.927"; URLs["50"] = "http://forecast.weather.gov/MapClick.php?CityName=Glenwood+Springs&state=CO&site=GJT&textField1=39.5449&textField2=-107.33"; URLs["52"] = "http://forecast.weather.gov/MapClick.php?CityName=Glenwood+Springs&state=CO&site=GJT&textField1=39.5449&textField2=-107.33"; URLs["53"] = "http://forecast.weather.gov/MapClick.php?CityName=Glenwood+Springs&state=CO&site=GJT&textField1=39.5449&textField2=-107.33"; URLs["55"] = "http://forecast.weather.gov/MapClick.php?CityName=Carbondale&state=CO&site=GJT&textField1=39.3973&textField2=-107.214"; window.open(URLs[camid]); }