Index: brilliant_gallery.info
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/brilliant_gallery/brilliant_gallery.info,v
retrieving revision 1.6.2.2.4.2
diff -u -p -r1.6.2.2.4.2 brilliant_gallery.info
--- brilliant_gallery.info	15 Jan 2009 21:59:11 -0000	1.6.2.2.4.2
+++ brilliant_gallery.info	26 Sep 2009 21:54:12 -0000
@@ -1,7 +1,7 @@
 ; $Id: brilliant_gallery.info,v 1.6.2.2.4.2 2009/01/15 21:59:11 tjfulopp Exp $
 name = Brilliant Gallery
 description = Highly customizable Drupal module producing multiple table galleries of quality-scaled images from either a pre-defined local folder, or from any public Picasa gallery.
-dependencies[] = lightbox2
+;dependencies[] = lightbox2
 ;dependencies[] = colorpicker
 package = Media
 core = 6.x
\ No newline at end of file
Index: brilliant_gallery.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/brilliant_gallery/brilliant_gallery.module,v
retrieving revision 1.49.2.6.2.8.2.11
diff -u -p -r1.49.2.6.2.8.2.11 brilliant_gallery.module
--- brilliant_gallery.module	22 Sep 2009 21:00:50 -0000	1.49.2.6.2.8.2.11
+++ brilliant_gallery.module	26 Sep 2009 21:54:13 -0000
@@ -220,6 +220,7 @@ function brilliant_gallery_admin() {
       'lightbox' => t('Lightbox'),
       'thickbox' => t('Thickbox'),
       'greybox' => t('Greybox'),
+      'shadowbox' => t('Shadowbox'),
       'none' => t('None'),
     ),
     '#default_value' => variable_get('brilliant_gallery_overbrowser', 'lightbox'),
@@ -439,7 +440,7 @@ HEADER;
           #}
 
           switch ($overbrowser) {
-              
+
             case 'thickbox':
               $displayimage .= ' class="thickbox"';
               $displayimage .= ' rel="img_'. $setname .'"';
@@ -456,7 +457,12 @@ HEADER;
               $displayimage .= ' class="greybox"';
               break;
 
-            default:
+            case 'shadowbox':
+              $displayimage .= ' rel="shadowbox['. $setname .'];player=img"';
+              #$attributes['rel'] = 'lightbox[' . ($node->nid? $node->nid: time()) . ']'; // 'insert' has no $node->nid
+              break;
+
+              default:
               break;
           }
 
@@ -767,6 +773,11 @@ function render_brilliant_gallery($thisf
           $result .= ' class="greybox"';
           break;
 
+        case 'shadowbox':
+          $result .= ' rel="shadowbox['. $setname .'];player=img"';
+          #$attributes['rel'] = 'lightbox[' . ($node->nid? $node->nid: time()) . ']'; // 'insert' has no $node->nid
+          break;
+
         default:
           break;
       }
