$(document).ready(function(){
	//hide the all of the element with class expander_body
	$(".expander_body").hide();
	//toggle the componenet with class expander_body
	$(".expander_head").click(function(){
		$(this).next(".expander_body").slideToggle(250);
		if($(this).find(".expander_direction").text() == 'expand'){
			$(this).find(".expander_direction").html('collapse');
			$(this).removeClass("expander_rounded");
		}else{
			$(this).find(".expander_direction").html('expand');
			$(this).addClass("expander_rounded");
		}
	});
	$(".expander_toggle_all").toggle(
		function(){
			$(".expander_body").slideDown(250);
			$(".expander_toggle_all_direction").html('collapse');
			$(".expander_direction").html('collapse');
			$(".expander_head").removeClass("expander_rounded");
		}, 
		function(){
			$(".expander_body").slideUp(250);
			$(".expander_toggle_all_direction").html('expand');
			$(".expander_direction").html('expand');
			$(".expander_head").addClass("expander_rounded");
		}
	);
});
