Hi there,
I need to create a page that has a list of all 50 states, and when clicked on each state, a div layer opens up to show information about that state.
I am new to web development, and am running to problems with getting this to work.

I played around with the code listed here: http://www.brenz.net/snippets/open_close_div.asp
Which worked perfectly, but I can't seem to change the code around, so when the state is open, the text changes to "close" and when I click "close" it reverts back to the state.
Any help would be great. Any suggestions on a better way to do this is welcomed as well.
I also thought about putting a little arrow icon next to each state to show an open/close state? But not sure how this would work when I'm dealing with a huge list like I am.

Thanks again,