﻿
    $(document).ready(function(){
        $(".boxcontent").css("display", "none");
        /*$(".boxtop").css("cursor", "pointer");
        $(".boxtop").click(
        function(){
            if($.browser.msie){
               $("#footer").css("display", "none");
            }
            $(".boxcontent").hide("medium", doFooter);
            if($(this.parentNode).find(".boxcontent").css("display") == "none"){    
                $(this.parentNode).find(".boxcontent").show("medium", doFooter); 
            }
            
        });*/
        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");
        }

        
        
        //var t = ($(".docscontent").css("display") == "block")? $(".docscontent").hide("slow"):$(".docscontent").show("slow");
    }