		var weather = {figure:'', temperature:'', xcz:'', city:'', city_ok:'', report:null};
		weather.getFigure = function (){
			var res;
			if(figure1 == figure2){
				res = '<img src="http://i0.sinaimg.cn/dy/weather/images/figure/'+figure1+'_big.gif" alt=' + status1 + 'width="61" height="52" />';  
			}else{
				res = '<img src="http://i1.sinaimg.cn/dy/weather/images/figure/' + figure1 + '_big.gif" alt="' + status1 +'width="61" height="52" /><img  src="http://i1.sinaimg.cn/dy/weather/images/figure/' + figure2 + '_big.gif" alt=' + status2 + 'width="61" height="52" />';  
			}
			return res;			
		}
		weather.getTemperature = function (){
			var res;
			if(temperature1 == temperature2){
				res = temperature1 + "℃";
			}else{
				res = temperature1 + "℃～" + temperature2 + "℃";
			}
			return res;			
		}
		weather.getXcz = function (){
			var res;
			if(xcz == ""){
				res = "-";
			}else if(xcz == 1){
				res = "适宜洗车";
			}else if(xcz == 2){
				res = "较适宜洗车";
			}else if(xcz == 3){
				res = "较不适宜洗车";
			}else{
				res = "不宜洗车";
			}
			return res;		
		}
		weather.writeWeatherReport = function (){
			weather.figure = weather.getFigure();
			weather.temperature = weather.getTemperature();
			weather.xsz = weather.getXcz();
			if (weather.report){
				weather.report.innerHTML = weather.figure+'北京市今日天气：<span>'+weather.temperature+'</span><br /><a href="http://map.sina.com.cn/#city=%E5%8C%97%E4%BA%AC!type=0!cr=12,11639794,3990817" target="blank" title="北京市实时路况"><span style="color:#DF8125">北京市实时路况</span></a>';
			}	
		}
        weather.city_ok='北京';
		weather.getWeather = function(){
			//alert('<script language="javascript" src="http:\/\/php.weather.sina.com.cn\/js.php?city='+weather.city_ok+'" id="weather.php"><\/script>');
			document.write('<script language="javascript" src="http:\/\/php.weather.sina.com.cn\/js.php?city='+weather.city_ok+'" id="weather.php"><\/script>');
		}		
		weather.city = '北京';
		weather.getWeather();
