If you want to add menu to a layout - make the following steps:
1. Firstly, download dhtmlxMenu 2.0 package from the server into the folder where the previously downloaded packages were put.
2.
Add to the <head> tag of an HTML file the full path to the following files:
<head> <script src="[full path to this file]/dhtmlxmenu.js"></script> <link rel="stylesheet" type="text/css" href="[full path to this file]/dhtmlxmenu_dhx_blue.css"> </head>
3. And now one line of code will be enough to attach dhtmlxMenu to the whole Layout:
var menu = dhxLayout.attachMenu();
When the page is reloaded, the menu panel will be displayed at the top of the layout, above the toolbar panel and below the header (if they are there).