function $(v) { return(document.getElementById(v)); }

function $S(v) { return($(v).style); }
function MM_jumpMenu(selObj){
	var status = "";
	if (document.getElementById(selObj).style.display==""){
		status='none';
	}	
	var rows = document.getElementById('container').getElementsByTagName('div');
	for (i = 0; i < rows.length; i++) {
		rows[i].style.display= 'none';
	}	
	document.getElementById(selObj).style.display=status;
}



function startclock()
{
var thetime=new Date();

var nhours=thetime.getHours();
var nmins=thetime.getMinutes();
var nday=thetime.getDay();
var nmonth=thetime.getMonth();
var ntoday=thetime.getDate();
var nyear=thetime.getYear();

if (nmins<10)
 nmins="0"+nmins;

if (nday==0)
  nday="Неділя";
if (nday==1)
  nday="Понеділок";
if (nday==2)
  nday="Вівторок";
if (nday==3)
  nday="Середа";
if (nday==4)
  nday="Четвер";
if (nday==5)
  nday="П'ятниця";
if (nday==6)
  nday="Субота";

if(nmonth==0)
	nmonth="Січня";
if(nmonth==1)
	nmonth="Лютого";
if(nmonth==2)
	nmonth="Березня";
if(nmonth==3)
	nmonth="Квітня";
if(nmonth==4)
	nmonth="Травня";
if(nmonth==5)
	nmonth="Червня";
if(nmonth==6)
	nmonth="Липня";
if(nmonth==7)
	nmonth="Серпня";
if(nmonth==8)
	nmonth="Вересня";
if(nmonth==9)
	nmonth="Жовтня";
if(nmonth==10)
	nmonth="Листопада";
if(nmonth==11)
	nmonth="Грудня";


if (nyear<=99)
  nyear= "19"+nyear;

if ((nyear>99) && (nyear<2000))
 nyear+=1900;

document.getElementById('clockspot').innerHTML=nday+", "+ntoday+" "+nmonth+" "+nyear+" року, "+nhours+":"+nmins;

setTimeout('startclock()',1000);

} 