//JavaScript sets variables for date passed to Calendar
var nowDate = new Date();
var dow = new Array(
	'Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
var months = new Array(
    'January','February','March','April','May',
    'June','July','August','September','October',
    'November','December');
var currentDay = nowDate.getDate();
//nowDate.setDate to advance month 5 days before EOM
monthNow =  months[nowDate.getMonth()];
//sets date so Calendar will jump to the next month prior to the end of the current
//so that marquee will display in advance of gathering
nowDate.setDate(currentDay+4)
CalMonth= months[nowDate.getMonth()];
month = CalMonth + "_" + nowDate.getFullYear();

//Function pops new window to display directions for events, called from Calendar
var newWindow;
function openWindow(url)
{
	var winTop = (screen.height / 6) - 125;
	var winLeft = (screen.width / 4) - 125;
	var windowFeatures = "width=800,height=800,scrollbars=yes,";
	windowFeatures = windowFeatures + "left=" + winLeft + ",";
	windowFeatures = windowFeatures + "top=" + winTop;
	newWindow = window.open (url, "Directions", windowFeatures);
}
	

