Try using the following script and css 
Code:
<script>
function maskIt()
{
var bodObj=document.getElementsByTagName("body")[0];
var maskDiv= document.createElement("div");
maskDiv.className="maskClass";
bodObj.insertBefore(maskDiv,bodObj.childNodes[0]);
}
</script>
Code:
<style>
.maskClass {
z-index:5;
display:none;
position:absolute;
top:0;
left:0;
height:inherit;
-moz-opacity: 0.50;
opacity:.50;
filter: alpha(opacity=50);
background-color:#000000;
}
</style>
copy and paste the above code into the head tag of your html page and then call the maskIt() function.
Bookmarks