function gettheDate() {
	Todays = new Date();
	if ((Todays.getMonth()+1) == 1)
		TheMonth = "January";
	if ((Todays.getMonth()+1) == 2)
		TheMonth = "February";
	if ((Todays.getMonth()+1) == 3)
		TheMonth = "March";
	if ((Todays.getMonth()+1) == 4)
		TheMonth = "April";
	if ((Todays.getMonth()+1) == 5)
		TheMonth = "May";
	if ((Todays.getMonth()+1) == 6)
		TheMonth = "June";
	if ((Todays.getMonth()+1) == 7)
		TheMonth = "July";
	if ((Todays.getMonth()+1) == 8)
		TheMonth = "August";
	if ((Todays.getMonth()+1) == 9)
		TheMonth = "September";
	if ((Todays.getMonth()+1) == 10)
		TheMonth = "October";
	if ((Todays.getMonth()+1) == 11)
		TheMonth = "November";
	if ((Todays.getMonth()+1) == 12)
		TheMonth = "December";

	TheDate = ""+ Todays.getDate();
	TheYear= Todays.getYear();
	if (navigator.appName == "Netscape") {
		TheYear= (Todays.getYear() + 1900); 
	}
}


var timerID = null;
var timerRunning = false;

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

function startclock () {
	// Make sure the clock is stopped
	stopclock();
	gettheDate();
	showtime();
}

function showtime () {
	var now = new Date();
	var hours = now.getHours();
	var minutes = now.getMinutes();
	var seconds = now.getSeconds()
	var timeValue = "" + ((hours >12) ? hours -12 :hours)
	timeValue += ((minutes < 10) ? ":0" : ":") + minutes
	timeValue += ((seconds < 10) ? ":0" : ":") + seconds
	timeValue += (hours >= 12) ? " P.M." : " A.M."
	window.status = TheMonth + " " + TheDate + " " + TheYear + " - " + timeValue;
	timerID = setTimeout("showtime()",1000);
	timerRunning = true;
}

function stat(txt) {
	window.status = txt;
}

function stat2(txt) {
	setTimeout("stat('"+txt+"')",1);
}

function on(imgName) {
	imgOn = eval(imgName + "on.src");
	document [imgName].src = imgOn;
}	 

function off(imgName) {
	imgOff = eval(imgName + "off.src");
	document [imgName].src = imgOff;
} 

homeon = new Image();
homeon.src = "buttons/home-b.gif";
homeoff = new Image();
homeoff.src = "buttons/home.gif";

petwaon = new Image();
petwaon.src = "buttons/petwa-b.gif";
petwaoff = new Image();
petwaoff.src = "buttons/petwa.gif";

petertroonon = new Image();
petertroonon.src = "buttons/petertroon-b.gif";
petertroonoff = new Image();
petertroonoff.src = "buttons/petertroon.gif";

musicon = new Image();
musicon.src = "buttons/music-b.gif";
musicoff = new Image();
musicoff.src = "buttons/music.gif";

surinameon = new Image();
surinameon.src = "buttons/surisite-b.gif";
surinameoff = new Image();
surinameoff.src = "buttons/surisite.gif";

surilinkson = new Image();
surilinkson.src = "buttons/surilinks-b.gif";
surilinksoff = new Image();
surilinksoff.src = "buttons/surilinks.gif";

suripicson = new Image();
suripicson.src = "buttons/suripics-b.gif";
suripicsoff = new Image();
suripicsoff.src = "buttons/suripics.gif";

domainson = new Image();
domainson.src = "buttons/domains-b.gif";
domainsoff = new Image();
domainsoff.src = "buttons/domains.gif";

surveyon = new Image();
surveyon.src = "buttons/survey-b.gif";
surveyoff = new Image();
surveyoff.src = "buttons/survey.gif";

schoolon = new Image();
schoolon.src = "buttons/school-b.gif";
schooloff = new Image();
schooloff.src = "buttons/school.gif";

articleson = new Image();
articleson.src = "buttons/articles-b.gif";
articlesoff = new Image();
articlesoff.src = "buttons/articles.gif";

respondon = new Image();
respondon.src = "buttons/respond-b.gif";
respondoff = new Image();
respondoff.src = "buttons/respond.gif";

