Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
I am able to call a Javascript from a sub menu, however when I insert the same syntax in place of the sub-menu or link parameter in the top-level menu it does not work.