function setDate()
{
	var now = new Date();
	var date = now.getDate();
	var month = now.getMonth();
	var year = now.getFullYear();

	var output = "";

	if(month == 0) {
		output += "January";
	} else if(month == 1) {
		output += "February";
	} else if(month == 2) {
		output += "March";
	} else if(month == 3) {
		output += "April";
	} else if(month == 4) {
		output += "May";
	} else if(month == 5) {
		output += "June";
	} else if(month == 6) {
		output += "July";
	} else if(month == 7) {
		output += "August";
	} else if(month == 8) {
		output += "September";
	} else if(month == 9) {
		output += "October";
	} else if(month == 10) {
		output += "November";
	} else if(month == 11) {
		output += "December";
	}

	output += " "+date+", "+year;
	
	document.getElementById("date").innerHTML = output;
}

/* The following function was taken from the code within lightbox.js, which was written by Lokesh Dhakar. His information may be found in the topmost comments of lightbox.js.*/
function addLoadEvent(func)
{	
	var oldonload = window.onload;
	if (typeof window.onload != 'function'){
    	window.onload = func;
	} else {
		window.onload = function(){
		oldonload();
		func();
		}
	}

}

addLoadEvent(setDate);	// run setDate onLoad
