Original: To reverse the default behavior, so that the details are initially hidden, use class = "NavFrame collapsed" (instead of class = "NavFrame") in the outer div element.
Simplified: To reverse the default behavior, so that the details are initially hidden, the NavContent element can be declared with style = "display: none;".