
// how many to display?
var NUM_EVENTS = 10;

// initialize variables
var events = new Array();
var v = 0;

// set each events' date and description
/*
events[v++] = "3/16/2004"; events[v++] = "Indoor training class CANCELLED";
events[v++] = "3/17/2004"; events[v++] = "Happy St. Patrick's Day!";
events[v++] = "3/18/2004"; events[v++] = "Indoor training class, 3:30pm";
events[v++] = "3/18/2004"; events[v++] = "Club Meeting, 7:30pm  (ELECT OFFICERS)";
events[v++] = "3/20/2004"; events[v++] = "Indoor training class, 10am";
events[v++] = "3/20/2004"; events[v++] = "Bike Maintenance Class";
events[v++] = "3/20/2004"; events[v++] = "<a href='http://www.enduradawgs.com/events.asp' target='_blank'>EnduraDawgs</a> Indoor race";
events[v++] = "3/23/2004"; events[v++] = "Indoor training class, 7:30pm";
events[v++] = "3/25/2004"; events[v++] = "Indoor training class, 3:30pm";
events[v++] = "3/25/2004"; events[v++] = "04-05 Budget due";
events[v++] = "3/27/2004"; events[v++] = "Miami of Ohio road race";
events[v++] = "3/28/2004"; events[v++] = "Team Akron's Valley Circuit road race";
events[v++] = "4/4/2004"; events[v++] = "Team Akron's Valley Circuit road race";
events[v++] = "4/5/2004"; events[v++] = "SCPC 04-05 Budget Meeting (5pm, Veale)";
events[v++] = "4/6/2004"; events[v++] = "Westlake crit";
events[v++] = "4/11/2004"; events[v++] = "Happy Easter!!";
events[v++] = "4/13/2004"; events[v++] = "Westlake crit";
events[v++] = "4/15/2004"; events[v++] = "Club Meeting (<a href=\"minutes.htm\">agenda posted</a>)";
events[v++] = "4/17/2004"; events[v++] = "Races at the Lake";
events[v++] = "4/18/2004"; events[v++] = "Spring Tune-Up at Veale (1pm-5:30pm... great chance to buy your bike raffle tickets!)";
events[v++] = "4/20/2004"; events[v++] = "Westlake crit";
events[v++] = "4/20/2004"; events[v++] = "Bike maintenance workshop at OCBC";
events[v++] = "4/22/2004"; events[v++] = "Semester Report due";
events[v++] = "4/23/2004"; events[v++] = "Recreational Club Cycling Trip (stay night at end of Towpath, ride back Saturday)";
events[v++] = "4/24/2004"; events[v++] = "Races at the Lake";
events[v++] = "4/24/2004"; events[v++] = "Bike Raffle (buy your tickets ahead of time!!)";
events[v++] = "4/24/2004"; events[v++] = "Springfest";
events[v++] = "4/25/2004"; events[v++] = "Team Akron's Valley Circuit road race";
events[v++] = "4/27/2004"; events[v++] = "Westlake crit";
events[v++] = "5/1/2004"; events[v++] = "Races at the Lake";
events[v++] = "5/1/2004"; events[v++] = "OSU collegiate road race";
events[v++] = "5/1/2004"; events[v++] = "Bike Against Cancer (Oberlin, OH)";
events[v++] = "5/2/2004"; events[v++] = "OSU collegiate crit";
events[v++] = "5/4/2004"; events[v++] = "Westlake crit";
events[v++] = "5/8/2004"; events[v++] = "Races at the Lake";
events[v++] = "5/9/2004"; events[v++] = "Allardale crit (see messageboard for details)";
events[v++] = "5/11/2004"; events[v++] = "Westlake crit";
events[v++] = "5/16/2004"; events[v++] = "Allardale crit (see messageboard for details)";
events[v++] = "5/18/2004"; events[v++] = "Westlake crit";
events[v++] = "5/21/2004"; events[v++] = 'Bike to work week (5/17-5/21): <a href="http://www.bike-to-work.com"><img src="images/bike2work.jpg" alt="Bike to Work Week 2004!" width="111" height="106" border="0"></a>';
events[v++] = "5/23/2004"; events[v++] = 'Chippewa Creek Road Race (<a href="http://members.cox.net/mtfbwy/CCRRflyer.htm">flyer</a>)';
events[v++] = "8/7/2004"; events[v++] = '[road race] Blossom Cycling Challenge; Cuyahoga Falls, OH (<a href="http://www.ClevelandChaosCycling.com">Cleveland Chaos</a>)';
events[v++] = "8/8/2004"; events[v++] = '[road race] Zoar Road Race; Zoar, OH (<a href="http://www.starkvelo.com">Stark Velo</a>)';
events[v++] = "8/8/2004"; events[v++] = 'Emerald Necklace Tour (<a href="http://www.hubbub.com">HubBub</a>)';
events[v++] = "8/20/2004"; events[v++] = 'Orientation Picnic at the Farm (3:30pm-7:30pm) ';
events[v++] = "8/21/2004"; events[v++] = 'Activities Fair at Freiberger (11:30am-1:30pm)';
events[v++] = "8/23/2004"; events[v++] = '<font color="red">School\'s in session!</font>';
events[v++] = "8/29/2004"; events[v++] = '[mtb race] Big Valley Race; Peninsula, OH (<a href="http://www.bigvalleyrace.com">Website</a>)';
events[v++] = "8/31/2004"; events[v++] = 'SCPC Meeting, 7pm Veale HOF';
events[v++] = "9/1/2004"; events[v++] = 'Club Organizational Meeting, 9pm Veale HOF';
events[v++] = "9/6/2004"; events[v++] = 'Labor Day, No Class';
events[v++] = "9/7/2004"; events[v++] = 'Officer Training/Orientation, 6pm Veale HOF';
events[v++] = "9/7/2004"; events[v++] = '[road race] Westlake Crit';
events[v++] = "9/11/2004"; events[v++] = '[mtb race] MWCCC at University of Missouri';
events[v++] = "9/11/2004"; events[v++] = '[mtb race] 24 Hours of Mohican (<a href="http://www.mohican.net/24hrs.info.htm">Website</a>)';
events[v++] = "9/14/2004"; events[v++] = '[road race] Westlake Crit';
events[v++] = "9/16/2004"; events[v++] = 'Membership forms and dues are due by noon';
events[v++] = "9/17/2004"; events[v++] = 'Century Cycles Night Ride on the Towpath (8pm, Peninsula)';
events[v++] = "9/18/2004"; events[v++] = '[mtb race] MWCCC at University of Illinois';
events[v++] = "9/19/2004"; events[v++] = '[mtb race] MWCCC at Purdue';
events[v++] = "9/21/2004"; events[v++] = '[road race] Westlake Crit';
events[v++] = "9/25/2004"; events[v++] = '[mtb race] MWCCC at University of Wisconsin Madison';
events[v++] = "9/25/2004"; events[v++] = '[cross race] Cross on the Lake (<a href="http://www.honeystinger-spinergycycling.com/2004%20Cross%20on%20the%20Lake.htm">Website</a>)';
events[v++] = "9/28/2004"; events[v++] = '[road race] Westlake Crit';
events[v++] = "10/2/2004"; events[v++] = '[mtb race] MWCCC at Lindsey Wilson College';
events[v++] = "10/3/2004"; events[v++] = 'BIKE TUNE-UP!! 10am-4pm on the KSL Oval';
events[v++] = "10/9/2004"; events[v++] = '[mtb race] MWCCC at Indiana University';
events[v++] = "10/12/2004"; events[v++] = 'SCPC Meeting, 7pm Veale HOF';
events[v++] = "10/16/2004"; events[v++] = '[cross race] Bike Authority Series #1 (Vermillion, OH)';
events[v++] = "10/16/2004"; events[v++] = 'Century Cycles Night Ride on the Towpath (8pm, Peninsula)';
events[v++] = "10/16/2004"; events[v++] = 'Bicycle Poker Run (9am, Massillon)';
events[v++] = "10/18/2004"; events[v++] = 'Fall Break';
events[v++] = "10/19/2004"; events[v++] = 'Fall Break';
events[v++] = "10/22/2004"; events[v++] = 'Recreational bike trip (campus -&gt; Peninsula)';
events[v++] = "10/24/2004"; events[v++] = 'Chili Fall Day Tour (<a href="http://home.cwru.edu/~rjw12/kittyride.html">details</a>)';
events[v++] = "10/24/2004"; events[v++] = '[cross race] Bike Authority Series #2 (Bay Village, OH)';
events[v++] = "10/30/2004"; events[v++] = '[cross race] Bike Authority Series #2 (Bay Village, OH)';
events[v++] = "11/7/2004"; events[v++] = '[cross race] Bike Authority Series #3 (Broadview Hts, OH)';
events[v++] = "11/9/2004"; events[v++] = 'SCPC Meeting, 7pm Veale HOF';
events[v++] = "11/14/2004"; events[v++] = '[cross race] Bike Authority Series #4 (Broadview Hts, OH)';
events[v++] = "11/20/2004"; events[v++] = '[cross race] Bike Authority Series #5 (Bay Village, OH)';
events[v++] = "11/28/2004"; events[v++] = '[cross race] Bike Authority Series #6 (Copley, OH)';
events[v++] = "11/30/2004"; events[v++] = 'Semester report due by noon';
events[v++] = "1/18/2005"; events[v++] = 'SCPC Meeting, 7pm Veale HOF (we are secretary)';
events[v++] = "1/20/2005"; events[v++] = 'Club Organizational Meeting, 9pm Veale HOF';
events[v++] = "1/25/2005"; events[v++] = '<font color="red">updated</font> Indoor training classes start at Veale 7:30-9pm';
events[v++] = "1/27/2005"; events[v++] = 'Indoor training class at Veale 9-10:15pm';
events[v++] = "1/30/2005"; events[v++] = 'Vultures Knob cyclocross race';
events[v++] = "2/3/2005"; events[v++] = 'Membership forms and dues are due by noon';
events[v++] = "2/8/2005"; events[v++] = 'SCPC Meeting, 7pm Veale HOF (we are chair)';
events[v++] = "2/10/2005"; events[v++] = 'Indoor training class at Veale 9-10:15pm';
events[v++] = "2/13/2005"; events[v++] = 'Vultures Knob cyclocross race';
//events[v++] = "2/15/2005"; events[v++] = 'Indoor training class at Veale 7:30-8:45pm';
//events[v++] = "2/17/2005"; events[v++] = 'Indoor training class at Veale 9-10:15pm';
//events[v++] = "2/22/2005"; events[v++] = 'Indoor training class at Veale 7:30-8:45pm';
//events[v++] = "2/24/2005"; events[v++] = 'Indoor training class at Veale 9-10:15pm';
events[v++] = "2/27/2005"; events[v++] = 'Vultures Knob cyclocross race';
//events[v++] = "3/1/2005"; events[v++] = 'Indoor training class at Veale 7:30-8:45pm';
//events[v++] = "3/3/2005"; events[v++] = 'Indoor training class at Veale 9-10:15pm';
events[v++] = "3/5/2005"; events[v++] = 'Collegiate Road Roace - Ohio Univ.';
events[v++] = "3/6/2005"; events[v++] = 'Collegiate Road Race - Ohio State Univ. (crit)';
events[v++] = "3/7/2005"; events[v++] = '<font color="green">Spring Break Starts</font>';
events[v++] = "3/13/2005"; events[v++] = 'Vultures Knob cyclocross race';
//events[v++] = "3/15/2005"; events[v++] = 'Indoor training class at Veale 7:30-8:45pm';
events[v++] = "3/15/2005"; events[v++] = 'SCPC Meeting, 7pm Veale HOF';
//events[v++] = "3/17/2005"; events[v++] = 'Indoor training class at Veale 9-10:15pm';
//events[v++] = "3/22/2005"; events[v++] = 'Indoor training class at Veale 7:30-8:45pm';
//events[v++] = "3/24/2005"; events[v++] = 'Indoor training class at Veale 9-10:15pm';
events[v++] = "3/24/2005"; events[v++] = '0506 budget request due by noon';
events[v++] = "3/26/2005"; events[v++] = 'Mid-Ohio Grand Prix road race';
events[v++] = "3/28/2005"; events[v++] = 'Club Meeting (0506 officer elections)';
//events[v++] = "3/29/2005"; events[v++] = 'Indoor training class at Veale 7:30-8:45pm';
//events[v++] = "3/31/2005"; events[v++] = 'Indoor training class at Veale 9-10:15pm';
events[v++] = "4/3/2005"; events[v++] = "Team Akron's Valley Circuit Race";
events[v++] = "4/4/2005"; events[v++] = 'SCPC Meeting, 5pm Veale 104';
events[v++] = "4/5/2005"; events[v++] = 'Westlake Training Series';
events[v++] = "4/9/2005"; events[v++] = '<b>Bike Tune-up Fundraiser!</b> This is our big event.. Please show up and tell your friends (KSL Oval, 10am-4pm)';
events[v++] = "4/10/2005"; events[v++] = "Team Akron's Valley Circuit Race";
events[v++] = "4/12/2005"; events[v++] = 'Westlake Training Series';
events[v++] = "4/16/2005"; events[v++] = 'Collegiate Road Race - Miami of Ohio';
events[v++] = "4/17/2005"; events[v++] = "Vulture's Knob Maple Syrup Race";
events[v++] = "4/17/2005"; events[v++] = "Team Akron's Valley Circuit Race";
events[v++] = "4/19/2005"; events[v++] = 'Westlake Training Series';
events[v++] = "4/21/2005"; events[v++] = 'Semester report due by noon';
events[v++] = "4/23/2005"; events[v++] = 'Springfest - Low-speed Bike Race.  Try to navigate obstacles and stay balanced as long as possible.  Prizes awarded to highest score (time + obstacle bonus)!';
events[v++] = "4/23/2005"; events[v++] = 'Races at the Lake';
events[v++] = "4/24/2005"; events[v++] = "Team Akron's Valley Circuit Race";
events[v++] = "4/26/2005"; events[v++] = 'Westlake Training Series';
events[v++] = "4/30/2005"; events[v++] = 'Races at the Lake';
events[v++] = "9/6/2005"; events[v++] = 'SCPC Meeting @ Veale Hall of Fame room 7pm';
events[v++] = "9/7/2005"; events[v++] = 'Fall Semester Organizational Meeting @ Hall of Fame 8pm';
events[v++] = "9/11/2005"; events[v++] = "Urban Enduro Touro' Cleveland, a 25mi ride through the city, 7:45am";
events[v++] = "9/13/2005"; events[v++] = 'Membership paperwork and dues on file';
events[v++] = "9/18/2005"; events[v++] = 'MTB Race @ Mohican Wilderness, contact Bret Marts for info';
*/
events[v++] = "9/30/2006"; events[v++] = 11am-4pm Bicycle Tune-up at KSL oval;
events[v++] = "10/6/2006"; events[v++] = Towpath Rec. Ride to Akron;
events[v++] = "10/14/2006"; events[v++] = Homecoming ride downtown;


function writeEventList()
{

	var i=0; // keep track of how many we've displayed
	for (var j=0; j<events.length && i<NUM_EVENTS; j++)
	{
		// get event date
		var d = new Date(events[j++]);
		
		// get current date
		var n = new Date( new Date().getYear(), new Date().getMonth(), new Date().getDate(), 0, 0, 0, 0);
		
		// make sure it's in the future or today
		if (d.getTime() >= n.getTime())
		{
			document.write("<p>");
			if (d.getTime()==n.getTime()) document.write("<font color='red'><strong>Today");
			else
			{
				document.write("<strong>");
				switch (d.getDay()) {
					case 0 : document.write("Sun "); break;
					case 1 : document.write("Mon "); break;
					case 2 : document.write("Tue "); break;
					case 3 : document.write("Wed "); break;
					case 4 : document.write("Thu "); break;
					case 5 : document.write("Fri "); break;
					case 6 : document.write("Sat "); break;
				}
				document.write(d.getMonth()+1 + "/" + d.getDate());
			}
			document.write(": </strong>");
			document.write(events[j]);
			if (d.getTime()==n.getTime()) document.write("</font>");
			document.write("</p>");
			
			// increment number of written events counter
			i++;
		}
	}
}
