(function(j){j.fn.weatherfeed=function(s,h,v){h=j.extend({unit:"c",image:!0,country:!1,highlow:!0,wind:!0,humidity:!1,visibility:!1,sunrise:!1,sunset:!1,forecast:!1,link:!0,showerror:!0,linktarget:"_self",woeid:!1},h);var p="odd";return this.each(function(q,t){var l=j(t);l.hasClass("weatherFeed")||l.addClass("weatherFeed");if(!j.isArray(s))return!1;var m=s.length;10Weather information unavailable

")},error:function(){h.showerror&& l.html("

Weather request failed

")}});var w=function(f,c,e){f=j(f);if("Yahoo! Weather Error"!=c.description){var a=c.wind.direction;348.75<=a&&360>=a&&(a="N");0<=a&&11.25>a&&(a="N");11.25<=a&&33.75>a&&(a="NNE");33.75<=a&&56.25>a&&(a="NE");56.25<=a&&78.75>a&&(a="ENE");78.75<=a&&101.25>a&&(a="E");101.25<=a&&123.75>a&&(a="ESE");123.75<=a&&146.25>a&&(a="SE");146.25<=a&&168.75>a&&(a="SSE");168.75<=a&&191.25>a&&(a="S");191.25<=a&&213.75>a&&(a="SSW");213.75<=a&&236.25>a&&(a="SW");236.25<=a&&258.75> a&&(a="WSW");258.75<=a&&281.25>a&&(a="W");281.25<=a&&303.75>a&&(a="WNW");303.75<=a&&326.25>a&&(a="NW");326.25<=a&&348.75>a&&(a="NNW");var g=c.item.forecast[0];wpd=c.item.pubDate;n=wpd.indexOf(":");tpb=u(wpd.substr(n-2,8));tsr=u(c.astronomy.sunrise);tss=u(c.astronomy.sunset);daynight=tpb>tsr&&tpb"+('
'+c.location.city+"
");e.country&&(b+='
'+c.location.country+"
");b+='
'+c.item.condition.temp+"°
";b+='
'+c.item.condition.text+"
";e.highlow&&(b+='
High: '+g.high+"° Low: "+g.low+"°
");e.wind&&(b+='
Wind: '+a+" "+c.wind.speed+c.units.speed+"
");e.humidity&&(b+='
Humidity: '+ c.atmosphere.humidity+"
");e.visibility&&(b+='
Visibility: '+c.atmosphere.visibility+"
");e.sunrise&&(b+='
Sunrise: '+c.astronomy.sunrise+"
");e.sunset&&(b+='
Sunset: '+c.astronomy.sunset+"
");if(e.forecast){b+='
';a=c.item.forecast;for(g=0;g',b+='
'+a[g].day+"
",b+='
'+a[g].date+"
",b+='
'+a[g].text+"
",b+='
High: '+a[g].high+" Low: "+a[g].low+"
",b+="
";b+=""}e.link&&(b+='')}else b='
',b+= '
City not found
';b+="
";p="odd"==p?"even":"odd";f.append(b)},u=function(f){d=new Date;return r=new Date(d.toDateString()+" "+f)}})}})(jQuery);