Example of dynamic menu actions(For the menu above):

Second menu

More content

Third menu

More content
More content

Fourth menu(vertical main menu items below each other)

Menu created from markup

The menu above is creatd from this HTML markup:
<ul id="menuModel5">
	<li id="50000" itemIcon="../images/disk.gif"><a href="#" title="Open the file menu">File</a>
		<ul width="150">
			<li id="500001" jsFunction="saveWork()" itemIcon="../images/disk.gif"><a href="#" title="Save your work">Save</a></li>
			<li id="500002"><a href="#">Save As</a></li>
			<li id="500004" itemType="separator"></li>
			<li id="500003"><a href="#">Open</a></li>
		</ul>
	</li>
	<li id="50001"><a href="#">View</a>
		<ul width="130">
			<li id="500011"><a href="#">Source</a></li>
			<li id="500012"><a href="#">Debug info</a></li>
			<li id="500013"><a href="#">Layout</a>
				<ul width="150">
					<li id="5000131"><a href="#">CSS</a>	
					<li id="5000132"><a href="#">HTML</a>	
					<li id="5000133"><a href="#">Javascript</a>	
				</ul>
			</li>		
		</ul>
	</li>
	<li id="50003" itemType="separator"></li>
	<li id="50002"><a href="#">Options</a></li>
</ul>