Closing tabs and moving interface interface

before i start** HERE **is the design i am working with,

What i want to do is when you click on a menu item i want to close the tabs that are allready open and move the interface across the screen to a different position and than open certain tabs (sections) at the new position.

What i want to know is is there a way of finding out which tabs are open and need to be closed and closing them and which are allready closed and bypassing them and than moving the interface to a different position.

If there is a way of doing this could anyone point me in the right direction of where to go to learn how?

I hope i am making some sense i am prettty new to flash and this is one of my first big adventures with flash.

any help would be greatly appreciated.

ancora