

// focus
function $(objID)
{
	if(objID!=null){
		return document.getElementById(objID);
		}return document.getElementById(objID);
	
	
}
;

var initWeatherValue = 'tphochiminh';
var arrwea_ = ['AUD','USD','JPY','EUR','HKD'];


function zfWeContent(idx)
{
    var strc = '<p class="degree"><strong>' + weather[idx][2] + '</strong></p><div class="cont01">';
    strc += '<div class="cont01im"><img src="http://www.zing.vn/Zing/Images/Weather/' + weather[idx][3] + '" alt="" /></div>';
    strc += '<div class="cont01desc">' + weather[idx][4] + '<br />Độ ẩm:' + weather[idx][5] + '<br />';
    strc += weather[idx][6] + '</div><br class="clear" /></div>';
    $('zfWeContent').innerHTML = strc;
}
;
function zfChange(this_)
{
    zfWeContent(this_.selectedIndex);
}
;
function zfShowWeather()
{
    var strcboWeather = '<select class="sltbox01" onchange="zfChange(this);">';
    var itemindex = 0;
    for (var i = 0; i < weather.length; i++) {
        var id = weather[i][0];
        if (initWeatherValue == id) itemindex = i;
        strcboWeather += '<option value="' + id + '"' + (initWeatherValue == id ? ' selected ' : '') + '>' + weather[i][1] + '</option>';
    }
    $('cboWeather').innerHTML = strcboWeather + '</select>';
    zfWeContent(itemindex);
}
;

