        var DigitalClocks=new Array();
        function DigitalClock(color){
                this.index=DigitalClocks.length;
                this.color=color;
                this.Days=new Array('Neděle','Pondělí', 'Úterý', 'Středa', 'Čtvrtek', 'Pátek', 'Sobota');
                this.Months=new Array('ledna', 'února', 'března', 'dubna', 'května', 'června', 'července', 'srpna', 'září', 'října', 'listopadu', 'prosince');
                this.IE=navigator.appName=='Microsoft Internet Explorer';
                this.NS=navigator.appName=='Netscape';
                if(this.IE)document.write('<div id=clock' + this.index + ' align=left style="position:relative;"></div>');
                if(this.NS)document.write('<ilayer id=fraClock' + this.index + '><layer id=clock' + this.index + ' width=180></layer></ilayer>');
                this.WhatTime=function(){
                        var MyDate=new Date();
                        var strHour=new Array(MyDate.getHours().toString(), MyDate.getMinutes().toString(), MyDate.getSeconds().toString());
                        for(var i=0; i < strHour.length; i++)if(strHour[i].length==1)strHour[i]='0' + strHour[i];
                        var strTime='<font color=' + this.color + ' face=arial size=1>' + '<CENTER>' + MyDate.getDate() + '.' + this.Months[MyDate.getMonth()] + '&nbsp;' + MyDate.getFullYear() + '<BR>' + this.Days[MyDate.getDay()] + ' - ' + strHour[0] + ':' + strHour[1] + ':' + strHour[2] + '</CENTER>' + '</font>';
                        if(this.IE)document.all['clock' + this.index].innerHTML=strTime;
                        if(this.NS){
                                with(document.layers['fraClock' + this.index].document.layers['clock' + this.index].document){
                                        open();
                                        write(strTime);
                                        close();
                                }
                        }
                        setTimeout('DigitalClocks[' + this.index + '].WhatTime();', 1000);
                }
                DigitalClocks[this.index]=this;
        }

        function StartClocks(){
                for(var i=0; i < DigitalClocks.length; i++)DigitalClocks[i].WhatTime();
        }