
function getNews() {
			if (count >= text.length) {
				count = 0;
			}
			document.getElementById("news").innerHTML = "<a href='" + text[count][1] + "'>" + text[count][0] + "</a>";
			count++;
			setTimeout("getNews()", 5000);
		}
			
count = 0;
var text = new Array();



function getTime() {
	var now = new Date();
	var hour = (now.getHours() > 12) ? now.getHours() - 12 : now.getHours();
	var ampm = (now.getHours() > 11) ? "PM" : "AM";
	if (hour == 0) { hour = 12;}	
	var minute = (now.getMinutes() < 10) ? "0" + now.getMinutes() : now.getMinutes();	
	var second = (now.getSeconds() < 10) ? "0" + now.getSeconds() : now.getSeconds();
	
	var time = hour + ":" + minute + ":" + second + " " + ampm;

	document.getElementById("time").innerHTML = time;
	setTimeout("getTime()", 1000);

}


function getDateStamp() {

var Day = 	new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
var Month = 	new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
var now = 	new Date();
var day =	now.getDay();
var month = 	now.getMonth();
var year = 	now.getFullYear();

var date = 	Day[day] + ", " + Month[month] + " " + now.getDate() + ", " + year;
return date;

}
		

