function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->

function Hodiny(s)
{
    var runTime = new Date();
    var hours = runTime.getHours();
    var minutes = runTime.getMinutes();
    var seconds = runTime.getSeconds();
    var mz = "";
    if (hours > 12) {
      mz = "";
    }
    if (hours == 0) {
      hours = 0;
    }
    if (hours <= 9) {
      hours = "0" + hours;
    }
    if (minutes <= 9) {
      minutes = "0" + minutes;
    }
    if (seconds <= 9) {
      seconds = "0" + seconds;
    }
    if (s) seconds = ":" + seconds;
    else seconds = " " + seconds;
    document.getElementById("hodiny").innerHTML = hours + ":" + minutes + seconds;
    if (s) window.setTimeout("Hodiny(1)", 1000);
    else window.setTimeout("Hodiny(0)", 1000);
}


