--- dhtml_menu.js	2011-09-13 16:20:09.000000000 -0500
+++ dhtml_menu.js.modified	2011-09-13 16:19:30.000000000 -0500
@@ -158,6 +158,6 @@
   $('li.expanded').each(function() {
     expanded.push($(this).find('a:first').attr('id').substr(5));
   });
-  document.cookie = 'dhtml_menu=' + expanded.join(',') + ';path=/';
+  document.cookie = 'dhtml_menu=' + escape(expanded.join(',')) + ';path=/';
 }
