View demo: http://akenn.org/#/blog/post/44
The function inside the link's onclick method includes the name of the div you want to show or hide (in this case myId1). The text inside the link includes the text that will be shown when a div is hidden or shown. The first set of quotes contains the text that will be displayed when the div's state is "display=none". The second set of quotes contains text for when the div is currently visible. The last set contains the initial state of the div (either "visible" or "hidden").