See how these same menus look with a different stylesheet! The HTML and JavaScript files are the same but one CSS file is different.
This second menu is just to show that position of the menu is self contained and since the IDs of the sub-menus are generated dynamically, the exact same chunk of markup can be reused to make a completely separate instance of the menus without a conflict.