Index: modules/menu/menu.admin.inc
===================================================================
RCS file: /cvs/drupal/drupal/modules/menu/menu.admin.inc,v
retrieving revision 1.56
diff -u -r1.56 menu.admin.inc
--- modules/menu/menu.admin.inc	24 Aug 2009 01:49:41 -0000	1.56
+++ modules/menu/menu.admin.inc	1 Sep 2009 14:30:26 -0000
@@ -61,6 +61,8 @@
   $menu_admin = FALSE;
 
   $form = _menu_overview_tree_form($tree);
+  $form['#attached_js'] = array(drupal_get_path('module', 'menu') . '/menu.admin.js' => array('weight' => JS_DEFAULT - 0.5));
+  
   $form['#menu'] =  $menu;
   if (element_children($form)) {
     $form['submit'] = array(
Index: modules/menu/menu.admin.js
===================================================================
RCS file: modules/menu/menu.admin.js
diff -N modules/menu/menu.admin.js
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ modules/menu/menu.admin.js	1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,41 @@
+// $Id: menu.js,v 1.2 2009/04/27 20:19:36 webchick Exp $
+
+(function ($) {
+
+/**
+ * Show and hide advanced settings link.
+ */
+Drupal.behaviors.menuAdvancedSettings = {
+  attach: function (context, settings) {
+    $('table#menu-overview', context).once('menu-advanced-settings', function () {
+      self = $(this)
+        .before($('<a href="#">' + Drupal.t('Show advanced settings') + '</a>').toggle(function() {
+            self.each(function() {
+              $(this).parent().get(0).tagName.toLowerCase() == 'thead' ?
+                $(this).children().slice(0, 1)
+                  .after('<th>' + Drupal.t('Show as Expanded') + '</th>')
+                  .after('<th>' + Drupal.t('Enabled') + '</th>') :
+                $(this).children().slice(1, 3).show();
+            });
+            $(this).text(Drupal.t('Hide advanced settings'));
+            return false;
+          }, function() {
+            self.each(function() {
+              $(this).parent().get(0).tagName.toLowerCase() == 'thead' ?
+                $(this).children().slice(1, 3).remove() :
+                $(this).children().slice(1, 3).hide();
+            });
+            $(this).text(Drupal.t('Show advanced settings'));
+            return false;
+          }))
+        .find('> thead > tr, > tbody > tr, > tr')
+        .each(function() {
+          $(this).parent().get(0).tagName.toLowerCase() == 'thead' ?
+            $(this).children().slice(1, 3).remove() :
+            $(this).children().slice(1, 3).hide();
+        });
+    });
+  }
+};
+
+})(jQuery);
