includes/clientside/static/fadefilter.js
changeset 694 43367c66d869
parent 677 2a263b598a2b
child 869 58bc29c14a4d
--- a/includes/clientside/static/fadefilter.js	Wed Aug 13 08:56:18 2008 -0400
+++ b/includes/clientside/static/fadefilter.js	Wed Aug 13 08:57:45 2008 -0400
@@ -16,6 +16,7 @@
   darkener_index[layerid] = ( typeof(darkener_index[layerid]) == 'number' ) ? darkener_index[layerid] + 1 : 1;
   if(document.getElementById(layerid))
   {
+    document.getElementById(layerid).style.zIndex = getHighestZ() + 1;
     if(nofade)
     {
       changeOpac(opacVal, layerid);
@@ -60,7 +61,7 @@
     thediv.style.backgroundColor = '#000000';
     thediv.style.width =  '100%';
     thediv.style.height = '100%';
-    thediv.style.zIndex = getHighestZ() + 5;
+    thediv.style.zIndex = getHighestZ() + 1;
     thediv.id = layerid;
     thediv.myOpacVal = opacVal;
     if(nofade)