/*------------------------------------------------------------------------
	clock.js
	
	the script of moving clocks
------------------------------------------------------------------------*/

function show_clock() {
	var now = new Date();
	mon = now.getMonth()+1; day = now.getDate();
	hou = now.getHours(); min = now.getMinutes(); sec = now.getSeconds();
	year = now.getYear(); 
	if (year < 2000) { year += 1900; } 
	if (hou <= "9"){hou = "0" + hou;};
	if (min <= "9"){min = "0" + min;};
	if (sec <= "9"){sec = "0" + sec;};
	
	myWeekAry = ["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];
	myWeek = now.getDay();
	
	document.getElementById("clock").innerHTML = year +"&nbsp;&nbsp;"+ mon +"/"+ day +"&nbsp;"+myWeekAry[myWeek]+"&nbsp;"+ hou +":"+ min+"&nbsp;&nbsp;";
	
	setTimeout('show_clock()',1000);
}

