function clockUpdate() 
{
	window.setTimeout( "clockUpdate()", 10000 );
	var span=document.getElementById("clock");
	if(null==span)
		return;
	var t = new Date();
	t.setTime(t.getTime()+time_delta);
	span.innerHTML=zerofill(t.getHours(),2)+":"+zerofill(t.getMinutes(),2);
	
}
var ucolors=new Array("#333355","#6699FF","#993300","#CC6600","#FF9900","#FFCC00","#FFFF00","#FFFF33","#FFFF66","#FFFF99","white");

function updateWeather(uv,icon,wind)
{
	var eimg=document.getElementById("weather_icon_img");
	var esrc="./img/w32x32black/"+icon+".png";
	eimg.src=esrc;
	var euv=document.getElementById("weather_uv");
	var uvstr="<font color='"+ucolors[uv]+"'>UV "+uv+"</font>";
    if(null!=euv)
	    euv.innerHTML=uvstr;
    
    var ewind=document.getElementById("weather_wind");
	var windstr="<font color='lightblue'>"+wind+"</font><font size='-7'>km/h</font>";
    if(null!=ewind)
	    ewind.innerHTML=windstr;
}
function show_weather_details()
{
	window.open("weather_details.php",null,"status=yes,toolbar=no,menubar=no,location=no,width=300,height=150");
}

