/*

	[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 intracount=springIM.length;

var now=new Date();
var month = now.getMonth() + 1;
var day = now.getDate();
var year = now.getFullYear();
var today = (year*10000)+(month*100)+day;

document.write("<ul>"); 

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>"); 
	}
}
document.write("</ul>"); 
