$(function() {
	if($.cookie('year') != null) {
		$("li.year:contains('" + $.cookie('year') + "')").parent().find('li:not(.year)').slideDown('fast');
	}
		
	$('.year').click(function() {
		$('ul').find('li:not(.year)').slideUp('fast');
		$(this).closest('ul').find('li:not(.year):hidden').toggle('fast');
		$.cookie('year', $(this).text());
	})
})
