         // Check whether IE4 or later.
         var MS = navigator.appVersion.indexOf("MSIE");
         window.isIE4 = (MS > 0) &&
            (parseInt(navigator.appVersion.substring(MS + 5, MS + 6)) 
               >= 4);

         function lead0(val) {
            // Add leading 0s when necessary.
            return (val < 10) ? "0" + val.toString() : val;
         }

         function buildTime() {
            var time = new Date();
            var ampm = " Dopoledne";
            var h = time.getHours();
            // Fix military time and determine ampm.
            if (h > 12) {
               h = h - 12;
               ampm = " Odpoledne";
            }
            return lead0(h) + ":" + lead0(time.getMinutes()) + ":" +
               lead0(time.getSeconds()) + ampm;
         }

         function tick() {
            // Replace the clock's time with the current time.
            document.all.clock.innerText = buildTime();
         }

<!-- Hide from old browsers



  message     = "DĚLÁM VŠE PRO TVORBU KVALITNÍHO WEBU^" +
                "http://www.frkal.com/^" +
                "Navštivte moje stránky, kde najdete plno užitečných informací ^" +
                "^"
  scrollSpeed = 25
  lineDelay   = 1500

  // Do not change the text below //

  txt         = ""

  function scrollText(pos) {
    if (message.charAt(pos) != '^') {
      txt    = txt + message.charAt(pos)
      status = txt
      pauze  = scrollSpeed
    }
    else {
      pauze = lineDelay
      txt   = ""
      if (pos == message.length-1) pos = -1
    }
    pos++
    setTimeout("scrollText('"+pos+"')",pauze)
  }

  scrollText(0)

function update(msg) 
{
   var pad_str="";
   n = msg.length;
   if(n<81) 
   {
      pad = (81-n)/2;
      for(var i=0; i<pad; i++) 
      {
         pad_str+=" ";
      }	
   }	
   CurrentMsg = pad_str + msg;
   document.messages.field.value = CurrentMsg;
}	

function nochange() 
{
   CurrentMsg = " ";
   document.messages.field.value = CurrentMsg;
}
