/*      scriptdiaries.blogspot.com 
        Righteous Ninja
        Free to use and modify.*/
        
google.load("feeds", "1");
var YW_ContainerOk=false;
function YW_GetWeatherResults(result){
  if (!result.error){
        s="<table  style=\"border-width:1px;border-collapse:collapse;border-style:solid;"+ 
      "border-color:#6D7B8D;width:1px;height:1px\" bgcolor=\"#ffffff\">"+
      "<tbody><tr>"+
      "<td>"+result.feed.entries[0].content.match(/<img .*?>/)+"</td></tr>"+
      "</tbody></table>";
    document.getElementById("YW_weather_container").innerHTML="<b>"+
    result.feed.entries[0].title+"</b><br/>"+
    result.feed.entries[0].content.replace(/<img .*?>/,s);
    }
}
function YW_CallWeather(hrf){
    if(!YW_ContainerOk){
        document.write("<div id=\"YW_weather_container\">There is no weather information available for this location at this time</div>");
        YW_ContainerOk=true;
    }
    (new google.feeds.Feed(hrf)).load(YW_GetWeatherResults);
}
