Index: nice_menus.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/nice_menus/nice_menus.js,v
retrieving revision 1.16
diff -u -p -r1.16 nice_menus.js
--- nice_menus.js	4 Aug 2008 23:45:22 -0000	1.16
+++ nice_menus.js	29 Nov 2008 17:30:13 -0000
@@ -1,5 +1,7 @@
 // $Id: nice_menus.js,v 1.16 2008/08/04 23:45:22 add1sun Exp $
 
+// Minimal JavaScript needed to get IE 6 to function properly.
+
 // We need to do some browser sniffing to weed out IE 6 only
 // because only IE6 needs this hover hack.
 if (document.all && !window.opera && (navigator.appVersion.search("MSIE 6.0") != -1) && $.browser.msie) {
Index: nice_menus.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/nice_menus/nice_menus.module,v
retrieving revision 1.51
diff -u -p -r1.51 nice_menus.module
--- nice_menus.module	17 Sep 2008 18:17:28 -0000	1.51
+++ nice_menus.module	29 Nov 2008 17:30:13 -0000
@@ -90,10 +90,16 @@ function nice_menus_admin_settings() {
   );
   $form['nice_menus_ie'] = array(
     '#type' => 'checkbox',
-    '#title' => t('Enable IE support'),
-    '#description' => t('This will add necessary JavaScript for Nice Menus to work properly in Internet Explorer.'),
+    '#title' => t('Enable minimal JavaScript'),
+    '#description' => t('This will add the minimal necessary JavaScript for Nice Menus to work properly in Internet Explorer 6. Other browsers will use CSS-only menus.'),
     '#default_value' => variable_get('nice_menus_ie', 1),
   );
+  $form['nice_menus_js'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Enable full JavaScript'),
+    '#description' => t('This will add JavaScript Superfish effects to all browsers <em>in addition to</em> the minimal needed for Internet Explorer 6.'),
+    '#default_value' => variable_get('nice_menus_js', 1),
+  );
   
   // Custom validation to make sure the user is entering numbers.
   $form['#validate'][] = 'nice_menus_settings_validate';
@@ -230,10 +236,17 @@ function nice_menus_theme() {
  * and the menus are unstyled.
  */
 function nice_menus_init() {
-  // Add JavaScript, if enabled.
+  // Add minimal JavaScript, if enabled.
   if (variable_get('nice_menus_ie', 1) == 1) {
     drupal_add_js(drupal_get_path('module', 'nice_menus') .'/nice_menus.js');
   }
+  // Add Superfish JavaScript if full JS is enabled.
+  if (variable_get('nice_menus_js', 1) == 1) {
+    // The script, from http://users.tpg.com.au/j_birch/plugins/superfish.
+    drupal_add_js(drupal_get_path('module', 'nice_menus') .'/superfish/js/superfish.js');
+    // The Nice menus implementation.
+    drupal_add_js(drupal_get_path('module', 'nice_menus') .'/nice_menus_superfish.js');
+  }
 
   // Add main CSS functionality.
   drupal_add_css(drupal_get_path('module', 'nice_menus') .'/nice_menus.css');
Index: nice_menus_superfish.js
===================================================================
RCS file: nice_menus_superfish.js
diff -N nice_menus_superfish.js
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ nice_menus_superfish.js	29 Nov 2008 17:30:13 -0000
@@ -0,0 +1,16 @@
+// $Id:$
+
+// This uses Superfish 1.4.8
+// (http://users.tpg.com.au/j_birch/plugins/superfish)
+// TODO: make options configurable through Drupal settings.
+
+// Add Superfish to all Nice menus with some basic options.
+$(document).ready(function() {
+  $('ul.nice-menu').superfish({
+    // Disable generation of arrow mark-up.
+    autoArrows: false,
+    // Disable drop shadows.
+    dropShadows: false
+    // TODO: add other options here.
+  }); 
+});
\ No newline at end of file
