I am trying to make a button which shows and hides a div panel. I am developing on leckenby.org for now (though it will be moved in the end), and you can see if you click "Members Area" in the bottom right that the top menu changes because the div is loaded over the top.
basically it just changes the top div (insetwrap) to display or not display, and then changes the class of the button (so I can have a picture for the button which changes between open/close etc).
Now this part works, but I am also trying to set a cookie so it remembers whether it is open or closed when you change page, so that if you change page with member area open, it stays open. This is the bit I am struggling with.
Could anyone look at my code and see why that part is not working?