var weatherCities = []; weatherCities[0] = {c:'Arad',dn:'Cloudy',dt:'Showers',imn:'http://l.yimg.com/a/i/us/we/52/26.gif',imt:'http://l.yimg.com/a/i/us/we/52/11.gif',tn:'4',ltd:'4',htd:'11',ltm:'5',htm:'9',l:'',link:'https://weather.yahoo.com/country/state/city-866307/'}; weatherCities[1] = {c:'Bacau',dn:'Cloudy',dt:'Cloudy',imn:'http://l.yimg.com/a/i/us/we/52/26.gif',imt:'http://l.yimg.com/a/i/us/we/52/26.gif',tn:'4',ltd:'4',htd:'8',ltm:'4',htm:'9',l:'',link:'https://weather.yahoo.com/country/state/city-866528/'}; weatherCities[2] = {c:'Botosani',dn:'Cloudy',dt:'Cloudy',imn:'http://l.yimg.com/a/i/us/we/52/26.gif',imt:'http://l.yimg.com/a/i/us/we/52/26.gif',tn:'3',ltd:'3',htd:'7',ltm:'3',htm:'6',l:'',link:'https://weather.yahoo.com/country/state/city-867889/'}; weatherCities[3] = {c:'Braila',dn:'Cloudy',dt:'Cloudy',imn:'http://l.yimg.com/a/i/us/we/52/26.gif',imt:'http://l.yimg.com/a/i/us/we/52/26.gif',tn:'6',ltd:'6',htd:'8',ltm:'8',htm:'11',l:'',link:'https://weather.yahoo.com/country/state/city-867987/'}; weatherCities[4] = {c:'Brasov',dn:'Mostly Cloudy',dt:'Mostly Cloudy',imn:'http://l.yimg.com/a/i/us/we/52/27.gif',imt:'http://l.yimg.com/a/i/us/we/52/28.gif',tn:'4',ltd:'3',htd:'8',ltm:'1',htm:'10',l:'',link:'https://weather.yahoo.com/country/state/city-868025/'}; weatherCities[5] = {c:'Bucuresti',dn:'Cloudy',dt:'Mostly Cloudy',imn:'http://l.yimg.com/a/i/us/we/52/26.gif',imt:'http://l.yimg.com/a/i/us/we/52/28.gif',tn:'5',ltd:'4',htd:'8',ltm:'5',htm:'9',l:'',link:'https://weather.yahoo.com/country/state/city-868274/'}; weatherCities[6] = {c:'Buzau',dn:'Cloudy',dt:'Mostly Cloudy',imn:'http://l.yimg.com/a/i/us/we/52/26.gif',imt:'http://l.yimg.com/a/i/us/we/52/28.gif',tn:'5',ltd:'5',htd:'7',ltm:'4',htm:'9',l:'',link:'https://weather.yahoo.com/country/state/city-868562/'}; weatherCities[7] = {c:'Calafat',dn:'Cloudy',dt:'Scattered Showers',imn:'http://l.yimg.com/a/i/us/we/52/26.gif',imt:'http://l.yimg.com/a/i/us/we/52/39.gif',tn:'5',ltd:'4',htd:'6',ltm:'4',htm:'7',l:'',link:'https://weather.yahoo.com/country/state/city-868624/'}; weatherCities[8] = {c:'Calarasi',dn:'Cloudy',dt:'Mostly Cloudy',imn:'http://l.yimg.com/a/i/us/we/52/26.gif',imt:'http://l.yimg.com/a/i/us/we/52/28.gif',tn:'6',ltd:'6',htd:'8',ltm:'6',htm:'12',l:'',link:'https://weather.yahoo.com/country/state/city-868635/'}; weatherCities[9] = {c:'Campina',dn:'Cloudy',dt:'Cloudy',imn:'http://l.yimg.com/a/i/us/we/52/26.gif',imt:'http://l.yimg.com/a/i/us/we/52/26.gif',tn:'5',ltd:'3',htd:'6',ltm:'0',htm:'7',l:'',link:'https://weather.yahoo.com/country/state/city-869475/'}; weatherCities[10] = {c:'Caransebes',dn:'Cloudy',dt:'Showers',imn:'http://l.yimg.com/a/i/us/we/52/26.gif',imt:'http://l.yimg.com/a/i/us/we/52/11.gif',tn:'7',ltd:'6',htd:'11',ltm:'6',htm:'10',l:'',link:'https://weather.yahoo.com/country/state/city-868844/'}; weatherCities[11] = {c:'Ceahlau Toaca',dn:'Mostly Cloudy',dt:'Cloudy',imn:'http://l.yimg.com/a/i/us/we/52/27.gif',imt:'http://l.yimg.com/a/i/us/we/52/26.gif',tn:'-1',ltd:'-1',htd:'6',ltm:'0',htm:'5',l:'',link:'https://weather.yahoo.com/country/state/city-869019/'}; weatherCities[12] = {c:'Cluj-Napoca',dn:'Mostly Cloudy',dt:'Showers',imn:'http://l.yimg.com/a/i/us/we/52/27.gif',imt:'http://l.yimg.com/a/i/us/we/52/11.gif',tn:'5',ltd:'4',htd:'7',ltm:'2',htm:'7',l:'',link:'https://weather.yahoo.com/country/state/city-869897/'}; weatherCities[13] = {c:'Constanta',dn:'Cloudy',dt:'Mostly Cloudy',imn:'http://l.yimg.com/a/i/us/we/52/26.gif',imt:'http://l.yimg.com/a/i/us/we/52/28.gif',tn:'8',ltd:'8',htd:'11',ltm:'11',htm:'12',l:'',link:'https://weather.yahoo.com/country/state/city-870151/'}; weatherCities[14] = {c:'Craiova',dn:'Cloudy',dt:'Cloudy',imn:'http://l.yimg.com/a/i/us/we/52/26.gif',imt:'http://l.yimg.com/a/i/us/we/52/26.gif',tn:'5',ltd:'4',htd:'6',ltm:'4',htm:'7',l:'',link:'https://weather.yahoo.com/country/state/city-870605/'}; weatherCities[15] = {c:'Drobeta Tr. Severin',dn:'Cloudy',dt:'Scattered Showers',imn:'http://l.yimg.com/a/i/us/we/52/26.gif',imt:'http://l.yimg.com/a/i/us/we/52/39.gif',tn:'6',ltd:'5',htd:'8',ltm:'5',htm:'7',l:'',link:'https://weather.yahoo.com/country/state/city-871703/'}; weatherCities[16] = {c:'Focsani',dn:'Cloudy',dt:'Mostly Cloudy',imn:'http://l.yimg.com/a/i/us/we/52/26.gif',imt:'http://l.yimg.com/a/i/us/we/52/28.gif',tn:'6',ltd:'5',htd:'9',ltm:'3',htm:'10',l:'',link:'https://weather.yahoo.com/country/state/city-872317/'}; weatherCities[17] = {c:'Galati',dn:'Cloudy',dt:'Cloudy',imn:'http://l.yimg.com/a/i/us/we/52/26.gif',imt:'http://l.yimg.com/a/i/us/we/52/26.gif',tn:'6',ltd:'6',htd:'8',ltm:'8',htm:'11',l:'',link:'https://weather.yahoo.com/country/state/city-872551/'}; weatherCities[18] = {c:'Gheorgheni',dn:'Cloudy',dt:'Cloudy',imn:'http://l.yimg.com/a/i/us/we/52/26.gif',imt:'http://l.yimg.com/a/i/us/we/52/26.gif',tn:'0',ltd:'0',htd:'5',ltm:'0',htm:'5',l:'',link:'https://weather.yahoo.com/country/state/city-872726/'}; weatherCities[19] = {c:'Giurgiu',dn:'Cloudy',dt:'Mostly Cloudy',imn:'http://l.yimg.com/a/i/us/we/52/26.gif',imt:'http://l.yimg.com/a/i/us/we/52/28.gif',tn:'4',ltd:'4',htd:'8',ltm:'3',htm:'10',l:'',link:'https://weather.yahoo.com/country/state/city-872978/'}; weatherCities[20] = {c:'Iasi',dn:'Cloudy',dt:'Cloudy',imn:'http://l.yimg.com/a/i/us/we/52/26.gif',imt:'http://l.yimg.com/a/i/us/we/52/26.gif',tn:'6',ltd:'6',htd:'8',ltm:'5',htm:'9',l:'',link:'https://weather.yahoo.com/country/state/city-873915/'}; weatherCities[21] = {c:'Oradea',dn:'Cloudy',dt:'Showers',imn:'http://l.yimg.com/a/i/us/we/52/26.gif',imt:'http://l.yimg.com/a/i/us/we/52/11.gif',tn:'2',ltd:'2',htd:'11',ltm:'5',htm:'8',l:'',link:'https://weather.yahoo.com/country/state/city-876890/'}; weatherCities[22] = {c:'Petrosani',dn:'Cloudy',dt:'Scattered Showers',imn:'http://l.yimg.com/a/i/us/we/52/26.gif',imt:'http://l.yimg.com/a/i/us/we/52/39.gif',tn:'5',ltd:'2',htd:'9',ltm:'0',htm:'7',l:'',link:'https://weather.yahoo.com/country/state/city-877504/'}; weatherCities[23] = {c:'Pitesti',dn:'Cloudy',dt:'Cloudy',imn:'http://l.yimg.com/a/i/us/we/52/26.gif',imt:'http://l.yimg.com/a/i/us/we/52/26.gif',tn:'5',ltd:'4',htd:'7',ltm:'3',htm:'7',l:'',link:'https://weather.yahoo.com/country/state/city-877765/'}; weatherCities[24] = {c:'Ploiesti',dn:'Cloudy',dt:'Mostly Cloudy',imn:'http://l.yimg.com/a/i/us/we/52/26.gif',imt:'http://l.yimg.com/a/i/us/we/52/28.gif',tn:'5',ltd:'5',htd:'7',ltm:'3',htm:'8',l:'',link:'https://weather.yahoo.com/country/state/city-877873/'}; weatherCities[25] = {c:'Prundu',dn:'Cloudy',dt:'Cloudy',imn:'http://l.yimg.com/a/i/us/we/52/26.gif',imt:'http://l.yimg.com/a/i/us/we/52/26.gif',tn:'5',ltd:'4',htd:'7',ltm:'3',htm:'7',l:'',link:'https://weather.yahoo.com/country/state/city-878611/'}; weatherCities[26] = {c:'Rimnicu Vilcea',dn:'Cloudy',dt:'Cloudy',imn:'http://l.yimg.com/a/i/us/we/52/26.gif',imt:'http://l.yimg.com/a/i/us/we/52/26.gif',tn:'6',ltd:'5',htd:'7',ltm:'4',htm:'8',l:'',link:'https://weather.yahoo.com/country/state/city-879084/'}; weatherCities[27] = {c:'Rosiori de Vede',dn:'Cloudy',dt:'Mostly Cloudy',imn:'http://l.yimg.com/a/i/us/we/52/26.gif',imt:'http://l.yimg.com/a/i/us/we/52/28.gif',tn:'4',ltd:'4',htd:'7',ltm:'4',htm:'8',l:'',link:'https://weather.yahoo.com/country/state/city-879261/'}; weatherCities[28] = {c:'Satu Mare',dn:'Cloudy',dt:'Showers',imn:'http://l.yimg.com/a/i/us/we/52/26.gif',imt:'http://l.yimg.com/a/i/us/we/52/11.gif',tn:'0',ltd:'0',htd:'10',ltm:'6',htm:'8',l:'',link:'https://weather.yahoo.com/country/state/city-879779/'}; weatherCities[29] = {c:'Sibiu',dn:'Mostly Cloudy',dt:'Cloudy',imn:'http://l.yimg.com/a/i/us/we/52/27.gif',imt:'http://l.yimg.com/a/i/us/we/52/26.gif',tn:'5',ltd:'3',htd:'10',ltm:'2',htm:'10',l:'',link:'https://weather.yahoo.com/country/state/city-880241/'}; weatherCities[30] = {c:'Sighetu Marmatiei',dn:'Cloudy',dt:'Showers',imn:'http://l.yimg.com/a/i/us/we/52/26.gif',imt:'http://l.yimg.com/a/i/us/we/52/11.gif',tn:'1',ltd:'1',htd:'8',ltm:'3',htm:'8',l:'',link:'https://weather.yahoo.com/country/state/city-880266/'}; weatherCities[31] = {c:'Slatina',dn:'Cloudy',dt:'Cloudy',imn:'http://l.yimg.com/a/i/us/we/52/26.gif',imt:'http://l.yimg.com/a/i/us/we/52/26.gif',tn:'5',ltd:'4',htd:'7',ltm:'4',htm:'8',l:'',link:'https://weather.yahoo.com/country/state/city-880584/'}; weatherCities[32] = {c:'Slobozia',dn:'Cloudy',dt:'Mostly Cloudy',imn:'http://l.yimg.com/a/i/us/we/52/26.gif',imt:'http://l.yimg.com/a/i/us/we/52/28.gif',tn:'6',ltd:'6',htd:'8',ltm:'6',htm:'11',l:'',link:'https://weather.yahoo.com/country/state/city-880646/'}; weatherCities[33] = {c:'Sulina',dn:'Showers',dt:'Cloudy',imn:'http://l.yimg.com/a/i/us/we/52/11.gif',imt:'http://l.yimg.com/a/i/us/we/52/26.gif',tn:'7',ltd:'7',htd:'9',ltm:'8',htm:'11',l:'',link:'https://weather.yahoo.com/country/state/city-56121196/'}; weatherCities[34] = {c:'Talmaciu',dn:'Partly Cloudy',dt:'Cloudy',imn:'http://l.yimg.com/a/i/us/we/52/29.gif',imt:'http://l.yimg.com/a/i/us/we/52/26.gif',tn:'6',ltd:'5',htd:'10',ltm:'4',htm:'10',l:'',link:'https://weather.yahoo.com/country/state/city-881426/'}; weatherCities[35] = {c:'Timisoara',dn:'Cloudy',dt:'Showers',imn:'http://l.yimg.com/a/i/us/we/52/26.gif',imt:'http://l.yimg.com/a/i/us/we/52/11.gif',tn:'2',ltd:'1',htd:'11',ltm:'5',htm:'10',l:'',link:'https://weather.yahoo.com/country/state/city-881802/'}; weatherCities[36] = {c:'Tirgoviste',dn:'Cloudy',dt:'Cloudy',imn:'http://l.yimg.com/a/i/us/we/52/26.gif',imt:'http://l.yimg.com/a/i/us/we/52/26.gif',tn:'5',ltd:'4',htd:'7',ltm:'2',htm:'8',l:'',link:'https://weather.yahoo.com/country/state/city-881854/'}; weatherCities[37] = {c:'Varfu Omu',dn:'Cloudy',dt:'Cloudy',imn:'http://l.yimg.com/a/i/us/we/52/26.gif',imt:'http://l.yimg.com/a/i/us/we/52/26.gif',tn:'5',ltd:'4',htd:'6',ltm:'2',htm:'7',l:'',link:'https://weather.yahoo.com/country/state/city-883623/'}; weatherCities[38] = {c:'Vf. Omu',dn:'',dt:'',imn:'',imt:'',tn:'',ltd:'',htd:'',ltm:'',htm:'',l:'',link:''}; var weatherIdxStr = getCookie("hn_weather"); if (weatherIdxStr && weatherIdxStr.length > 0) { var weatherIdx = parseInt(weatherIdxStr); if (isNaN(weatherIdx) || weatherIdx < 0 || weatherIdx >= weatherCities.length) { weatherIdx = 0; } var weatherCombo = $("weatherCombo"); if (objIsValid(weatherCombo)) { weatherCombo.selectedIndex = weatherIdx; } showWeather(weatherIdx); } else { var bucIdx = 0; for(var i = 0; i < weatherCities.length; i++) { if(weatherCities[i].c && weatherCities[i].c != null && weatherCities[i].c == 'Bucuresti') { bucIdx = i; break; } } showWeather(bucIdx); }