Index: jlightbox.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/jlightbox/jlightbox.module,v
retrieving revision 1.9
diff -u -p -r1.9 jlightbox.module
--- jlightbox.module	15 Oct 2008 08:14:30 -0000	1.9
+++ jlightbox.module	3 May 2009 04:30:56 -0000
@@ -28,7 +28,7 @@ function jlightbox_add() {
   // Theme-specific stylesheet override support.
   // #178364: path_to_theme() invokes init_theme(), thus it must not be invoked
   // in block settings to allow initializing of the selected theme.
-  if (strpos($_GET['q'], 'admin/build/block') === FALSE) {
+  if (strpos($_GET['q'], 'admin/build/block') === FALSE && !variable_get('site_offline', 0)) {
     $css = path_to_theme() .'/jlightbox.css';
     if (!file_exists($css)) {
       $css = $path .'/css/jlightbox.css';