HELP! SwapDepths

Okay, can someone please help me?!!! Above is a link to the code and the file that I’m working with (pay no attention to the graphics, I am just trying to get this working).

Okay, what I want to happen is when you click on a folder, it comes to the front (aka SwapDepths)…I’ve got that part down. But what I’m wanting to happen, is you’ll notice when you click on one of the folders, it turns so it’s not tilted. What I want to do is when you click on the other folder, the folder that went from tilted to straight, goes back to being tilted. Does that make any sense? If not, let me know and I’ll try to explain it better.