// Render menus for site
// Matt Churchyard 06/05/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', 228);
menuRenderer.setConfig('item-height', 16);
// our menus move with window resize so we
// specify the width of our centered content
// so the position can be calculated
menuRenderer.setConfig('moves', 750);
// banner to display on status bar with link text
menuRenderer.setConfig('banner', 'Bohle UK Ltd');
// 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="images/menu/divider.gif" width="228" height="1">');
menuRenderer.setConfig('divider-height', 1);
// add a 'cut-corner' end to the menus to match images
//menuRenderer.setConfig('menu-end', '<img src="images/menu/menuend.gif" width="160" height="10">');
//menuRenderer.setConfig('menu-end-height', 10);
// the arrow graphic for submenus
menuRenderer.setConfig('submenu-icon', '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);

menuRenderer.addMenu('catalogue', 168, 57);