google.load("feeds","1");google.load("jquery","1");
function initialize(){var feed=new google.feeds.Feed("http://rss.wunderground.com/auto/rss_full/global/stations/47671.xml?units=metric");feed.load(function(r){if(!r.error){for(var i=0;i<r.feed.entries.length;i++){var e=r.feed.entries[i];if(e.title.match(/Current Conditions/)){var d=new Date(new Date().getTime()+32400000),h=d.getUTCHours(),n=d.getUTCMinutes(),t=(d.getUTCMonth()+1)+'/'+d.getUTCDate()+' '+h+':'+(n<10?'0'+n:n),s=e.content;$('#weather_now').html(t);if(s.match(/Conditions: (.+?) \|/)){var w=RegExp.$1,tr={'Unknown':'c','Drizzle':'r','Rain':'r','Snow':'s','Snow Grains':'s','Ice Crystals':'s','Ice Pellets':'s','Hail':'s','Mist':'r','Fog':'c','Smoke':'c','Volcanic Ash':'c','Widespread Dust':'c','Sand':'c','Haze':'c','Spray':'r','Dust Whirls':'c','Sandstorm':'c','Low Drifting Snow':'s','Low Drifting Widespread Dust':'c','Low Drifting Sand':'c','Blowing Snow':'s','Blowing Widespread Dust':'c','Blowing Sand':'c','Rain Showers':'r','Snow Showers':'s','Ice Pellet Showers':'s','Hail Showers':'s','Small Hail Showers':'s','Thunderstorm':'t','Thunderstorms and Rain':'t','Thunderstorms and Snow':'t','Thunderstorms and Ice Pellets':'t','Thunderstorms with Hail':'t','Thunderstorms with Small Hail':'t','Freezing Drizzle':'s','Freezing Rain':'s','Freezing Fog':'s','Overcast':'c','Clear':'f','Partly Cloudy':'c','Mostly Cloudy':'c','Scattered Clouds':'c'},icon_d={"f":"fine.gif","c":"cloud.gif","r":"rain.gif","s":"snow.gif","t":"storm.gif"},icon_n={"f":"fine_n.gif","c":"cloud_n.gif","r":"rain_n.gif","s":"snow_n.gif","t":"storm_n.gif"},w2=w.replace(/^(Light|Heavy)\s+/,''),f=h>6&&h<18?icon_d[tr[w2]]:icon_n[tr[w2]],img='<img src="../common/global/images/temp/'+f+'" alt="'+w+'" width="98" height="60"/>';$('#weather_img').html(img);}if(s.match(/Temperature: (\d+)/)){var c=RegExp.$1,f=parseInt(1.8*c)+32;$('#weather_temp_c').html(c);$('#weather_temp_f').html(f);}}}}});}
google.setOnLoadCallback(initialize);

