function videoWindow(videofile)
{
tbWindow = window.open('','tbWinVideo',
		'width=500,height=400,screenX=150,screenY=100,top=150,left=100,status=no,toolbar=no,directories=no,menubar=no,location=no,scrollbars=no,resizable=no');

tbWindow.document.write("<head><title>Course Selection Video</title><style type='text/css'>@import url(main.css);</style></head><body class='floatWin'><div class='normalWhite' align='center'><br />Video is loading...<br /><br />");

tbWindow.document.write("<embed src='video/"+videofile+"' width='320' height='254' controller='true' autoplay='true' loop='false'></embed>");

tbWindow.document.write("<br/><br /><hr width='85%' size='2' /><form action='javascript:void()'><input type='button' value='Close Window' onclick='window.close();' /></form><br /></div></body></html>")
}

function lastMod() {
	if (navigator.appVersion.indexOf("Win")!=-1) {
	str = new String(document.lastModified);
	first_slash = str.indexOf("/");
	last_slash = str.lastIndexOf("/");
	month_number = parseInt(str.substring(0, first_slash));
	day = str.substring(first_slash +1, last_slash);
	colon = str.indexOf(":") -3;
	year = str.substring(last_slash +1, colon);
	t = str.substr(str.indexOf(":")-2);
	months = new Array(12)
	months[1] = "Jan";
	months[2] = "Feb";
	months[3] = "Mar";
	months[4] = "Apr";
	months[5] = "May";
	months[6] = "Jun";
	months[7] = "Jul";
	months[8] = "Aug";
	months[9] = "Sep";
	months[10] = "Oct";
	months[11] = "Nov";
	months[12] = "Dec";
	document.write("Site last updated on <br />"+months[month_number]+" "+day+", "+year);
	}
	
	else if (navigator.appVersion.indexOf("MSIE")!=-1) {
	str = new String(document.lastModified);
	first_colon = str.indexOf(":");
	second_colon = str.lastIndexOf(":");
	day_date = str.substring(0,first_colon-3);
	year_date = str.substr(str.lastIndexOf(":")+3);
	t = str.substring(first_colon-2,second_colon+3);
	document.write("Site last updated on <br />"+day_date+" "+year_date);
	}

	else {
	document.write("Site last updated on <br />"+document.lastModified);
	}
}

function displayDate() {
	var months=new Array(13);
	months[1]="January";
	months[2]="February";
	months[3]="March";
	months[4]="April";
	months[5]="May";
	months[6]="June";
	months[7]="July";
	months[8]="August";
	months[9]="September";
	months[10]="October";
	months[11]="November";
	months[12]="December"
	var time=new Date();
	var lmonth=months[time.getMonth() + 1];
	var date=time.getDate();
	var year=time.getYear();
	if (year < 2000)    // Y2K Fix, Isaac Powell
	year = year + 1900; // http://onyx.idbsu.edu/~ipowell
	document.write("as of " + lmonth + " " + date + ", " + year + "<br /><br />");
}
