1. VOLTAGExDT's Avatar
    here they come

    UniAW6.0 for iph4 & iph5-balloon110.pngUniAW6.0 for iph4 & iph5-balloon111.pngUniAW6.0 for iph4 & iph5-balloon112.pngUniAW6.0 for iph4 & iph5-balloon113.pngUniAW6.0 for iph4 & iph5-balloon114.pngUniAW6.0 for iph4 & iph5-balloon115.pngUniAW6.0 for iph4 & iph5-balloon116.pngUniAW6.0 for iph4 & iph5-balloon117.pngUniAW6.0 for iph4 & iph5-balloon118.pngUniAW6.0 for iph4 & iph5-balloon119.pngUniAW6.0 for iph4 & iph5-balloon120.png

    .....
    UniAW6.0 for iph4 & iph5-balloon121.pngUniAW6.0 for iph4 & iph5-balloon122.pngUniAW6.0 for iph4 & iph5-balloon123.pngUniAW6.0 for iph4 & iph5-balloon124.pngUniAW6.0 for iph4 & iph5-balloon125.pngUniAW6.0 for iph4 & iph5-balloon126.pngUniAW6.0 for iph4 & iph5-balloon127.pngUniAW6.0 for iph4 & iph5-balloon128.pngUniAW6.0 for iph4 & iph5-balloon129.pngUniAW6.0 for iph4 & iph5-balloon130.png

    .....
    ...

    UniAW6.0 for iph4 & iph5-balloon131.pngUniAW6.0 for iph4 & iph5-balloon132.pngUniAW6.0 for iph4 & iph5-balloon133.pngUniAW6.0 for iph4 & iph5-balloon134.pngUniAW6.0 for iph4 & iph5-balloon135.pngUniAW6.0 for iph4 & iph5-balloon136.pngUniAW6.0 for iph4 & iph5-balloon137.pngUniAW6.0 for iph4 & iph5-balloon138.pngUniAW6.0 for iph4 & iph5-balloon139.pngUniAW6.0 for iph4 & iph5-balloon140.png
    2013-05-21 05:29 PM
  2. C2CA's Avatar
    Anyone post a location.js fix?
    2013-05-21 05:32 PM
  3. VOLTAGExDT's Avatar
    .........UniAW6.0 for iph4 & iph5-balloon141.pngUniAW6.0 for iph4 & iph5-balloon142.png

    and all of them so far in a zip
    UNIBalloons.zip
    2013-05-21 05:32 PM
  4. bliken's Avatar
    I did and still only a BLACK SCREEN with clock.....did it like you suggested

    /*if (Reverse_Hi_Lo == true) {
    document.getElementById("Day1Icon").src="Icon Sets/HTC/1.png";
    document.getElementById("Day1").innerHTML="Mon";
    document.getElementById("Day1HiLo").innerHTML="65" + "" + "/" + "-56" + "";
    document.getElementById("Day2Icon").src="Icon Sets/HTC/28.png";
    document.getElementById("Day2").innerHTML="Tue";
    document.getElementById("Day2HiLo").innerHTML="64" + "" + "/" + "-55" + "";
    document.getElementById("Day3Icon").src="Icon Sets/HTC/30.png";
    document.getElementById("Day3").innerHTML="Wed";
    document.getElementById("Day3HiLo").innerHTML="63" + "" + "/" + "-54" + "";
    document.getElementById("Day4Icon").src="Icon Sets/HTC/45.png";
    document.getElementById("Day4").innerHTML="Thu";
    document.getElementById("Day4HiLo").innerHTML="62" + "" + "/" + "-53" + ""; */
    } else {
    document.getElementById("Day1Icon").src="Icon Sets/HTC/1.png";
    document.getElementById("Day1").innerHTML="Mon";
    document.getElementById("Day1HiLo").innerHTML="-56" + "" + "/" + "65" + "";
    /*document.getElementById("Day2Icon").src="Icon Sets/HTC/28.png";
    document.getElementById("Day2").innerHTML="Tue";
    document.getElementById("Day2HiLo").innerHTML="-55" + "" + "/" + "64" + "";
    document.getElementById("Day3Icon").src="Icon Sets/HTC/30.png";
    document.getElementById("Day3").innerHTML="Wed";
    document.getElementById("Day3HiLo").innerHTML="-54" + "" + "/" + "63" + "";
    document.getElementById("Day4Icon").src="Icon Sets/HTC/45.png";
    document.getElementById("Day4").innerHTML="Thu";
    document.getElementById("Day4HiLo").innerHTML="-54" + "" + "/" + "62" + "";
    }*/

    if (obj.icon == 3200) obj.icon = 48;

    /*obj.Day1 = request.responseXML.getElementsByTagName("forecast ")[1].getAttribute("day");
    obj.Day1Hi = request.responseXML.getElementsByTagName("forecast ")[1].getAttribute("high");
    obj.Day1Lo = request.responseXML.getElementsByTagName("forecast ")[1].getAttribute("low");
    obj.Day1Code = request.responseXML.getElementsByTagName("forecast ")[1].getAttribute("code");

    obj.Day2 = request.responseXML.getElementsByTagName("forecast ")[2].getAttribute("day");
    obj.Day2Hi = request.responseXML.getElementsByTagName("forecast ")[2].getAttribute("high");
    obj.Day2Lo = request.responseXML.getElementsByTagName("forecast ")[2].getAttribute("low");
    obj.Day2Code = request.responseXML.getElementsByTagName("forecast ")[2].getAttribute("code");

    obj.Day3 = request.responseXML.getElementsByTagName("forecast ")[3].getAttribute("day");
    obj.Day3Hi = request.responseXML.getElementsByTagName("forecast ")[3].getAttribute("high");
    obj.Day3Lo = request.responseXML.getElementsByTagName("forecast ")[3].getAttribute("low");
    obj.Day3Code = request.responseXML.getElementsByTagName("forecast ")[3].getAttribute("code");

    obj.Day4 = request.responseXML.getElementsByTagName("forecast ")[4].getAttribute("day");
    obj.Day4Hi = request.responseXML.getElementsByTagName("forecast ")[4].getAttribute("high");
    obj.Day4Lo = request.responseXML.getElementsByTagName("forecast ")[4].getAttribute("low");
    obj.Day4Code = request.responseXML.getElementsByTagName("forecast ")[4].getAttribute("code");*/

    callback (obj);
    } else {
    callback ({error:true});
    }

    Do it this way instead;

    if (FullScreen_WW == true) { document.getElementById("fullScreenWeatherWalls"). src="Images/fullScreenWeatherWalls/" + where + "_" + Conditions[obj.icon] +".jpg"; }

    /*if (Reverse_Hi_Lo == true) {
    document.getElementById("Day1").innerHTML=Forecast DayNames(obj.Day1).substring(0,3);
    document.getElementById("Day1Icon").src="Icon Sets/"+iconSet+"/"+obj.Day1Code+".png";
    document.getElementById("Day1HiLo").innerHTML=obj. Day1Hi+ "/ "+obj.Day1Lo+ "";
    document.getElementById("Day2").innerHTML=Forecast DayNames(obj.Day2).substring(0,3);
    document.getElementById("Day2Icon").src="Icon Sets/"+iconSet+"/"+obj.Day2Code+".png";
    document.getElementById("Day2HiLo").innerHTML=obj. Day2Hi+ "/ "+obj.Day2Lo+ "";
    document.getElementById("Day3").innerHTML=Forecast DayNames(obj.Day3).substring(0,3);
    document.getElementById("Day3Icon").src="Icon Sets/"+iconSet+"/"+obj.Day3Code+".png";
    document.getElementById("Day3HiLo").innerHTML=obj. Day3Hi+ "/ "+obj.Day3Lo+ "";
    document.getElementById("Day4").innerHTML=Forecast DayNames(obj.Day4).substring(0,3);
    document.getElementById("Day4Icon").src="Icon Sets/"+iconSet+"/"+obj.Day4Code+".png";
    document.getElementById("Day4HiLo").innerHTML=obj. Day4Hi+ "/ "+obj.Day4Lo+ "";
    } else {
    document.getElementById("Day1").innerHTML=Forecast DayNames(obj.Day1).substring(0,3);
    document.getElementById("Day1Icon").src="Icon Sets/"+iconSet+"/"+obj.Day1Code+".png";
    document.getElementById("Day1HiLo").innerHTML=obj. Day1Lo+ "/ "+obj.Day1Hi+ "";
    document.getElementById("Day2").innerHTML=Forecast DayNames(obj.Day2).substring(0,3);
    document.getElementById("Day2Icon").src="Icon Sets/"+iconSet+"/"+obj.Day2Code+".png";
    document.getElementById("Day2HiLo").innerHTML=obj. Day2Lo+ "/ "+obj.Day2Hi+ "";
    document.getElementById("Day3").innerHTML=Forecast DayNames(obj.Day3).substring(0,3);
    document.getElementById("Day3Icon").src="Icon Sets/"+iconSet+"/"+obj.Day3Code+".png";
    document.getElementById("Day3HiLo").innerHTML=obj. Day3Lo+ "/ "+obj.Day3Hi+ "";
    document.getElementById("Day4").innerHTML=Forecast DayNames(obj.Day4).substring(0,3);
    document.getElementById("Day4Icon").src="Icon Sets/"+iconSet+"/"+obj.Day4Code+".png";
    document.getElementById("Day4HiLo").innerHTML=obj. Day4Lo+ "/ "+obj.Day4Hi+ "";
    }*/



    if (obj.icon == 3200) obj.icon = 48;

    /*obj.Day1 = request.responseXML.getElementsByTagName("forecast ")[1].getAttribute("day");
    obj.Day1Hi = request.responseXML.getElementsByTagName("forecast ")[1].getAttribute("high");
    obj.Day1Lo = request.responseXML.getElementsByTagName("forecast ")[1].getAttribute("low");
    obj.Day1Code = request.responseXML.getElementsByTagName("forecast ")[1].getAttribute("code");

    obj.Day2 = request.responseXML.getElementsByTagName("forecast ")[2].getAttribute("day");
    obj.Day2Hi = request.responseXML.getElementsByTagName("forecast ")[2].getAttribute("high");
    obj.Day2Lo = request.responseXML.getElementsByTagName("forecast ")[2].getAttribute("low");
    obj.Day2Code = request.responseXML.getElementsByTagName("forecast ")[2].getAttribute("code");

    obj.Day3 = request.responseXML.getElementsByTagName("forecast ")[3].getAttribute("day");
    obj.Day3Hi = request.responseXML.getElementsByTagName("forecast ")[3].getAttribute("high");
    obj.Day3Lo = request.responseXML.getElementsByTagName("forecast ")[3].getAttribute("low");
    obj.Day3Code = request.responseXML.getElementsByTagName("forecast ")[3].getAttribute("code");

    obj.Day4 = request.responseXML.getElementsByTagName("forecast ")[4].getAttribute("day");
    obj.Day4Hi = request.responseXML.getElementsByTagName("forecast ")[4].getAttribute("high");
    obj.Day4Lo = request.responseXML.getElementsByTagName("forecast ")[4].getAttribute("low");
    obj.Day4Code = request.responseXML.getElementsByTagName("forecast ")[4].getAttribute("code");*/

    callback (obj);
    } else {
    callback ({error:true});
    }
    2013-05-21 05:33 PM
  5. MamaJaay's Avatar
    Marty. Have added to smash. After all yweather calls as stated. Waiting for weather to get over 80 to check accuracy. It 78 now
    2013-05-21 05:40 PM
  6. RandyTG's Avatar
    I did and still only a BLACK SCREEN with clock.....did it like you suggested
    Did you undo the previous /* entries you had made?
    I see in your post that you have this line still
    /*document.getElementById("Day2Icon").src="Icon Sets/HTC/28.png";
    2013-05-21 05:44 PM
  7. MamaJaay's Avatar
    This mod is coded to display both at once so I will see it as soon as it kicks in.
    Attachment 639303
    2013-05-21 05:44 PM
  8. NewD's Avatar
    K just sent it with a pic of my LS
    Still didn't work..
    2013-05-21 05:45 PM
  9. isostar's Avatar
    deleted
    Last edited by isostar; 2013-05-21 at 05:56 PM.
    2013-05-21 05:46 PM
  10. NewD's Avatar
    no matter what theme and commenting out like stated before...

    i only get the black screen with clock stuck on 12:00 position...

    i am getting frustrated...i am soooo STUPID...can't figure this out
    I am exactly in the same situation at Bliken here. Followed commenting out instructions to a tee and I'm pretty good with code. Something is missing in the general fixes being posted - for some of us. It's getting pretty frustrating.
    2013-05-21 05:49 PM
  11. bliken's Avatar
    took it out...still black screen


    /*if (Reverse_Hi_Lo == true) {
    document.getElementById("Day1Icon").src="Icon Sets/HTC/1.png";
    document.getElementById("Day1").innerHTML="Mon";
    document.getElementById("Day1HiLo").innerHTML="65" + "" + "/" + "-56" + "";
    document.getElementById("Day2Icon").src="Icon Sets/HTC/28.png";
    document.getElementById("Day2").innerHTML="Tue";
    document.getElementById("Day2HiLo").innerHTML="64" + "" + "/" + "-55" + "";
    document.getElementById("Day3Icon").src="Icon Sets/HTC/30.png";
    document.getElementById("Day3").innerHTML="Wed";
    document.getElementById("Day3HiLo").innerHTML="63" + "" + "/" + "-54" + "";
    document.getElementById("Day4Icon").src="Icon Sets/HTC/45.png";
    document.getElementById("Day4").innerHTML="Thu";
    document.getElementById("Day4HiLo").innerHTML="62" + "" + "/" + "-53" + ""; */
    } else {
    document.getElementById("Day1Icon").src="Icon Sets/HTC/1.png";
    document.getElementById("Day1").innerHTML="Mon";
    document.getElementById("Day1HiLo").innerHTML="-56" + "" + "/" + "65" + "";
    document.getElementById("Day2Icon").src="Icon Sets/HTC/28.png";
    document.getElementById("Day2").innerHTML="Tue";
    document.getElementById("Day2HiLo").innerHTML="-55" + "" + "/" + "64" + "";
    document.getElementById("Day3Icon").src="Icon Sets/HTC/30.png";
    document.getElementById("Day3").innerHTML="Wed";
    document.getElementById("Day3HiLo").innerHTML="-54" + "" + "/" + "63" + "";
    document.getElementById("Day4Icon").src="Icon Sets/HTC/45.png";
    document.getElementById("Day4").innerHTML="Thu";
    document.getElementById("Day4HiLo").innerHTML="-54" + "" + "/" + "62" + "";
    }*/


    Did you undo the previous /* entries you had made?
    I see in your post that you have this line still
    /*document.getElementById("Day2Icon").src="Icon Sets/HTC/28.png";
    here is my js file

    // UniAW6.2 By Ian Nicoll with credit to Dacal

    var updateWeatherEvery = updateInterval*60*1000;
    var xmldata = false;
    var postal;
    var filename = "";
    var Start_wind_effects = false;
    var Show_wind_effects = false;
    var wind_effects;
    var where = "";
    var whereOld = "";
    var DemoOn = false;
    var refreshLocationTimer;
    var updateTimer = 0;
    var widgetTimer;
    var wpidx = "-1";
    var zip;
    var TextColor = "TextColorGrey";
    var meteorTimer;
    if (screen.height > 500) {var iPhoneType = "iph5";} else {var iPhoneType = "iph4";}
    $.ajaxSetup({timeout:10000}); // Set a time out for all ajax requests.

    switch (lang) {
    case "cn":
    var days = ["˜ŸœŸ—","˜ŸœŸ€","˜ŸœŸŒ","˜ŸœŸ‰"," ˜ŸœŸ››","˜ŸœŸ”","˜ŸœŸ…*"];
    var months=['€œˆ','Œœˆ','‰œˆ','››œˆ','”œˆ','…* œˆ','ƒœˆ','…œˆ','九œˆ','十œˆ','十€œˆ ','十Œœˆ'];
    break;
    case "fi":
    var days = ["Sunnuntai", "Maanantai", "Tiistai", "Keskiviikko", "Torstai", "Perjantai", "Lauantai"];
    var months = ["Tammikuu", "Helmikuu", "Maaliskuu", "Huhtikuu", "Toukokuu", "Kesäkuu", "Heinäkuu", "Elokuu", "Syyskuu", "Lokakuu", "Marraskuu", "Joulukuu"];
    break;

    case "fr":
    var days = ["Dimanche", "Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi"];
    var months = ["Janvier", "Fevrier", "Mars", "Avril", "Mai", "Juin", "Juillet", "Aout", "Septembre", "Octobre", "Novembre", "Decembre"];
    break;
    case "de":
    var days = ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"];
    var months = ["Januar", "Februar", "Maerz", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"];
    break;
    case "nl":
    var days = ["Zondag", "Maandag", "Dinsdag", "Woensdag", "Donderdag", "Vrijdag", "Zaterdag"];
    var months = ["Januari", "Februari", "Maart", "April", "Mei", "Juni", "Juli", "Augustus", "September", "Oktober", "November", "December"];
    break;
    case "sp":
    var days = ["Dom", "Lun", "Mar", "Mie", "Jue", "Vie", "Sab"];
    var months = ['Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Juliot', 'Agosto', 'Septiembre', 'Octubre', 'Novimbre', 'Decimbre'];
    break;
    case "it":
    var days = ["Domenica", "Lunedi", "Martedì", "Mercoledì", "Giovedi", "Venerdì", "Sabato"];
    var months = ['Gennaio', 'Febbraio', 'Marzo', 'Aprile', 'Maggio', 'Giugno', 'Luglio', 'Agosto', 'Settembre', 'Ottobre', 'Novembre', 'Dicembre'];
    break;
    case "ru":
    var days = ["’оск€есенŒе","ŸонеделŒник", "’‚о€ник","С€еда","Че‚ве€г","Ÿ я‚ни†а","Сƒббо‚а"];
    var months = ['Янва€я','Фев€аля','œа€‚а','Ап €еля','œая','˜Žня','˜Žля','Авгƒ с‚а','Сен‚яб€я','žк‚яб€я','Но б€я','”екаб€я'];
    break;
    default:
    var days = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
    var months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
    break;
    }

    function updateClock () {
    var currentTime = new Date();
    var currentHours = currentTime.getHours();
    var currentMinutes = currentTime.getMinutes() < 10 ? '0' + currentTime.getMinutes() : currentTime.getMinutes();
    var currentSeconds = currentTime.getSeconds() < 10 ? '0' + currentTime.getSeconds() : currentTime.getSeconds();
    var mil = currentTime.getMilliseconds();
    var currentDate = currentTime.getDate() < 10 ? '' + currentTime.getDate() : currentTime.getDate();
    time_to_change_wall = currentHours + currentMinutes/60;
    timeOfDay = ( currentHours < 12 ) ? "am" : "pm";

    if (ampm == false) {
    timeOfDay = "";
    currentHours = ( currentHours < 10 ? "0" : "" ) + currentHours;
    currentTimeString = currentHours + ":" + currentMinutes;
    } else {
    currentHours = ( currentHours > 12 ) ? currentHours - 12 : currentHours;
    currentHours = ( currentHours < 10 ? "0" : "" ) + currentHours;
    currentHours = ( currentHours == 0 ) ? 12 : currentHours;
    currentTimeString = currentHours + ":" + currentMinutes;
    }

    // ANALOG CLOCK
    if (Hide_AnalogClock == false) {

    // COMMON PART
    if (Second_Hand_Sweep == true) {
    var sdegree = currentSeconds * 6 + (mil / (1000/6));
    var srotate = "rotate(" + sdegree + "deg)";
    } else {
    var sdegree = currentSeconds * 6;
    var srotate = "rotate(" + sdegree + "deg)";
    }

    var mdegree = currentMinutes * 6;
    var mrotate = "rotate(" + mdegree + "deg)";
    $("#minhand").css("-webkit-transform", mrotate );

    var hdegree = currentHours * 30 + (currentMinutes / 2);
    var hrotate = "rotate(" + hdegree + "deg)";
    $("#hourhand").css("-webkit-transform", hrotate );
    // END COMMON PART

    switch (Second_Hand_Options) {
    case "big":
    $("#bigsechand").css("-webkit-transform", srotate );
    break;
    case "small":
    $("#smallsechand").css("-webkit-transform", srotate );
    break;
    case "both":
    $("#smallsechand, #bigsechand").css("-webkit-transform", srotate );
    break;
    }

    if (Hide_AnalogClock_Info == true) {
    document.getElementById("month").style.display='no ne';
    document.getElementById("year").style.display='non e';
    document.getElementById("day").style.display='none ';
    }
    }
    // END ANALOG CLOCK


    if (Show_Single_Line_Date == true) {
    document.getElementById("SingleLineDate").innerHTM L = days[currentTime.getDay()] + ", " + months[currentTime.getMonth()] + " " + currentDate + ". " + currentTime.getFullYear();
    }

    document.getElementById("clock").innerHTML = currentTimeString;
    document.getElementById("ampm").innerHTML = timeOfDay;
    document.getElementById("second").innerHTML = currentSeconds;

    document.getElementById("day").innerHTML = days[currentTime.getDay()] + ""; // Place comma & space between "" for seperation
    document.getElementById("month").innerHTML = months[currentTime.getMonth()];
    document.getElementById("year").innerHTML = currentTime.getFullYear();
    document.getElementById("date").innerHTML = currentDate;

    // DAY OR NIGHT CHANGE
    if (xmldata == true) {
    if ((time_to_change_wall < dayhour) || (time_to_change_wall >= nighthour)) { var whereTmp = "night"; } else { var whereTmp = "day"; }
    if (whereTmp != where) { window.location.reload(); }
    }
    // END

    // UPDATE WALLPAPER
    if (TimedWall == true) {
    var h = currentTime.getMinutes() >= 30 ? currentTime.getHours()+'-5' : currentTime.getHours()+'-0';
    if ( h != wpidx ) {
    wpidx = h;
    WPfade_in.src = "Images/TimedWall/" + wpidx + ".jpg";
    var WPfade_tmp = WPfade_in;
    WPfade_in = WPfade_out;
    WPfade_out = WPfade_tmp;
    WPfade_in.className='fade-out-wall';
    WPfade_out.className='fade-in-wall';
    }
    }
    // END

    if ((DemoMode == false ) && (currentTime.getTime() - updateTimer >= updateWeatherEvery)) {
    if (updateTimer == 0) {
    if (gps == true) { UpdateLocation(); } else { convertWoeid(); }
    } else {
    if (zip != null) { weatherRefresherTemp(zip) } else { convertWoeid(); } ;
    }
    updateTimer = currentTime.getTime();
    }

    }

    function init(){
    if (iPhoneType == "iph4") { replacejscssfile("Main", "UniAW6_iph5", "UniAW6_iph4", "css"); }
    if (Dandelion_Effects == true) { wind_effects = "dandelion_effects"; } else { wind_effects = "leaves_effects"; }

    // INIT TOUCH EVENTS
    StartTouch();

    // ADD-ON FOR TIMED WALL AND SLIDESHOW
    WPfade_in = document.getElementById("WPone"); // TIMED WALL
    WPfade_out = document.getElementById("WPtwo");
    WPfade_in2 = document.getElementById("widgetImage"); // SLIDESHOW
    WPfade_out2 = document.getElementById("widgetImage2");

    if (DacalSun == true) {
    document.getElementById("sun").style.backgroundIma ge = "url(Images/Weather/sun/sun2.png)";
    document.getElementById("sunray").style.background Image = "url(Images/Weather/sun/sunray0.png)";
    document.getElementById("sunray1").style.backgroun dImage = "url(Images/Weather/sun/sunray2.png)";
    document.getElementById("arcsun").style.background Image = "url(Images/Weather/sun/sun2.png)";
    document.getElementById("arcsunray").style.backgro undImage = "url(Images/Weather/sun/sunray0.png)";
    document.getElementById("arcsunray1").style.backgr oundImage = "url(Images/Weather/sun/sunray2.png)";
    }

    switch (Second_Hand_Options) {
    case "big":
    // document.getElementById("smallsechand").style.disp lay = 'none'; /* Remove the "//" at the start of this line to hide the small second hand when "big" secondhand is selected in the Config.js file */
    break;
    case "small":
    document.getElementById("bigsechand").style.displa y = 'none';
    break;
    case "none":
    document.getElementById("bigsechand").style.displa y = 'none';
    document.getElementById("smallsechand").style.disp lay = 'none';
    break;
    }

    if (show_background == true) { document.getElementById("background").src="Images/background/"+iPhoneType+"/background.png"; }
    if (showDock == true) { document.getElementById("dock").src="Images/dock/dock.png"; }
    if (Hide_Forecast_Background == true) { document.getElementById("forecastbg").style.displa y='none'; }
    if (Hide_WeatherInfo_Background == true) { document.getElementById("WeatherInfoBG").style.dis play='none'; }
    if (Hide_DigitalClock == true) { document.getElementById("Digitalclock").style.disp lay='none'; }
    if (Hide_All_Weather_Info == true) { document.getElementById("WeatherInfo").style.displ ay='none'; }
    if (SecDisplay == false) { document.getElementById("second").style.display='n one'; }
    if (Hide_Forecast == true) { document.getElementById("forecastInfo").style.disp lay='none'; }
    if ((FullScreen_WW == true) && (TimedWall == false)) { document.getElementById("fullScreenWeatherWalls"). style.display='block'; }
    if (show_day_night_walls == true) { document.getElementById("DayNightWalls").style.dis play='block'; }
    if (Hide_AnalogClock == true) {
    document.getElementById("analogclock").style.displ ay='none';
    document.getElementById("calendar").style.display= 'none';
    }

    /* START DEMO MODE */
    if (DemoMode == true) { demo(); }

    updateClock();
    if (Second_Hand_Sweep == true ) { setInterval(updateClock, 100); }
    else { setInterval(updateClock, 1000); }
    }

    // SLIDE SHOW EVENT
    function widgetStart() {
    slideshowdisplay = true;
    var number = randomInteger(1, PicNumber+1);
    WPfade_in2.src = "Images/SlideShow/" + number + "." + PicExt;
    var WPfade_tmp2 = WPfade_in2;
    WPfade_in2 = WPfade_out2;
    WPfade_out2 = WPfade_tmp2;
    WPfade_in2.className='fade-out-wall';
    WPfade_out2.className='fade-in-wall';
    widgetTimer = setTimeout(widgetStart, SlideSpeed*1000);
    }

    function widgetStop() {
    clearTimeout(widgetTimer);
    slideshowdisplay = false;
    WPfade_in2.className='fade-out-wall';
    WPfade_out2.className='fade-out-wall';
    }

    function randomInteger(low, high) {
    return low + Math.floor(Math.random() * (high - low));
    }
    // END

    function demo() {
    DemoOn = true;
    document.getElementById("desc").innerHTML = "DEMO MODE";
    document.getElementById("lastupdate").innerHTML = "Last Update: 12:12pm";
    document.getElementById("wind").innerHTML = "Wind condition here";
    document.getElementById("visibility").innerHTML = "Visibility: 9.99km";
    document.getElementById("pressure").innerHTML = "Pressure: 1015.92mb";
    document.getElementById("rising").innerHTML = "&larr;&rarr;";
    document.getElementById("temp").innerHTML="27" + "";
    document.getElementById("low").innerHTML="24" + "";
    document.getElementById("high").innerHTML="32" + "";
    document.getElementById("hi").innerHTML="Hi:";
    document.getElementById("lo").innerHTML="Lo:";
    document.getElementById("humidity").innerHTML="Hum idity: 80" + "%";
    document.getElementById("coordinates").innerHTML=" 23.08" + "&#176" + "N" + " " + "113.54" + "&#176" + "E";
    document.getElementById("coordinates").style.color ="#d9e0b9";
    document.getElementById("sunrise").innerHTML="5:40 am";
    document.getElementById("sunset").innerHTML="6:20 pm";
    document.getElementById("sunrisetext").innerHTML=" Sunrise";
    document.getElementById("sunsettext").innerHTML="S unset";
    document.getElementById("arcmoon").style.webkitTra nsform = "rotate(0deg)";
    document.getElementById("arcmoonray").style.webkit Transform = "rotate(0deg)";
    document.getElementById("arcsun").style.webkitTran sform = "rotate(0deg)";
    document.getElementById("arcsunray").style.webkitT ransform = "rotate(0deg)";
    document.getElementById("arcsunray1").style.left = 160 - 300 + "px";
    document.getElementById("moon").style.webkitTransf orm = "translateX(100px)";
    document.getElementById("moonray").style.webkitTra nsform = "translateX(100px)";
    document.getElementById("sun").style.webkitTransfo rm = "translateX(100px)";
    document.getElementById("sunray").style.webkitTran sform = "translateX(100px)";
    document.getElementById("sunray1").style.webkitTra nsform = "translateX(100px)";
    // document.getElementById("nointernet").style.displa y='none';

    /*if (Reverse_Hi_Lo == true) {
    document.getElementById("Day1Icon").src="Icon Sets/HTC/1.png";
    document.getElementById("Day1").innerHTML="Mon";
    document.getElementById("Day1HiLo").innerHTML="65" + "" + "/" + "-56" + "";
    document.getElementById("Day2Icon").src="Icon Sets/HTC/28.png";
    document.getElementById("Day2").innerHTML="Tue";
    document.getElementById("Day2HiLo").innerHTML="64" + "" + "/" + "-55" + "";
    document.getElementById("Day3Icon").src="Icon Sets/HTC/30.png";
    document.getElementById("Day3").innerHTML="Wed";
    document.getElementById("Day3HiLo").innerHTML="63" + "" + "/" + "-54" + "";
    document.getElementById("Day4Icon").src="Icon Sets/HTC/45.png";
    document.getElementById("Day4").innerHTML="Thu";
    document.getElementById("Day4HiLo").innerHTML="62" + "" + "/" + "-53" + ""; */
    } else {
    document.getElementById("Day1Icon").src="Icon Sets/HTC/1.png";
    document.getElementById("Day1").innerHTML="Mon";
    document.getElementById("Day1HiLo").innerHTML="-56" + "" + "/" + "65" + "";
    document.getElementById("Day2Icon").src="Icon Sets/HTC/28.png";
    document.getElementById("Day2").innerHTML="Tue";
    document.getElementById("Day2HiLo").innerHTML="-55" + "" + "/" + "64" + "";
    document.getElementById("Day3Icon").src="Icon Sets/HTC/30.png";
    document.getElementById("Day3").innerHTML="Wed";
    document.getElementById("Day3HiLo").innerHTML="-54" + "" + "/" + "63" + "";
    document.getElementById("Day4Icon").src="Icon Sets/HTC/45.png";
    document.getElementById("Day4").innerHTML="Thu";
    document.getElementById("Day4HiLo").innerHTML="-54" + "" + "/" + "62" + "";
    }*/

    where = WhereTest;
    filename = WeatherTest;
    whereOld = where;
    if ((WindTest >= Strong_Wind) && (filename != "windy")) { Start_wind_effects = true; } else { Start_wind_effects = false; }
    if (slideshowdisplay == false) {
    loadjscssfile ("Weather/"+iPhoneType, filename, "css");
    loadjscssfile ("Weather/"+iPhoneType, filename, "js");
    if (Start_wind_effects == true) {
    loadjscssfile ("Weather/"+iPhoneType, wind_effects, "css");
    loadjscssfile ("Weather/"+iPhoneType, wind_effects, "js");
    Show_wind_effects = true;
    }
    }
    if (FullScreen_WW == true) { document.getElementById("fullScreenWeatherWalls"). src="Images/fullScreenWeatherWalls/" + where + "_" + filename +".jpg"; }
    if (show_day_night_walls == true) { document.getElementById("DayNightWalls").src="Imag es/day_night_"+iPhoneType+"/" + where + ".png"; }
    }

    function weatherRefresherTemp(zip) {
    fetchWeatherData(dealWithWeather, zip);
    }

    function dealWithWeather(obj){
    if (obj.error == false) {
    DemoOn = false;
    // document.getElementById("nointernet").style.displa y='none';
    direction = parseFloat(obj.winddir);
    document.getElementById("city").className = TextColor;
    document.getElementById("city").innerHTML = obj.city;
    if (useRealFeel == true) { tempValue = obj.realFeel; } else { tempValue = obj.temp; }
    document.getElementById("temp").innerHTML=tempValu e + "";
    document.getElementById("chill").innerHTML=obj.chi ll + "";
    document.getElementById("low").innerHTML=obj.today low + "";
    document.getElementById("high").innerHTML=obj.toda yhigh + "";
    document.getElementById("tiret").innerHTML = "/";
    document.getElementById("visibility").innerHTML=ob j.visibility + obj.visibilityunit;
    document.getElementById("tiret").style.color = "#FFFFFF";
    document.getElementById("desc").innerHTML=obj.desc ription;
    document.getElementById("pressure").innerHTML=obj. pressure + obj.pressureunit;

    if (obj.rising == 0) document.getElementById('rising').innerHTML= "&larr;&rarr;";
    if (obj.rising == 1) document.getElementById('rising').innerHTML= "&uarr;";
    if (obj.rising == 2) document.getElementById('rising').innerHTML= "&darr;";


    if (gps == true) {
    document.getElementById("coordinates").className = "TextColorGrey";
    document.getElementById("coordinates").innerHTML = textLat + " " + textLong;
    } else {
    document.getElementById("coordinates").className = "TextColorGrey";
    document.getElementById("coordinates").innerHTML = "WOEID";
    }

    switch (lang) {

    case "cn":
    hi.innerHTML = "œ€˜:";
    lo.innerHTML = "œ€Ž:";
    sunrisetext.innerHTML = "—‡:";
    sunsettext.innerHTML = "—落:";

    translatedesc=obj.description.toLowerCase();
    if (translatedesc=='sunny') { document.getElementById("desc").innerHTML='˜…‰ ˜Žš'; }
    if (translatedesc=='drizzle') { document.getElementById("desc").innerHTML='’™’™ †›'; }
    if (translatedesc=='heavy snow') { document.getElementById("desc").innerHTML='大› ž'; }
    if (translatedesc=='heavy rain') { document.getElementById("desc").innerHTML='€›† ›'; }
    if (translatedesc=='rain and snow') { document.getElementById("desc").innerHTML='›› œœ'; }
    if (translatedesc=='mixed rain and snow') { document.getElementById("desc").innerHTML='›› œœ'; }
    if (translatedesc=='fair') { document.getElementById("desc").innerHTML='天œ— ”…'; }
    if (translatedesc=='mostly sunny') { document.getElementById("desc").innerHTML='Ž’Œ —丽'; }
    if (translatedesc=='partly sunny') { document.getElementById("desc").innerHTML='—丽 Ž…'; }
    if (translatedesc=='intermittent clouds') { document.getElementById("desc").innerHTML='‘淡 Ž…'; }
    if (translatedesc=='hazy sunshine') { document.getElementById("desc").innerHTML='—š– ”ŸƒŸ'; }
    if (translatedesc=='haze') { document.getElementById("desc").innerHTML='十面 œ伏'; }
    if (translatedesc=='mostly cloudy') { document.getElementById("desc").innerHTML='浮‘ ”—'; }
    if (translatedesc=='cloudy') { document.getElementById("desc").innerHTML='Œ‘ ”—'; }
    if (translatedesc=='fog') { document.getElementById("desc").innerHTML='‘迷 ›”'; }
    if (translatedesc=='showers') { document.getElementById("desc").innerHTML='–Ž ›'; }
    if (translatedesc=='partly sunny with showers') { document.getElementById("desc").innerHTML='™空 ›'; }
    if (translatedesc=='thunderstorms') { document.getElementById("desc").innerHTML='”— ›鸣'; }
    if (translatedesc=='thunderstorm') { document.getElementById("desc").innerHTML='›› Š*'; }
    if (translatedesc=='mostly cloudy with thunder showers') { document.getElementById("desc").innerHTML='Ž‡ ›™'; }
    if (translatedesc=='partly cloudy with thunder showers') { document.getElementById("desc").innerHTML='Ž› ‚™'; }
    if (translatedesc=='light rain') { document.getElementById("desc").innerHTML='’ŒŽ †›'; }
    if (translatedesc=='rain') { document.getElementById("desc").innerHTML='†› œ–“ƒ'; }
    if (translatedesc=='flurries') { document.getElementById("desc").innerHTML='流Ž ›ž›'; }
    if (translatedesc=='mostly cloudy with flurries') { document.getElementById("desc").innerHTML='‘› ˆ欢'; }
    if (translatedesc=='partly sunny with flurries') { document.getElementById("desc").innerHTML='™› ˆž'; }
    if (translatedesc=='snow flurries') { document.getElementById("desc").innerHTML='„€Œ ›骤'; }
    if (translatedesc=='snow showers') { document.getElementById("desc").innerHTML='›› œœ'; }
    if (translatedesc=='snow') { document.getElementById("desc").innerHTML='大› ž'; }
    if (translatedesc=='mostly cloudy with snow') { document.getElementById("desc").innerHTML='—‘ „›'; }
    if (translatedesc=='ice') { document.getElementById("desc").innerHTML='†天 ›œ'; }
    if (translatedesc=='sleet') { document.getElementById("desc").innerHTML='›› œœ'; }
    if (translatedesc=='freezing rain') { document.getElementById("desc").innerHTML='‡„Ž †›'; }
    if (translatedesc=='rain and snow mixed') { document.getElementById("desc").innerHTML='›› œœ'; }
    if (translatedesc=='hot') { document.getElementById("desc").innerHTML='„˜ 火'; }
    if (translatedesc=='cold') { document.getElementById("desc").innerHTML='天’ œ†'; }
    if (translatedesc=='windy') { document.getElementById("desc").innerHTML='Ž’Œ —丽'; }
    if (translatedesc=='clear') { document.getElementById("desc").innerHTML='™空 ‡‡Œ'; }
    if (translatedesc=='mostly clear') { document.getElementById("desc").innerHTML='Ž… ‘‡€'; }
    if (translatedesc=='partly cloudy') { document.getElementById("desc").innerHTML='‘淡 Ž轻'; }
    if (translatedesc=='hazy') { document.getElementById("desc").innerHTML='ƒŸ› *•'; }
    if (translatedesc=='partly cloudy with showers') { document.getElementById("desc").innerHTML='›œ ‘ˆ'; }
    if (translatedesc=='mostly cloudy with showers') { document.getElementById("desc").innerHTML='–*› ‹‘'; }
    if (translatedesc=='party cloudy with thunder showers') { document.getElementById("desc").innerHTML='›› Š*'; }
    if (translatedesc=='foggy') { document.getElementById("desc").innerHTML='大› Œ'; }
    if (translatedesc=='light snow') { document.getElementById("desc").innerHTML='流Ž ›ž›'; }
    if (translatedesc=='light snow showers') { document.getElementById("desc").innerHTML='流Ž ›ž›'; }
    if (translatedesc=='rain shower') { document.getElementById("desc").innerHTML='大› ‚沱'; }
    if (translatedesc=='light drizzle') { document.getElementById("desc").innerHTML='’ŒŽ †›'; }
    if (translatedesc=='mixed rain and sleet') { document.getElementById("desc").innerHTML='›› œœ'; }
    if (translatedesc=='mixed snow and sleet') { document.getElementById("desc").innerHTML='›› 纷'; }
    if (translatedesc=='severe thunderstorms') { document.getElementById("desc").innerHTML='”— ›鸣'; }
    if (translatedesc=='hurricane') { document.getElementById("desc").innerHTML='‹‚Ž š›'; }
    if (translatedesc=='tropical storm') { document.getElementById("desc").innerHTML='ƒ*带 Žš'; }
    if (translatedesc=='tornado') { document.getElementById("desc").innerHTML='Ž卷 ‹‘'; }
    if (translatedesc=='freezing drizzle') { document.getElementById("desc").innerHTML='’Ž †›'; }
    if (translatedesc=='blowing snow') { document.getElementById("desc").innerHTML='‹‚Ž š›'; }
    if (translatedesc=='hail') { document.getElementById("desc").innerHTML='天™ †›'; }
    if (translatedesc=='dust') { document.getElementById("desc").innerHTML='ž™ Ÿ'; }
    if (translatedesc=='somky') { document.getElementById("desc").innerHTML='ƒŸ› 漫'; }
    if (translatedesc=='blustery') { document.getElementById("desc").innerHTML='Ž起 ‘Œ'; }
    if (translatedesc=='mixed rain and hail') { document.getElementById("desc").innerHTML='†› ›'; }
    if (translatedesc=='isolated thunderstorms') { document.getElementById("desc").innerHTML='œ› ˆ—缺'; }
    if (translatedesc=='isolated thundershowers') { document.getElementById("desc").innerHTML='œ› ˆ—缺'; }
    if (translatedesc=='scattered thunderstorms') { document.getElementById("desc").innerHTML='”— ›鸣'; }
    if (translatedesc=='scattered showers') { document.getElementById("desc").innerHTML='€Ž ›'; }
    if (translatedesc=='scattered snow showers') { document.getElementById("desc").innerHTML='骤› ˆ*‡'; }
    if (translatedesc=='light rain with thunder') { document.getElementById("desc").innerHTML='›› Š*'; }
    if (translatedesc=='not available') { document.getElementById("desc").innerHTML='‡Œ ˆ–*'; }
    if (translatedesc=='drifting snow/windy') { document.getElementById("desc").innerHTML='西— ›'; }
    if (translatedesc=='light rain shower') { document.getElementById("desc").innerHTML='骤› ˆ*‡'; }
    if (translatedesc=='thunder') { document.getElementById("desc").innerHTML='›” Š*'; }
    if (translatedesc=='mostly cloudy/windy') { document.getElementById("desc").innerHTML='Ž卷 ‹‘'; }
    if (translatedesc=='sandstorm') { document.getElementById("desc").innerHTML='ž™ *'; }
    if (translatedesc=='squalls/windy') { document.getElementById("desc").innerHTML='‹‚Ž ‚†™'; }
    if (translatedesc=='sand') { document.getElementById("desc").innerHTML='˜œŸ ž‰'; }
    if (translatedesc=='sandstorm/windy') { document.getElementById("desc").innerHTML='ž™ Ÿ'; }
    if (translatedesc=='squalls') { document.getElementById("desc").innerHTML='‹‚Ž ‚†™'; }
    document.getElementById("pressure").innerHTML = "œ€˜: " + obj.pressure + obj.pressureunit;
    document.getElementById("lastupdate").innerHTML = "Š次›–: " + currentTimeString + " " + timeOfDay;
    document.getElementById("visibility").innerHTML = "ƒ见度: " + obj.visibility + obj.visibilityunit;
    document.getElementById("humidity").innerHTML = "湿度: " + obj.humidity + "%";
    if (direction <= 360) obj.winddir = "N";
    if (direction < 348.75) obj.winddir = "N-NO";
    if (direction < 326.25) obj.winddir = "NO";
    if (direction < 303.75) obj.winddir = "O-NO";
    if (direction < 281.25) obj.winddir = "O";
    if (direction < 258.75) obj.winddir = "O-SO";
    if (direction < 236.25) obj.winddir = "SO";
    if (direction < 213.75) obj.winddir = "S-SO";
    if (direction < 191.25) obj.winddir = "S";
    if (direction < 168.75) obj.winddir = "S-SE";
    if (direction < 146.25) obj.winddir = "SE";
    if (direction < 123.75) obj.winddir = "E-SE";
    if (direction < 101.25) obj.winddir = "E";
    if (direction < 78.75) obj.winddir = "E-NE";
    if (direction < 56.25) obj.winddir = "NE";
    if (direction < 33.75) obj.winddir = "N-NE";
    if (direction < 11.25) obj.winddir = "N";
    if (direction == 0) obj.winddir = "—*Ž";
    if (direction == 0) {
    document.getElementById("wind").innerHTML = "Ž‘: " + obj.winddir;
    } else {
    document.getElementById("wind").innerHTML = "Ž‘: " + obj.winddir + " - " + Math.round(obj.windspeed) + " " + obj.windunit; }

    break;

    case "ru":
    hi.innerHTML = "п€иве‚:";
    lo.innerHTML = "во‚:";
    sunrisetext.innerHTML = "ƒ‚€о:";
    sunsettext.innerHTML = "зака‚:";

    translatedesc=obj.description.toLowerCase();
    if (translatedesc=='sunny') { document.getElementById("desc").innerHTML='Сол е‡но'; }
    if (translatedesc=='drizzle') { document.getElementById("desc").innerHTML='˜зм €осŒ'; }
    if (translatedesc=='heavy snow') { document.getElementById("desc").innerHTML='Сил Œн‹й снег'; }
    if (translatedesc=='heavy rain') { document.getElementById("desc").innerHTML='Сил Œн‹й дождŒ'; }
    if (translatedesc=='rain and snow') { document.getElementById("desc").innerHTML='”ож Œ со снегом'; }
    if (translatedesc=='mixed rain and snow') { document.getElementById("desc").innerHTML='”ож Œ со снегом'; }
    if (translatedesc=='fair') { document.getElementById("desc").innerHTML='Ясн '; }
    if (translatedesc=='mostly sunny') { document.getElementById("desc").innerHTML='Неб лŒˆая обла‡нос‚Œ'; }
    if (translatedesc=='partly sunny') { document.getElementById("desc").innerHTML='Ÿе€ менная обла‡нос‚Œ'; }
    if (translatedesc=='intermittent clouds') { document.getElementById("desc").innerHTML='Ÿ€е €‹вис‚ая обла‡нос‚Œ'; }
    if (translatedesc=='hazy sunshine') { document.getElementById("desc").innerHTML='Сол †е и ‚ƒман'; }
    if (translatedesc=='haze') { document.getElementById("desc").innerHTML='Тƒм н'; }
    if (translatedesc=='mostly cloudy') { document.getElementById("desc").innerHTML='Неб лŒˆая обла‡нос‚Œ'; }
    if (translatedesc=='cloudy') { document.getElementById("desc").innerHTML='žбл ‡но'; }
    if (translatedesc=='fog') { document.getElementById("desc").innerHTML='Тƒм н'; }
    if (translatedesc=='showers') { document.getElementById("desc").innerHTML='”ож Œ'; }
    if (translatedesc=='partly sunny with showers') { document.getElementById("desc").innerHTML='Сол †е и дождŒ'; }
    if (translatedesc=='thunderstorms') { document.getElementById("desc").innerHTML='‘ƒ€ '; }
    if (translatedesc=='thunderstorm') { document.getElementById("desc").innerHTML='‘ƒ€ '; }
    if (translatedesc=='mostly cloudy with thunder showers') { document.getElementById("desc").innerHTML='žбл ‡но дождŒ с г€омом'; }
    if (translatedesc=='partly sunny with thunder showers') { document.getElementById("desc").innerHTML='Сол †е дождŒ с г€омом'; }
    if (translatedesc=='light rain') { document.getElementById("desc").innerHTML='Неб лŒˆой дождŒ'; }
    if (translatedesc=='rain') { document.getElementById("desc").innerHTML='”ож Œ'; }
    if (translatedesc=='flurries') { document.getElementById("desc").innerHTML='Ÿо€ ‹в‹'; }
    if (translatedesc=='mostly cloudy with flurries') { document.getElementById("desc").innerHTML='žбл ‡но с пвами'; }
    if (translatedesc=='partly sunny with flurries') { document.getElementById("desc").innerHTML='Сол †е и пв‹'; }
    if (translatedesc=='snow flurries') { document.getElementById("desc").innerHTML='Сне с пвами'; }
    if (translatedesc=='snow showers') { document.getElementById("desc").innerHTML='”ож Œ со снегом'; }
    if (translatedesc=='snow') { document.getElementById("desc").innerHTML='Сне '; }
    if (translatedesc=='mostly cloudy with snow') { document.getElementById("desc").innerHTML='žбл ‡но со снегом'; }
    if (translatedesc=='ice') { document.getElementById("desc").innerHTML='›ед' ; }
    if (translatedesc=='sleet') { document.getElementById("desc").innerHTML='”ож Œ со снегом'; }
    if (translatedesc=='freezing rain') { document.getElementById("desc").innerHTML='›ед ной дождŒ'; }
    if (translatedesc=='rain and snow mixed') { document.getElementById("desc").innerHTML='”ож Œ и снег'; }
    if (translatedesc=='hot') { document.getElementById("desc").innerHTML='“о€ ‡ий'; }
    if (translatedesc=='cold') { document.getElementById("desc").innerHTML='Хол дн‹й'; }
    if (translatedesc=='windy') { document.getElementById("desc").innerHTML='’е‚ €'; }
    if (translatedesc=='clear') { document.getElementById("desc").innerHTML='Ясн '; }
    if (translatedesc=='mostly clear') { document.getElementById("desc").innerHTML='Ясн '; }
    if (translatedesc=='partly cloudy') { document.getElementById("desc").innerHTML='Ÿе€ менная обла‡нос‚Œ'; }
    if (translatedesc=='hazy') { document.getElementById("desc").innerHTML='Тƒм н'; }
    if (translatedesc=='partly cloudy with showers') { document.getElementById("desc").innerHTML='žбл ‡но с дождем'; }
    if (translatedesc=='mostly cloudy with showers') { document.getElementById("desc").innerHTML='Сол е‡но с дождем'; }
    if (translatedesc=='party cloudy with thunder showers') { document.getElementById("desc").innerHTML='žбл ‡но с г€озой'; }
    if (translatedesc=='foggy') { document.getElementById("desc").innerHTML='Тƒм н'; }
    if (translatedesc=='light snow') { document.getElementById("desc").innerHTML='Неб лŒˆой снег'; }
    if (translatedesc=='light snow showers') { document.getElementById("desc").innerHTML='Неб лŒˆой снег с дождем'; }
    if (translatedesc=='rain shower') { document.getElementById("desc").innerHTML='›ив нŒ'; }
    if (translatedesc=='drizzle') { document.getElementById("desc").innerHTML='œел ий дождŒ'; }
    if (translatedesc=='mixed rain and sleet') { document.getElementById("desc").innerHTML='”ож Œ и моꈋй снег'; }
    if (translatedesc=='mixed snow and sleet') { document.getElementById("desc").innerHTML='Сне и моꈋй снег'; }
    if (translatedesc=='severe thunderstorms') { document.getElementById("desc").innerHTML='“€о а'; }
    if (translatedesc=='hurricane') { document.getElementById("desc").innerHTML='У€а ан'; }
    if (translatedesc=='tropical storm') { document.getElementById("desc").innerHTML='“о€ ‡ая бƒ€я'; }
    if (translatedesc=='tornado') { document.getElementById("desc").innerHTML='То€ адо'; }
    if (translatedesc=='freezing drizzle') { document.getElementById("desc").innerHTML='˜зм €озŒ'; }
    if (translatedesc=='blowing snow') { document.getElementById("desc").innerHTML='Сне н‹е за€яд‹'; }
    if (translatedesc=='hail') { document.getElementById("desc").innerHTML='“€а '; }
    if (translatedesc=='dust') { document.getElementById("desc").innerHTML='Ÿ‹л Œ'; }
    if (translatedesc=='somky') { document.getElementById("desc").innerHTML='Тƒм н'; }
    if (translatedesc=='blustery') { document.getElementById("desc").innerHTML='‘ƒ€ ‹й'; }
    if (translatedesc=='mixed rain and hail') { document.getElementById("desc").innerHTML='”ож Œ и г€ад'; }
    if (translatedesc=='isolated thunderstorms') { document.getElementById("desc").innerHTML='˜зо и€ованн‹е г€оз‹'; }
    if (translatedesc=='isolated thundershowers') { document.getElementById("desc").innerHTML='˜зо и€ованн‹е г€оз‹ с дождем'; }
    if (translatedesc=='scattered thunderstorms') { document.getElementById("desc").innerHTML='*ас еянн‹е г€оз‹'; }
    if (translatedesc=='scattered showers') { document.getElementById("desc").innerHTML='*ас еянн‹й дождŒ'; }
    if (translatedesc=='scattered snow showers') { document.getElementById("desc").innerHTML='*ас еянн‹й снег с дождем'; }
    if (translatedesc=='light rain with thunder') { document.getElementById("desc").innerHTML='Неб лŒˆой дождŒ с г€озой'; }
    if (translatedesc=='not available') { document.getElementById("desc").innerHTML='Нед с‚ƒпно'; }
    if (translatedesc=='drifting snow/windy') { document.getElementById("desc").innerHTML='Сне /’е‚е€'; }
    if (translatedesc=='light rain shower') { document.getElementById("desc").innerHTML='Сла ‹й дождŒ'; }
    if (translatedesc=='thunder') { document.getElementById("desc").innerHTML='“€о '; }
    if (translatedesc=='mostly cloudy/windy') { document.getElementById("desc").innerHTML='Ÿе€ менная обла‡нос‚Œ/’е‚е€'; }
    if (translatedesc=='sandstorm') { document.getElementById("desc").innerHTML='Ÿес ‡анная бƒ€я'; }
    if (translatedesc=='squalls/windy') { document.getElementById("desc").innerHTML='’сп еск/’е‚е€'; }
    if (translatedesc=='sand') { document.getElementById("desc").innerHTML='Ÿес к'; }
    if (translatedesc=='sandstorm/windy') { document.getElementById("desc").innerHTML='Ÿес ‡ная бƒ€я/’е‚е€'; }
    document.getElementById("lastupdate").innerHTML = "обновлен‹ в: " + currentTimeString + " " + timeOfDay;
    document.getElementById("humidity").innerHTML = "влажнос‚Œ': " + obj.humidity + "%";
    document.getElementById("visibility").innerHTML = "видимос‚Œ: " + obj.visibility + obj.visibilityunit;
    document.getElementById("pressure").innerHTML = "давление: " + obj.pressure + obj.pressureunit;
    if (direction <= 360) obj.winddir = "N";
    if (direction < 348.75) obj.winddir = "N-NO";
    if (direction < 326.25) obj.winddir = "NO";
    if (direction < 303.75) obj.winddir = "O-NO";
    if (direction < 281.25) obj.winddir = "O";
    if (direction < 258.75) obj.winddir = "O-SO";
    if (direction < 236.25) obj.winddir = "SO";
    if (direction < 213.75) obj.winddir = "S-SO";
    if (direction < 191.25) obj.winddir = "S";
    if (direction < 168.75) obj.winddir = "S-SE";
    if (direction < 146.25) obj.winddir = "SE";
    if (direction < 123.75) obj.winddir = "E-SE";
    if (direction < 101.25) obj.winddir = "E";
    if (direction < 78.75) obj.winddir = "E-NE";
    if (direction < 56.25) obj.winddir = "NE";
    if (direction < 33.75) obj.winddir = "N-NE";
    if (direction < 11.25) obj.winddir = "N";
    if (direction == 0) obj.winddir = "Не‚ ве‚€а";
    if (direction == 0) {
    document.getElementById("wind").innerHTML = "ве‚е€ : " + obj.winddir;
    } else {
    document.getElementById("wind").innerHTML = "ве‚е€ : " + obj.winddir + " | " + Math.round(obj.windspeed) + " " + obj.windunit; }
    break;

    case "it":
    hi.innerHTML = "alto:";
    lo.innerHTML = "basso:";
    sunrisetext.innerHTML = "alba:";
    sunsettext.innerHTML = "tramonto:";

    translatedesc=obj.description.toLowerCase();
    if (translatedesc=='sunny') { document.getElementById("desc").innerHTML='Soleggi ato'; }
    if (translatedesc=='drizzle') { document.getElementById("desc").innerHTML='Piogger ella'; }
    if (translatedesc=='heavy snow') { document.getElementById("desc").innerHTML='Forti nevicate'; }
    if (translatedesc=='heavy rain') { document.getElementById("desc").innerHTML='Forti piogge'; }
    if (translatedesc=='rain and snow') { document.getElementById("desc").innerHTML='Vevisch io'; }
    if (translatedesc=='mixed rain and snow') { document.getElementById("desc").innerHTML='Misto pioggia e neve'; }
    if (translatedesc=='fair') { document.getElementById("desc").innerHTML='Sereno' ; }
    if (translatedesc=='mostly sunny') { document.getElementById("desc").innerHTML='Molto soleggiato'; }
    if (translatedesc=='partly sunny') { document.getElementById("desc").innerHTML='Parzial mente soleggiato'; }
    if (translatedesc=='intermittent clouds') { document.getElementById("desc").innerHTML='Nuvolos o a tratti'; }
    if (translatedesc=='hazy sunshine') { document.getElementById("desc").innerHTML='Sole coperto'; }
    if (translatedesc=='haze') { document.getElementById("desc").innerHTML='Nebbia' ; }
    if (translatedesc=='mostly cloudy') { document.getElementById("desc").innerHTML='Molto nuvoloso'; }
    if (translatedesc=='cloudy') { document.getElementById("desc").innerHTML='Nuvolos o'; }
    if (translatedesc=='fog') { document.getElementById("desc").innerHTML='Nebbia' ; }
    if (translatedesc=='showers') { document.getElementById("desc").innerHTML='Diluvio '; }
    if (translatedesc=='partly sunny with showers') { document.getElementById("desc").innerHTML='Soleggi ato con pioggia'; }
    if (translatedesc=='thunderstorms') { document.getElementById("desc").innerHTML='Fulmini '; }
    if (translatedesc=='thunderstorm') { document.getElementById("desc").innerHTML='Tuoni'; }
    if (translatedesc=='mostly cloudy with thunder showers') { document.getElementById("desc").innerHTML='Molto Nuvoloso con pioggia e fulmini'; }
    if (translatedesc=='partly sunny with thunder showers') { document.getElementById("desc").innerHTML='Possibi li Piogge'; }
    if (translatedesc=='light rain') { document.getElementById("desc").innerHTML='Pioggia leggera'; }
    if (translatedesc=='rain') { document.getElementById("desc").innerHTML='Pioggia '; }
    if (translatedesc=='flurries') { document.getElementById("desc").innerHTML='Nevisch io'; }
    if (translatedesc=='mostly cloudy with flurries') { document.getElementById("desc").innerHTML='Nuvolos o con nevischio'; }
    if (translatedesc=='partly sunny with flurries') { document.getElementById("desc").innerHTML='Parzial mente soleggiato con neve'; }
    if (translatedesc=='snow flurries') { document.getElementById("desc").innerHTML='Raffich e di neve'; }
    if (translatedesc=='snow showers') { document.getElementById("desc").innerHTML='Precipi tazioni nevose'; }
    if (translatedesc=='snow') { document.getElementById("desc").innerHTML='Neve'; }
    if (translatedesc=='mostly cloudy with snow') { document.getElementById("desc").innerHTML='Molto nuvoloso con neve'; }
    if (translatedesc=='ice') { document.getElementById("desc").innerHTML='Ghiacci o'; }
    if (translatedesc=='sleet') { document.getElementById("desc").innerHTML='Nevisch io'; }
    if (translatedesc=='freezing rain') { document.getElementById("desc").innerHTML='Grandin e'; }
    if (translatedesc=='rain and snow mixed') { document.getElementById("desc").innerHTML='Pioggia e neve'; }
    if (translatedesc=='hot') { document.getElementById("desc").innerHTML='Caldo'; }
    if (translatedesc=='cold') { document.getElementById("desc").innerHTML='Freddo' ; }
    if (translatedesc=='windy') { document.getElementById("desc").innerHTML='Ventoso '; }
    if (translatedesc=='clear') { document.getElementById("desc").innerHTML='Sereno' ; }
    if (translatedesc=='mostly clear') { document.getElementById("desc").innerHTML='Molto sereno'; }
    if (translatedesc=='partly cloudy') { document.getElementById("desc").innerHTML='Parzial mente nuvoloso'; }
    if (translatedesc=='hazy') { document.getElementById("desc").innerHTML='Velato' ; }
    if (translatedesc=='partly cloudy with showers') { document.getElementById("desc").innerHTML='Cielo velato'; }
    if (translatedesc=='mostly cloudy with showers') { document.getElementById("desc").innerHTML='Nuvolos o a tratti'; }
    if (translatedesc=='party cloudy with thunder showers') { document.getElementById("desc").innerHTML='Parzial mente nuvoloso con raffiche'; }
    if (translatedesc=='foggy') { document.getElementById("desc").innerHTML='Nebbiol ina'; }
    if (translatedesc=='light snow') { document.getElementById("desc").innerHTML='Neve leggiera'; }
    if (translatedesc=='light snow showers') { document.getElementById("desc").innerHTML='Poca neve'; }
    if (translatedesc=='rain shower') { document.getElementById("desc").innerHTML='Forti precipitazioni'; }
    if (translatedesc=='drizzle') { document.getElementById("desc").innerHTML='Freddin o'; }
    if (translatedesc=='mixed rain and sleet') { document.getElementById("desc").innerHTML='Misto pioggia e nevischio'; }
    if (translatedesc=='mixed snow and sleet') { document.getElementById("desc").innerHTML='Misto neve e nevischio'; }
    if (translatedesc=='severe thunderstorms') { document.getElementById("desc").innerHTML='Tuoni e fulmini'; }
    if (translatedesc=='hurricane') { document.getElementById("desc").innerHTML='Uragano '; }
    if (translatedesc=='tropical storm') { document.getElementById("desc").innerHTML='Tempest a tropicale'; }
    if (translatedesc=='tornado') { document.getElementById("desc").innerHTML='Tornado '; }
    if (translatedesc=='freezing drizzle') { document.getElementById("desc").innerHTML='Grandin e'; }
    if (translatedesc=='blowing snow') { document.getElementById("desc").innerHTML='Vento e neve'; }
    if (translatedesc=='hail') { document.getElementById("desc").innerHTML='Grandin e'; }
    if (translatedesc=='dust') { document.getElementById("desc").innerHTML='Polvere '; }
    if (translatedesc=='somky') { document.getElementById("desc").innerHTML='Humeado '; }
    if (translatedesc=='blustery') { document.getElementById("desc").innerHTML='Tempesa '; }
    if (translatedesc=='mixed rain and hail') { document.getElementById("desc").innerHTML='misto neve e grandine'; }
    if (translatedesc=='isolated thunderstorms') { document.getElementById("desc").innerHTML='Fulmini isolati'; }
    if (translatedesc=='isolated thundershowers') { document.getElementById("desc").innerHTML='Tempora li isolati'; }
    if (translatedesc=='scattered thunderstorms') { document.getElementById("desc").innerHTML='Tempest a di fulmini'; }
    if (translatedesc=='scattered showers') { document.getElementById("desc").innerHTML='Tempest a di pioggia'; }
    if (translatedesc=='scattered snow showers') { document.getElementById("desc").innerHTML='Neve sparsa'; }
    if (translatedesc=='light rain with thunder') { document.getElementById("desc").innerHTML='Pioggia leggera con fulmini'; }
    if (translatedesc=='not available') { document.getElementById("desc").innerHTML='No disponible'; }
    if (translatedesc=='drifting snow/windy') { document.getElementById("desc").innerHTML='Troppa neve'; }
    if (translatedesc=='light rain shower') { document.getElementById("desc").innerHTML='Piccole precipitazioni'; }
    if (translatedesc=='thunder') { document.getElementById("desc").innerHTML='Tuoni'; }
    if (translatedesc=='mostly cloudy/windy') { document.getElementById("desc").innerHTML='Molto nuvoloso con vento'; }
    if (translatedesc=='sandstorm') { document.getElementById("desc").innerHTML='Torment a'; }
    if (translatedesc=='squalls/windy') { document.getElementById("desc").innerHTML='Pioggia e vento'; }
    if (translatedesc=='sand') { document.getElementById("desc").innerHTML='Arena'; }
    if (translatedesc=='sandstorm/windy') { document.getElementById("desc").innerHTML='Torment a ventosa'; }
    document.getElementById("lastupdate").innerHTML = "Attuale: " + currentTimeString + " " + timeOfDay;
    document.getElementById("humidity").innerHTML = "Umidita': " + obj.humidity + "%";
    document.getElementById("visibility").innerHTML = "visibilit*: " + obj.visibility + obj.visibilityunit;
    document.getElementById("pressure").innerHTML = "Pressione: " + obj.pressure + obj.pressureunit;
    if (direction <= 360) obj.winddir = "N";
    if (direction < 348.75) obj.winddir = "N-NO";
    if (direction < 326.25) obj.winddir = "NO";
    if (direction < 303.75) obj.winddir = "O-NO";
    if (direction < 281.25) obj.winddir = "O";
    if (direction < 258.75) obj.winddir = "O-SO";
    if (direction < 236.25) obj.winddir = "SO";
    if (direction < 213.75) obj.winddir = "S-SO";
    if (direction < 191.25) obj.winddir = "S";
    if (direction < 168.75) obj.winddir = "S-SE";
    if (direction < 146.25) obj.winddir = "SE";
    if (direction < 123.75) obj.winddir = "E-SE";
    if (direction < 101.25) obj.winddir = "E";
    if (direction < 78.75) obj.winddir = "E-NE";
    if (direction < 56.25) obj.winddir = "NE";
    if (direction < 33.75) obj.winddir = "N-NE";
    if (direction < 11.25) obj.winddir = "N";
    if (direction == 0) obj.winddir = "No hay viento";
    if (direction == 0) {
    document.getElementById("wind").innerHTML = "Vento : " + obj.winddir;
    } else {
    document.getElementById("wind").innerHTML = "Vento : " + obj.winddir + " | " + Math.round(obj.windspeed) + " " + obj.windunit; }
    break;

    case "fi":

    hi.innerHTML = "korkein:";
    lo.innerHTML = "alin:";
    sunrisetext.innerHTML = "aamu:";
    sunsettext.innerHTML = "yö:";

    translatedesc=obj.description.toLowerCase();
    if (translatedesc=='sunny') { document.getElementById("desc").innerHTML='Aurinko ista'; }
    if (translatedesc=='drizzle') { document.getElementById("desc").innerHTML='Tihkusa detta'; }
    if (translatedesc=='heavy snow') { document.getElementById("desc").innerHTML='Rankkaa lumisadetta'; }
    if (translatedesc=='heavy rain') { document.getElementById("desc").innerHTML='Rankkas ade'; }
    if (translatedesc=='rain and snow') { document.getElementById("desc").innerHTML='R&auml; nt&auml;&auml;'; }
    if (translatedesc=='mixed rain and snow') { document.getElementById("desc").innerHTML='Vesisad etta ja r&auml;nt&auml;&auml;'; }
    if (translatedesc=='fair') { document.getElementById("desc").innerHTML='Selke&a uml;&auml;'; }
    if (translatedesc=='mostly sunny') { document.getElementById("desc").innerHTML='Melko selke&auml;&auml;'; }
    if (translatedesc=='partly sunny') { document.getElementById("desc").innerHTML='Puolipi lvist&auml;'; }
    if (translatedesc=='intermittent clouds') { document.getElementById("desc").innerHTML='Ajoitta isia pilvi&auml;'; }
    if (translatedesc=='hazy sunshine') { document.getElementById("desc").innerHTML='Utuista auringonpaistetta'; }
    if (translatedesc=='haze') { document.getElementById("desc").innerHTML='Utuista '; }
    if (translatedesc=='mostly cloudy') { document.getElementById("desc").innerHTML='Enimm&a uml;kseen pilvist&auml;'; }
    if (translatedesc=='cloudy') { document.getElementById("desc").innerHTML='Pilvist &auml;'; }
    if (translatedesc=='fog') { document.getElementById("desc").innerHTML='Sumua'; }
    if (translatedesc=='showers') { document.getElementById("desc").innerHTML='Sadekuu roja'; }
    if (translatedesc=='partly sunny with showers') { document.getElementById("desc").innerHTML='Puolipi lvist&auml; ja sadekuuroja'; }
    if (translatedesc=='thunderstorms') { document.getElementById("desc").innerHTML='Ukkosmy rskyj&auml;'; }
    if (translatedesc=='thunderstorm') { document.getElementById("desc").innerHTML='Ukkosta '; }
    if (translatedesc=='mostly cloudy with thunder showers') { document.getElementById("desc").innerHTML='Ukkosku uroja'; }
    if (translatedesc=='partly sunny with thunder showers') { document.getElementById("desc").innerHTML='Ukkosku uroja'; }
    if (translatedesc=='light rain') { document.getElementById("desc").innerHTML='Tihkusa detta'; }
    if (translatedesc=='rain') { document.getElementById("desc").innerHTML='Sadetta '; }
    if (translatedesc=='flurries') { document.getElementById("desc").innerHTML='Lumisad etta'; }
    if (translatedesc=='mostly cloudy with flurries') { document.getElementById("desc").innerHTML='Pilvist &auml; ja lumisadetta'; }
    if (translatedesc=='partly sunny with flurries') { document.getElementById("desc").innerHTML='Aurinko ista ja lumisadetta'; }
    if (translatedesc=='snow flurries') { document.getElementById("desc").innerHTML='Lumisad etta'; }
    if (translatedesc=='snow showers') { document.getElementById("desc").innerHTML='Lumikuu roja'; }
    if (translatedesc=='snow') { document.getElementById("desc").innerHTML='Lumisad etta'; }
    if (translatedesc=='mostly cloudy with snow') { document.getElementById("desc").innerHTML='Melko pilvist&auml; ja lumisadetta'; }
    if (translatedesc=='ice') { document.getElementById("desc").innerHTML='Rakeita '; }
    if (translatedesc=='sleet') { document.getElementById("desc").innerHTML='R&auml; nt&auml;&auml;'; }
    if (translatedesc=='freezing rain') { document.getElementById("desc").innerHTML='J&auml; &auml;t&auml;v&auml;&auml; sadetta'; }
    if (translatedesc=='rain and snow mixed') { document.getElementById("desc").innerHTML='Vesi ja lumisadetta'; }
    if (translatedesc=='hot') { document.getElementById("desc").innerHTML='Hellett &auml;'; }
    if (translatedesc=='cold') { document.getElementById("desc").innerHTML='kylm&au ml;&auml;'; }
    if (translatedesc=='windy') { document.getElementById("desc").innerHTML='Tuulist a'; }
    if (translatedesc=='clear') { document.getElementById("desc").innerHTML='Selke&a uml;&auml;'; }
    if (translatedesc=='mostly clear') { document.getElementById("desc").innerHTML='Enimm&a uml;kseen selke&auml;&auml;'; }
    if (translatedesc=='partly cloudy') { document.getElementById("desc").innerHTML='Puolipi lvist&auml;'; }
    if (translatedesc=='hazy') { document.getElementById("desc").innerHTML='Utuista '; }
    if (translatedesc=='partly cloudy with showers') { document.getElementById("desc").innerHTML='Osittai sia sadekuuroja'; }
    if (translatedesc=='mostly cloudy with showers') { document.getElementById("desc").innerHTML='Pilvist ä ja sadekuuroja'; }
    if (translatedesc=='party cloudy with thunder showers') { document.getElementById("desc").innerHTML='Puolipi lvist&auml; ja ukkoskuuroja'; }
    if (translatedesc=='foggy') { document.getElementById("desc").innerHTML='Sumuist a'; }
    if (translatedesc=='light snow') { document.getElementById("desc").innerHTML='Heikkoa lumisadetta'; }
    if (translatedesc=='light snow showers') { document.getElementById("desc").innerHTML='Heikkoj a lumikuuroja'; }
    if (translatedesc=='light snow shower') { document.getElementById("desc").innerHTML='Heikkoj a lumikuuroja'; }
    if (translatedesc=='rain shower') { document.getElementById("desc").innerHTML='Sadekuu roja'; }
    if (translatedesc=='light drizzle') { document.getElementById("desc").innerHTML='Osittai sta tihkusadetta'; }
    if (translatedesc=='mixed rain and sleet') { document.getElementById("desc").innerHTML='Vesi ja r&auml;nt&auml;sadetta'; }
    if (translatedesc=='mixed snow and sleet') { document.getElementById("desc").innerHTML='Lumi ja r&auml;nt&auml;sadetta'; }
    if (translatedesc=='severe thunderstorms') { document.getElementById("desc").innerHTML='Rankkoj a ukkoskuuroja'; }
    if (translatedesc=='hurricane') { document.getElementById("desc").innerHTML='Py&ouml ;rremyrsky'; }
    if (translatedesc=='tropical storm') { document.getElementById("desc").innerHTML='Trooppi nen myrsky'; }
    if (translatedesc=='tornado') { document.getElementById("desc").innerHTML='Tornaad o'; }
    if (translatedesc=='freezing drizzle') { document.getElementById("desc").innerHTML='J&auml; &auml;t&auml;v&auml;&auml; tihkusadetta'; }
    if (translatedesc=='blowing snow') { document.getElementById("desc").innerHTML='Lumitui sku'; }
    if (translatedesc=='hail') { document.getElementById("desc").innerHTML='Rakeita '; }
    if (translatedesc=='dust') { document.getElementById("desc").innerHTML='P&ouml; lyist&auml;'; }
    if (translatedesc=='somky') { document.getElementById("desc").innerHTML='Utuista '; }
    if (translatedesc=='blustery') { document.getElementById("desc").innerHTML='Ei tietoja'; }
    if (translatedesc=='mixed rain and hail') { document.getElementById("desc").innerHTML='Vesisad etta ja raekuuroja'; }
    if (translatedesc=='isolated thunderstorms') { document.getElementById("desc").innerHTML='Paikall isia ukkoskuuroja'; }
    if (translatedesc=='isolated thundershowers') { document.getElementById("desc").innerHTML='Paikall isia ukkoskuuroja'; }
    if (translatedesc=='scattered thunderstorms') { document.getElementById("desc").innerHTML='Hajanai sia ukkoskuuroja'; }
    if (translatedesc=='scattered showers') { document.getElementById("desc").innerHTML='Hajanai sia sadekuuroja'; }
    if (translatedesc=='scattered snow showers') { document.getElementById("desc").innerHTML='Hajanai sia lumikuuroja'; }
    if (translatedesc=='light rain with thunder') { document.getElementById("desc").innerHTML='Kevyit& auml; ukkoskuuroja'; }
    if (translatedesc=='not available') { document.getElementById("desc").innerHTML='Ei tietoja'; }
    if (translatedesc=='showers in the vicinity') { document.getElementById("desc").innerHTML='Sadetta l&auml;hell&auml;'; }
    if (translatedesc=='drifting snow/windy') { document.getElementById("desc").innerHTML='Lumipyr y&auml;'; }
    if (translatedesc=='light rain shower') { document.getElementById("desc").innerHTML='Kevyiyt &auml; sadekuuroja'; }
    if (translatedesc=='thunder') { document.getElementById("desc").innerHTML='Ukkosta '; }
    if (translatedesc=='mostly cloudy/windy') { document.getElementById("desc").innerHTML='Enimm&a uml;kseen tuulista'; }
    if (translatedesc=='sandstorm') { document.getElementById("desc").innerHTML='Hiekkam yrsky'; }
    if (translatedesc=='squalls/windy') { document.getElementById("desc").innerHTML='Puuskai sta tuulta'; }
    if (translatedesc=='sand') { document.getElementById("desc").innerHTML='Kuivaa tuulta'; }
    if (translatedesc=='sandstorm/windy') { document.getElementById("desc").innerHTM= 'Tuulista'; }
    if (translatedesc=='squalls') { document.getElementById("desc").innerHTML='Puuskai sta tuulta'; }
    document.getElementById("lastupdate").innerHTML = "päivitetään: " + currentTimeString + " " + timeOfDay;
    document.getElementById("visibility").innerHTML = "näkyvyys: " + obj.visibility + obj.visibilityunit;
    document.getElementById("humidity").innerHTML = "Ilmankosteus " + obj.humidity + "%";
    document.getElementById("pressure").innerHTML = "Paine: " + obj.pressure + obj.pressureunit;
    if (direction <= 360) obj.winddir = "Pohj";
    if (direction < 348.75) obj.winddir = "Pohjoinen";
    if (direction < 326.25) obj.winddir = "Koillinen";
    if (direction < 303.75) obj.winddir = "It&auml;";
    if (direction < 281.25) obj.winddir = "It&auml;";
    if (direction < 258.75) obj.winddir = "It&auml;";
    if (direction < 236.25) obj.winddir = "Kaakko";
    if (direction < 213.75) obj.winddir = "Etel&auml;";
    if (direction < 191.25) obj.winddir = "Etel&auml;";
    if (direction < 168.75) obj.winddir = "Etel&auml;";
    if (direction < 146.25) obj.winddir = "Lounas";
    if (direction < 123.75) obj.winddir = "L&auml;nsi";
    if (direction < 101.25) obj.winddir = "L&auml;nsi";
    if (direction < 78.75) obj.winddir = "L&auml;nsi";
    if (direction < 56.25) obj.winddir = "Luode";
    if (direction < 33.75) obj.winddir = "Pohjoinen";
    if (direction < 11.25) obj.winddir = "Pohjoinen";
    if (direction == 0) obj.winddir = "ei tuulta; :";
    if (direction == 0) {
    document.getElementById("wind").innerHTML = "Tuuli : " + obj.winddir;
    } else {

    document.getElementById("wind").innerHTML = "Tuuli : " + obj.winddir + " - " + Math.round(obj.windspeed) + " " + obj.windunit; }
    break;

    case "nl":

    hi.innerHTML = "hoog:";
    lo.innerHTML = "laag:";
    sunrisetext.innerHTML = "ochtend:";
    sunsettext.innerHTML = "nacht:";

    translatedesc=obj.description.toLowerCase();
    if (translatedesc=='light snow') { document.getElementById("desc").innerHTML='Lichte Sneeuwval'; }
    if (translatedesc=='tornado') { document.getElementById("desc").innerHTML='Tornado !'; }
    if (translatedesc=='tropical storm') { document.getElementById("desc").innerHTML='Tropisc he Storm'; }
    if (translatedesc=='hurricane') { document.getElementById("desc").innerHTML='Wervelw ind'; }
    if (translatedesc=='severe thunderstorms') { document.getElementById("desc").innerHTML='Zware Onweersbuien'; }
    if (translatedesc=='thunderstorms') { document.getElementById("desc").innerHTML='Onweers buien'; }
    if (translatedesc=='mixed rain and snow') { document.getElementById("desc").innerHTML='Regen en Sneeuw'; }
    if (translatedesc=='mixed rain and sleet') { document.getElementById("desc").innerHTML='Regen en Ijzel'; }
    if (translatedesc=='mixed snow and sleet') { document.getElementById("desc").innerHTML='Sneeuw en Ijzel'; }
    if (translatedesc=='freezing drizzle') { document.getElementById("desc").innerHTML='Bevriez ende Motregen'; }
    if (translatedesc=='drizzle') { document.getElementById("desc").innerHTML='Motrege n'; }
    if (translatedesc=='freezing rain') { document.getElementById("desc").innerHTML='Ijzel'; }
    if (translatedesc=='showers') { document.getElementById("desc").innerHTML='Buien'; }
    if (translatedesc=='snow flurries') { document.getElementById("desc").innerHTML='Sneeuwv lagen'; }
    if (translatedesc=='light snow showers') { document.getElementById("desc").innerHTML='Lichte Sneeuwbuien'; }
    if (translatedesc=='light snow grains') { document.getElementById("desc").innerHTML='Lichte Sneeuwbuien'; }
    if (translatedesc=='blowing snow') { document.getElementById("desc").innerHTML='Sneeuw Drift'; }
    if (translatedesc=='snow') { document.getElementById("desc").innerHTML='Sneeuw' ; }
    if (translatedesc=='hail') { document.getElementById("desc").innerHTML='Hagel'; }
    if (translatedesc=='sleet') { document.getElementById("desc").innerHTML='Ijzel'; }
    if (translatedesc=='dust') { document.getElementById("desc").innerHTML='Stoffig '; }
    if (translatedesc=='foggy') { document.getElementById("desc").innerHTML='Mistig' ; }
    if (translatedesc=='haze') { document.getElementById("desc").innerHTML='Wazig'; }
    if (translatedesc=='smoky') { document.getElementById("desc").innerHTML='Wazig'; }
    if (translatedesc=='blustery') { document.getElementById("desc").innerHTML='Stormac htig'; }
    if (translatedesc=='windy') { document.getElementById("desc").innerHTML='Winderi g'; }
    if (translatedesc=='cold') { document.getElementById("desc").innerHTML='Koud'; }
    if (translatedesc=='cloudy') { document.getElementById("desc").innerHTML='Bewolkt '; }
    if (translatedesc=='mostly cloudy') { document.getElementById("desc").innerHTML='Algemee n Bewolkt'; }
    if (translatedesc=='partly cloudy') { document.getElementById("desc").innerHTML='Gedeelt elijk Bewolkt'; }
    if (translatedesc=='clear') { document.getElementById("desc").innerHTML='Helder' ; }
    if (translatedesc=='sunny') { document.getElementById("desc").innerHTML='Zonnig' ; }
    if (translatedesc=='fair') { document.getElementById("desc").innerHTML='Bewolkt Weer'; }
    if (translatedesc=='mixed rain and hail') { document.getElementById("desc").innerHTML='Regen en Hagel'; }
    if (translatedesc=='hot') { document.getElementById("desc").innerHTML='Heet'; }
    if (translatedesc=='isolated thunderstorms') { document.getElementById("desc").innerHTML='Geisole erde Onweersbuien'; }
    if (translatedesc=='scattered thunderstorms') { document.getElementById("desc").innerHTML='Verspre ide Onweersbuien'; }
    if (translatedesc=='scattered showers') { document.getElementById("desc").innerHTML='Verspre ide Buien'; }
    if (translatedesc=='heavy snow') { document.getElementById("desc").innerHTML='Zware Sneeuw'; }
    if (translatedesc=='scattered snow showers') { document.getElementById("desc").innerHTML='Verspre ide Sneeuwbuien'; }
    if (translatedesc=='partly cloudy') { document.getElementById("desc").innerHTML='Gedeelt elijk Bewolkt'; }
    if (translatedesc=='thundershowers') { document.getElementById("desc").innerHTML='Onweers buien'; }
    if (translatedesc=='snow showers') { document.getElementById("desc").innerHTML='Sneeuwb uien'; }
    if (translatedesc=='isolated thundershowers') { document.getElementById("desc").innerHTML='Geisole erde Onweersbuien'; }
    if (translatedesc=='light rain shower') { document.getElementById("desc").innerHTML='Lichte Regenbuien'; }
    if (translatedesc=='not available') { document.getElementById("desc").innerHTML='niet beschikbaar'; }
    if (translatedesc=='showers in the vicinity') { document.getElementById("desc").innerHTML='Lokale Regenbuien'; }
    if (translatedesc=='partly sunny') { document.getElementById("desc").innerHTML='Gedeelt elijk Zonnig'; }
    if (translatedesc=='ground fog') { document.getElementById("desc").innerHTML='Grondmi st'; }
    if (translatedesc=='light drizzle') { document.getElementById("desc").innerHTML='Lichte Motregen'; }
    if (translatedesc=='light rain') { document.getElementById("desc").innerHTML='Lichte Regen'; }
    if (translatedesc=='mist') { document.getElementById("desc").innerHTML='Mist'; }
    if (translatedesc=='fog') { document.getElementById("desc").innerHTML='Mist'; }
    if (translatedesc=='rain') { document.getElementById("desc").innerHTML='Regen'; }
    if (translatedesc=='rain shower') { document.getElementById("desc").innerHTML='Regenbu i'; }
    if (translatedesc=='severe thunderstorm/windy') { document.getElementById("desc").innerHTML='Zware Onweersbui/Winderig'; }
    document.getElementById("lastupdate").innerHTML = "Laatste Update: " + currentTimeString + " " + timeOfDay;
    document.getElementById("humidity").innerHTML = "Vochtigheid: " + obj.humidity + "%";
    document.getElementById("visibility").innerHTML = "zichtbaarheid: " + obj.visibility + obj.visibilityunit;
    document.getElementById("pressure").innerHTML = "Druk: " + obj.pressure + obj.pressureunit;
    if (direction <= 360) obj.winddir = "N";
    if (direction < 348.75) obj.winddir = "N-NW";
    if (direction < 326.25) obj.winddir = "NW";
    if (direction < 303.75) obj.winddir = "W-NW";
    if (direction < 281.25) obj.winddir = "W";
    if (direction < 258.75) obj.winddir = "W-ZW";
    if (direction < 236.25) obj.winddir = "ZW";
    if (direction < 213.75) obj.winddir = "Z-ZW";
    if (direction < 191.25) obj.winddir = "Z";
    if (direction < 168.75) obj.winddir = "Z-SO";
    if (direction < 146.25) obj.winddir = "ZO";
    if (direction < 123.75) obj.winddir = "O-ZO";
    if (direction < 101.25) obj.winddir = "O";
    if (direction < 78.75) obj.winddir = "O-NO";
    if (direction < 56.25) obj.winddir = "NO";
    if (direction < 33.75) obj.winddir = "N-NO";
    if (direction < 11.25) obj.winddir = "N";
    if (direction == 0) obj.winddir = "Geen wind";
    if (direction == 0) {
    document.getElementById("wind").innerHTML = "Wind : " + obj.winddir;
    } else {
    document.getElementById("wind").innerHTML = "Wind : " + obj.winddir + " - " + Math.round(obj.windspeed) + " " + obj.windunit;}
    break;
    case "fr":

    hi.innerHTML = "élevé:";
    lo.innerHTML = "faible:";
    sunrisetext.innerHTML = "matinée:";
    sunsettext.innerHTML = "nuit:";

    translatedesc=obj.description.toLowerCase();
    if (translatedesc=='sunny') { document.getElementById("desc").innerHTML='Ensolei ll&eacute;'; }
    if (translatedesc=='drizzle') { document.getElementById("desc").innerHTML='Bruine' ; }
    if (translatedesc=='heavy snow') { document.getElementById("desc").innerHTML='Fortes chutes de neige'; }
    if (translatedesc=='heavy rain') { document.getElementById("desc").innerHTML='Fortes averses'; }
    if (translatedesc=='rain and snow') { document.getElementById("desc").innerHTML='Pluie et neige'; }
    if (translatedesc=='mixed rain and snow') { document.getElementById("desc").innerHTML='Pluie et neige m&eacute;l&eacute;es'; }
    if (translatedesc=='fair') { document.getElementById("desc").innerHTML='Ciel d&eacute;gag&eacute;'; }
    if (translatedesc=='mostly sunny') { document.getElementById("desc").innerHTML='Quelque s nuages'; }
    if (translatedesc=='partly sunny') { document.getElementById("desc").innerHTML='Partiel lement nuageux'; }
    if (translatedesc=='intermittent clouds') { document.getElementById("desc").innerHTML='Nuages &eacute;parses'; }
    if (translatedesc=='hazy sunshine') { document.getElementById("desc").innerHTML='L&eacut e;g&egrave;rement voil&eacute;'; }
    if (translatedesc=='haze') { document.getElementById("desc").innerHTML='Brume'; }
    if (translatedesc=='mostly cloudy') { document.getElementById("desc").innerHTML='Tr&egra ve;s nuageux'; }
    if (translatedesc=='cloudy') { document.getElementById("desc").innerHTML='Nuageux '; }
    if (translatedesc=='fog') { document.getElementById("desc").innerHTML='Brouill ard'; }
    if (translatedesc=='showers') { document.getElementById("desc").innerHTML='Averses '; }
    if (translatedesc=='partly sunny with showers') { document.getElementById("desc").innerHTML='Soleil et averses'; }
    if (translatedesc=='thunderstorms') { document.getElementById("desc").innerHTML='Orages' ; }
    if (translatedesc=='thunderstorm') { document.getElementById("desc").innerHTML='Orage'; }
    if (translatedesc=='mostly cloudy with thunder showers') { document.getElementById("desc").innerHTML='Tr&egra ve;s nuageux et fortes averses'; }
    if (translatedesc=='partly sunny with thunder showers') { document.getElementById("desc").innerHTML='Soleil et fortes averses'; }
    if (translatedesc=='light rain') { document.getElementById("desc").innerHTML='L&eacut e;g&egrave;re pluie'; }
    if (translatedesc=='rain') { document.getElementById("desc").innerHTML='Pluie'; }
    if (translatedesc=='flurries') { document.getElementById("desc").innerHTML='Averses de neige'; }
    if (translatedesc=='mostly cloudy with flurries') { document.getElementById("desc").innerHTML='Tr&egra ve;s nuageux avec neige'; }
    if (translatedesc=='partly sunny with flurries') { document.getElementById("desc").innerHTML='Soleil et averses de neige'; }
    if (translatedesc=='snow flurries') { document.getElementById("desc").innerHTML='Averses de neige'; }
    if (translatedesc=='snow showers') { document.getElementById("desc").innerHTML='Averses de neige'; }
    if (translatedesc=='snow') { document.getElementById("desc").innerHTML='Neige'; }
    if (translatedesc=='mostly cloudy with snow') { document.getElementById("desc").innerHTML='Tr&egra ve;s nuageux et neige'; }
    if (translatedesc=='ice') { document.getElementById("desc").innerHTML='Glace'; }
    if (translatedesc=='sleet') { document.getElementById("desc").innerHTML='Verglas '; }
    if (translatedesc=='freezing rain') { document.getElementById("desc").innerHTML='Pluie vergla&ccedil;ante'; }
    if (translatedesc=='rain and snow mixed') { document.getElementById("desc").innerHTML='Pluie et neige m&eacute;l&eacute;es'; }
    if (translatedesc=='hot') { document.getElementById("desc").innerHTML='Chaud'; }
    if (translatedesc=='cold') { document.getElementById("desc").innerHTML='Froid'; }
    if (translatedesc=='windy') { document.getElementById("desc").innerHTML='Vent'; }
    if (translatedesc=='clear') { document.getElementById("desc").innerHTML='Clair'; }
    if (translatedesc=='mostly clear') { document.getElementById("desc").innerHTML='Tr&egra ve;s clair'; }
    if (translatedesc=='partly cloudy') { document.getElementById("desc").innerHTML='Partiel lement nuageux'; }
    if (translatedesc=='hazy') { document.getElementById("desc").innerHTML='Brume'; }
    if (translatedesc=='partly cloudy with showers') { document.getElementById("desc").innerHTML='Partiel lement nuageux et averses'; }
    if (translatedesc=='mostly cloudy with showers') { document.getElementById("desc").innerHTML='Tr&egra ve;s nuageux et averses'; }
    if (translatedesc=='party cloudy with thunder showers') { document.getElementById("desc").innerHTML='Partiel lement nuageux et fortes averses'; }
    if (translatedesc=='foggy') { document.getElementById("desc").innerHTML='Brouill ard'; }
    if (translatedesc=='light snow') { document.getElementById("desc").innerHTML='Flocons de neige'; }
    if (translatedesc=='light snow showers') { document.getElementById("desc").innerHTML='L&eacut e;g&egrave;res chutes de neige'; }
    if (translatedesc=='rain shower') { document.getElementById("desc").innerHTML='Averses '; }
    if (translatedesc=='light drizzle') { document.getElementById("desc").innerHTML='L&eacut e;g&egrave;re bruine'; }
    if (translatedesc=='mixed rain and sleet') { document.getElementById("desc").innerHTML='Pluie et verglas'; }
    if (translatedesc=='mixed snow and sleet') { document.getElementById("desc").innerHTML='Neige et verglas'; }
    if (translatedesc=='severe thunderstorms') { document.getElementById("desc").innerHTML='Gros orages'; }
    if (translatedesc=='hurricane') { document.getElementById("desc").innerHTML='Ouragan '; }
    if (translatedesc=='tropical storm') { document.getElementById("desc").innerHTML='Orage tropical'; }
    if (translatedesc=='tornado') { document.getElementById("desc").innerHTML='Tornade '; }
    if (translatedesc=='freezing drizzle') { document.getElementById("desc").innerHTML='Buine vergla&ccedil;ante'; }
    if (translatedesc=='blowing snow') { document.getElementById("desc").innerHTML='Rafales de neige'; }
    if (translatedesc=='hail') { document.getElementById("desc").innerHTML='Gr&ecir c;le'; }
    if (translatedesc=='dust') { document.getElementById("desc").innerHTML='Poussi& eacute;reux'; }
    if (translatedesc=='somky') { document.getElementById("desc").innerHTML='Brumeux '; }
    if (translatedesc=='blustery') { document.getElementById("desc").innerHTML='Temp&ec irc;te'; }
    if (translatedesc=='mixed rain and hail') { document.getElementById("desc").innerHTML='Pluie et Gr&ecirc;le m&eacute;l&eacute;es'; }
    if (translatedesc=='isolated thunderstorms') { document.getElementById("desc").innerHTML='Orages isol&eacute;s'; }
    if (translatedesc=='isolated thundershowers') { document.getElementById("desc").innerHTML='Averses isol&eacute;s'; }
    if (translatedesc=='scattered thunderstorms') { document.getElementById("desc").innerHTML='Orages &eacute;parses'; }
    if (translatedesc=='scattered showers') { document.getElementById("desc").innerHTML='Averses &eacute;parses'; }
    if (translatedesc=='scattered snow showers') { document.getElementById("desc").innerHTML='Chutes de neige &eacute;parses'; }
    if (translatedesc=='light rain with thunder') { document.getElementById("desc").innerHTML='Pluie l&eacute;g&egrave;re et &eacute;clairs'; }
    if (translatedesc=='not available') { document.getElementById("desc").innerHTML='Non disponible'; }
    if (translatedesc=='drifting snow/windy') { document.getElementById("desc").innerHTML='Neige poudreuse et vent'; }
    if (translatedesc=='light rain shower') { document.getElementById("desc").innerHTML='L&eacut e;g&egrave;re averse'; }
    if (translatedesc=='thunder') { document.getElementById("desc").innerHTML='Tonnerr e'; }
    if (translatedesc=='mostly cloudy/windy') { document.getElementById("desc").innerHTML='Tr&egra ve;s nuageux et vent'; }
    if (translatedesc=='sandstorm') { document.getElementById("desc").innerHTML='Temp&ec irc;te de sable'; }
    if (translatedesc=='squalls/windy') { document.getElementById("desc").innerHTML='Rafales de vent'; }
    if (translatedesc=='sand') { document.getElementById("desc").innerHTML='Sable'; }
    if (translatedesc=='sandstorm/windy') { document.getElementById("desc").innerHTML='Temp&ec irc;te de sable et vent'; }
    if (translatedesc=='squalls') { document.getElementById("desc").innerHTML='Rafales '; }
    document.getElementById("lastupdate").innerHTML = "Mise * jour: " + currentTimeString + " " + timeOfDay;
    document.getElementById("humidity").innerHTML = "Humidité: " + obj.humidity + "%";
    document.getElementById("visibility").innerHTML = "visibilité: " + obj.visibility + obj.visibilityunit;
    document.getElementById("pressure").innerHTML = "Pression: " + obj.pressure + obj.pressureunit;
    if (direction <= 360) obj.winddir = "N";
    if (direction < 348.75) obj.winddir = "N-NO";
    if (direction < 326.25) obj.winddir = "NO";
    if (direction < 303.75) obj.winddir = "O-NO";
    if (direction < 281.25) obj.winddir = "O";
    if (direction < 258.75) obj.winddir = "O-SO";
    if (direction < 236.25) obj.winddir = "SO";
    if (direction < 213.75) obj.winddir = "S-SO";
    if (direction < 191.25) obj.winddir = "S";
    if (direction < 168.75) obj.winddir = "S-SE";
    if (direction < 146.25) obj.winddir = "SE";
    if (direction < 123.75) obj.winddir = "E-SE";
    if (direction < 101.25) obj.winddir = "E";
    if (direction < 78.75) obj.winddir = "E-NE";
    if (direction < 56.25) obj.winddir = "NE";
    if (direction < 33.75) obj.winddir = "N-NE";
    if (direction < 11.25) obj.winddir = "N";
    if (direction == 0) obj.winddir = "Pas de vent";
    if (direction == 0) {
    document.getElementById("wind").innerHTML = "Vent : " + obj.winddir;
    } else {
    document.getElementById("wind").innerHTML = "Vent : " + obj.winddir + " - " + Math.round(obj.windspeed) + " " + obj.windunit; }
    break;
    case "de":

    hi.innerHTML = "hoch:";
    lo.innerHTML = "tief:";
    sunrisetext.innerHTML = "Morgen:";
    sunsettext.innerHTML = "Abend:";
    feelslike.innerHTML = "Gefühlt:";

    translatedesc=obj.description.toLowerCase();
    if (translatedesc=='sunny') { document.getElementById("desc").innerHTML='Sonnig' ; }
    if (translatedesc=='drizzle') { document.getElementById("desc").innerHTML='Nieselr egen'; }
    if (translatedesc=='heavy snow') { document.getElementById("desc").innerHTML='Starker Schneefall'; }
    if (translatedesc=='heavy rain') { document.getElementById("desc").innerHTML='Starker Regenschauer'; }
    if (translatedesc=='rain and snow') { document.getElementById("desc").innerHTML='Regen und Schnee'; }
    if (translatedesc=='mixed rain and snow') { document.getElementById("desc").innerHTML='Regen und Schnee'; }
    if (translatedesc=='fair') { document.getElementById("desc").innerHTML='Heiter' ; }
    if (translatedesc=='mostly sunny') { document.getElementById("desc").innerHTML='Meist Sonnig'; }
    if (translatedesc=='partly sunny') { document.getElementById("desc").innerHTML='Teilwei se Sonnig'; }
    if (translatedesc=='intermittent clouds') { document.getElementById("desc").innerHTML='Wechsel nd Bew&ouml;lkt'; }
    if (translatedesc=='hazy sunshine') { document.getElementById("desc").innerHTML='Dunstig er Sonnenschein;'; }
    if (translatedesc=='haze') { document.getElementById("desc").innerHTML='Dunstsc hleier'; }
    if (translatedesc=='mostly cloudy') { document.getElementById("desc").innerHTML='Meist Bew&ouml;lkt'; }
    if (translatedesc=='cloudy') { document.getElementById("desc").innerHTML='Bew&oum l;lkt'; }
    if (translatedesc=='fog') { document.getElementById("desc").innerHTML='Nebel'; }
    if (translatedesc=='showers') { document.getElementById("desc").innerHTML='Schauer '; }
    if (translatedesc=='partly sunny with showers') { document.getElementById("desc").innerHTML='Sonnig mit Regenschauern'; }
    if (translatedesc=='thunderstorms') { document.getElementById("desc").innerHTML='Gewitte r'; }
    if (translatedesc=='thunderstorm') { document.getElementById("desc").innerHTML='Gewitte r'; }
    if (translatedesc=='mostly cloudy with thunder showers') { document.getElementById("desc").innerHTML='Bew&oum l;lkt mit Gewitterschauern'; }
    if (translatedesc=='partly sunny with thunder showers') { document.getElementById("desc").innerHTML='Wechsel nd bew&ouml;lkt mit Gewitterschauer'; }
    if (translatedesc=='light rain') { document.getElementById("desc").innerHTML='Leichte r Regen'; }
    if (translatedesc=='rain') { document.getElementById("desc").innerHTML='Regen'; }
    if (translatedesc=='flurries') { document.getElementById("desc").innerHTML='Windst% F6%DFe'; }
    if (translatedesc=='mostly cloudy with flurries') { document.getElementById("desc").innerHTML='Bew&oum l;lkt mit Windst%F6%DFe'; }
    if (translatedesc=='partly sunny with flurries') { document.getElementById("desc").innerHTML='Teilwei se Sonnig mit Windst%F6%DFe'; }
    if (translatedesc=='snow flurries') { document.getElementById("desc").innerHTML='Schneeg est&ouml;ber'; }
    if (translatedesc=='snow showers') { document.getElementById("desc").innerHTML='Scheesc hauer'; }
    if (translatedesc=='snow') { document.getElementById("desc").innerHTML='Schnee' ; }
    if (translatedesc=='mostly cloudy with snow') { document.getElementById("desc").innerHTML='Bew&oum l;lkt mit Schneeschauern'; }
    if (translatedesc=='ice') { document.getElementById("desc").innerHTML='Gl%E4tt e'; }
    if (translatedesc=='sleet') { document.getElementById("desc").innerHTML='Schneer egen'; }
    if (translatedesc=='freezing rain') { document.getElementById("desc").innerHTML='Gefrier ender Regen'; }
    if (translatedesc=='rain and snow mixed') { document.getElementById("desc").innerHTML='Schneer egen'; }
    if (translatedesc=='hot') { document.getElementById("desc").innerHTML='Heiss'; }
    if (translatedesc=='cold') { document.getElementById("desc").innerHTML='Kalt'; }
    if (translatedesc=='windy') { document.getElementById("desc").innerHTML='Windig' ; }
    if (translatedesc=='clear') { document.getElementById("desc").innerHTML='Klar'; }
    if (translatedesc=='mostly clear') { document.getElementById("desc").innerHTML='Meist Klar'; }
    if (translatedesc=='partly cloudy') { document.getElementById("desc").innerHTML='Teilwei se Bew&ouml;lkt'; }
    if (translatedesc=='hazy') { document.getElementById("desc").innerHTML='Nebelig '; }
    if (translatedesc=='partly cloudy with showers') { document.getElementById("desc").innerHTML='Teilwei se Bew&ouml;lkt mit Regen'; }
    if (translatedesc=='mostly cloudy with showers') { document.getElementById("desc").innerHTML='Stark Bew&ouml;lkt mit Regen'; }
    if (translatedesc=='partly cloudy with thunder showers') { document.getElementById("desc").innerHTML='Teilwei se Bew&ouml;lkt mit Gewitter'; }
    if (translatedesc=='foggy') { document.getElementById("desc").innerHTML='Nebelig '; }
    if (translatedesc=='light snow') { document.getElementById("desc").innerHTML='Leichte r Schneefall'; }
    if (translatedesc=='light snow showers') { document.getElementById("desc").innerHTML='Leichte Schneeschauer'; }
    if (translatedesc=='rain shower') { document.getElementById("desc").innerHTML='Regensc hauer'; }
    if (translatedesc=='light drizzle') { document.getElementById("desc").innerHTML='Leichte r Nieselregen'; }
    if (translatedesc=='mixed rain and sleet') { document.getElementById("desc").innerHTML='Graupel schauer'; }
    if (translatedesc=='mixed snow and sleet') { document.getElementById("desc").innerHTML='Schneer egen'; }
    if (translatedesc=='severe thunderstorms') { document.getElementById("desc").innerHTML='Schwere Gewitter'; }
    if (translatedesc=='hurricane') { document.getElementById("desc").innerHTML='Wirbels turm'; }
    if (translatedesc=='tropical storm') { document.getElementById("desc").innerHTML='Tropisc her Sturm'; }
    if (translatedesc=='tornado') { document.getElementById("desc").innerHTML='Tornado !'; }
    if (translatedesc=='freezing drizzle') { document.getElementById("desc").innerHTML='Gefrier ender Nieselregen'; }
    if (translatedesc=='blowing snow') { document.getElementById("desc").innerHTML='Schneet reiben'; }
    if (translatedesc=='hail') { document.getElementById("desc").innerHTML='Hagel'; }
    if (translatedesc=='dust') { document.getElementById("desc").innerHTML='Staubig '; }
    if (translatedesc=='smoky') { document.getElementById("desc").innerHTML='Dunstig '; }
    if (translatedesc=='blustery') { document.getElementById("desc").innerHTML='St&uuml ;rmisch'; }
    if (translatedesc=='mixed rain and hail') { document.getElementById("desc").innerHTML='Regen und Hagel'; }
    if (translatedesc=='isolated thunderstorms') { document.getElementById("desc").innerHTML='&Ouml;r tliche Gewitter'; }
    if (translatedesc=='scattered thunderstorms') { document.getElementById("desc").innerHTML='Vereinz elte Gewitter'; }
    if (translatedesc=='scattered showers') { document.getElementById("desc").innerHTML='Vereinz elte Schauer'; }
    if (translatedesc=='scattered snow showers') { document.getElementById("desc").innerHTML='Vereinz elte Schneeschauer'; }
    if (translatedesc=='light rain with thunder') { document.getElementById("desc").innerHTML='Vereinz elte Regenschauer mit Gewitter'; }
    if (translatedesc=='not available') { document.getElementById("desc").innerHTML='nicht verfuegbar'; }
    if (translatedesc=='drifting snow/windy') { document.getElementById("desc").innerHTML='Heftige s Schneegest%F6ber'; }
    if (translatedesc=='light rain shower') { document.getElementById("desc").innerHTML='Leichte Regenschauer'; }
    if (translatedesc=='thunder') { document.getElementById("desc").innerHTML='Donner' ; }
    if (translatedesc=='mostly cloudy/windy') { document.getElementById("desc").innerHTML='Stark Bew&ouml;lkt und Windig'; }
    if (translatedesc=='sandstorm') { document.getElementById("desc").innerHTML='Sandstu rm'; }
    if (translatedesc=='squalls/windy') { document.getElementById("desc").innerHTML='St&uuml ;rmisch'; }
    if (translatedesc=='sand') { document.getElementById("desc").innerHTML='Staubig '; }
    if (translatedesc=='sandstorm/windy') { document.getElementById("desc").innerHTML='Sandstu rm'; }
    if (translatedesc=='squalls') { document.getElementById("desc").innerHTML='Sturmb% F6en'; }
    if (translatedesc=='light snow grains') { document.getElementById("desc").innerHTML='Leichte Schneeschauer'; }
    if (translatedesc=='thundershowers') { document.getElementById("desc").innerHTML='Gewitte r'; }
    if (translatedesc=='isolated thundershowers') { document.getElementById("desc").innerHTML='Ouml;rt liche Gewitterschauer'; }
    if (translatedesc=='showers in the vicinity') { document.getElementById("desc").innerHTML='Schauer '; }
    if (translatedesc=='partly sunny') { document.getElementById("desc").innerHTML='Teilwei se Sonnig'; }
    if (translatedesc=='ground fog') { document.getElementById("desc").innerHTML='Bodenne bel'; }
    if (translatedesc=='mist') { document.getElementById("desc").innerHTML='Nebel'; }
    if (translatedesc=='severe thunderstorm/windy') { document.getElementById("desc").innerHTML='Schwere Gewitter/Windig'; }
    document.getElementById("lastupdate").innerHTML = "Letztes Update: " + currentTimeString + " " + timeOfDay;
    document.getElementById("visibility").innerHTML = "Sichtweite: " + obj.visibility + obj.visibilityunit;
    document.getElementById("humidity").innerHTML = "Luftfeuchte: " + obj.humidity + "%";
    document.getElementById("pressure").innerHTML = "Luftdruck: " + obj.pressure + obj.pressureunit;
    if (direction <= 360) obj.winddir = "N";
    if (direction < 348.75) obj.winddir = "N-NW";
    if (direction < 326.25) obj.winddir = "NW";
    if (direction < 303.75) obj.winddir = "W-NW";
    if (direction < 281.25) obj.winddir = "W";
    if (direction < 258.75) obj.winddir = "W-SW";
    if (direction < 236.25) obj.winddir = "SW";
    if (direction < 213.75) obj.winddir = "S-SW";
    if (direction < 191.25) obj.winddir = "S";
    if (direction < 168.75) obj.winddir = "S-SO";
    if (direction < 146.25) obj.winddir = "SO";
    if (direction < 123.75) obj.winddir = "O-SO";
    if (direction < 101.25) obj.winddir = "O";
    if (direction < 78.75) obj.winddir = "O-NO";
    if (direction < 56.25) obj.winddir = "NO";
    if (direction < 33.75) obj.winddir = "N-NO";
    if (direction < 11.25) obj.winddir = "N";
    if (direction == 0) obj.winddir = "Kein wind";
    if (direction == 0) {
    document.getElementById("wind").innerHTML = "Wind : " + obj.winddir;
    } else {
    document.getElementById("wind").innerHTML = "Wind : " + obj.winddir + " - " + Math.round(obj.windspeed) + " " + obj.windunit;}
    break;

    case "sp":

    hi.innerHTML = "alto:";
    lo.innerHTML = "bajo:";
    sunrisetext.innerHTML = "mañana:";
    sunsettext.innerHTML = "noche:";

    translatedesc=obj.description.toLowerCase();
    if (translatedesc=='sunny') { document.getElementById("desc").innerHTML='Soleado '; }
    if (translatedesc=='drizzle') { document.getElementById("desc").innerHTML='Llovizn a'; }
    if (translatedesc=='heavy snow') { document.getElementById("desc").innerHTML='Nieve fuerte'; }
    if (translatedesc=='heavy rain') { document.getElementById("desc").innerHTML='Luvia fuerte'; }
    if (translatedesc=='rain and snow') { document.getElementById("desc").innerHTML='Lluvia y nieve'; }
    if (translatedesc=='mixed rain and snow') { document.getElementById("desc").innerHTML='Mezcla de lluvia y nieve'; }
    if (translatedesc=='fair') { document.getElementById("desc").innerHTML='Despeja do'; }
    if (translatedesc=='mostly sunny') { document.getElementById("desc").innerHTML='Mayorme nte soleado'; }
    if (translatedesc=='partly sunny') { document.getElementById("desc").innerHTML='Parcial mente soleado'; }
    if (translatedesc=='intermittent clouds') { document.getElementById("desc").innerHTML='Intermi tente nublado'; }
    if (translatedesc=='hazy sunshine') { document.getElementById("desc").innerHTML='Sol brumoso'; }
    if (translatedesc=='haze') { document.getElementById("desc").innerHTML='Bruma'; }
    if (translatedesc=='mostly cloudy') { document.getElementById("desc").innerHTML='Mayorme nte nublado'; }
    if (translatedesc=='cloudy') { document.getElementById("desc").innerHTML='Nublado '; }
    if (translatedesc=='fog') { document.getElementById("desc").innerHTML='Niebla' ; }
    if (translatedesc=='showers') { document.getElementById("desc").innerHTML='Chubasc os'; }
    if (translatedesc=='partly sunny with showers') { document.getElementById("desc").innerHTML='Parcial mente soleado con chubascos'; }
    if (translatedesc=='thunderstorms') { document.getElementById("desc").innerHTML='Torment as electricas'; }
    if (translatedesc=='thunderstorm') { document.getElementById("desc").innerHTML='Torment a electrica'; }
    if (translatedesc=='mostly cloudy with thunder showers') { document.getElementById("desc").innerHTML='Mayorme nte nublado con tormentas de chubascos'; }
    if (translatedesc=='partly sunny with thunder showers') { document.getElementById("desc").innerHTML='Parcial mente soleado con tormentas de chubascos'; }
    if (translatedesc=='light rain') { document.getElementById("desc").innerHTML='Lluvia ligera'; }
    if (translatedesc=='rain') { document.getElementById("desc").innerHTML='Lluvia' ; }
    if (translatedesc=='flurries') { document.getElementById("desc").innerHTML='Rafagas '; }
    if (translatedesc=='mostly cloudy with flurries') { document.getElementById("desc").innerHTML='Mayorme nte nublado con rafagas'; }
    if (translatedesc=='partly sunny with flurries') { document.getElementById("desc").innerHTML='Parcial mente soleado con rafagas'; }
    if (translatedesc=='snow flurries') { document.getElementById("desc").innerHTML='Rafagas de nieve'; }
    if (translatedesc=='snow showers') { document.getElementById("desc").innerHTML='Precipi taciones de nieve'; }
    if (translatedesc=='snow') { document.getElementById("desc").innerHTML='Nieve'; }
    if (translatedesc=='mostly cloudy with snow') { document.getElementById("desc").innerHTML='Mayorme nte nublado con nieve'; }
    if (translatedesc=='ice') { document.getElementById("desc").innerHTML='Hielo'; }
    if (translatedesc=='sleet') { document.getElementById("desc").innerHTML='Aguanie ve'; }
    if (translatedesc=='freezing rain') { document.getElementById("desc").innerHTML='Lluvia bajo cero'; }
    if (translatedesc=='rain and snow mixed') { document.getElementById("desc").innerHTML='Mezcla de lluvia y nieve'; }
    if (translatedesc=='hot') { document.getElementById("desc").innerHTML='Caluros o'; }
    if (translatedesc=='cold') { document.getElementById("desc").innerHTML='Frio'; }
    if (translatedesc=='windy') { document.getElementById("desc").innerHTML='Vientos o'; }
    if (translatedesc=='clear') { document.getElementById("desc").innerHTML='Despeja do'; }
    if (translatedesc=='mostly clear') { document.getElementById("desc").innerHTML='Mayorme nte despejado'; }
    if (translatedesc=='partly cloudy') { document.getElementById("desc").innerHTML='Parcial mente despejado'; }
    if (translatedesc=='hazy') { document.getElementById("desc").innerHTML='Bruma'; }
    if (translatedesc=='partly cloudy with showers') { document.getElementById("desc").innerHTML='Parcial mente nublado con chubascos'; }
    if (translatedesc=='mostly cloudy with showers') { document.getElementById("desc").innerHTML='Mayorme nte nublado con chubascos'; }
    if (translatedesc=='party cloudy with thunder showers') { document.getElementById("desc").innerHTML='Parcial mente nublado con tormentas de chubascos'; }
    if (translatedesc=='foggy') { document.getElementById("desc").innerHTML='Neblina '; }
    if (translatedesc=='light snow') { document.getElementById("desc").innerHTML='Nieve ligera'; }
    if (translatedesc=='light snow showers') { document.getElementById("desc").innerHTML='Ligeras precipitaciones de nieve'; }
    if (translatedesc=='rain shower') { document.getElementById("desc").innerHTML='Precipi taciones de lluvia'; }
    if (translatedesc=='drizzle') { document.getElementById("desc").innerHTML='Bruma'; }
    if (translatedesc=='mixed rain and sleet') { document.getElementById("desc").innerHTML='Mezcla de lluvia y aguanieve'; }
    if (translatedesc=='mixed snow and sleet') { document.getElementById("desc").innerHTML='Mezcla de nieve y aguanieve'; }
    if (translatedesc=='severe thunderstorms') { document.getElementById("desc").innerHTML='Torment as electricas severas'; }
    if (translatedesc=='hurricane') { document.getElementById("desc").innerHTML='Huracan '; }
    if (translatedesc=='tropical storm') { document.getElementById("desc").innerHTML='Torment a tropical'; }
    if (translatedesc=='tornado') { document.getElementById("desc").innerHTML='Tornado '; }
    if (translatedesc=='freezing drizzle') { document.getElementById("desc").innerHTML='Llovizn a helada'; }
    if (translatedesc=='blowing snow') { document.getElementById("desc").innerHTML='Viento y nieve'; }
    if (translatedesc=='hail') { document.getElementById("desc").innerHTML='Granizo '; }
    if (translatedesc=='dust') { document.getElementById("desc").innerHTML='Polvare da'; }
    if (translatedesc=='somky') { document.getElementById("desc").innerHTML='Humeado '; }
    if (translatedesc=='blustery') { document.getElementById("desc").innerHTML='Tempest uoso'; }
    if (translatedesc=='mixed rain and hail') { document.getElementById("desc").innerHTML='Mezcla de lluvia y granizo'; }
    if (translatedesc=='isolated thunderstorms') { document.getElementById("desc").innerHTML='Torment as electricas aisladas'; }
    if (translatedesc=='isolated thundershowers') { document.getElementById("desc").innerHTML='Torment as aisladas'; }
    if (translatedesc=='scattered thunderstorms') { document.getElementById("desc").innerHTML='Torment as electricas dispersas'; }
    if (translatedesc=='scattered showers') { document.getElementById("desc").innerHTML='Chubasc os dispersos'; }
    if (translatedesc=='scattered snow showers') { document.getElementById("desc").innerHTML='Precipi taciones de nieve dispersas'; }
    if (translatedesc=='light rain with thunder') { document.getElementById("desc").innerHTML='LLuvia y tormenta ligera'; }
    if (translatedesc=='not available') { document.getElementById("desc").innerHTML='No disponible'; }
    if (translatedesc=='drifting snow/windy') { document.getElementById("desc").innerHTML='Acumula cion de nieve y viento'; }
    if (translatedesc=='light rain shower') { document.getElementById("desc").innerHTML='Precipi taciones de lluvia ligera'; }
    if (translatedesc=='thunder') { document.getElementById("desc").innerHTML='Truenos '; }
    if (translatedesc=='mostly cloudy/windy') { document.getElementById("desc").innerHTML='Mayorme nte nublado y ventoso'; }
    if (translatedesc=='sandstorm') { document.getElementById("desc").innerHTML='Torment as de arena'; }
    if (translatedesc=='squalls/windy') { document.getElementById("desc").innerHTML='Chubasc os y viento'; }
    if (translatedesc=='sand') { document.getElementById("desc").innerHTML='Arena'; }
    if (translatedesc=='sandstorm/windy') { document.getElementById("desc").innerHTML='Torment as de arena y ventoso'; }
    document.getElementById("lastupdate").innerHTML = "Actualizado: " + currentTimeString + " " + timeOfDay;
    document.getElementById("humidity").innerHTML = "Humedad: " + obj.humidity + "%";
    document.getElementById("visibility").innerHTML = "visibilidad: " + obj.visibility + obj.visibilityunit;
    document.getElementById("pressure").innerHTML = "Presión: " + obj.pressure + obj.pressureunit;
    if (direction <= 360) obj.winddir = "N";
    if (direction < 348.75) obj.winddir = "N-NO";
    if (direction < 326.25) obj.winddir = "NO";
    if (direction < 303.75) obj.winddir = "O-NO";
    if (direction < 281.25) obj.winddir = "O";
    if (direction < 258.75) obj.winddir = "O-SO";
    if (direction < 236.25) obj.winddir = "SO";
    if (direction < 213.75) obj.winddir = "S-SO";
    if (direction < 191.25) obj.winddir = "S";
    if (direction < 168.75) obj.winddir = "S-SE";
    if (direction < 146.25) obj.winddir = "SE";
    if (direction < 123.75) obj.winddir = "E-SE";
    if (direction < 101.25) obj.winddir = "E";
    if (direction < 78.75) obj.winddir = "E-NE";
    if (direction < 56.25) obj.winddir = "NE";
    if (direction < 33.75) obj.winddir = "N-NE";
    if (direction < 11.25) obj.winddir = "N";
    if (direction == 0) obj.winddir = "No hay viento";
    if (direction == 0) {
    document.getElementById("wind").innerHTML = "Viento : " + obj.winddir;
    } else {
    document.getElementById("wind").innerHTML = "Viento : " + obj.winddir + " - " + Math.round(obj.windspeed) + " " + obj.windunit; }
    break;
    default:

    hi.innerHTML = "Hi:";
    lo.innerHTML = "Lo:";
    sunrisetext.innerHTML = "Sunrise";
    sunsettext.innerHTML = "Sunset";
    feelslike.innerHTML = "Feels like:";

    document.getElementById("desc").innerHTML=obj.desc ription;
    document.getElementById("lastupdate").innerHTML = "Last update: " + currentTimeString + " " + timeOfDay;
    document.getElementById("humidity").innerHTML = "Humidity: " + obj.humidity + "%";
    document.getElementById("visibility").innerHTML = "Visibility: " + obj.visibility + obj.visibilityunit;
    document.getElementById("pressure").innerHTML = "Pressure: " + obj.pressure + obj.pressureunit;

    if (direction <= 360) obj.winddir = "N";
    if (direction < 348.75) obj.winddir = "N-NW";
    if (direction < 326.25) obj.winddir = "NW";
    if (direction < 303.75) obj.winddir = "W-NW";
    if (direction < 281.25) obj.winddir = "W";
    if (direction < 258.75) obj.winddir = "W-SW";
    if (direction < 236.25) obj.winddir = "SW";
    if (direction < 213.75) obj.winddir = "S-SW";
    if (direction < 191.25) obj.winddir = "S";
    if (direction < 168.75) obj.winddir = "S-SE";
    if (direction < 146.25) obj.winddir = "SE";
    if (direction < 123.75) obj.winddir = "E-SE";
    if (direction < 101.25) obj.winddir = "E";
    if (direction < 78.75) obj.winddir = "E-NE";
    if (direction < 56.25) obj.winddir = "NE";
    if (direction < 33.75) obj.winddir = "N-NE";
    if (direction < 11.25) obj.winddir = "N";
    if (direction == 0) obj.winddir = "No wind";
    if (direction == 0) {
    document.getElementById("wind").innerHTML = "Wind : " + obj.winddir;
    } else {
    document.getElementById("wind").innerHTML = "Wind : " + obj.winddir + " - " + Math.round(obj.windspeed) + " " + obj.windunit; }
    break;
    }

    // ALL WEATHER CONDITIONS
    var Conditions = [
    "thunderstorm", //0 tornado
    "thunderstorm", //1 tropical storm
    "thunderstorm", //2 hurricane
    "thunderstorm", //3 severe thunderstorms
    "thunderstorm", //4 thunderstorms
    "sleet", //5 mixed rain and snow
    "sleet", //6 mixed rain and sleet
    "sleet", //7 mixed snow and sleet
    "sleet", //8 freezing drizzle
    "showers_cloud", //9 drizzle
    "sleet", //10 freezing rain
    "showers_cloud", //11 showers
    "rain", //12 showers
    "snow_showers", //13 snow flurries
    "snow_showers", //14 light snow showers
    "snow", //15 blowing snow
    "snow", //16 snow
    "hail", //17 hail
    "sleet", //18 sleet
    "fog", //19 dust
    "fog", //20 foggy
    "haze", //21 haze
    "fog", //22 smoky
    "windy", //23 blustery
    "windy", //24 windy
    "frost", //25 cold
    "cloud", //26 cloudy
    "mostlycloudy", //27 mostly cloudy (night)
    "mostlycloudy", //28 mostly cloudy (day)
    "partlycloudy", //29 partly cloudy (night)
    "partlycloudy", //30 partly cloudy (day)
    "clear", //31 clear (night)
    "clear", //32 sunny
    "fair", //33 fair (night)
    "fair", //34 fair (day)
    "sleet", //35 mixed rain and hail
    "clear", //36 hot
    "thunderstorm", //37 isolated thunderstorms
    "thunderstorm", //38 scattered thunderstorms
    "thunderstorm", //39 scattered thunderstorms
    "showers_cloud", //40 scattered showers
    "snow", //41 heavy snow
    "snow", //42 scattered snow showers
    "heavy_snow", //43 heavy snow
    "partlycloudy", //44 partly cloudy
    "thunderstorm", //45 thundershowers
    "snow_showers", //46 snow showers
    "thunderstorm", //47 isolated thundershowers
    "blank"]; //3200 not available

    // SUNSET/SUNRISE FORMAT
    sunriseh = obj.sunrise.substring(0,obj.sunrise.indexOf(":",0) );
    sunrisem = obj.sunrise.substring(obj.sunrise.indexOf(":",0)+1 ,obj.sunrise.indexOf(" ",0));
    sunseth = obj.sunset.substring(0,obj.sunset.indexOf(":",0));
    sunsetm = obj.sunset.substring(obj.sunset.indexOf(":",0)+1,o bj.sunset.indexOf(" ",0));
    sunriseh = parseInt(sunriseh) + GMT;
    sunseth = parseInt(sunseth) + GMT;
    sunseth = sunseth + 12;

    // DAY AND NIGHT DURATION
    dayhour = parseInt(sunriseh) + parseInt(sunrisem)/60;
    nighthour = parseInt(sunseth) + parseInt(sunsetm)/60;
    DurationOfDay = nighthour - dayhour;
    DurationOfNight = 24 - DurationOfDay;

    if (ampm == false) {
    var sunriseh = ( sunriseh < 10 ? "0" : "" ) + sunriseh;
    var sunseth = ( sunseth < 10 ? "0" : "" ) + sunseth;
    obj.sunrise = sunriseh + ":" + sunrisem;
    obj.sunset = sunseth + ":" + sunsetm;
    } else {
    var timeOfSunset = ( sunseth < 12 ) ? "am" : "pm";
    var timeOfSunrise = ( sunriseh < 12 ) ? "am" : "pm";
    sunriseh = ( sunriseh > 12 ) ? sunriseh - 12 : sunriseh;
    sunriseh = ( sunriseh == 0 ) ? 12 : sunriseh;
    sunseth = ( sunseth > 12 ) ? sunseth - 12 : sunseth;
    sunseth = ( sunseth == 0 ) ? 12 : sunseth;
    obj.sunrise = sunriseh + ":" + sunrisem + " " + timeOfSunrise;
    obj.sunset = sunseth + ":" + sunsetm + " " + timeOfSunset;
    }

    if (SunsetSunrise == true)
    {
    document.getElementById("sunrise").innerHTML = obj.sunrise;
    document.getElementById("sunset").innerHTML = obj.sunset;
    document.getElementById("sunrise").style.display = "block";
    document.getElementById("sunset").style.display = "block";
    }

    // POSITION OF SUN/MOON

    // CHECK IF PREVIOUS CONDITION WAS HAZE AND LOAD IAN'S SUN IF NECESSARY
    if ((DacalSun == false) && (filename == "haze") && (filename != Conditions[obj.icon])) {
    document.getElementById("sun").style.backgroundIma ge = "url(Images/Weather/sun/sun.png)";
    document.getElementById("sunray").style.background Image = "url(Images/Weather/sun/sunray.png)";
    document.getElementById("sunray1").style.backgroun dImage = "url(Images/Weather/sun/sunray1.png)";
    document.getElementById("arcsun").style.background Image = "url(Images/Weather/sun/sun.png)";
    document.getElementById("arcsunray").style.backgro undImage = "url(Images/Weather/sun/sunray.png)";
    document.getElementById("arcsunray1").style.backgr oundImage = "url(Images/Weather/sun/sunray1.png)";
    }

    if (Sun_Moon_from_right_to_left == true) { var reversemove = 1; } else { var reversemove = 0; }

    if ((time_to_change_wall < dayhour) || (time_to_change_wall >= nighthour)) {
    where = "night";
    if (time_to_change_wall < dayhour) { time_to_change_wall = time_to_change_wall +24 };
    pRotate = Math.abs((reversemove-(time_to_change_wall - nighthour)/ DurationOfNight)*70)-35; // ROTATE FROM -35deg to +35deg
    pTranslate = Math.abs((reversemove-(time_to_change_wall - nighthour)/ DurationOfNight)*320);
    } else {
    where = "day";
    pRotate = Math.abs((reversemove-(time_to_change_wall - dayhour)/ DurationOfDay)*70)-35; // ROTATE FROM -35deg to +35deg
    pTranslate = Math.abs((reversemove-(time_to_change_wall - dayhour)/ DurationOfDay)*320);
    }

    if (sun_moon_arc == true) {
    document.getElementById("arcmoon").style.webkitTra nsform = "rotate("+pRotate+"deg)";
    document.getElementById("arcmoonray").style.webkit Transform = "rotate("+pRotate+"deg)";
    document.getElementById("arcsun").style.webkitTran sform = "rotate("+pRotate+"deg)";
    document.getElementById("arcsunray").style.webkitT ransform = "rotate("+pRotate+"deg)";
    document.getElementById("arcsunray1").style.left = pTranslate - 300 + "px";
    } else {
    document.getElementById("moon").style.webkitTransf orm = "translateX("+pTranslate+"px)";
    document.getElementById("moonray").style.webkitTra nsform = "translateX("+pTranslate+"px)";
    document.getElementById("sun").style.webkitTransfo rm = "translateX("+pTranslate+"px)";
    document.getElementById("sunray").style.webkitTran sform = "translateX("+pTranslate+"px)";
    document.getElementById("sunray1").style.left = pTranslate - 300 + "px";
    }

    // END POSITION OF SUN/MOON

    if (show_day_night_walls == true) { document.getElementById("DayNightWalls").src="Imag es/day_night_"+iPhoneType+"/"+where+".png"; }

    // LOADING WEATHER CONDITIONS

    if ((Math.round(obj.windspeed) >= Strong_Wind) && (Conditions[obj.icon] != "windy")) { Start_wind_effects = true; } else { Start_wind_effects = false; }



    if (filename == "") {
    filename = Conditions[obj.icon];
    whereOld = where;
    if (slideshowdisplay == false) {
    loadjscssfile ("Weather/"+iPhoneType, filename, "css");
    loadjscssfile ("Weather/"+iPhoneType, filename, "js");
    if (Start_wind_effects == true) {
    loadjscssfile ("Weather/"+iPhoneType, wind_effects, "css");
    loadjscssfile ("Weather/"+iPhoneType, wind_effects, "js");
    Show_wind_effects = true;
    }
    }
    } else {
    if ((Conditions[obj.icon] != filename ) || (where != whereOld) || (Start_wind_effects != Show_wind_effects)) {
    if (slideshowdisplay == false) {
    clearInterval(meteorTimer);
    delelement("astronautContainer");
    delelement("fogContainer");
    delelement("starContainer");
    delelement("meteorContainer");
    delelement("frameContainer");
    delelement("cloudContainer");
    delelement("dropContainer");
    delelement("circleContainer");
    delelement("wiperContainer");
    delelement("starsBGContainer");
    delelement("windContainer");
    delelement("big_balloonContainer");
    delelement("small_balloonContainer");
    delelement("birdsContainer");
    if (Show_wind_effects == true) {
    removejscssfile("Weather/"+iPhoneType, wind_effects, "css");
    removejscssfile("Weather/"+iPhoneType, wind_effects, "js");
    Show_wind_effects = false;
    }
    replacejscssfile("Weather/"+iPhoneType, filename, Conditions[obj.icon], "css");
    replacejscssfile("Weather/"+iPhoneType, filename, Conditions[obj.icon], "js");
    if (Start_wind_effects == true) {
    loadjscssfile ("Weather/"+iPhoneType, wind_effects, "css");
    loadjscssfile ("Weather/"+iPhoneType, wind_effects, "js");
    Show_wind_effects = true;
    }
    }
    whereOld = where;
    filename = Conditions[obj.icon];
    }
    }

    if (FullScreen_WW == true) { document.getElementById("fullScreenWeatherWalls"). src="Images/fullScreenWeatherWalls/" + where + "_" + Conditions[obj.icon] +".jpg"; }

    /*if (Reverse_Hi_Lo == true) {
    document.getElementById("Day1").innerHTML=Forecast DayNames(obj.Day1).substring(0,3);
    document.getElementById("Day1Icon").src="Icon Sets/"+iconSet+"/"+obj.Day1Code+".png";
    document.getElementById("Day1HiLo").innerHTML=obj. Day1Hi+ "/ "+obj.Day1Lo+ "";
    document.getElementById("Day2").innerHTML=Forecast DayNames(obj.Day2).substring(0,3);
    document.getElementById("Day2Icon").src="Icon Sets/"+iconSet+"/"+obj.Day2Code+".png";
    document.getElementById("Day2HiLo").innerHTML=obj. Day2Hi+ "/ "+obj.Day2Lo+ "";
    document.getElementById("Day3").innerHTML=Forecast DayNames(obj.Day3).substring(0,3);
    document.getElementById("Day3Icon").src="Icon Sets/"+iconSet+"/"+obj.Day3Code+".png";
    document.getElementById("Day3HiLo").innerHTML=obj. Day3Hi+ "/ "+obj.Day3Lo+ "";
    document.getElementById("Day4").innerHTML=Forecast DayNames(obj.Day4).substring(0,3);
    document.getElementById("Day4Icon").src="Icon Sets/"+iconSet+"/"+obj.Day4Code+".png";
    document.getElementById("Day4HiLo").innerHTML=obj. Day4Hi+ "/ "+obj.Day4Lo+ "";
    } else {
    document.getElementById("Day1").innerHTML=Forecast DayNames(obj.Day1).substring(0,3);
    document.getElementById("Day1Icon").src="Icon Sets/"+iconSet+"/"+obj.Day1Code+".png";
    document.getElementById("Day1HiLo").innerHTML=obj. Day1Lo+ "/ "+obj.Day1Hi+ "";
    document.getElementById("Day2").innerHTML=Forecast DayNames(obj.Day2).substring(0,3);
    document.getElementById("Day2Icon").src="Icon Sets/"+iconSet+"/"+obj.Day2Code+".png";
    document.getElementById("Day2HiLo").innerHTML=obj. Day2Lo+ "/ "+obj.Day2Hi+ "";
    document.getElementById("Day3").innerHTML=Forecast DayNames(obj.Day3).substring(0,3);
    document.getElementById("Day3Icon").src="Icon Sets/"+iconSet+"/"+obj.Day3Code+".png";
    document.getElementById("Day3HiLo").innerHTML=obj. Day3Lo+ "/ "+obj.Day3Hi+ "";
    document.getElementById("Day4").innerHTML=Forecast DayNames(obj.Day4).substring(0,3);
    document.getElementById("Day4Icon").src="Icon Sets/"+iconSet+"/"+obj.Day4Code+".png";
    document.getElementById("Day4HiLo").innerHTML=obj. Day4Lo+ "/ "+obj.Day4Hi+ "";
    }*/

    } else {
    // document.getElementById("nointernet").style.displa y=none;
    if (DemoOn == false) { demo(); }
    }
    }

    function delelement(elem) {
    var element = document.getElementById(elem);
    while (element.firstChild) { element.removeChild(element.firstChild); }
    }

    function loadjscssfile(url, filename, filetype){
    if (filetype=="js") {
    var fileref = document.createElement("script");
    fileref.type = "text/javascript";
    fileref.charset = "utf-8";
    fileref.src = "JavaScript/" + url + "/" + filename + ".js";
    }
    if (filetype=="css") {
    var fileref = document.createElement("link");
    fileref.rel = "stylesheet";
    fileref.href = "Css/" + url + "/" + filename + ".css";
    fileref.type = "text/css";
    fileref.media = "screen";
    }
    document.getElementsByTagName("head")[0].appendChild(fileref);
    }

    function createjscssfile(url, filename, filetype){
    if (filetype=="js") {
    var fileref = document.createElement("script");
    fileref.type = "text/javascript";
    fileref.charset = "utf-8";
    fileref.src = "JavaScript/" + url + "/" + filename + ".js";
    }
    if (filetype=="css") {
    var fileref = document.createElement("link");
    fileref.rel = "stylesheet";
    fileref.href = "Css/" + url + "/" + filename + ".css";
    fileref.type = "text/css";
    fileref.media = "screen";
    }
    return fileref;
    }

    function removejscssfile(url, oldfilename, filetype) {
    var targetelement = (filetype=="js")? "script" : (filetype=="css")? "link" : "none";
    var targetattr = (filetype=="js")? "src" : (filetype=="css")? "href" : "none";
    var allsuspects = document.getElementsByTagName(targetelement);
    for (var i = allsuspects.length; i>=0; i--) {
    if (allsuspects[i] && allsuspects[i].getAttribute(targetattr)!=null && allsuspects[i].getAttribute(targetattr).indexOf(oldfilename)!=-1) {
    allsuspects[i].parentNode.removeChild(allsuspects[i]);
    }
    }
    }

    function replacejscssfile(url, oldfilename, newfilename, filetype){
    var targetelement = (filetype=="js")? "script" : (filetype=="css")? "link" : "none";
    var targetattr = (filetype=="js")? "src" : (filetype=="css")? "href" : "none";
    var allsuspects = document.getElementsByTagName(targetelement);
    for (var i = allsuspects.length; i>=0; i--) {
    if (allsuspects[i] && allsuspects[i].getAttribute(targetattr)!=null && allsuspects[i].getAttribute(targetattr).indexOf(oldfilename)!=-1) {
    var newelement = createjscssfile(url, newfilename, filetype);
    allsuspects[i].parentNode.replaceChild(newelement, allsuspects[i]);
    }
    }
    }

    function findChild (element, nodeName) {
    var child;
    for (child = element.firstChild; child != null; child = child.nextSibling)
    {
    if (child.nodeName == nodeName)
    return child;
    }
    return null;
    }

    function convertWoeid () {
    var url = "http://weather.yahooapis.com/forecastrss?w="+locale+"&u=f";
    $.get(url, function(data) {
    zip = $(data).find('guid').text().split('_')[0];
    weatherRefresherTemp(zip);
    }).fail(function() {
    if (xmldata == false) {
    dealWithWeather({error:true});
    } else {
    document.getElementById("tiret").innerHTML = "Offline";
    document.getElementById("tiret").style.color = "red";
    }
    });
    }

    // Get data with woeid (no GPS)
    function fetchWeatherData (callback, zip) {
    var url="http://xml.weather.yahoo.com/forecastrss/" + zip + "_" + tempUnit + ".xml";
    var xml_request = new XMLHttpRequest();
    var requestTimer = setTimeout(function() {
    xml_request.abort();
    if (xmldata == false) { callback ({error:true}); } else {
    document.getElementById("tiret").innerHTML = "Offline";
    //document.getElementById("low").innerHTML = "";
    //document.getElementById("high").innerHTML = "";
    document.getElementById("tiret").style.color = "red"; }
    }, 10000);
    xml_request.onload = function(e) {
    clearTimeout(requestTimer);
    xml_loaded(e, xml_request, callback);
    }
    xml_request.overrideMimeType("text/xml");
    xml_request.open("GET", url);
    xml_request.setRequestHeader("Cache-Control", "no-cache");
    xml_request.send(null);
    return xml_request;
    }

    function xml_loaded (event, request, callback) {
    if (request.responseXML) {
    var obj = {error:false};
    xmldata = true;
    var effectiveRoot = findChild(findChild(request.responseXML, "rss"), "channel");
    if (gps == false) {
    if (city == "") { obj.city = findChild(effectiveRoot, "yweather:location").getAttribute("city");
    } else { obj.city = city }
    } else { obj.city = city; }
    obj.humidity = findChild(effectiveRoot, "yweather:atmosphere").getAttribute("humidity" );
    obj.windunit = findChild(effectiveRoot, "yweather:units").getAttribute("speed");
    obj.winddir = findChild(effectiveRoot, "yweather:wind").getAttribute("direction");
    obj.windspeed = findChild(effectiveRoot, "yweather:wind").getAttribute("speed");
    obj.rising = findChild(effectiveRoot, "yweather:atmosphere").getAttribute("rising");
    obj.visibility = findChild(effectiveRoot, "yweather:atmosphere").getAttribute("visibilit y");
    obj.visibilityunit = findChild(effectiveRoot, "yweather:units").getAttribute("distance");
    obj.pressure = findChild(effectiveRoot, "yweather:atmosphere").getAttribute("pressure" );
    obj.pressureunit = findChild(effectiveRoot, "yweather:units").getAttribute("pressure");
    obj.sunrise = findChild(effectiveRoot, "yweather:astronomy").getAttribute("sunrise");
    obj.sunset = findChild(effectiveRoot, "yweather:astronomy").getAttribute("sunset");
    obj.chill = findChild(effectiveRoot, "yweather:wind").getAttribute("chill");
    obj.realFeel = findChild(effectiveRoot, "yweather:wind").getAttribute("chill");
    var conditionTag = findChild(findChild(effectiveRoot, "item"), "yweather:condition");
    obj.temp = conditionTag.getAttribute("temp");
    obj.icon = conditionTag.getAttribute("code");
    obj.description = conditionTag.getAttribute("text");
    var forecast = findChild(findChild(effectiveRoot, "item"), "yweather:forecast");
    obj.todaylow = forecast.getAttribute("low");
    obj.todayhigh = forecast.getAttribute("high");
    if (obj.description == "Unknown") {
    obj.description = forecast.getAttribute("text");
    obj.icon = forecast.getAttribute("code");
    }
    if (obj.icon == 3200) obj.icon = 48;

    /*obj.Day1 = request.responseXML.getElementsByTagName("forecast ")[1].getAttribute("day");
    obj.Day1Hi = request.responseXML.getElementsByTagName("forecast ")[1].getAttribute("high");
    obj.Day1Lo = request.responseXML.getElementsByTagName("forecast ")[1].getAttribute("low");
    obj.Day1Code = request.responseXML.getElementsByTagName("forecast ")[1].getAttribute("code");

    obj.Day2 = request.responseXML.getElementsByTagName("forecast ")[2].getAttribute("day");
    obj.Day2Hi = request.responseXML.getElementsByTagName("forecast ")[2].getAttribute("high");
    obj.Day2Lo = request.responseXML.getElementsByTagName("forecast ")[2].getAttribute("low");
    obj.Day2Code = request.responseXML.getElementsByTagName("forecast ")[2].getAttribute("code");

    obj.Day3 = request.responseXML.getElementsByTagName("forecast ")[3].getAttribute("day");
    obj.Day3Hi = request.responseXML.getElementsByTagName("forecast ")[3].getAttribute("high");
    obj.Day3Lo = request.responseXML.getElementsByTagName("forecast ")[3].getAttribute("low");
    obj.Day3Code = request.responseXML.getElementsByTagName("forecast ")[3].getAttribute("code");

    obj.Day4 = request.responseXML.getElementsByTagName("forecast ")[4].getAttribute("day");
    obj.Day4Hi = request.responseXML.getElementsByTagName("forecast ")[4].getAttribute("high");
    obj.Day4Lo = request.responseXML.getElementsByTagName("forecast ")[4].getAttribute("low");
    obj.Day4Code = request.responseXML.getElementsByTagName("forecast ")[4].getAttribute("code");*/

    callback (obj);
    } else {
    callback ({error:true});
    }
    }

    function ForecastDayNames(day) {
    switch (day) {
    case "Sun": { return days[0]; }
    case "Mon": { return days[1]; }
    case "Tue": { return days[2]; }
    case "Wed": { return days[3]; }
    case "Thu": { return days[4]; }
    case "Fri": { return days[5]; }
    case "Sat": { return days[6]; }
    case "Today": { return "Today"; }
    case "Tonight": { return "Tonight"; }
    }
    }
    window.onload=init;

    yes very frustrating....

    I am exactly in the same situation at Bliken here. Followed commenting out instructions to a tee and I'm pretty good with code. Something is missing in the general fixes being posted - for some of us. It's getting pretty frustrating.
    Last edited by bliken; 2013-05-21 at 05:52 PM.
    2013-05-21 05:50 PM
  12. Tae211's Avatar
    See above
    Thanks a million! I know this is off topic, but is anyone working on getting away from Yahoo?
    2013-05-21 05:54 PM
  13. signori's Avatar
    Thanks guys for the easy weather fix. I have all the forecast weather widgets working again. Including Chevy's Ultimate LS and dacal's basalt LS. Plus Elite 6 weather touch, etc. I don't really use the forecast anyways.
    2013-05-21 05:56 PM
  14. Fattone66's Avatar
    Thanks guys for the easy weather fix. I have all the forecast weather widgets working again. Including Chevy's Ultimate LS and dacal's basalt LS. Plus Elite 6 weather touch, etc. I don't really use the forecast anyways.
    Where's that weather fix located?
    2013-05-21 05:59 PM
  15. Marty McFly's Avatar
    Marty,

    Looking at it again, this will only calculate heat index for hot humid countries, the correct way I believe would be:

    if temp is 27 or above, calculate heat index using temp and humidity formula = feels like temp.
    If temp is 16 to 26, do nothing (feels like temp will be the same as normal temp)
    if temp is 15 or below, calculate wind chill temp with temp and wind speed formula = feels like temp.
    Thinking about it more, I don't think we need to code for 3 conditions. Could be wrong of course but here's why...

    First condition: If temp is 15 or below, calculate wind chill temp with temp and wind speed formula = feels like temp.

    Yahoo already does this - creates an accurate feels like temp using wind chill in colder weather. I know I LOVED it over the last couple of months. No change necessary. Leave obj.windchill same

    Second condition: If temp is 16 to 26, do nothing (feels like temp will be the same as normal temp).

    Yahoo already does this - leaves 'feels like' same as current temp when in these conditions. No change necessary. Leave obj.windchill same

    Third condition: if temp is 27 or above, calculate heat index using temp and humidity formula = feels like temp.

    Yahoo does NOT do this. Therefore calculate heat index and use that value for 'feels like'. obj.windchill = heatindex;

    So really, the only time the script needs to "do anything" is in the third condition. When temp is above 27/80 and humidity is over 40. The way it's coded now.

    That's my sales pitch - lol. What do you think?
    2013-05-21 06:01 PM
  16. DEH's Avatar
    /*if (Reverse_Hi_Lo == true) {
    document.getElementById("Day1").innerHTML=Forecast DayNames(obj.Day1).substring(0,3);
    document.getElementById("Day1Icon").src="Icon Sets/"+iconSet+"/"+obj.Day1Code+".png";
    document.getElementById("Day1HiLo").innerHTML=obj. Day1Hi+ "/ "+obj.Day1Lo+ "";
    document.getElementById("Day2").innerHTML=Forecast DayNames(obj.Day2).substring(0,3);
    document.getElementById("Day2Icon").src="Icon Sets/"+iconSet+"/"+obj.Day2Code+".png";
    document.getElementById("Day2HiLo").innerHTML=obj. Day2Hi+ "/ "+obj.Day2Lo+ "";
    document.getElementById("Day3").innerHTML=Forecast DayNames(obj.Day3).substring(0,3);
    document.getElementById("Day3Icon").src="Icon Sets/"+iconSet+"/"+obj.Day3Code+".png";
    document.getElementById("Day3HiLo").innerHTML=obj. Day3Hi+ "/ "+obj.Day3Lo+ "";
    document.getElementById("Day4").innerHTML=Forecast DayNames(obj.Day4).substring(0,3);
    document.getElementById("Day4Icon").src="Icon Sets/"+iconSet+"/"+obj.Day4Code+".png";
    document.getElementById("Day4HiLo").innerHTML=obj. Day4Hi+ "/ "+obj.Day4Lo+ "";
    } else {
    document.getElementById("Day1").innerHTML=Forecast DayNames(obj.Day1).substring(0,3);
    document.getElementById("Day1Icon").src="Icon Sets/"+iconSet+"/"+obj.Day1Code+".png";
    document.getElementById("Day1HiLo").innerHTML=obj. Day1Lo+ "/ "+obj.Day1Hi+ "";
    document.getElementById("Day2").innerHTML=Forecast DayNames(obj.Day2).substring(0,3);
    document.getElementById("Day2Icon").src="Icon Sets/"+iconSet+"/"+obj.Day2Code+".png";
    document.getElementById("Day2HiLo").innerHTML=obj. Day2Lo+ "/ "+obj.Day2Hi+ "";
    document.getElementById("Day3").innerHTML=Forecast DayNames(obj.Day3).substring(0,3);
    document.getElementById("Day3Icon").src="Icon Sets/"+iconSet+"/"+obj.Day3Code+".png";
    document.getElementById("Day3HiLo").innerHTML=obj. Day3Lo+ "/ "+obj.Day3Hi+ "";
    document.getElementById("Day4").innerHTML=Forecast DayNames(obj.Day4).substring(0,3);
    document.getElementById("Day4Icon").src="Icon Sets/"+iconSet+"/"+obj.Day4Code+".png";
    document.getElementById("Day4HiLo").innerHTML=obj. Day4Lo+ "/ "+obj.Day4Hi+ "";
    }*/

    Hey
    I think you had to move the last */ so the line is

    document.getElementById("Day4HiLo").innerHTML=obj. Day4Lo+ "/ "+obj.Day4Hi+ "";*/
    }
    2013-05-21 06:03 PM
  17. Marty McFly's Avatar
    Marty. Have added to smash. After all yweather calls as stated. Waiting for weather to get over 80 to check accuracy. It 78 now
    So awesome MJ! Honored that you included it! Still keeping my fingers crossed that their aren't any bugs.

    EDIT: Don't know if you caught my earlier post about the weather network page:
    http://www.theweathernetwork.com/wea...ontario/barrie
    Everything I read says heat index starts with temp over 27/80 and humidity over 40. Page above says feels like 30 but temp is only 23?? I don't get it.
    Last edited by Marty McFly; 2013-05-21 at 06:10 PM.
    2013-05-21 06:04 PM
  18. bliken's Avatar
    i have went and tried UNIAW6.1 and did the comment out

    and still nothing

    i hope someone can post the whole WORKING THEME for WB

    one that we can add Marty's Feels like Working MOD to it.

    can someone post a working one??
    2013-05-21 06:11 PM
  19. signori's Avatar
    Where's that weather fix located?
    I just did like RandgTG added a few pages back.

    f (obj.icon == 3200) obj.icon = 48;

    /*obj.Day1 = request.responseXML.getElementsByTagName("forecast ")[1].getAttribute("day");
    obj.Day1Hi = request.responseXML.getElementsByTagName("forecast ")[1].getAttribute("high");
    obj.Day1Lo = request.responseXML.getElementsByTagName("forecast ")[1].getAttribute("low");
    obj.Day1Code = request.responseXML.getElementsByTagName("forecast ")[1].getAttribute("code");

    obj.Day2 = request.responseXML.getElementsByTagName("forecast ")[2].getAttribute("day");
    obj.Day2Hi = request.responseXML.getElementsByTagName("forecast ")[2].getAttribute("high");
    obj.Day2Lo = request.responseXML.getElementsByTagName("forecast ")[2].getAttribute("low");
    obj.Day2Code = request.responseXML.getElementsByTagName("forecast ")[2].getAttribute("code");

    obj.Day3 = request.responseXML.getElementsByTagName("forecast ")[3].getAttribute("day");
    obj.Day3Hi = request.responseXML.getElementsByTagName("forecast ")[3].getAttribute("high");
    obj.Day3Lo = request.responseXML.getElementsByTagName("forecast ")[3].getAttribute("low");
    obj.Day3Code = request.responseXML.getElementsByTagName("forecast ")[3].getAttribute("code");

    obj.Day4 = request.responseXML.getElementsByTagName("forecast ")[4].getAttribute("day");
    obj.Day4Hi = request.responseXML.getElementsByTagName("forecast ")[4].getAttribute("high");
    obj.Day4Lo = request.responseXML.getElementsByTagName("forecast ")[4].getAttribute("low");
    obj.Day4Code = request.responseXML.getElementsByTagName("forecast ")[4].getAttribute("code");*/

    All I did was go into the JavaScript/Main folder of Basalt LS and Chevy`s Ultimate LS. Opened the main.js file with Word and went near the bottom and added the /* and */ to the same code posted above. Also went into the E6 weather touch Script folder and did the same to the main.js file. Plus did this to the UniAW6.js file as well. Easy fix. Thanks again.
    2013-05-21 06:11 PM
  20. TaJr12's Avatar
    This mod is coded to display both at once so I will see it as soon as it kicks in.
    Attachment 639303
    do you have to add anything to the CSS for it to display or just the JS file??? Trying to learn this coding stuff now.
    2013-05-21 06:14 PM
LINK TO POST COPIED TO CLIPBOARD