/**FUNCTION runs the site clock.
 * Martin Modl.
 */
function runClock(id)
{
 today=new Date();                                  // aktualizace �asu
 hours=today.getHours();
 minutes=today.getMinutes();
 seconds=today.getSeconds();
 timeValue= ((hours<10) ? "0" : "") +hours;
 timeValue+=((minutes<10) ? ":0" : ":") +minutes;
 timeValue+=((seconds<10) ? ":0" : ":") +seconds;
 //document.all.hodiny.innerHTML=timeValue;               //zobrazen� �asu
 document.getElementById(id).innerHTML = timeValue; //mezery pred casovou hodnotou
 window.setTimeout("runClock('"+id+"')",1000);                   // op�tovn� spu�t�n� funkce za 1 sec.
}


