	
	function ClockPad(value)
	{
		if(value < 10)
		{
			value					= '0' + value;
		}
				
		return value;
	}
	
	function StartClock(hours, minutes, seconds)
	{
		if(seconds != null)
		{
			setTimeout('StartClock(' + hours + ', ' + minutes + ')', (60 - seconds) * 1000);
			return;
		}
	
		minutes					+= 1;
				
		if(minutes >= 60)
		{
			minutes				= 0;
			hours				+= 1;
						
			if(hours >= 24)
			{
				hours			= 0;
			}
		}
				
		$('#clock').html(ClockPad(hours) + ':' + ClockPad(minutes));
		setTimeout('StartClock(' + hours + ', ' + minutes + ')', 60 * 1000);
	}