I downloaded a JavaScript script to create drop-down menus (I know little if anything about JS).

I amended it to display how I wanted and it works fine in some browsers (eg, IE, Firefox, Opera) but not in others (eg, Chrome, Safari).

http://home.btconnect.com/thetopper/dropdown_menu_1.htm

In the ones where it fails, it works OK on the first drop-down menu it produces (Sparky - one drop-down menu), but then falls over, putting the rest of the menu on the left hand side of the browser window. Those subsequent sub-menus can be seen on mouseover.

It's frustrating, as it works once - why not the rest? (the original script had 1 menu + 3 sub-menus, so probably down to my code for the second drop-down menu onwards).