GUI "layers"?

Im making the interface of my game but i have some problems.
Each button has a script. We have 4 buttons (4scripts on the MainCamera). Well each button opens a box but i have problems here because the box appears behind some buttons. I want to make like a depth but i have tried with GUI.Depth but i cant make it works

this is the concept of the menus:

Thanks

GUI.depth works fine, but it needs each OnGUI function that you want layered to be in a separate script.

–Eric

If you only have one ongui, then the depth ordering is defined by the code execution order