Index: js/lightbox.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/lightbox2/js/lightbox.js,v
retrieving revision 1.5.2.6.4.13
retrieving revision 1.5.2.6.4.14
diff -u -r1.5.2.6.4.13 -r1.5.2.6.4.14
--- js/lightbox.js 19 Dec 2007 15:26:02 -0000 1.5.2.6.4.13
+++ js/lightbox.js 15 Jan 2008 13:12:36 -0000 1.5.2.6.4.14
@@ -322,6 +322,7 @@
     var arrayPageSize = Lightbox.getPageSize();
     $("#overlay").hide().css({
       width: '100%',
+      zIndex: '1090',
       height: arrayPageSize[1] + 'px',
       opacity : Lightbox.overlayOpacity
     }).fadeIn();
@@ -366,6 +367,7 @@
     var lightboxTop = arrayPageScroll[1] + (arrayPageSize[3] / 10);
     var lightboxLeft = arrayPageScroll[0];
     $('#lightbox').css({
+      zIndex: '1500',
       top: lightboxTop + 'px',
       left: lightboxLeft + 'px'
     }).show();
@@ -389,7 +391,7 @@
       Lightbox.activeImage = imageNum; // update global var

       // hide elements during transition
-      $('#loading').show();
+      $('#loading').css({zIndex: '1500'}).show();
       $('#lightboxImage').hide();
       $('#hoverNav').hide();
       $('#prevLink').hide();
@@ -428,7 +430,7 @@
           $('#bottomNavZoom').hide();
           if ((orig.w >= targ.w || orig.h >= targ.h) && orig.h && orig.w) {
             ratio = ((targ.w / orig.w) < (targ.h / orig.h)) ? targ.w / orig.w : targ.h / orig.h;
-            $('#bottomNavZoom').show();
+            $('#bottomNavZoom').css({zIndex: '1500'}).show();
           }
           var new_width  = Math.floor(orig.w * ratio);
           var new_height = Math.floor(orig.h * ratio);
@@ -495,10 +497,10 @@
   showImage: function() {
     $('#loading').hide();
     if($.browser.safari) {
-      $('#lightboxImage').show();
+      $('#lightboxImage').css({zIndex: '1500'}).show();
     }
     else {
-      $('#lightboxImage').fadeIn(Lightbox.fadeInSpeed);
+      $('#lightboxImage').css({zIndex: '1500'}).fadeIn(Lightbox.fadeInSpeed);
     }
     Lightbox.updateDetails();
     this.preloadNeighborImages();
@@ -513,7 +515,7 @@

     // if caption is not null
     if (Lightbox.imageArray[Lightbox.activeImage][1]) {
-      $('#caption').html(Lightbox.imageArray[Lightbox.activeImage][1]).show();
+      $('#caption').html(Lightbox.imageArray[Lightbox.activeImage][1]).css({zIndex: '1500'}).show();
     }
     else {
       $('#caption').hide();
@@ -523,7 +525,7 @@
     if (Lightbox.imageArray.length > 1) {
       var settings = Drupal.settings.lightbox2;
       var numberDisplay = settings.image_count.replace(/\!current/, eval(Lightbox.activeImage + 1)).replace(/\!total/, Lightbox.imageArray.length);
-      $('#numberDisplay').html(numberDisplay).show();
+      $('#numberDisplay').html(numberDisplay).css({zIndex: '1500'}).show();
     }

     $("#imageDataContainer").hide().slideDown(Lightbox.slideDownSpeed);
@@ -536,11 +538,11 @@
   // Display appropriate previous and next hover navigation.
   updateNav: function() {

-    $('#hoverNav').show();
+    $('#hoverNav').css({zIndex: '1500'}).show();

     // if not first image in set, display prev image button
     if (Lightbox.activeImage !== 0) {
-      $('#prevLink').show().click(function() {
+      $('#prevLink').css({zIndex: '1500'}).show().click(function() {
         Lightbox.changeImage(Lightbox.activeImage - 1); return false;
       });
     }
@@ -551,7 +553,7 @@

     // if not last image in set, display next image button
     if (Lightbox.activeImage != (Lightbox.imageArray.length - 1)) {
-      $('#nextLink').show().click(function() {
+      $('#nextLink').css({zIndex: '1500'}).show().click(function() {
         Lightbox.changeImage(Lightbox.activeImage + 1); return false;
       });
     }
@@ -627,7 +629,7 @@
     $('#lightbox').hide();
     $("#overlay").fadeOut();
     // replaces calls to showSelectBoxes() and showFlash() in original lightbox2
-    $("select, object, embed").show();
+    $("select, object, embed").css({zIndex: '1500'}).show();
   },
