document.write('<table border="0" cellpadding="0" cellspacing="0" class="tianqi">');
document.write('<tr>');
document.write('<td class="tianqi1" id="city_data_1"></td>');
document.write('<td class="tianqi2" id="city_data_2"></td>');
document.write('<td class="tianqi3" id="city_data_3"></td>');
document.write('</tr>');
document.write('</table>');
var weather_mycity = new Array(new Array("西安","/index/weather/img/a01.png","/index/weather/img/a01.png","多云","33","24","旋转风<=3级"),new Array("咸阳","/index/weather/img/a01.png","/index/weather/img/a02.png","多云转阴","32","22","微风"),new Array("铜川","/index/weather/img/a01.png","/index/weather/img/a07.png","多云转小雨","32","19","微风"),new Array("宝鸡","/index/weather/img/a03.png","/index/weather/img/a08.png","阵雨转中雨","30","22","东风<=3级"),new Array("渭南","/index/weather/img/a01.png","/index/weather/img/a02.png","多云转阴","33","23","微风"),new Array("延安","/index/weather/img/a01.png","/index/weather/img/a01.png","多云","34","19","微风"),new Array("汉中","/index/weather/img/a04.png","/index/weather/img/a04.png","雷阵雨","31","24","微风"),new Array("榆林","/index/weather/img/a00.png","/index/weather/img/a01.png","晴转多云","34","21","南风转微风"),new Array("安康","/index/weather/img/a03.png","/index/weather/img/a04.png","阵雨转雷阵雨","31","25","微风"),new Array("商洛","/index/weather/img/a01.png","/index/weather/img/a21.png","多云转小雨-中雨","29","21","微风"));
function put_w(id)
{
	if(id == "") return;
	if(!weather_mycity || weather_mycity.length != 10) return;
	if(!document.getElementById('city_data_1') || !document.getElementById('city_data_2') || !document.getElementById('city_data_3')) return;
	document.getElementById('city_data_1').innerHTML = weather_mycity[id][0];
	if(weather_mycity[id][1]!=weather_mycity[id][2])
	{
	document.getElementById('city_data_2').className = "tianqi2";
	document.getElementById('city_data_2').innerHTML = '<img src="/index/weather/img/weather.gif" height="20" width="30" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\''+weather_mycity[id][1]+'\',sizingMethod=\'scale\');"><img src="/index/weather/img/weather.gif" height="20" width="30" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\''+weather_mycity[id][2]+'\',sizingMethod=\'scale\');">';	
	}else{
	document.getElementById('city_data_2').className = "tianqi4";
	document.getElementById('city_data_2').innerHTML = '<img src="/index/weather/img/weather.gif" height="20" width="30" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\''+weather_mycity[id][1]+'\',sizingMethod=\'scale\');">';	
	}
	//document.getElementById('city_data_3').innerHTML = weather_mycity[id][3]+"&nbsp;"+weather_mycity[id][4]+"-"+weather_mycity[id][5]+"℃&nbsp;"+weather_mycity[id][6];
	document.getElementById('city_data_3').innerHTML = weather_mycity[id][3]+"&nbsp;"+weather_mycity[id][5]+"℃--"+weather_mycity[id][4]+"℃";
}
function Ggetcookie(sName)
{
    var aCookie = document.cookie.split("; ");
    for (var i=0; i < aCookie.length; i++)
    {
        var aCrumb = aCookie[i].split("=");
        if (sName == aCrumb[0])
        {
            return aCrumb[1];
        }
    }
    return null;
}
if(Ggetcookie("city") != null)
{
   	put_w(Ggetcookie("city"));
}else{
   	put_w('0');
}
