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