Drop Down Sub Menu

I am able to get the menus to ease out and ease back in when I click the same button, but I want the original button I clicked to close when I click a different button in the drop down menu. Now, both windows are staying open.

can you supply us with your read-only link?