If, else, if else, major confusion

im new to the kirupa forums and come here from the adobe forums which i havnt gotten a single reply from in over a year of needing help here and there on miscelaneous stuff so hopefully someone here can help my because im desperate

so basicaly whats going on is i have four squares which expand to windows(all individual movie clips) that serve as backgrounds to external swfs. Each window has a respective button to open it. getting a button to play a movie clip is simple but heres where the problem is: only one of these windows can be open at a time so what im trying to achieve is when ‘services_btn’ is clicked, i need which ever window is currently open (or none if no buttons have been clicked) to close simultaneously as the ‘services’ window opens. (my windows are movie clips that are ‘closed’ at frame one and then when played go to frame 25 (open) where theres a stop(); code and then 26-50 basicaly reverses it. ive been trying different variations of if commands in side onRelease functions and onRelease functions inside if commands with no luck. i dont need verbatim code just an idea on how to figure this out. thanks- Lac3rta