<!--

// Here's my demo code for tweaking and shifting the menu. Enjoy :).

// This illustrates changing the contents of the menu.
// This DOES NOT WORK in Opera version 6 and earlier!
function changeMenu() { with (pMenu)
{
 // If your modifications are quite extensive, probably hide the menu before commencing
 // them, as the script relies on the menu array in realtime to handle highlighting etc.
 //over('', 0);
 //menu.root[0].lyr.vis('hidden');

 // Create a whole new menu...
 startMenu('mNewMenu', true, 0, 22, 130, subM);
 addItem('<b>TwinHelix Designs:</b><br>Extreme DHTML.<br>Small Code.<br>Click to Visit...',
  'window.open("http://www.twinhelix.com")', 'js:', subM, 70);

 // Rebuild the existing root menu to change the text, and pop this out.
 startMenu('root', false, 10, 0, 17, hBar);
 addItem('&nbsp; Rebuilt &gt; &gt;', '#', '', hBar, 80);
 addItem('&nbsp; First', 'mFile', 'sm:', hBar, 50);
 addItem('&nbsp; Second', 'mEdit', 'sm:', hBar, 60);
 addItem('&nbsp; Third', 'mHelp', 'sm:', hBar, 50);
 addItem('&nbsp; Dynamism...', 'mNewMenu', 'sm:', hBar, 80);

 // Change a couple of items in the "File" menu, without rebuilding it.
 // Get my "JS Object Browser" script to view the menu data while the script's running,
 // to see what objects are available internally.
 menu.mFile[1].text = 'New...';
 menu.mFile[4].text = 'Logoff<br />Menus...';
 menu.mFile[4].overText = 'See you<br/>later!';

 // Call the update function to implement our changes dynamically.
 // You can call update(false, 'menuName'); to update just one menu (faster).
 update();
}}


// This is just the moving command called when you click the feature list.
// Toggle the X value of the root menu (in the data arrays) and call the position function.
function moveRoot()
{
 // offX and offY are the offsets of the menu from its parent item.
 with (pMenu.menu.root[0]) offX = (offX<100) ? 100 : 10;
 pMenu.position('root');
}

//-->