diff --git a/nice_menus.js b/nice_menus.js
index 70c6c8c..bbd4e07 100644
--- a/nice_menus.js
+++ b/nice_menus.js
@@ -15,10 +15,15 @@
       // Mouse delay.
       delay: Drupal.settings.nice_menus_options.delay,
       // Animation speed.
-      speed: Drupal.settings.nice_menus_options.speed
+      speed: Drupal.settings.nice_menus_options.speed,
+      // Open submenu at start.
+      pathClass: Drupal.settings.nice_menus_options.pathClass
     // Add in Brandon Aaron’s bgIframe plugin for IE select issues.
     // http://plugins.jquery.com/node/46/release
     }).find('ul').bgIframe({opacity:false});
-    $('ul.nice-menu ul').css('display', 'none');
+    // Hide submenus if needed
+    if (Drupal.settings.nice_menus_options.pathClass == 'no') {
+      $('ul.nice-menu ul').css('display', 'none');
+    }
   });
 })(jQuery);
diff --git a/nice_menus.module b/nice_menus.module
index 52bd94d..86eaeb1 100644
--- a/nice_menus.module
+++ b/nice_menus.module
@@ -120,6 +120,14 @@ function nice_menus_admin_settings($form, &$form_state) {
     ),
     '#default_value' => variable_get('nice_menus_sf_speed', 1),
   );
+  $form['nice_menus_sf_options']['nice_menus_sf_pathclass'] = array(
+     '#type' => 'select',
+     '#title' => t('Submenu open at start'),
+     '#multiple' => FALSE,
+     '#description' => t('If you want the submenu containing the current page to be open, choose "yes".'),
+     '#options' => array('no' => t('no'), 'active-trail' => t('yes')),
+     '#default_value' => variable_get('nice_menus_sf_pathclass', 'no'),
+   );
 
   // Custom validation to make sure the user is entering numbers.
   $form['#validate'][] = 'nice_menus_settings_validate';
@@ -155,6 +163,7 @@ function nice_menus_init() {
       'nice_menus_options' => array(
         'delay' => variable_get('nice_menus_sf_delay', 800),
         'speed' => variable_get('nice_menus_sf_speed', 1),
+        'pathClass' => variable_get('nice_menus_sf_pathclass', 'no'),
       ),
     ), array('type' => 'setting', 'scope' => JS_DEFAULT));
     // Add the bgIframe plugin.
