function successHandler(f){var a;var j=f.responseXML;var b=j.getElementsByTagName("condition")[0];var c;if(b==null){b=j.getElementsByTagName("yweather:condition").item(0)}var h=new Date();var i;var k=h.getHours();i=(k>=17)?"n":"d";var e="/images/weather/sm/"+b.getAttribute("code")+i+".png";var g=j.getElementsByTagName("link")[0].firstChild.nodeValue;var l=(b.getAttribute("text").length>20)?"10px":"12px";a=document.getElementById("weatherModule"+f.argument);c='<div style="width:250px; position:relative; height:65px; background-image:url('+e+'); background-repeat:no-repeat; background-position:0px -5px;">';c+='<div style="width:100%; position:absolute; top:5px; left:70px; color:#555; font-weight:bold; font-style:italic; font-size:'+l+';">'+b.getAttribute("temp")+"&deg; F<br/>"+b.getAttribute("text")+"</div>";c+='<div style="width:100%; position:absolute; top:40px; left:0px;"><a href="javascript:void(0);" onclick="handleLink(\''+g.replace("http://","")+"');\">Yahoo! Weather Forecast</a></div>";c+="</div>";if(a){a.innerHTML=c}}function failureHandler(a){if(div){div.innerHTML=a.status+" "+a.statusText}}function getModule(b){var a=["62864","62864","63755","62220","47711","63026","42303","38261","42003","62703","62703"];var e="/weather.aspx";var f=encodeURI("?p="+a[b]);var d=e+f;var c=YAHOO.util.Connect.asyncRequest("GET",d,{success:successHandler,failure:failureHandler,argument:b})}function init(){var a;getModule(1);getModule(2);getModule(3);getModule(4);getModule(5);getModule(6);getModule(7);getModule(8);getModule(10)}YAHOO.util.Event.addListener(window,"load",init);
