$(document).ready(function() {
	
	$('div.jobDept ul:not(:first)').hide();
	$('div.jobDept:first h4').addClass('expanded');
	
	$('div.jobDept h4').css("cursor", "pointer").live("click", function(e, blnAnimate) {
		
		if (blnAnimate == undefined) { blnAnimate = true; }
		
		var objList = $(this).parent().find('ul');
		
		if (objList.css("display") == "none") {
			if (blnAnimate) {
				$('div.jobDept ul').slideUp().parent().find('h4.expanded').removeClass('expanded');
				objList.slideDown();
			} else {
				$('div.jobDept ul').hide().parent().find('h4.expanded').removeClass('expanded');
				objList.show();
			}
			$(this).addClass('expanded');
		} else {
			$(this).removeClass('expanded');
			if (blnAnimate) { objList.slideUp(); }
			else { objList.hide(); }
		}//if
	});
	
	$('div.jobDept ul:not(:first) li.current').parent().parent().find('h4').trigger('click', [false]);
	
});

