diff --git CHANGELOG.txt CHANGELOG.txt
index 6a1ebfe..851df8c 100644
--- CHANGELOG.txt
+++ CHANGELOG.txt
@@ -2,6 +2,11 @@
 Shadowbox x.x-x.x, xxxx-xx-xx
 -----------------------------
 
+Shadowbox 7.x-3.0-beta4, 2011-03-11
+-----------------------------------
+#1089184 by manfer: Fixed init moved to header.
+
+
 Shadowbox 7.x-3.0-beta3, 2011-03-03
 -----------------------------------
 #949392 by xatoo_,tunic: Fixed make file.
diff --git shadowbox.module shadowbox.module
index a3aeae2..5438a30 100644
--- shadowbox.module
+++ shadowbox.module
@@ -45,7 +45,7 @@ function shadowbox_library() {
       ),
       array(
         'type' => 'inline',
-        'scope' => 'footer',
+        'scope' => 'header',
         'data' => '
           Shadowbox.path = "' . base_path() . $shadowbox_location . '/";
 	      Shadowbox.init(Drupal.settings.shadowbox);
