Refactored so most of the code is in a single closure. Reduced the global variable count.
Refactored so most of the code is in a single closure. Reduced the global variable count.

zippy1981/collapsiblePanel