diff -urp jstoolsorig/activemenu/activemenu.js jstools/activemenu/activemenu.js
--- jstools/activemenu/activemenu.js	Wed May  2 21:31:23 2007
+++ jstools/activemenu/activemenu.js	Wed May  2 22:54:25 2007
@@ -31,7 +31,7 @@ Drupal.activemenuAutoAttach = function (
       if ($(this).children('ul').length > 0) {
         return;
       }
-      var path = Drupal.getPath(this.firstChild.getAttribute('href', 2));
+      var path = Drupal.getPath(this.firstChild.getAttribute('href'));
       var url = Drupal.url(menus[menu]);
       var elt = this;
       Drupal.preventSelect(this);
diff -urp jstoolsorig/jstools.js jstools/jstools.js
--- jstools/jstools.js	Wed Mar 14 19:37:30 2007
+++ jstools/jstools.js	Wed May  2 23:17:59 2007
@@ -56,6 +56,11 @@ Drupal.url = function (path, query, frag
 }
 
 Drupal.getPath = function (href) {
+  var protocol = window.location.protocol;
+  if (href.substring(0, protocol.length) == protocol) {
+    // 2 is the length of the '//' that normally follows the protocol
+    href = href.substring(href.indexOf('/', protocol.length + 2));
+  }
   // 3 is the length of the '?q=' added to the url without clean urls.
   href = href.substring(Drupal.settings.jstools.basePath.length + (Drupal.settings.jstools.cleanurls ? 0 : 3), href.length);
   var chars = ['#', '?', '&'];
