--- dhtml_menu/dhtml_menu.js.orig	2011-08-01 15:29:57.000000000 -0500
+++ dhtml_menu/dhtml_menu.js	2011-08-01 15:30:41.000000000 -0500
@@ -26,7 +26,7 @@ Drupal.behaviors.dhtmlMenu = function() 
   // Get cookie
   if (!effects.siblings) {
     var cookie = Drupal.dhtmlMenu.cookieGet();
-    for (var i in cookie) {
+    if (cookie != '') for (var i in cookie) {
       // If the cookie was not applied to the HTML code yet, do so now.
       var li = $('#dhtml_menu-' + cookie[i]).parents('li:first');
       if ($(li).hasClass('collapsed')) {
