/************* Awards year hiding

Solves an irritating expressionengine deficiency. System outputs all years for awards, then hides empty years.

*************/

$(function() {	
	for (var y = 2020; y > 1970; y--) {
		var foo = ".year_";
		var year = "<h1>" + y + "</h1>"
		foo += y;
		$(foo).wrapAll('<div class="bg" />');
		$(foo).first().before(year);	
		$(foo).last().css( 'margin-bottom', '0px');
	}
});