$(document).ready(function(){
    $(".nav li .active").next("ul").show();
    $(".nav li .active").toggle(
        function(){
            $(this).next("ul").hide("slow");
        },
        function(){
            $(this).next("ul").show("slow");
        })
})

