themes/oxygen/header.tpl
changeset 58 8f532d8ab5f5
parent 57 b354deeaa4c4
child 71 21770a1a5213
--- a/themes/oxygen/header.tpl	Fri Jul 06 11:45:50 2007 -0400
+++ b/themes/oxygen/header.tpl	Tue Jul 10 00:40:52 2007 -0400
@@ -22,12 +22,18 @@
           elem.style.display = 'block';
           counter.style.display = 'none';
           elem.parentNode.style.width = '156px';
-          createCookie(side+'_sidebar', 'open', 365);
+          if ( !KILL_SWITCH )
+          {
+            createCookie(side+'_sidebar', 'open', 365);
+          }
         } else {
           elem.style.display = 'none';
           counter.style.display = 'block';
           elem.parentNode.style.width = '25px';
-          createCookie(side+'_sidebar', 'collapsed', 365);
+          if ( !KILL_SWITCH )
+          {
+            createCookie(side+'_sidebar', 'collapsed', 365);
+          }
         }
       }
       
@@ -43,16 +49,25 @@
       }
       */
       
-      addOnloadHook(function() {
-          if(typeof readCookie == 'function')
-          {
-            if(readCookie('left_sidebar') =='collapsed') collapseSidebar('left');
-            if(readCookie('right_sidebar')=='collapsed') collapseSidebar('right');
-          }
-        });
+      if ( typeof(KILL_SWITCH) != 'undefined' )
+      {
+        if ( !KILL_SWITCH )
+        {
+          var oxygenSidebarSetup = function() {
+              if(typeof readCookie == 'function')
+              {
+                if(readCookie('left_sidebar') =='collapsed') collapseSidebar('left');
+                if(readCookie('right_sidebar')=='collapsed') collapseSidebar('right');
+              }
+            };
+          addOnloadHook(oxygenSidebarSetup);
+        }
+      }
       
       function ajaxRenameInline()
       {
+        if ( KILL_SWITCH )
+          return false;
         // This trick is _so_ vBulletin...
         elem = document.getElementById('h2PageName');
         if(!elem) return;