$(document).ready(

    function ()
    {
        $("li.moreContent:not(.active)").children("div.subContent").hide();
        
        $("li.moreContent").click(
            function ()
            {   
                if ($(this).children("div.subContent").is(":hidden"))
                {
                    $("div.subContent").hide();
                    $("li.moreContent").removeClass("active");
    
                    $(this).addClass("active");
                    $(this).children("div.subContent").show();
                }
                else
                {
                    $("div.subContent").hide();
                }
            }
        );
    }
    
);
