





 
	




/* headerfooter_third.js expireTime 120 */
(function() {
	var header_called = false;
	var footer_called = false;
	Connect.xdrReadyEvent.subscribe(function(){
		/* init header content */
		try{ 
		if(!header_called){	
			header_called = true;		
			Connect.asyncRequest('GET', 'http://www.weather.com/pagelet/header/third', {
				success:function(o) {				
					Event.onContentReady('wx-header', function() {					
						Dom.get("wx-header").innerHTML = o.responseText;						
					});
				},
				failure:function(o) {},
					timeout:15000,
				xdr:true
			});			
		}
		}catch(e){try{console.log(e)}catch(error){}};
	});

	Connect.xdrReadyEvent.subscribe(function(){
		/* init footer content */	
		try{
			if(!footer_called){	
				footer_called = true;			
				Connect.asyncRequest('GET', 'http://www.weather.com/pagelet/footer/third', {
					success:function(o) {
						Event.onContentReady('wx-footer', function() {											
							Dom.get("wx-footer").innerHTML = o.responseText;							
						});		
					},
					failure:function(o) {},
						timeout:15000,
					xdr:true
				});				
			}
		}catch(e){try{console.log(e)}catch(error){}};
	});
		
	// Initialize the Flash Transport for XDR
	Connect.transport('http://www.weather.com/connection.swf');
})();



