includes/clientside/static/faders.js
changeset 541 acb7e23b6ffa
parent 539 1beddd693f2d
child 542 5841df0ab575
--- a/includes/clientside/static/faders.js	Sat Apr 26 17:25:28 2008 -0400
+++ b/includes/clientside/static/faders.js	Sun May 04 21:57:48 2008 -0400
@@ -153,7 +153,7 @@
     document.getElementById('specialLayer_darkener').style.zIndex = '5';
   }
   var master_div = document.createElement('div');
-  master_div.style.zIndex = '6';
+  master_div.style.zIndex = String(getHighestZ() + 5);
   var mydiv = document.createElement('div');
   mydiv.style.height = '200px';
   w = getWidth();
@@ -431,7 +431,16 @@
 
 function miniPrompt(call_on_create)
 {
-  darken(false, 40);
+  if ( document.getElementById('specialLayer_darkener') )
+  {
+    var opac = parseFloat(document.getElementById('specialLayer_darkener'));
+    opac = opac * 100;
+    darken(false, opac);
+  }
+  else
+  {
+    darken(false, 40);
+  }
   
   var wrapper = document.createElement('div');
   wrapper.className = 'miniprompt';