. "As with all things, you could use something other than the cookie to persist the opened/closed state of the panel if you prefer." . . .