--- /Users/rich/Downloads/simplemenu/simplemenu.module.orig	2008-12-12 05:25:07.000000000 +0000
+++ /Users/rich/Desktop/simplemenu.module	2009-06-11 13:58:34.000000000 +0100
@@ -34,7 +34,8 @@ function simplemenu_enabled() {
     $exclusions = variable_get('simplemenu_exclusions', array());
     $enabled = (user_access('view simplemenu') 
       && (!isset($exclusions[$theme]) || !$exclusions[$theme]) 
-      && _simplemenu_page_visibility());
+      && _simplemenu_page_visibility()
+      && _simplemenu_superuser_active());
   }
   
   return $enabled;  
@@ -45,7 +46,7 @@ function simplemenu_enabled() {
  */
 function simplemenu_init() {
   // do a simple access check here, since theme isn't available to check yet
-  if (user_access('view simplemenu')) {
+  if (user_access('view simplemenu') && simplemenu_enabled()) {
     $path = drupal_get_path('module', 'simplemenu');
     $simplemenu_theme = variable_get('simplemenu_theme', 'original');
     drupal_add_css($path .'/simplemenu.css');
@@ -215,6 +216,13 @@ function simplemenu_admin_settings() {
     '#description' => t("Enter one page per line as Drupal paths. The '*' character is a wildcard. Example paths are %blog for the blog page and %blog-wildcard for every personal blog. %front is the front page.", array('%blog' => 'blog', '%blog-wildcard' => 'blog/*', '%front' => '<front>')),
   );
 
+  $form['default_menu']['advanced']['simplemenu_uid1'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Enable for UID 1'),
+    '#description' => t('Check this option to enable simplemenu for user 1 (superuser). This is useful if you want to use admin_menu for the superuser and simplemenu for others.'),
+    '#default_value' => variable_get('simplemenu_uid1', 1),
+  );
+
   return system_settings_form($form);
 }
 
@@ -366,4 +374,14 @@ function _simplemenu_page_visibility() {
   }
   
   return $page_match;
-}
\ No newline at end of file
+}
+
+function _simplemenu_superuser_active() {
+  global $user;
+  if ($user->uid == 1 && variable_get('simplemenu_uid1', 1) == 0) {
+    return FALSE;
+  }
+  else {
+    return TRUE;
+  }
+}
