code: function serializeNavState()
     {
        var checkboxMap = {};
  
        $('.navigation .nav-accordion-menu').find('input[type="checkbox"]').each(function()
        {
           checkboxMap[$(this).attr('name')] = $(this).is(':checked');
        });
  
        var navID = $('.navigation .nav-accordion-menu').data('nav-id');
  
        if (sessionStorage) { sessionStorage.setItem(navID + '-accordion-state', JSON.stringify(checkboxMap))}
     }
docs: Serializes to session storage the navigation menu accordion state.