$(
    function()
    {
        $('#menu_left .active').show();
        $('#menu_left a').click(
            function()
            {
                if ($(this).parent('div').find('li').length)
                {
                    var is_active = $(this).parent('div').find('ul').hasClass('active');
                    $('#menu_left .active').hide('slow');
                    $('#menu_left .active').toggleClass("active");
                    if (!is_active)
                    {
                        $(this).parent('div').find('ul').show('slow');
                        $(this).parent('div').find('ul').toggleClass("active");
                    }
                    return false;
                }
                return true;
            }
        );
    }
);
