function aktiv(tl_x,obr_x) {
tl_x.src = (obr_x)
}
function neaktiv(tl_x,obr_y) {
tl_x.src = (obr_y)
}

var now = new Date();
var yr = now.getYear();
var mName = now.getMonth() + 1;
var dName = now.getDay() + 1.;
var dayNr = ((now.getDate()<10) ? "" : "")+ now.getDate();
if(dName==1) Day = "Nedeľa";
if(dName==2) Day = "Pondelok";
if(dName==3) Day = "Utorok";
if(dName==4) Day = "Streda";
if(dName==5) Day = "Štvrtok";
if(dName==6) Day = "Piatok";
if(dName==7) Day = "Sobota";
if(mName==1) Month="januára";
if(mName==2) Month="februára";
if(mName==3) Month="marca";
if(mName==4) Month="apríla";
if(mName==5) Month="mája";
if(mName==6) Month="júna";
if(mName==7) Month="júla";
if(mName==8) Month="augusta";
if(mName==9) Month="septembra";
if(mName==10) Month="októbra";
if(mName==11) Month="novembra";
if(mName==12) Month="decembra";
var todaysDate =(Day + " " + dayNr + ". " + Month + " " + yr);

function tick() {
var hours, minutes, seconds;
var intHours, intMinutes, intSeconds;
var today;
today = new Date();
intHours = today.getHours();
intMinutes = today.getMinutes();
intSeconds = today.getSeconds();
hours = intHours + ":";
if (intMinutes < 10) {
minutes = "0"+intMinutes+":";
}
else {
minutes = intMinutes+":";
}
if (intSeconds < 10) {
seconds = "0"+intSeconds+" ";
}
else {
seconds = intSeconds+" ";
} 
timeString = " "+hours+minutes+seconds;
document.getElementById("hodiny").innerHTML = todaysDate +timeString;;
window.setTimeout("tick();", 100);
}
window.onload = tick;