diff --git a/modules/taskbar_ui/taskbar_ui.module b/modules/taskbar_ui/taskbar_ui.module
index b99902d..fa8de2d 100644
--- a/modules/taskbar_ui/taskbar_ui.module
+++ b/modules/taskbar_ui/taskbar_ui.module
@@ -548,7 +548,12 @@ function taskbar_ui_admin(&$form_state) {
     '#description' => t('If enabled, display a titlebar in extra content. The titlebar has a close button so that user understand immediately that he/she can close it by clicking on the button.'),
     '#default_value' => variable_get('taskbar_titlebar', FALSE),
   );
-
+ $form['taskbar_autoclose'] = array(
+   '#type' => 'checkbox',
+   '#title' => t('Allow only one active taskbar item at a time'),
+   '#description' => t('If enabled, previously selected taskbar item will be inactive and have its extra content hidden, when another taskbar item is selected. If disabled, all drop-down items will be shown and stacked on top of each other.'),
+   '#default_value' => variable_get('taskbar_autoclose', FALSE),
+);
   $form['taskbar_update_method'] = array(
     '#type' => 'select',
     '#title' => t('Update method'),
diff --git a/taskbar.js b/taskbar.js
index f3ee292..82b8137 100644
--- a/taskbar.js
+++ b/taskbar.js
@@ -59,6 +59,9 @@ Drupal.behaviors.taskbar = function (context) {
     else if (T.find('.taskbar-item-extra').length > 0) {
       T.find('.taskbar-item-content:not(.taskbar-processed)').addClass('taskbar-processed').click(function() {
         T.toggleClass('taskbar-item-active').find('.taskbar-item-extra').slideToggle('fast');
+        if(Drupal.settings.taskbar.auto_close) {
+          T.siblings().removeClass('taskbar-item-active').find('.taskbar-item-extra').hide();
+        }
       });
     }
     T.find('.taskbar-item-titlebar:not(.taskbar-processed)').addClass('taskbar-processed').click(function() {
diff --git a/taskbar.module b/taskbar.module
index 79cfef5..7453219 100644
--- a/taskbar.module
+++ b/taskbar.module
@@ -338,6 +338,7 @@ function taskbar_status_page($render = FALSE) {
       'update_method' => variable_get('taskbar_update_method', 'ajax'),
       'delay' => variable_get('taskbar_time', 30000),
       'ajax_refresh' => $ajax_refresh,
+       'auto_close' => variable_get('taskbar_autoclose', FALSE),
     )), 'setting');
   }
   else {
