function fetch_event(id) {
		var events= new Array(16) 
		events[0]= {
			name: 'martha',
			description: '<h4>Martha\'s Vineyard</h4><div class="date">Saturday May 9, 7:00am to 8:30pm</div>            <img src="images/countdown/martha.jpg" width="99" height="80" alt="Martha\'s Vineyard" />            <p>Spend a day with friends on the tourist-friendly island of Martha\'s Vineyard. With shops, eateries, and beaches aplenty, the island surely has something for everyone.</p>',
			expiration: new Date("5/9/2009 11:00:00 AM"),
			href: 'http://www.bu.edu/link/bin/uiscgi_senior_week.pl/uismpl',
			tickets: true};
		
		events[1]= {
			name: 'mohegan',
			description: '<h4>Mohegan Sun</h4><div class="date">Sunday May 10, 4:30pm to 2:30am</div>            <img src="images/countdown/mohegan.jpg" width="99" height="80" alt="Mohegan Sun" />            <p>Get dressed up and spend an evening at Mohegan Sun Casino. Featuring some of New England\'s finest shopping, dining, gambling, and entertainment options.</p>',
			expiration: new Date("5/10/2009 5:00:00 PM"),
			href: 'http://www.bu.edu/link/bin/uiscgi_senior_week.pl/uismpl',
			tickets: true};
		
		events[2]= {
			name: 'fenway_tour',
			description: '<h4>Tour of Fenway Park</h4><div class="date">Monday May 11, 12:15pm to 1:30pm</div>            <img src="images/countdown/fenway.jpg" width="99" height="80" alt="Fenway Park" />            <p>Tour the historic Fenway Park, one of the oldest baseball parks left in the United States.</p>',
			expiration: new Date("5/11/2009 12:15:00 PM"),
			href: 'http://www.bu.edu/link/bin/uiscgi_senior_week.pl/uismpl',
			tickets: true};
		
		events[3]= {
			name: 'marina',
			description: '<h4>Marina Bay Beach Party</h4><div class="date">Monday May 11, 8:30pm to 11:00pm</div>            <img src="images/countdown/marina.jpg" width="99" height="80" alt="Marina Bay Beach" />            <p>Come to the Senior Week Beach Party at the Marina Bay Beach Club in Quincy, MA. Buses will transport you for a night of food, beach volleyball, billiards, dancing, and fun.</p>',
			expiration: new Date("5/11/2009 9:00:00 AM"),
			href: 'http://www.bu.edu/link/bin/uiscgi_senior_week.pl/uismpl',
			tickets: true};
		
		events[4]= {
			name: 'cruise',
			description: '<h4>Boston Harbor Cruise</h4><div class="date">Tuesday May 12, 6:45pm to 11:00pm</div>            <img src="images/countdown/cruise.jpg" width="99" height="80" alt="Boston Harbor" />            <p>Ahoy! Take to the high seas with an evening pirate-themed cruise of the Boston Harbor.  Enjoy a night of dancing and drinking -- there will be a cash bar serving drinks.</p>',
			expiration: new Date("5/12/2009 8:00:00 PM"),
			href: 'http://www.bu.edu/link/bin/uiscgi_senior_week.pl/uismpl',
			tickets: true};
		
		events[5]= {
			name: 'ball',
			description: '<h4>Senior Ball</h4><div class="date">Wednesday May 13, 9:00pm to 1:00am</div>            <img src="images/countdown/ball.jpg" width="99" height="80" alt="Senior Ball" />            <p>Just dance! Celebrate with your fellow future-alumni at the Senior Ball at the 808 Gallery in the Fuller Building. Non-BU guests are welcome. Cash bar for those 21+.</p>',
			expiration: new Date("5/13/2009 11:00:00 PM"),
			href: 'http://www.bu.edu/link/bin/uiscgi_senior_week.pl/uismpl',
			tickets: true};
		
		events[6]= {
			name: 'fenway_bbq',
			description: '<h4>Fenway Park BBQ</h4><div class="date">Thursday May 14, 12:00pm to 4:00pm</div>            <img src="images/countdown/fenway.jpg" width="99" height="80" alt="Fenway Park" />            <p>Join your classmates and wind down after the crazy week with food and relaxation at Fenway! The event overlooks the field (great photo-op!). </p>',
			expiration: new Date("5/14/2009 2:00:00 PM"),
			href: 'http://www.bu.edu/link/bin/uiscgi_senior_week.pl/uismpl',
			tickets: true};
		
		events[7]= {
			name: 'fenway_tour',
			description: '<h4>Tour of Fenway Park</h4><div class="date">Thursday May 14, 12:15pm to 1:30pm</div>            <img src="images/countdown/fenway.jpg" width="99" height="80" alt="Fenway Park" />            <p>Tour the historic Fenway Park, one of the oldest baseball parks left in the United States.</p>',
			expiration: new Date("5/14/2009 1:00:00 PM"),
			href: 'http://www.bu.edu/link/bin/uiscgi_senior_week.pl/uismpl',
			tickets: true};
		
		events[8]= {
			name: 'champagne',
			description: '<h4>Champagne Reception</h4><div class="date">Friday May 15, 4:00pm to 6:00pm</div>            <img src="images/countdown/champagne.jpg" width="99" height="80" alt="Champagne" />            <p>Celebrate your time as a student at BU and join your deans, administrators, family, and friends at this annual event. Raise your glass and toast!</p>',
			expiration: new Date("5/15/2009 5:00:00 PM"),
			href: 'http://www.bu.edu/commencement/2009/guest-events.shtml',
			tickets: true};
		
		events[9]= {
			name: 'comedy',
			description: '<h4>17th Annual Comedy Night</h4><div class="date">Friday May 15, 8:00pm to 9:30pm</div>            <img src="images/countdown/comedy.jpg" width="99" height="80" alt="Greg Fitzsimmons" />            <p>Featuring alumnus Greg Fitzsimmons (CGS ’87, CAS ’89), whose credits include appearances on Leno, Letterman, and Conan.</p>',
			expiration: new Date("5/15/2009 8:00:00 PM"),
			href: 'http://www.bu.edu/commencement/2009/guest-events.shtml',
			tickets: true};
		
		events[10]= {
			name: 'charles',
			description: '<h4>Charles Riverboat Cruise</h4><div class="date">Saturday May 16, 10:00am to 2:00pm</div>            <img src="images/countdown/charles.jpg" width="99" height="80" alt="DeWolfe Boathouse" />            <p>Cruise along the scenic Charles with family and friends. Boats leave every 15 minutes rain or shine. This event is not handicapped accessible.</p>',
			expiration: new Date("5/16/2009 1:00:00 PM"),
			href: 'http://www.bu.edu/commencement/2009/guest-events.shtml',
			tickets: true};
		
		events[11]= {
			name: 'BUbeach',
			description: '<h4>BU Beach Bash</h4><div class="date">Saturday May 16, 12:00pm to 2:00pm</div>            <img src="images/countdown/BUbeach.jpg" width="99" height="80" alt="Champagne" />            <p>Stop by the BU Beach for some good old family fun. There will be live music, face painting, complimentary BU giveaways, and MORE! Food concessions will be available.</p>',
			expiration: new Date("5/16/2009 1:30:00 PM"),
			href: 'http://www.bu.edu/commencement/2009/guest-events.shtml',
			tickets: false};
		
		events[12]= {
			name: 'buffet',
			description: '<h4>Celebration \'09</h4><div class="date">Saturday May 16, 5:30pm</div>            <img src="images/countdown/buffet.jpg" width="99" height="80" alt="Buffet" />            <p>Celebrate with fellow classmates and families at this lavish buffet featuring an array of salad, pasta, entrées, and mouth-watering desserts.</p>',
			expiration: new Date("5/16/2009 7:00:00 PM"),
			href: 'http://www.bu.edu/commencement/2009/guest-events.shtml',
			tickets: true};
		
		events[13]= {
			name: 'pops',
			description: '<h4>95<sup>th</sup> Annual BU Night at the Pops</h4><div class="date">Saturday May 16, 8:00pm to 10:00pm</div>            <img src="images/countdown/pops.jpg" width="99" height="80" alt="Boston Pops" />            <p>Commemorate this momentous occasion by participating in one of the University’s oldest traditions. </p>',
			expiration: new Date("5/16/2009 8:00:00 PM"),
			href: 'http://www.bu.edu/commencement/2009/guest-events.shtml',
			tickets: true};
		
		events[14]= {
			name: 'baccalaureate',
			description: '<h4>Baccalaureate Service</h4><div class="date">Sunday May 17, 11:00am</div>            <img src="images/countdown/marsh.jpg" width="99" height="80" alt="Marsh Chapel" />            <p>Service is held at Marsh Chapel, 735 Commonwealth Avenue.</p>',
			expiration: new Date("5/17/2009 11:00:00 AM"),
			href: 'http://www.bu.edu/commencement/2009/main.html',
			tickets: false};
		
		events[15] = {
			name: 'commencement',
			description: '<h4>All-University Commencement Exercises</h4><div class="date">Sunday May 17, 1:00pm</div>            <img src="images/countdown/nickerson.jpg" width="99" height="80" alt="Nickerson Field" />            <p>Commencement exercises take place on Nickerson Field.</p>',
			expiration: new Date("5/17/2009 2:00:00 PM"),
			href: 'http://www.bu.edu/commencement/2009/main.html',
			tickets: false};
			
					var i=0;
					while (i<16) {
						var now = (events[i].expiration - new Date());
						if (now>0) {break;}
						i++;
					}
					if(id==null) {var id = Math.floor(Math.random()*(16-i))+i;}
						if (i==16) {
							var insert = '<h3>Class of 2009 Commencement</h3><h4>Coverage from All Angles</h4><ul><span class="link"><li><a href="http://www.bu.edu/commencement/2009/webcast.html" target="_blank" onclick="pageTracker._trackPageview(\'external/webcast\');">Commencement Webcast</a></li><li><a href="http://www.bu.edu/photo/commencement/" target="_blank" onclick="pageTracker._trackPageview(\'external/photos\');">Commencement Photo Gallery</a></li><li><a href="http://www.flickr.com/photos/saobu" target="_blank" onclick="pageTracker._trackPageview(\'external/sao_photos\');">SAO Event Photos</a></li><li><a href="http://www.bu.edu/today/commencement/2009" target="_blank" onclick="pageTracker._trackPageview(\'external/bu_today\');">BU Today Coverage</a></li></span></ul><h3>Congratulations Class of 2009!</h3>';

						$(document).ready(function () {
							$('#l-arrow').remove();
							$('#right').width($('#inner').width());
							$('#r-arrow').remove();
							$('#inner').html(insert);
							$('#left').height('115px');
							$('#left h3').text('Class Gift Results');
							$('#left #number').after('<h4>Thank you for your support!</h4>');
							$('#left p').remove();
							$('#left span.link').before("It's not too late to contribute.  ");
							$('#left span.link').text("Make a gift today »");
						});
					} else {			
						var selected = events[id];
						var insert = '<a href="'+selected['href']+'" target="_blank" onclick="pageTracker._trackPageview(\'external/'+selected['name']+'\');"><h3>Upcoming Senior Events</h3>'+selected.description+'<span class="link">Details ';
						if (selected.tickets) { insert+='and tickets '; }
						insert+='&raquo;</span></a>';
						var l_arrow=0;
						var r_arrow=0;
						if (id==i) {	l_arrow=15;}
						else {	l_arrow=id-1;}
						if (id==15) {	r_arrow=i;}
						else {	r_arrow=id+1;}
						$(document).ready(function () {
							$('#inner').html(insert);
							$('#l-arrow')[0].onclick = function(){ pageTracker._trackPageview('/event/'+l_arrow);fetch_event(l_arrow); };
							$('#r-arrow')[0].onclick = function(){ pageTracker._trackPageview('/event/'+r_arrow);fetch_event(r_arrow); };
						});
					}
}

		  