(function(a){var c,e,b,d={"weather":{"celsius":{"units":{"speed":"km\/h","pressure":"mb","distance":"km","temperature":"C","toggle":"F"},"wind":{"speed":"6.44","chill":"72","direction":"20"},"astronomy":{"sunrise":"6:28 am","sunset":"6:36 pm","period":"night"},"atmosphere":{"humidity":"100","visibility":"8.05","pressure":"34276.70","ring":"0"},"conditions":{"temp":"22","code":"27","text":"Mostly Cloudy","date":"Sun, 01 Jan 2017 12:07 AM BRT"},"today":{"low":"21","high":"30","text":"Scattered Thunderstorms","code":"47","weekday":"Sun","date":"01 Jan 2017","day":"Hoje"},"tomorrow":{"low":"20","high":"28","text":"Scattered Thunderstorms","code":"47","day":"Amanh\u00e3","date":"02 Jan 2017"}},"fahrenheit":{"units":{"speed":"mph","pressure":"in","distance":"mi","temperature":"F","toggle":"C"},"wind":{"speed":"4","chill":"72","direction":"20"},"astronomy":{"sunrise":"6:28 am","sunset":"6:36 pm","period":"night"},"atmosphere":{"humidity":"100","visibility":"5.0","pressure":"1012.19","ring":"0"},"conditions":{"temp":"72","code":"27","text":"Mostly Cloudy","date":"Sun, 01 Jan 2017 12:07 AM BRT"},"today":{"low":"70","high":"87","text":"Scattered Thunderstorms","code":"47","weekday":"Sun","date":"01 Jan 2017","day":"Hoje"},"tomorrow":{"low":"69","high":"84","text":"Scattered Thunderstorms","code":"47","day":"Amanh\u00e3","date":"02 Jan 2017"}},"title":"Conditions for Paulo, AP, BR at 12:07 AM BRT","description":"<![CDATA[<img src=\"http:\/\/l.yimg.com\/a\/i\/us\/we\/52\/27.gif\"\/>\n<BR \/>\n<b>Current Conditions:<\/b>\n<BR \/>Mostly Cloudy\n<BR \/>\n<BR \/>\n<b>Forecast:<\/b>\n<BR \/> Sun - Scattered Thunderstorms. High: 30Low: 21\n<BR \/> Mon - Scattered Thunderstorms. High: 28Low: 20\n<BR \/> Tue - Partly Cloudy. High: 28Low: 20\n<BR \/> Wed - Scattered Thunderstorms. High: 29Low: 20\n<BR \/> Thu - Scattered Thunderstorms. High: 28Low: 20\n<BR \/>\n<BR \/>\n<a href=\"http:\/\/us.rd.yahoo.com\/dailynews\/rss\/weather\/Country__Country\/*https:\/\/weather.yahoo.com\/country\/state\/city-460415\/\">Full Forecast at Yahoo! Weather<\/a>\n<BR \/>\n<BR \/>\n(provided by <a href=\"http:\/\/www.weather.com\" >The Weather Channel<\/a>)\n<BR \/>\n]]>","link":"http:\/\/us.rd.yahoo.com\/dailynews\/rss\/weather\/Country__Country\/*https:\/\/weather.yahoo.com\/country\/state\/city-460415\/","linkTitle":"Yahoo! Weather - Paulo, AP, BR","location":{"city":"Paulo","region":" AP","country":"Brazil"}},"binPath":"http:\/\/l.yimg.com\/a\/i\/us\/nws\/weather\/gr\/","template":"<div class=\"weather-conditions\">\n\t[[conditions_image_large]]\n\t<div class=\"weather-values\">\n\t\t<div class=\"weather-unit-shell\">\n\t\t\t<span class=\"weather-unit\">[[units_temperature]]<\/span>\n\t\t\t<span class=\"weather-toggle\" data-toggle=\"true\">\u00ba[[units_toggle]]<\/span>\n\t\t<\/div>\n\t\t<div class=\"weather-temp\">[[conditions_temp]]<span class=\"weather-degree\">\u00ba<\/span><\/div>\n\t<\/div>\n<\/div>\n<div class=\"weather-forecast\">\n\t<div class=\"weather-today\">\n\t\t<div class=\"weather-day\">[[today_day]]<\/div>\n\t\t[[today_image_small]]\n\t\t<div class=\"weather-temp\">\n\t\t\t<span class=\"weather-high\">[[today_high]]\u00ba<\/span> \/ <span class=\"weather-low\">[[today_low]]\u00ba<\/span>\n\t\t<\/div>\n\t<\/div>\n\t<div class=\"weather-tomorrow\">\n\t\t<div class=\"weather-day\">[[tomorrow_day]]<\/div>\n\t\t[[tomorrow_image_small]]\n\t\t<div class=\"weather-temp\">\n\t\t\t<span class=\"weather-high\">[[tomorrow_high]]\u00ba<\/span> \/ <span class=\"weather-low\">[[tomorrow_low]]\u00ba<\/span>\n\t\t<\/div>\n\t<\/div>\n<\/div>"};c=(function(){var h=YAHOO.util.Event,i=YAHOO.util.Dom,g=YAHOO.util.Selector;return{query:function(n,j,m){var l,k=a.HTMLElement;if(!(typeof k==="object"&&j instanceof k)){j=document.getElementById(j)||document}if(j.querySelectorAll&&j.querySelector){l=(m)?"querySelector":"querySelectorAll";return j[l](n)}return g.query.apply(a,arguments)},removeClass:function(k,j){return i.removeClass(k,j)},delegate:function(n,m,l,k,o,j){return h.delegate.apply(this,arguments)},onReady:function(l,k,j){return h.onDOMReady(l,k,j)}}}());b={GADGET:"weather-gadget",HIDE:"weather-hide",LOADED:"weather-loaded",TOGGLE:"weather-toggle",SHELL:"weather-shell",IMAGE:"weather-image"};function f(){var j,g,m,l,k,h=c.query(".weatherGadget",null,false);for(j=0,g=h.length;j<g;++j){m=h[j];k=m.getAttribute("unit");l=new e({attachNode:m,unit:(k==="farenheit")?"fahrenheit":k,binPath:d.binPath,template:d.template,weather:d.weather})}}e=function(g){this.cfg=g;if(!this.cfg.hasOwnProperty("weather")||!this.cfg.weather.celsius||!this.cfg.weather.fahrenheit||!this.cfg.hasOwnProperty("template")){this.cfg.attachNode.style.display="node";this.cfg.attachNode.className+=" "+b.HIDE;return}this.cfg.unit=g.unit||"celsius";this.cache={};this.cfg.attachNode.className+=" "+b.GADGET;c.removeClass(this.cfg.attachNode,"weatherGadget");this.render(this.cfg.unit);c.delegate(this.cfg.attachNode,"click",this.toggle,"[data-toggle]",this,true)};e.prototype={toggle:function(){this.render((this.activeUnit==="fahrenheit")?"celsius":"fahrenheit")},parse:function(g){var k,h=this.cfg,j=h.template,l=h.weather,i=h.binPath;return j.replace(/\[\[(\w+)\]\]/g,function(r,n,q){var m,o,p;if(n.indexOf("_")>-1){m=n.split("_");if(m.length===2&&l.hasOwnProperty(g)&&l[g].hasOwnProperty(m[0])&&l[g][m[0]].hasOwnProperty(m[1])){return l[g][m[0]][m[1]]}else{if(m.length===2&&l.hasOwnProperty(m[0])&&l[m[0]].hasOwnProperty(m[1])){return l[m[0]][m[1]]}else{if(m.length===3&&m[1]==="image"&&l.hasOwnProperty(g)&&l[g].hasOwnProperty(m[0])){o=(m[2]==="small")?"s":"";p=l[g][m[0]].code;p=(parseInt(p,10)===3200)?44:p;k=(m[0]==="conditions"&&l[g].astronomy.period==="night")?"n":"d";return"<img src='"+i+p+k+o+".png' class='"+b.IMAGE+"' />"}else{return"-"}}}}else{return(l.hasOwnProperty(n))?l[n]:"-"}})},render:function(h){var l,j="",i=this.cfg,n=i.weather,g=i.attachNode,k=i.template,m=document.createDocumentFragment();c.removeClass(g,b.LOADED);if(!this.cache.hasOwnProperty(h)){j=this.parse(h);l=document.createElement("div");l.className=b.SHELL;l.innerHTML=j;m.appendChild(l);this.cache[h]=m}this.activeUnit=h;g.innerHTML="";g.appendChild(this.cache[h].cloneNode(true));setTimeout(function(){g.className+=" "+b.LOADED},0)}};c.onReady(f)}(this));