Help with some toggle() logic

Help with some toggle() logic

Hey guys just wondering if you can help me out real quick.

I have some buttons. Each button toggles the display of their assigned div. My question is if a div is already up and they click another button, I want to hide the current div and still show the div they clicked on. I got close to what I needed but it wasn't working. This is the function I use in the onclick for each button
  1. function toggleWindow(who)
    {
        targetWindow = document.getElementById(who.rel);
        $(targetWindow).toggle('drop', {direction:'down'}, 500);
    }



Thanks!