$(document).ready(function(){
    //hospital homepages
    $("#hosp-slider .video-slide iframe").mouseover(function(){
        $('#hosp-slider').cycle('pause');
    });

    $('#hosp-slider').cycle({
        fx:    'scrollLeft',
        timeout: 10000,
        speed:  1000,
        next:   '#nextBtn',
        prev:   '#prevBtn'
    });

    $("#nextBtn, #prevBtn").click(function() {
        $('#hosp-slider').cycle('pause');
    });


    //Hide (Collapse) the toggle containers on load
    $(".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");
    });
	
    $('.learn-more').click(function() {
        //$('#about-content').next(".toggle_container").slideDown("slow");
        //$('#about-content').addClass("active");
        $('#about-content').click();
    });

    $('.learn-more-country').click(function() {
        $('#about-country').click();
    });

    $('.learn-more-prayer').click(function() {
        $('#how-to-pray').click();
    });
});
