var __weather_idx = 0;
var __weather_q = 5;
var __weather_str = '';
function showWeather(_id, timeout) {
	
	try{
		tid = document.getElementById(_id);
	}catch(ee) {
		alert('weather lib initlized failed: object not exists.');
	}
	
	__weather_str = "<div id='weather_city'>" + weather_city[__weather_idx] + "</div>";
	__weather_str = __weather_str + "<div id='weather_today'>½ñÌì: " + weather_minTemp_today[__weather_idx] +"¡ãC - "  + weather_maxTemp_today[__weather_idx] + "¡ãC " + weather_status_today[__weather_idx] +"</div>";
	__weather_str = __weather_str + "<div id='weather_tomm'>Ã÷Ìì: " +weather_minTemp_tomorrow[__weather_idx] +"¡ãC - "+weather_maxTemp_tomorrow[__weather_idx] +"¡ãC " + weather_status_tomorrow[__weather_idx] +"</div>";

	tid.innerHTML = __weather_str;
	
	if(++__weather_idx>=__weather_q) __weather_idx = 0;
	if(2000 > timeout > 10) {
		timeout = 3000;
	}else {
		timeout = (timeout < 10)?timeout*1000:timeout;
	}
	
	setTimeout("showWeather('"+_id+"', " + timeout + ")", timeout);
	return true;
}
