update_clock();
function update_clock() {
	now=new Date();
	hr= now.getHours()+100;
	mn= now.getMinutes()+100;
	se= now.getSeconds()+100;
	itf_today=now.getDay();
	itf_time=hr.toString()+mn.toString()+se.toString();
	_hour1=itf_time.substr(1,1);
	_hour2=itf_time.substr(2,1);
	_min1=itf_time.substr(4,1);
	_min2=itf_time.substr(5,1);
	_sec1=itf_time.substr(7,1);
	_sec2=itf_time.substr(8,1);
	jQuery('#hour1').removeClass();
	jQuery('#hour2').removeClass();
	jQuery('#minute1').removeClass();
	jQuery('#minute2').removeClass();
	jQuery('#second1').removeClass();
	jQuery('#second2').removeClass();
	jQuery('#hour1').addClass("digits digit-"+_hour1);
	jQuery('#hour2').addClass("digits digit-"+_hour2);
	jQuery('#minute1').addClass("digits digit-"+_min1);
	jQuery('#minute2').addClass("digits digit-"+_min2);
	jQuery('#second1').addClass("digits digit-"+_sec1);
	jQuery('#second2').addClass("digits digit-"+_sec2);
	jQuery('.day').each(function(){
		jQuery(this).removeClass();
		jQuery(this).addClass('day');
		checked=''+this.id;
		newclass='';
		if (itf_today==checked.substring(4,5)) {
			newclass='active-';
		}
		if (checked=='day-1') newclass=newclass+'mon';
		if (checked=='day-2') newclass=newclass+'tue';
		if (checked=='day-3') newclass=newclass+'wed';
		if (checked=='day-4') newclass=newclass+'thu';
		if (checked=='day-5') newclass=newclass+'fri';
		if (checked=='day-6') newclass=newclass+'sat';
		if (checked=='day-7') newclass=newclass+'sun';		
		jQuery(this).addClass(newclass);
	});
	
	setTimeout("update_clock()",500); 
}
