/*********************************************
 * Function: 	selectIndustry()
 * Desc: 		changes the industry type to display, triggering 
 *				the fadeIn/fadeOut sequence
 *********************************************/
function selectYear(yr)
{
	$("div#pressReleaseCntnr").load("pr-by-year.php?yr="+yr);
}


/*********************************************
 * Function: 	jQuery.ready()  (shortened to '$()')
 * Desc: 		triggered on page load finish
 *********************************************/
$(function(){
	// assign combobox class to industries dropdown
	$('#prYears').combobox({
		comboboxContainerClass: "comboboxContainer",
		comboboxValueContainerClass: "comboboxValueContainer",
		comboboxValueContentClass: "comboboxValueContent",
		comboboxDropDownClass: "comboboxDropDownContainer",
		comboboxDropDownButtonClass: "comboboxDropDownButton",
		comboboxDropDownItemClass: "comboboxItem",
		comboboxDropDownItemHoverClass: "comboboxItemHover",
		comboboxDropDownGroupItemHeaderClass: "comboboxGroupItemHeader",
		comboboxDropDownGroupItemContainerClass: "comboboxGroupItemContainer",
		animationType: "slide",
		width: "75px"
	});
	
	// assign onchange event for industries dropdown
	$("#prYears").combobox.onChange = function(){
		selectYear($("#prYears option:selected").val());
	};

});


