var mf_timer = null;

function start_mondofoot_clock()
{
	if (!mf_timer && mondo_foot_time)
	{
		mf_timer = setInterval('update_mondofoot_clock()', 1000);
	}
}

function update_mondofoot_clock()
{
	if ( $('#mondo_foot_clock').length)
	{
		time_arr = mondo_foot_time.split(":");
		hours = time_arr[0] * 1;
		minutes = time_arr[1] * 1;
		seconds = time_arr[2] * 1;
		seconds++;
		if (seconds>59)
		{
			seconds=0;
			minutes++;
			if (minutes>59)
			{
				minutes=0;
				hours++;
				if (hours>23)
				{
					hours=0;
				}
			}
		}
		mondo_foot_time = '';
		if (hours<10) mondo_foot_time += '0';
		mondo_foot_time += (hours.toString() + ':');
		if (minutes<10) mondo_foot_time += '0';
		mondo_foot_time += (minutes.toString() + ':');
		if (seconds<10) mondo_foot_time += '0';
		mondo_foot_time += seconds.toString();

		$('#mondo_foot_clock').html(mondo_foot_time);
	}
}
