Index: dhtml_menu.js
===================================================================
--- dhtml_menu.js	(revision 20)
+++ dhtml_menu.js	(working copy)
@@ -16,6 +16,16 @@
  * Initialize the module's JS functions
  */
 Drupal.dhtmlMenu.initdhtmlmenu = function(context) {
+    
+   // Do not run this function more than once.
+   //This is needed that code is not run twice when using ajax (like views ajax pager)
+  if (Drupal.dhtmlMenu.init) {
+    return;
+    }
+  else {
+    Drupal.dhtmlMenu.init = true;
+  }
+    
   var settings = Drupal.settings.dhtmlMenu;
 
   // Initialize the animation effects from the settings.
@@ -174,10 +184,12 @@
 
   // When using LTR, all icons can be shifted as one, as the text width is not relevant.
   if (settings.nav == 'bullet' && !rtl) {
-    // Shift overlay to the left by the width of the icon and the distance between icon and text.
-    var shift = '-' + (Math.ceil(($('.menu li', context).css('margin-left').replace('px', ''))) + 16) + 'px';
-    // Shift the overlay using a negative left-hand offset, and the text using a negative right-hand margin.
-    $('.dhtml-menu-icon', context).css('left', shift).css('margin-right', shift);
+  if ($('.menu li').hasClass('margin-left')) {
+      // Shift overlay to the left by the width of the icon and the distance between icon and text.
+      var shift = '-' + (Math.ceil(($('.menu li', context).css('margin-left').replace('px', ''))) + 16) + 'px';
+      // Shift the overlay using a negative left-hand offset, and the text using a negative right-hand margin.
+      $('.dhtml-menu-icon', context).css('left', shift).css('margin-right', shift);
+    }
   }
 }
 
