includes/clientside/static/faders.js
changeset 539 1beddd693f2d
parent 537 547b7ba6d535
child 541 acb7e23b6ffa
--- a/includes/clientside/static/faders.js	Mon Apr 14 22:02:32 2008 -0400
+++ b/includes/clientside/static/faders.js	Mon Apr 21 19:37:31 2008 -0400
@@ -6,12 +6,15 @@
  * @param int When specified, represents the numeric opacity value to set the fade layer to. 1-100.
  */
 
+var darkener_index = 0;
+
 function darken(nofade, opacVal)
 {
   if(IE)
     nofade = true;
   if ( !opacVal )
     opacVal = 70;
+  darkener_index++;
   if(document.getElementById('specialLayer_darkener'))
   {
     if(nofade)
@@ -86,6 +89,9 @@
 {
   if(IE)
     nofade = true;
+  darkener_index -= 1;
+  if ( darkener_index > 0 )
+    return false;
   if(document.getElementById('specialLayer_darkener'))
   {
     if(nofade)