How to build a JS toggler that either opens or closes based on the click
I have the following: 

http://jsfiddle.net/y2aFF/ 


This will open box1 or open box 2 if you click back and forth. What it doesn't do is if box 1 is open and you click box 1, I want it to close box 1. Same goes with box 2. Any elegant way to do this with js/jQuery?

Thanks
How to build a JS toggler that either opens or closes based on the click
===

I have the following: 

http://jsfiddle.net/y2aFF/ 


This will open box1 or open box 2 if you click back and forth. What it doesn't do is if box 1 is open and you click box 1, I want it to close box 1. Same goes with box 2. Any elegant way to do this with js/jQuery?

Thanks