// 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, 4, '', '', '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, 4, '#999999', '#666666', 'highText', 'highText',
 '', '', null, null, 'hand', 'default');

// 'subBlank' is similar, but has an 'off' border the same colour as its background so it
// appears borderless when dim, and 1px spacing between items to show the hover border.

var subBlank = new ItemStyle(22, 1, '&gt;', -15, 3, '#CCCCDD', '#6699CC', 'lowText', 'highText',
 'itemBorderBlank', 'itemBorder', null, null, 'hand', 'default');

// The purplish 'button' style also has 1px spacing to show up the fancy border, and it has
// different colours/text and less padding. They also have translucency set -- these items
// are 80% opaque when dim and 95% when highlighted. It uses the 'crosshair' cursor for items.

var button = new ItemStyle(22, 1, '&gt;', -15, 2, '10#006633', '10#CC6600', 'buttonText', 'buttonHover',
 'buttonBorder', 'buttonBorderOver', 80, 95, 'crosshair', 'default');

var pMenu = new PopupMenu('pMenu');
with (pMenu)

{

startMenu('root', false, 239, 54, 20, hBar, '', false);
addItem('HOME', 'index2.html', '', hBar, 39);
addItem('PERFORMANCE', 'mPerformance', 'sm:', null, 87);
addItem('CLASSROOM', 'mClassroom', 'sm:', null, 74);
addItem('INFORMATION', 'mInformation', 'sm:', null, 80);

startMenu('mPerformance', true, 0, 20, 140, subM, '', false);
addItem('Romeo and Juliet', 'romeo.html', '');
addItem('Taming of the Shrew', 'shrew.html', '');
addItem('Macbeth', 'macbeth.html', '');
addItem('Hamlet', 'hamlet.html', '');
addItem('A Midsummer Nights Dream', 'midsummer.html', '');

startMenu('mClassroom', true, 0, 20, 110, subM, '', false);
addItem('Study Materials', 'mStudy', 'sm:');
addItem('Preshow Prep', 'preshow.html', '');
//addItem('Online Activities', 'mActivities', 'sm:');
addItem('Trip Guide', 'resourceguide.html', '');
addItem('Links', 'links.html', '');

startMenu('mInformation', true, 0, 20, 121, subM, '', false);
addItem('Dates and Times', 'dates.html', '');
addItem('Location and Directions', 'location.html', '');
addItem('Pricing and Payment', 'pricing.html', '');
addItem('Online Reservations', 'online.html', '');
addItem('Cast and Crew', 'cast.html', '');
addItem('Testimonials', 'testimonials.html', '');
addItem('About Us', 'about.html', '');

startMenu('mStudy', true, 110, 0, 95, subM, '', false);
addItem('Overview', 'study.html', '');
addItem('5th Grade', '5thgrade.html', '');
addItem('6th Grade', '6thgrade.html', '');
addItem('7th Grade', '7thgrade.html', '');
addItem('8th Grade', '8thgrade.html', '');
addItem('9th/10th Grade', '9th10thgrade.html', '');
addItem('11th/12th Grade', '11th12thgrade.html', '');

startMenu('mActivities', true, 130, 0, 130, subM, '', false);
addItem('The Globe Theatre', 'window.open("globe.html")', 'js:');
addItem('Elizabethan London', 'window.open("town.html")', 'js:');
addItem('Shakespearean Timeline', 'window.open("timeline.html")', 'js:');



};