/*
 * Function for the year dropdown in the nav area.  Add an event listener to the submit action, extract the
 * correct year value from the dropdown, and then redirect the user appropriately.
 * 
 */
document.observe('dom:loaded', function(event) {
	$('team-tickets-form').observe('submit', function(event){
		Event.stop(event);
		//console.log("SUBMIT EVENT FIRED");
		var elValue = $('selectteams').options[$('selectteams').selectedIndex].value;
		if (elValue == 'null') return;
		//console.log("el = " + el);
		//console.log("elValue = " + elValue);
		window.location.href = elValue;

	});	
});