/*************************
events[NUMBER] = [
	"TITLE",
	"DATE",
	"LOCATION",
	"LINK",
	STARTDATE,
	ENDDATE,
	"science, epo, or both"];
*************************/
var events = [];
events[0] = [
	"Mini Symposium at the American Philosophical Society on Discoveries in Astronomy",
	"Nov. 12 | 1:15 PM",
	"Webcast",
	"http://www.amphilsoc.org/meetings/webcast",
	20091112,
	20091112,
	"both"];
events[1] = [
	"NRAO Town Hall at the American Astronomical Society Meeting",
	"Jan. 5",
	"Washington, DC",
	"http://aas.org/meetings/aas215",
	20100105,
	20100105,
	"both"];
events[2] = [
	"New Mexico Symposium",
	"Jan. 15",
	"Socorro, NM",
	"http://www.aoc.nrao.edu/events/nmsymposium/2010/",
	20100115,
	20100115,
	"both"];
events[3] = [
	"Jansky Lecture",
	"Jan. 15",
	"Socorro, NM",
	"http://www.nrao.edu/jansky/2009/readhead.shtml",
	20100115,
	20100115,
	"both"];
events[4] = [
	"NRAO Proposal Deadline",
	"Feb. 1 | 5:00 PM EST",
	"",
	"http://www.nrao.edu/news/newsletters/enews/enews_2_9/enews_2_9.shtml#proposals",
	20100201,
	20100201,
	"both"];
events[5] = [
	"SKA2010 - International SKA Science and Engineering Meeting",
	"Mar. 22-25",
	"Manchester, UK",
	"http://www.skatelescope.org/pages/SKA2010/ska2010.htm",
	20100322,
	20100325,
	"both"];
events[6] = [
	"12th Synthesis Imaging Workshop NRAO &amp; New Mexico Tech",
	"Jun. 8-15",
	"Socorro, NM",
	"http://www.aoc.nrao.edu/events/synthesis/2010/",
	20100608,
	20100615,
	"both"];
for (i=0; i<events.length; i++){
	if (events[i][5] >= today){
		if ((audience == events[i][6]) || (events[i][6] == "both")){
			document.writeln('<p class="event">');
			document.writeln('<a href="' + events[i][3] + '">');
			document.writeln(events[i][0] + '<br />');
			document.writeln('<span class="eventDate">' + events[i][1] + '</span> | ');
			document.writeln(events[i][2] + '</a>');
			document.writeln('</p>');
		}
	}
}