/*

	[0] = Event name
	[1] = Description before name
	[2] = Description after name
	[3] = Leagues
	[4] = Register
	[5] = Play Starts
	[6] = Fee
	[7] = When it should display on Front Page
	[8] = When it should stop displaying on the Front Page
	[9] = Flyer
	[10] = Rules
	[11] = Results
 */
 

/*********************************Intramural*********************************************/

var springIM		= new Array;
springIM[0]			= new Array;
springIM[0][0]		= "Broomball";
springIM[0][1]		= "";
springIM[0][2]		= "";
springIM[0][3]		= "M, W";
springIM[0][4]		= "Dec 5- Jan 17";
springIM[0][5]		= "Jan 22";
springIM[0][6]		= "$45 / Team";
springIM[0][7]		= "20071205";
springIM[0][8]		= "20080117";
springIM[0][9]		= "http://crec.unl.edu/im/flyers/brmw.pdf";
springIM[0][10]		= "http://crec.unl.edu/im/rules/Broomball.pdf";
springIM[0][11]		= "http://crec.unl.edu/im/results/brmw.pdf";

/*

Club Announcements 


Variables
announcementDisplayCount = the number of announcements that will be displayed in the page.
*/


/*
Type your announcement by using the following format and increasing the number announcement[3]=..., announcement[4] = ... etc.

*/
var announcement = new Array;
announcement[0] = "We are Looking for Players for Internet College Chess League see: www.collegechessleague.com";
announcement[1] = "Fall Preliminary Meeting Sept. 2nd 7.00pm";







var announcementDisplayCount = 4;
var announcementCount=announcement.length;


document.write("<ul>"); 

for(i=announcementCount-1; announcementDisplayCount>=(announcementCount-1 - i) && i>=0 ; i--)

{
	document.write("<li>"); 
	/*Announcements */
	document.write(announcement[i]); 
		
	document.write("</li>"); 
	
}
document.write("</ul>"); 


/**


//	[0] = Event name
//	[1] = Description before name
//	[2] = Description after name
//	[3] = Leauges
//	[4] = Register
//	[5] = Fee
//	[6] = Play Starts
//	[7] = When it should display on Front Page
//	[8] = When it should stop displaying on the Front Page
//	[9] = Website


var now=new Date();
var month = now.getMonth() + 1;
var day = now.getDate();
var year = now.getFullYear();
var today = (year*10000)+(month*100)+day;
var intracount=springIM.length;
for(i=0;i<intracount;i++)

{
	if((today>=springIM[i][7])&&(today<=springIM[i][8]))
	{
	document.write("<li>"); 
	//Name, dynamically  linked, and description
	document.write("<a href=\"http://crec.unl.edu/im/calspring.shtml\">"+springIM[i][1]+" "+springIM[i][0]+" "+springIM[i][2]+"</a> - "); 
	//Days
	document.write("Register: "+springIM[i][4]+", "); 
	//Time
	document.write("Play Starts: "+springIM[i][5]+" "); 

	document.write("</li>"); 
	}
}
*/

