// Cascading Popup Menus v5.2 - Single Frame Menu example script.


// If you're upgrading from v5.1, you can paste your existing menu data in, and if you're
// upgrading from v5.0 you need to add 'cursor' settings to your ItemStyles.
//
// And before going ANY further, you must have READ and AGREE TO the script license!
// It can be found on my site, in the syntax helpfile, or in the demo script document.


// 'horizontal Bar' style: menu items that use this ItemStyle are 40px wide, have 10px gaps
// between them, no popout indicator (the ">" in some menus) or popout indicator position,
// 0px padding of the text within items, #336699 background colour, a hover colour of #6699CC,
// 'highText' is the stylesheet class used for the menu text both normally and when highlighted,
// no border styles, 'null' means fully opaque items (set them to numbers between 0 and 100 to
// enable semitranslucency), and the 'hand'/'default' cursors are used for linked/submenu items.
var hBar = new ItemStyle(40, 10, '', 0, 0, '#0B479C', '#0033CC', 'highText', 'highText', '', '',
 null, null, 'hand', 'default');

// The 'sub Menu' items: these have popout indicators of "Greater Than" signs ">" 15px from their
// right edge, and CSS borders. Text class also changes on mouseover.
var subM = new ItemStyle(22, 0, '&gt;', -15, 3, '#0B479C', '#0033CC', 'lowText', 'highText',
 'itemBorder', 'itemBorder', null, null, 'hand', 'default');


// Create a PopupMenu() object, and pass its own name so it can reference itself later on.
// We also use a 'with' block to work with its properties and functions below.

var pMenu = new PopupMenu('pMenu');
with (pMenu)
{

// Here's what the values in the next startMenu() command mean, in order:
//  'root': the name of this menu.
//   false: orientated as a horizontal menu (true creates a vertical menu).
//      10: the 'left' offset of this menu in pixels.
//       0: the 'top' offset of this menu in pixels.
//      17: the height of this menu (for vertical menus, this becomes the menu width).
//    hBar: the ItemStyle used to give this menu colours and layout/formatting.
//      '': this menu does not display within a frame (see the Frameset Example Script to do that).
//   false: this menu shows submenus on mouseover. 'true' means show on click.
//
// Most of the items are 'sm:' items popping out submenus, except the last 'js:' JavaScript command
// to pop open a new window. I've also given each item a length in pixels, overriding the ItemStyle.

startMenu('root', false, 18, 70, 17, hBar, '', false);
addItem('&nbsp; About', 'mAbout', 'sm:', null, 48);
addItem('&nbsp; Membership', 'mMembership', 'sm:', null, 85);
addItem('&nbsp; Background', 'mBackground', 'sm:', null, 80);
addItem('&nbsp; mpXML Initiatives', 'mInitiatives', 'sm:', null, 120);
addItem('&nbsp; mpXML Activities', 'mEvents', 'sm:', null, 120);


//About menu
startMenu('mAbout', true, 0, 18, 150, subM, '', false);
addItem('About mpXML', '/about', '');
addItem('Why mpXML Now?', '/about/whympxmlnow.html', '');
addItem('Objectives', '/about/mpXMLObjectives Update March 08 03-20.pdf', '');
addItem('Brief History', '/about/briefhistory.html', '');
addItem('Relationships', '/relationships', '');
addItem('Board and Officers', '/about/contact.html', '');

//Membership menu
startMenu('mMembership', true, 0, 18, 150, subM, '', false);
addItem('Benefits', '/member', '');
addItem('Member List', '/member/memberlist.html', '');
addItem('Application (PDF)', '/member/application_2007.pdf', '');

//Background menu
startMenu('mBackground', true, 0, 18, 250, subM, '', false);
addItem('Benefits of Seamless Data Transmission', '/standards/benefits.html', '');
addItem('Specific Savings for Meat and Poultry', '/standards/specific.html', '');
addItem('The GSMP Process', '/standards/gsmp.html', '');
addItem('What is XML?', '/standards/xml.html', '');
//addItem('Whitepapers', '/standards/whitepapers.html', '');
addItem('GDSN', '/standards/gdsn.html', '');

//mpXML Initiatives menu
startMenu('mInitiatives', true, 0, 18, 250, subM, '', false);
addItem('Data Sync Workgroup', '/current/datasync-wrkgrp.html', '');
addItem('Product Classification Workgroup', '/current/classification-wrkgrp.html', '');
addItem('EDI Workgroup', '/current/edi-wrkgrp.html', '');
addItem('Participation in GSMP/GDSN Initiatives', '/current/gsmpgdsn.html', '');
addItem('Promoting Data Sync', '/current/datasync.html', '');
//addItem('Promoting EDI', '/current/edi.html', '');
addItem('Traceability Implementation Guide', '/current/traceability.html', '');
addItem('Trade Item Measurement Project', '/current/timeasurement.html', '');
//addItem('Product Classification Project', '/current/classification.html', '');

//mpXML Activities menu
startMenu('mEvents', true, 0, 18, 150, subM, '', false);
addItem('Conference Calls', '/events/calls.html', '');
addItem('Physical Meetings', '/events/meetings.html', '');
//addItem('Oct. &rsquo;04 GSMP Meeting', '/events/2004/10gsmp.html', '');
//addItem('Jul. &rsquo;04 Business Process Subcommittee Meeting', '/events/2004/07meeting.html', '');
//addItem('Mar. &rsquo;04 Business Process Subcommittee Meeting', '/events/2004/03meeting.html', '');
//addItem('Jan. &rsquo;04 Business Process Subcommittee Meeting', '/events/2004/01meeting.html', '');
//addItem('2003 Meetings', '/events/2003', '');

}
