﻿$(document).ready(function() {

    $('div.ACMilestonesSectionClosedArrow').click(function() {

        $('div.ACMilestonesSectionClosedArrow').hide();
        $('div.ACMilestonesSectionOpenArrow').show();
        $('div.ACMilestonesSectionClosedLabel').hide();
        $('div.ACMilestonesSectionOpenLabel').show();
        $('div.ACMilestonesSectionList').slideDown("slow");

        $('div.ACOtherPublicationsSectionClosedArrow').show();
        $('div.ACOtherPublicationsSectionOpenArrow').hide();
        $('div.ACOtherPublicationsSectionClosedLabel').show();
        $('div.ACOtherPublicationsSectionOpenLabel').hide();
        $('div.ACOtherPublicationsSectionList').slideUp("slow");

    });

    $('div.ACMilestonesSectionClosedLabel').click(function() {
        
        $('div.ACMilestonesSectionClosedArrow').hide();
        $('div.ACMilestonesSectionOpenArrow').show();
        $('div.ACMilestonesSectionClosedLabel').hide();
        $('div.ACMilestonesSectionOpenLabel').show();
        $('div.ACMilestonesSectionList').slideDown("slow");

        $('div.ACOtherPublicationsSectionClosedArrow').show();
        $('div.ACOtherPublicationsSectionOpenArrow').hide();
        $('div.ACOtherPublicationsSectionClosedLabel').show();
        $('div.ACOtherPublicationsSectionOpenLabel').hide();
        $('div.ACOtherPublicationsSectionList').slideUp("slow");
    });

    $('div.ACMilestonesSectionOpenArrow').click(function() {

        $('div.ACMilestonesSectionClosedArrow').show();
        $('div.ACMilestonesSectionOpenArrow').hide();
        $('div.ACMilestonesSectionClosedLabel').show();
        $('div.ACMilestonesSectionOpenLabel').hide();
        $('div.ACMilestonesSectionList').slideUp("slow");

        $('div.ACOtherPublicationsSectionClosedArrow').show();
        $('div.ACOtherPublicationsSectionOpenArrow').hide();
        $('div.ACOtherPublicationsSectionClosedLabel').show();
        $('div.ACOtherPublicationsSectionOpenLabel').hide();
        $('div.ACOtherPublicationsSectionList').slideUp("slow");

    });

    $('div.ACMilestonesSectionOpenLabel').click(function() {
        
        $('div.ACMilestonesSectionClosedArrow').show();
        $('div.ACMilestonesSectionOpenArrow').hide();
        $('div.ACMilestonesSectionClosedLabel').show();
        $('div.ACMilestonesSectionOpenLabel').hide();
        $('div.ACMilestonesSectionList').slideUp("slow");

        $('div.ACOtherPublicationsSectionClosedArrow').show();
        $('div.ACOtherPublicationsSectionOpenArrow').hide();
        $('div.ACOtherPublicationsSectionClosedLabel').show();
        $('div.ACOtherPublicationsSectionOpenLabel').hide();
        $('div.ACOtherPublicationsSectionList').slideUp("slow");

    });

    $('div.ACOtherPublicationsSectionClosedArrow').click(function() {

        $('div.ACMilestonesSectionClosedArrow').show();
        $('div.ACMilestonesSectionOpenArrow').hide();
        $('div.ACMilestonesSectionClosedLabel').show();
        $('div.ACMilestonesSectionOpenLabel').hide();
        $('div.ACMilestonesSectionList').slideUp("slow");

        $('div.ACOtherPublicationsSectionClosedArrow').hide();
        $('div.ACOtherPublicationsSectionOpenArrow').show();
        $('div.ACOtherPublicationsSectionClosedLabel').hide();
        $('div.ACOtherPublicationsSectionOpenLabel').show();
        $('div.ACOtherPublicationsSectionList').slideDown("slow");
    });

    $('div.ACOtherPublicationsSectionClosedLabel').click(function() {

        $('div.ACMilestonesSectionClosedArrow').show();
        $('div.ACMilestonesSectionOpenArrow').hide();
        $('div.ACMilestonesSectionClosedLabel').show();
        $('div.ACMilestonesSectionOpenLabel').hide();
        $('div.ACMilestonesSectionList').slideUp("slow");

        $('div.ACOtherPublicationsSectionClosedArrow').hide();
        $('div.ACOtherPublicationsSectionOpenArrow').show();
        $('div.ACOtherPublicationsSectionClosedLabel').hide();
        $('div.ACOtherPublicationsSectionOpenLabel').show();
        $('div.ACOtherPublicationsSectionList').slideDown("slow");
    });

    $('div.ACOtherPublicationsSectionOpenArrow').click(function() {

        $('div.ACMilestonesSectionClosedArrow').show();
        $('div.ACMilestonesSectionOpenArrow').hide();
        $('div.ACMilestonesSectionClosedLabel').show();
        $('div.ACMilestonesSectionOpenLabel').hide();
        $('div.ACMilestonesSectionList').slideUp("slow");

        $('div.ACOtherPublicationsSectionClosedArrow').show();
        $('div.ACOtherPublicationsSectionOpenArrow').hide();
        $('div.ACOtherPublicationsSectionClosedLabel').show();
        $('div.ACOtherPublicationsSectionOpenLabel').hide();
        $('div.ACOtherPublicationsSectionList').slideUp("slow");
    });

    $('div.ACOtherPublicationsSectionOpenLabel').click(function() {

        $('div.ACMilestonesSectionClosedArrow').show();
        $('div.ACMilestonesSectionOpenArrow').hide();
        $('div.ACMilestonesSectionClosedLabel').show();
        $('div.ACMilestonesSectionOpenLabel').hide();
        $('div.ACMilestonesSectionList').slideUp("slow");

        $('div.ACOtherPublicationsSectionClosedArrow').show();
        $('div.ACOtherPublicationsSectionOpenArrow').hide();
        $('div.ACOtherPublicationsSectionClosedLabel').show();
        $('div.ACOtherPublicationsSectionOpenLabel').hide();
        $('div.ACOtherPublicationsSectionList').slideUp("slow");
    });


});
