You've probably mixed up the installation, resulting in a phantom menu or other object. However, the menu appears to work, so getting rid of the error might be all that is required. Around line 165 in the script we find:
Code:
addEvent:function(target, functionref, tasktype){
if (target.addEventListener)
target.addEventListener(tasktype, functionref, false);
else if (target.attachEvent)
target.attachEvent('on'+tasktype, function(){return functionref.call(target, window.event)});
},
If we change that to:
Code:
addEvent:function(target, functionref, tasktype){
if (target && target.addEventListener)
target.addEventListener(tasktype, functionref, false);
else if (target && target.attachEvent)
target.attachEvent('on'+tasktype, function(){return functionref.call(target, window.event)});
},
It should eliminate the error on any non-object calls to that function.
Edit: This actually should work, because I found the problem:
Code:
<a href="guestbook/index.htm" rel="shadowbox:height=600;width=700" title="Client Feedback">Testimonials</a>
There is no drop down for that rel. I know, it is used for something else, but the menu script doesn't know that.
In any case, as I say, testing for target in the function as I've outlined should take care of the problem. It may give rise to other errors, probably not with the menu script though.
Bookmarks