--- taxonomy_menu\taxonomy_menu.inc	2009-02-09 01:17:12.000000000 +-0200
+++ taxonomy_menu\taxonomy_menu.inc	2009-05-13 10:22:58.000000000 +-0200
@@ -76,12 +76,18 @@
   $form['taxonomy_menu_hide_module_page'] = array(
     '#default_value'  => variable_get('taxonomy_menu_hide_module_page', FALSE),
     '#description'    => t('If checked, links to module page removes from all paths. path will be like "1/2/3" instead of "categories/1/2/3"'),
     '#title'          => t('Hide link to module page'),
     '#type'           => 'checkbox',
   );
+  $form['taxonomy_menu_root_menu'] = array(
+    '#default_value'  => variable_get('taxonomy_menu_root_menu', FALSE),
+    '#description'    => t('If checked, the menu will moved to a root menu, e.g. create a new menu based on the term 1'),
+    '#title'          => t('Move menu to root'),
+    '#type'           => 'checkbox',
+  );
   $form['taxonomy_menu_display_num'] = array(
     '#default_value'  => variable_get('taxonomy_menu_display_num', FALSE),
     '#description'    => t('If checked, number of node per term will be displayed in the menu.'),
     '#title'          => t('Display number of nodes per terms'),
     '#type'           => 'checkbox',
   );
@@ -147,21 +153,36 @@
         $path =  $vocabulary->vid;
       }
       else {
         $path =  variable_get('taxonomy_menu_display_page', 'category') .'/'. $vocabulary->vid;
       }
 
+      if (variable_get('taxonomy_menu_root_menu', FALSE)) {
       $items[$path] = array(
         'access'          => $access,
         'callback'        => '__taxonomy_menu_page',
         'file'            => 'taxonomy_menu.inc',
         'page callback'   => '__taxonomy_menu_page',
         'path'            => $path,
         'title'           => t($vocabulary->name),
-        'weight'          => $vocabulary->weight
+          'weight'          => $vocabulary->weight,
+          'pid'             => 0,
+          'mid'             => 0,
       );
+      }
+      else {
+        $items[$path] = array(
+          'access'          => $access,
+          'callback'        => '__taxonomy_menu_page',
+          'file'            => 'taxonomy_menu.inc',
+          'page callback'   => '__taxonomy_menu_page',
+          'path'            => $path,
+          'title'           => t($vocabulary->name),
+          'weight'          => $vocabulary->weight,
+        );
+      }
 
       /**
       if($pathauto_exists) {
         $placeholders = pathauto_get_placeholders('taxonomy', $vocabulary);
         $alias = pathauto_create_alias('taxonomy_menu', 'update', $placeholders, $path,$vocabulary->vid);
       }
