? dhtml_menu.pot
Index: dhtml_menu.admin.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/dhtml_menu/dhtml_menu.admin.inc,v
retrieving revision 1.5
diff -u -p -r1.5 dhtml_menu.admin.inc
--- dhtml_menu.admin.inc	14 Jul 2008 21:58:51 -0000	1.5
+++ dhtml_menu.admin.inc	4 Nov 2008 22:58:42 -0000
@@ -16,6 +16,7 @@ function dhtml_menu_settings(&$form_stat
     '#options' => array(
       'slide' => t('Animated sliding effect'),
       'siblings' => t('Keep only one menu open at a time.'),
+      'relativity' => t('For the above option, consider each menu tree separately.'),
       'children' => t('Close menus when their parent menu is closed.'),
       'clone' => t('Add an extra page link to each expanding menu item.'),
       'doubleclick' => t('Go to the page on double-click.'),
Index: dhtml_menu.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/dhtml_menu/dhtml_menu.js,v
retrieving revision 1.18.2.2
diff -u -p -r1.18.2.2 dhtml_menu.js
--- dhtml_menu.js	16 Jul 2008 21:23:52 -0000	1.18.2.2
+++ dhtml_menu.js	4 Nov 2008 22:58:42 -0000
@@ -100,7 +100,15 @@ Drupal.dhtmlMenu.toggleMenu = function(l
 
       // Siblings are all open menus that are neither parents nor children of this menu.
       $(li).find('li').addClass('own-children-temp');
-      var siblings = $('ul.menu li.expanded').not('.own-children-temp').not(':has(#' + id + ')');
+	  
+      // If the relativity option is on, select only the siblings that have the same parent
+      if (effects.relativity) {
+      var siblings = $(li).parent().find('li.expanded').not('.own-children-temp').not(':has(#' + id + ')');
+      }
+      // Otherwise, select all menus of the same level
+      else {
+          var siblings = $('ul.menu li.expanded').not('.own-children-temp').not(':has(#' + id + ')');
+      }
 
       // If children should not get closed automatically...
       if (!effects.children) {
Index: dhtml_menu.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/dhtml_menu/dhtml_menu.module,v
retrieving revision 1.29.2.1
diff -u -p -r1.29.2.1 dhtml_menu.module
--- dhtml_menu.module	18 Jul 2008 20:13:06 -0000	1.29.2.1
+++ dhtml_menu.module	4 Nov 2008 22:58:42 -0000
@@ -21,7 +21,7 @@ function dhtml_menu_init() {
   drupal_add_css(drupal_get_path('module', 'dhtml_menu') .'/dhtml_menu.css');
   drupal_add_js(drupal_get_path('module', 'dhtml_menu') .'/dhtml_menu.js');
   $settings = variable_get('dhtml_menu_effects', explode(',', DHTML_MENU_DEFAULT));
-  $valid    = array('slide', 'clone', 'siblings', 'doubleclick', 'children');
+  $valid    = array('slide', 'clone', 'siblings', 'relativity', 'doubleclick', 'children');
   $settings = array_intersect($settings, $valid);
   foreach (variable_get('dhtml_menu_effects', explode(',', DHTML_MENU_DEFAULT)) as $effect) {
     if (in_array($effect, $valid)) {
Index: translations/dhtml_menu.pot
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/dhtml_menu/translations/dhtml_menu.pot,v
retrieving revision 1.2.2.2
diff -u -p -r1.2.2.2 dhtml_menu.pot
--- translations/dhtml_menu.pot	26 Jul 2008 07:43:27 -0000	1.2.2.2
+++ translations/dhtml_menu.pot	4 Nov 2008 22:58:42 -0000
@@ -1,17 +1,17 @@
-# $Id: dhtml_menu.pot,v 1.2.2.2 2008/07/26 07:43:27 arancaytar Exp $
+# $Id$
 #
 # LANGUAGE translation of Drupal (dhtml_menu)
 # Copyright YEAR NAME <EMAIL@ADDRESS>
 # Generated from files:
 #  dhtml_menu.admin.inc,v 1.5 2008/07/14 21:58:51 arancaytar
-#  dhtml_menu.module,v 1.29 2008/07/14 21:58:51 arancaytar
+#  dhtml_menu.module,v 1.29.2.1 2008/07/18 20:13:06 arancaytar
 #  dhtml_menu.info,v 1.6 2008/07/11 22:15:58 arancaytar
 #
 #, fuzzy
 msgid ""
 msgstr ""
 "Project-Id-Version: PROJECT VERSION\n"
-"POT-Creation-Date: 2008-07-14 14:59-0700\n"
+"POT-Creation-Date: 2008-11-04 14:56-0800\n"
 "PO-Revision-Date: YYYY-mm-DD HH:MM+ZZZZ\n"
 "Last-Translator: NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <EMAIL@ADDRESS>\n"
@@ -33,26 +33,30 @@ msgid "Keep only one menu open at a time
 msgstr ""
 
 #: dhtml_menu.admin.inc:19
-msgid "Close menus when their parent menu is closed."
+msgid "For the above option, consider each menu tree separately."
 msgstr ""
 
 #: dhtml_menu.admin.inc:20
-msgid "Add an extra page link to each expanding menu item."
+msgid "Close menus when their parent menu is closed."
 msgstr ""
 
 #: dhtml_menu.admin.inc:21
+msgid "Add an extra page link to each expanding menu item."
+msgstr ""
+
+#: dhtml_menu.admin.inc:22
 msgid "Go to the page on double-click."
 msgstr ""
 
-#: dhtml_menu.module:169
+#: dhtml_menu.module:170
 msgid "<em>DHTML Menu</em> adds dynamic functionality to the menus of your site. Ordinarily, reaching the child elements below an item requires you to visit its page. With DHTML Menu, clicking on an item with child elements will expand it without leaving the page, saving time. You can reach the actual page of such an item either by double-clicking on it or visiting the small extra link that will be shown right below it when expanded."
 msgstr ""
 
-#: dhtml_menu.module:153 dhtml_menu.info:0
+#: dhtml_menu.module:154 dhtml_menu.info:0
 msgid "DHTML Menu"
 msgstr ""
 
-#: dhtml_menu.module:154
+#: dhtml_menu.module:155
 msgid "Configure the effects of DHTML Menu"
 msgstr ""
 
