// prevents jQuery's "$" from conflicting with any other JS lib
jQuery.noConflict();

// creates a jQuery scope to allow jQuery "$" shorthand without conflicting with other libs
(function($) { 
	
	// $(document).ready() shorthand
	$(function() {
		
		// tabs
		var tabContainers = $('#tab-content > div');
		
		$('#tabs').find('a').click(function(){
			tabContainers.hide().filter(this.hash).show();
			$(this).addClass('current').parent().siblings().children('a').removeClass('current');
			return false;
		}).filter(':first').click();
		
		
		// Executive Team expand/collapse prep
		$('#content .team-module').addClass('enhanced').find('.expand').click(function(){
			$(this).parents('.excerpt').hide().prev().show();
			return false;
		}).end().find('.collapse').click(function(){
			$(this).parents('.full').hide().next().show();
			return false;
		});
		
	});
	
})(jQuery);