$(document).ready(function(){
	
	jQuery('.acc_container').hide(); //Hide/close all containers
	// jQuery('.acc_trigger:first').addClass('active').next().show(); //Add "active" class to first trigger, then show/open the immediate next container
	
	jQuery('.acc_trigger').click(function(){
		jQuery(this).toggleClass('active').next().slideUp(); //Add .acc_trigger class to clicked trigger and slide down the immediate next container
		
		return false; //Prevent the browser jump to the link anchor
	});
	
	//On Click
	jQuery('.acc_trigger').click(function(){
		if( jQuery(this).next().is(':hidden') ) { //If immediate next container is closed...
		
			jQuery('.acc_trigger').removeClass('active').next().slideUp(); //Remove all .acc_trigger classes and slide up the immediate next container
			jQuery(this).toggleClass('active').next().slideDown(); //Add .acc_trigger class to clicked trigger and slide down the immediate next container
			
		}
		return false; //Prevent the browser jump to the link anchor
	});
	
});
