﻿
    $(document).ready(function(){
        setupLangSelect();
    });
    
   function toggle(){
        // check if any containers are displaying .... $(".docscontent").each(function(){ return($(this).css("display") == "block");})
        var displaying = false;
        var e = $(".docscontent").each(
            function(){
                if($(this).css("display") == "block") return displaying = true;
            }
        );
        
        
        if(displaying){
            // loop thru and find it
            $(".docscontent").each(
                function(){
                    if($(this).css("display") == "block"){
                        // add a class so we can find it again when we want to show them
                        // then hide it
                        $(this).addClass("show").hide("slow");
                       
                        return true;
                    }
                }
            );
        }else{
            // only show the container with the class "show"
            $(".show").show("slow").removeClass("show");
        }

    }