More trouble with if statements!

here is my website in question: www.wideeyestudios.com/upload****
ok, there are 3 buttons (the circular ones) the 2nd & 3rd buttons both have dialogues that come up when clicked. i want to set up an if statement or something equivalent that will make the dialogue for one button close when you click another button, so that the 2 dialogues don’t overlap. (you’ll see what i mean by clicking button 2 then button 3). please help me out if u can! :cubs: