$(document).ready(function() { 
	/********************************************************************************/
	//Hide our go button if JS is enabled.
    $("form#contextSelect input:submit").hide();
    
    //Post back the form when one of it's elements changes.
    $("form#contextSelect select").change(
		function() {
			$("form#contextSelect").submit();
		}
    );
    /********************************************************************************/
    
	/********************************************************************************/
    //Toggle the tab state of the departments.
    $("div#dlrDepartments_Menu > div.displayStackMenuButton > h2 > a").click(
		function () {
			switchTabState($(this), "dlrDepartments");
			return false;
		}
    );
    /********************************************************************************/
});
