// portal_menus.js
// © Unitron Systems 2003
//
// Calls functions to create the portal menus
//
// Author: Matt Churchyard
// Date: 04/07/03

var menuRenderer = new menuGenerator();

// configure menus to match site
// class of the menu entries
menuRenderer.setConfig('class-off', 'menuitem');
menuRenderer.setConfig('class-on', 'menuitem-over');
// width and height of menu entries
menuRenderer.setConfig('item-width', 160);
menuRenderer.setConfig('item-height', 18);
// our menus move with window resize so we
// specify the width of our centered content
// so the position can be calculated
menuRenderer.setConfig('moves', 802);
// divider graphic and size
// on this site this is only used to give a 1 pixel gap above the menus
// under the menubar. This is why all menus below start with a divider
//menuRenderer.setConfig('divider', '<img src="/~myuserve/images/menu/menudivide.gif" width="160" height="1">');
//menuRenderer.setConfig('divider-height', 1);
// the arrow graphic for submenus
//menuRenderer.setConfig('submenu-icon', '/~myuserve/images/menu/arrow.gif');
// add a 1 pixel gap between submenus to match gap between menubar and main menus
//menuRenderer.setConfig('submenu-leftoffset', 1);
// add a timeout to the menus so they dont disappear instantly
// this also means if users accidentally move off the menus while navigating submenus,
// the menus don't instantly disappear.
menuRenderer.setConfig('menu-timeout', 400);
