function fnStartClock(){
	setInterval('fnTime()','5000')
}

function fnTime(){
	today = new Date();
	suffix = "";
	
	hours = today.getHours();
		if (hours > 12){
			hours = hours - 12;	
			suffix = "pm";
		} else {
			suffix = "am";
		}
	
	minutes = today.getMinutes();
		if (minutes < 10){
			minutes = '0' + minutes;
		}
		
	seconds = today.getSeconds();
		if (seconds < 10){
			seconds = '0' + seconds
		}
		
	var thisDay = today.getDay(); //get day
	var thisDate = today.getDate(); //get date
	var thisMonth = today.getMonth(); //get month
	var thisYear = today.getFullYear(); //get years
	
	var currentMonth = new Array('january','february','march','april','may','june','july','august','september','october','novemeber','december');
	var currentDay = new Array('sunday','monday','tuesday','wednesday','thursday','friday','saturday');
	
	var updated_time = hours + ':' + minutes + " " + suffix; // + ':' + seconds;
	var updated_date = currentDay[thisDay] + ' ' + thisDate + ' ' + currentMonth[thisMonth]; // + ' ' + thisYear
	
	document.getElementById('clock').innerHTML = updated_date + ', ' + updated_time;
	updated_time = '';
}