Reply to comment
Creating a block that can be remotely opened and closed is a relatively easy task, but what happens if you direct someone to a new page and are targeting an anchor on that page within the hidden element.
For example: www.nimpkish.com/web-design#drupal
If the anchor #drupal was within a hidden page element, the user wouldn't see it. They would go to the page, but wouldn't see the anchor.
I have created a simple tutorial to show you how to solve this.