/*$(document).ready(function(){
	//Hide (Collapse) the toggle containers on load
	if($(".toggle_container")){	
		$(".toggle_container").hide(); 
	
		//Switch the "Open" and "Close" state per click
		$("h2.trigger").toggle(function(){
			$(this).addClass("active");
			}, function () {
			$(this).removeClass("active");
		});
	
		//Slide up and down on click
		$("h2.trigger").click(function(){
			$(this).next(".toggle_container").slideToggle("slow");
		});
	}
});
*/


$(document).ready(function(){
	
	
	if($(".toggle_container").length > 0){	
		$(".trigger").addClass("active");
		clicked04 = 0;

		//Switch the "Open" and "Close" state per click
		$(".trigger").toggle(function(){
			$(this).removeClass("active");
			clicked04 = 1;
			}, function () {
			clicked04 = 0;
			$(this).addClass("active");
		});
	
		//Slide up and down on click
		$(".trigger").click(function(){
			if(clicked04 == 1)
			{
				$(".toggle_container").animate({marginLeft:"-262px"}, 600);
			}
			else
			{
				$(".toggle_container").animate({marginLeft:"0"}, 600);
			}
		});
	}

});



