/*
	clock
*/

months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
function clock(){
	var now = new Date();
	var month = months[now.getMonth()];
	var date = now.getDate();
	var hours = now.getHours();
	var minutes = now.getMinutes();
	var seconds = now.getSeconds();
	if(date < 10)
	{
		date = "0" + date;
	}
	if(hours < 10)
	{
		hours = "0" + hours;
	}
	if(minutes < 10)
	{
		minutes = "0" + minutes;
	}
	if(seconds < 10)
	{
		seconds = "0" + seconds;
	}
	var view = month + " " + date + ", " + hours + ":" + minutes + " <span class='st'>" + seconds + "</span>";
	document.getElementById("time").innerHTML = view; 
	setTimeout("clock()", 1000);
}
