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