function InitClock()
{
	window.setTimeout('UpdateClock()',2000); 
}


function UpdateClock()
{
	var ClockDivObj=GetClockDiv();
	if(ClockDivObj==null  || ClockDivObj=='undefined' ) return;
	var now= new Date();
	var Hours= 	now.getHours();
	var Minutes= now.getMinutes();
	var Seconds= now.getSeconds();
	if(Minutes<10) Minutes='0'+Minutes;
	if(Seconds<10) Seconds='0'+Seconds;
	var Day= now.getDate();
	var DayName;
	if(now.getDay()==0) DayName='Κυριακή';
	if(now.getDay()==1) DayName='Δευτέρα';
	if(now.getDay()==2) DayName='Τρίτη';
	if(now.getDay()==3) DayName='Τετάρτη';
	if(now.getDay()==4) DayName='Πέμπτη';
	if(now.getDay()==5) DayName='Παρασκευή';
	if(now.getDay()==6) DayName='Σάββατο';	 
	var Month= now.getMonth();
	if(Month==0) Month='Ιαν.';
	if(Month==1) Month='Φεβ.';
	if(Month==2) Month='Μαρ.';
	if(Month==3) Month='Απρ.';
	if(Month==4) Month='Μαϊ.';
	if(Month==5) Month='Ιουν.';
	if(Month==6) Month='Ιούλ.';
	if(Month==7) Month='Αυγ.';
	if(Month==8) Month='Σεπτ.';
	if(Month==9) Month='Οκτ.';
	if(Month==10) Month='Νοεμ.';
	if(Month==11) Month='Δεκ.';
	
if ( (navigator.appName=="Netscape") && (navigator.appVersion < 6) )
  {
  var Year= now.getYear();
  }
else
  {
  var Year= now.getFullYear();
  }
//	ClockDivObj.innerHTML= '<span class="date">'+Hours+':'+Minutes+':'+Seconds+'&nbsp;&nbsp;'+DayName+', '+Day+' '+Month+' '+Year+'</span>';
	ClockDivObj.innerHTML= '<span class="date">'+Hours+':'+Minutes+':'+Seconds+'&nbsp;&nbsp;'+DayName+', '+Day+' '+Month+' '+Year+'</span>';
	
	window.setTimeout('UpdateClock()',2000); 
}


function GetClockDiv() 
{
	var ID = 'Clock';
	if (document.all)	{ return document.all[ID]; } 
	else if (document.documentElement)  { return document.getElementById (ID); } 
 	else if (document.layers)	{ return document.layers[ID]; }
}


InitClock();
