$(document).ready(function(){
//Hide (Collapse) the toggle containers on load	
	clicked01 = 0;
	clicked02 = 0;
	
	if($(".toggle_container01")){
		$(".toggle_container01").animate({width: 'hide'});
	
		//Switch the "Open" and "Close" state per click
		$("h2.trigger01").toggle(function(){
			$(this).addClass("active");
		}, function () {
			$(this).removeClass("active");
		});
		
	//Slide up and down on click
	$("h2.trigger01").click(function(){
		if (clicked01 == 0)
		{
		clicked01 = 1;
		$(this).next(".toggle_container01").animate({width: 'show'});
		
		}
		else
		{
		clicked01 = 0;
		$(this).next(".toggle_container01").animate({width: 'hide'});
		
		}
		});
	}	
	
	if($(".toggle_container02")){
		clicked02 = 1;
		//$(".toggle_container2").animate({width: 'hide'});
	
		//Switch the "Open" and "Close" state per click
		$("h2.trigger02").toggle(function(){
			$(this).removeClass("active");
		}, function () {
			$(this).addClass("active");
		});

	
	//Slide up and down on click
	$("h2.trigger02").click(function(){
		if (clicked02 == 0)
		{
		clicked02 = 1;
		$(this).next(".toggle_container02").animate({width: 'show'});
		
		}
		else
		{
		clicked02 = 0;
		$(this).next(".toggle_container02").animate({width: 'hide'});
		
		}
		});
	}
	
});




