var news_and_awards = {};

Object.extend(news_and_awards, {
	
	show_extra_text : function (id) {
		$('extra-text-'+id).show()
		$('show-extra-text-'+id).hide()
	},
	
	hide_extra_text : function (id) {
		$('extra-text-'+id).hide()
		$('show-extra-text-'+id).show()
	},
	
	filter_by_year : function(){
		$('empty-option').update('-- Show All --')
		$$('.newhall-archive-object').each(
			function (f){
				if ($F('select-by-year') == ""){f.show()}
				else if (f.readAttribute('date').substr(0,4) == $F('select-by-year')) {f.show()}
				else {f.hide()}
			}
		)
	}
	
});