var timerID = null;
var timerRunning = false;
dayOfWeek = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
monthOfYear = new Array("January","February","March","April","May","June","July","August","September","October","November","December")

function stopclock() {
	if (timerRunning) {
		clearTimeout(timerID);
		timerRunning = false;
	}
}

function showtime() {
	now = new Date()
	clientOffset = now.getTimezoneOffset()
	
	//now.setTime(now.getTime() + (4*60*60*1000) - (clientOffset*60*1000))

	var date = now.getDate()
	var month = now.getMonth()
	//month++
	month = monthOfYear[month]
	var year = now.getFullYear()
	year = "" + year
	//year = year.substring(2)
	var hours = now.getHours();
	//var minutes = now.getMinutes();
	//var seconds = now.getSeconds();
	//var day = now.getDay()
	//var timeValue = dayOfWeek[day] + " ";
	timeValue = month + " " + date + ", " + year
	//theHours = (hours > 12) ? hours - 12 : hours
	//if (theHours == "0") theHours = 12;
	//timeValue += theHours
	//timeValue += ((minutes < 10) ? ":0" : ":") + minutes
	//timeValue += ((seconds < 10) ? ":0" : ":") + seconds
	//timeValue += (hours >= 12) ? "pm" : "am"
	document.getElementById('clockLayer').innerHTML = timeValue // + " EST";
	//timerID = setTimeout("showtime()",60000);
	//timerRunning = true;
}

function startclock() {
	stopclock();
	showtime();

}


 