if (!com) var com = {};
if (!com.taxsaleprograms) com.taxsaleprograms = {};

jQuery.extend(jQuery.expr[':'], {
    like : "jQuery(a).text().toUpperCase().indexOf(m[3].toUpperCase())>=0"
}); 

com.taxsaleprograms.page = {

	ready: function() {

		$(".year-group").each(function(){
			var heading = $(this).find("h5");
			var wrapper = $('<div class="wrapper"/>');

			heading.siblings('*').wrapAll(wrapper);
		});

		$(".year-group h5").toggle(function(){
			$(this).text($(this).text().replace(/ \(.+/, ''));
			$(this).next(".wrapper").slideDown();
		},function(){
			$(this).next(".wrapper").slideUp();
		}).css("cursor", "pointer").each(function(){
			$(this).text($(this).text() + " (Click to Show)");
		});

		$(".year-group .wrapper").hide();

	}

};
$(document).ready(function(){com.taxsaleprograms.page.ready();});
