If you want to do it manually, you can add a layer (called B) over the
layer you want to hide (called A). Create also a CSS property similar
to:
.blackBackground
{
background-color:black;
filter: alpha(opacity=70);
opacity:0.7;
}
Then, when the layer A should be hidden, add the property
blackBackground to the layer B
I use this and it works. I use all float panels so I can control the
exact position of each one but I'm sure it works with any kind of
panel.