//  The Javascript source for 15five.com main page

var isNS4=document.layers?true:false;

 
//for populating the date
var weekDays = new Array();
weekDays[0] = "Sunday";
weekDays[1] = "Monday";
weekDays[2] = "Tuesday";
weekDays[3] = "Wednesday";
weekDays[4] = "Thursday";
weekDays[5] = "Friday";
weekDays[6] = "Saturday";

var monthNames = new Array();
monthNames[0] = "January";
monthNames[1] = "February";
monthNames[2] = "March";
monthNames[3] = "April";
monthNames[4] = "May";
monthNames[5] = "June";
monthNames[6] = "July";
monthNames[7] = "August";
monthNames[8] = "September";
monthNames[9] = "October";
monthNames[10] = "November";
monthNames[11] = "December";

function myDate() {
var today = new Date();
var day = today.getDay();
var mon = today.getMonth();
var dayNum = today.getDate();	
var fyear = today.getFullYear();
var out = weekDays[day] +" " + monthNames[mon] + " " + dayNum + ", " + fyear;
document.write(out);
}	

//opens and closes the event list and displays the races
function openContent(who) {
	if(document.getElementById(who).style.display == "none") {
		document.getElementById(who).style.display = "block";
	} else {
		document.getElementById(who).style.display = "none";
	}
}

function setToNone() {
	if(isNS4) {
	alert("You are using an old browser that does not support what it needs to in order to look at this site. You should go get a more recent version of Netscape, or try an other browser that was made in the 21st century.")
	} else {
	for(i=0;i<document.getElementById("navigation").childNodes.length;i++) {
		if(document.getElementById("navigation").childNodes[i].tagName == "DIV")document.getElementById("navigation").childNodes[i].style.display = "none";
	
		}
	}
}

