$(document).ready(function(){
//Hide (Collapse) the toggle containers on load
clicked1 = 0;
clicked2 = 0;
clicked3 = 0;

if($(".toggle_container1")){
//$(".toggle_container1").animate({width: 'hide'});

//Switch the "Open" and "Close" state per click
$("h2.trigger1").toggle(function(){
$(this).addClass("active");
}, function () {
$(this).removeClass("active");
});

if($(".toggle_container2")){
//$(".toggle_container2").animate({width: 'hide'});

//Switch the "Open" and "Close" state per click
$("h2.trigger2").toggle(function(){
$(this).addClass("active");
}, function () {
$(this).removeClass("active");
});

if($(".toggle_container3")){
//$(".toggle_container3").animate({width: 'hide'});
//if(ie6==false){
$(".toggle_container3").animate({marginLeft:"50px"}, 500);
//}
//Switch the "Open" and "Close" state per click
$("h2.trigger3").toggle(function(){
$(this).addClass("active");
}, function () {
$(this).removeClass("active");
});



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

}
});
}

//Slide up and down on click
$("h2.trigger2").click(function(){
if (clicked2 == 0)
{
clicked2 = 1;
$(this).next(".toggle_container2").animate({width: 'hide'});

}
else
{
clicked2 = 0;
$(this).next(".toggle_container2").animate({width: 'show'});

}
});
}

//Slide up and down on click
$("h2.trigger3").click(function(){
								
if(ie6==false){
if (clicked3 == 0)
{
clicked3 = 1;
$(".toggle_container3").animate({marginLeft:"450px"}, 500);
//$(this).next(".toggle_container3").animate({width: 'hide'});

}
else
{
clicked3 = 0;
$(".toggle_container3").animate({marginLeft:"50px"}, 500);
//$(this).next(".toggle_container3").animate({width: 'show'});

}
}
});


}

});