// '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, 8, '', 0, 0, '15#0033FF', '10#0099FF', 'highText', 'highText', '', '',
 null, null, 'hand', 'default');

var red = new ItemStyle(40, 8, '', 0, 0, '15#0033FF', '10#861a24', 'highText', 'highText', '', '',
 null, null, 'hand', 'default');

var green = new ItemStyle(40, 8, '', 0, 0, '15#00cc00', '10#66ff00', '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, '#CCCCDD', '#0099FF', 'lowText2', 'highText2',
 'itemBorder', 'itemBorder', 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', 'lowText2', 'highText2',
 '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, 17, 58, 15, hBar, 'NavBar', false);
addItem('Promotional', 'mPromo', 'sm:', null, 112);
addItem('Mens', 'mMens', 'sm:', null, 51);
addItem('Ladies', 'mLadies', 'sm:', null, 61);
addItem('Jackets', 'mJackets', 'sm:', null, 71);
addItem('Caps', 'mCaps', 'sm:', null, 49);
addItem('Golf', 'mGolf', 'sm:', null, 42);
addItem('Youth', 'mYouth', 'sm:', null, 56);
addItem('Workwear', 'mWorkWear', 'sm:', null, 90);
addItem('Brands', 'mBrands', 'sm:', null, 80);
//addItem('Clearance', 'http://www.promodeals.ca', 'top', red, 63);
addItem('Green', 'thumbnail_all.php?Cat=Green', 'MainFrame', green, 55);

startMenu('mMens', true, 0, 'MainFrame.page.scrollY()+2', 100, subM, 'MainFrame', false);
addItem('T-Shirts', 'thumbnail_all.php?Cat=MensTShirts', 'MainFrame');
addItem('Denim', 'thumbnail_all.php?Cat=MensDenim', 'MainFrame');
addItem('Dress Shirts', 'thumbnail_all.php?Cat=MensDressShirts', 'MainFrame');
addItem('Hoodies', 'thumbnail_all.php?Cat=MensHoodies', 'MainFrame');
addItem('Polar Fleece', 'thumbnail_all.php?Cat=MensPolarFleece', 'MainFrame');
addItem('Sweatshirts', 'thumbnail_all.php?Cat=MensSweats', 'MainFrame');
addItem('Sweaters', 'thumbnail_all.php?Cat=MensSweaters', 'MainFrame');
addItem('Tech Ts', 'thumbnail_all.php?Cat=TechTs', 'MainFrame');
addItem('Track Suits', 'thumbnail_all.php?Cat=MensTrackSuits', 'MainFrame');

startMenu('mLadies', true, 0, 'MainFrame.page.scrollY()+2', 80, subM, 'MainFrame', false);
addItem('T-Shirts', 'thumbnail_all.php?Cat=LadiesTShirts', 'MainFrame');
addItem('Dress Shirts', 'thumbnail_all.php?Cat=LadiesDressShirts', 'MainFrame');
addItem('Polar Fleece', 'thumbnail_all.php?Cat=LadiesPolarFleece', 'MainFrame');
addItem('Sweaters', 'thumbnail_all.php?Cat=LadiesSweaters', 'MainFrame');
addItem('Sweatshirts', 'thumbnail_all.php?Cat=LadiesSweats', 'MainFrame');
addItem('Workout', 'thumbnail_all.php?Cat=WorkoutWear', 'MainFrame');
// addItem('Technical', 'thumbnail_all.php?Cat=MensTShirts', '');

startMenu('mJackets', true, 0, 'MainFrame.page.scrollY()+2', 80, subM, 'MainFrame', false);
addItem('Summer', 'mSummer', 'sm:');
addItem('Winter', 'mWinter', 'sm:');

startMenu('mWinter', true, 50, 'MainFrame.page.scrollY()+30', 90, subM, 'MainFrame', false);
addItem('Bomber', 'thumbnail_all.php?Cat=Bombers', 'MainFrame');
addItem('Ladies', 'thumbnail_all.php?Cat=LadiesWinter', 'MainFrame');
addItem('Leather/Melton', 'thumbnail_all.php?Cat=LeatherMelton', 'MainFrame');
addItem('Parkas', 'thumbnail_all.php?Cat=Parkas', 'MainFrame');

startMenu('mSummer', true, 50, 'MainFrame.page.scrollY()+10', 80, subM, 'MainFrame', false);
addItem('Bomber', 'thumbnail_all.php?Cat=Bomber', 'MainFrame');
addItem('Denim', 'thumbnail_all.php?Cat=Denim', 'MainFrame');
addItem('Ladies', 'thumbnail_all.php?Cat=LadiesSummer', 'MainFrame');
addItem('Leather', 'thumbnail_all.php?Cat=Leather', 'MainFrame');
addItem('Rainwear', 'thumbnail_all.php?Cat=Rainwear', 'MainFrame');
addItem('Vests', 'thumbnail_all.php?Cat=Vests', 'MainFrame');

startMenu('mCaps', true, 0, 'MainFrame.page.scrollY()+2', 80, subM, 'MainFrame', false);
addItem('AJM', 'thumbnail_all.php?Cat=AJM', 'MainFrame');
addItem('Fersten', 'thumbnail_all.php?Cat=Fersten', 'MainFrame');
addItem('KNP', 'thumbnail_all.php?Cat=KNP', 'MainFrame');

startMenu('mGolf', true, 0, 'MainFrame.page.scrollY()+2', 80, subM, 'MainFrame', false);
addItem('Mens', 'thumbnail_all.php?Cat=GolfMens', 'MainFrame');
addItem('Ladies', 'thumbnail_all.php?Cat=GolfLadies', 'MainFrame');
addItem('Rainwear', 'thumbnail_all.php?Cat=GolfRainwear', 'MainFrame');
addItem('Windshirts', 'thumbnail_all.php?Cat=GolfWindshirts', 'MainFrame');
addItem('Accessories', 'thumbnail_all.php?Cat=GolfAccessories', 'MainFrame');
addItem('Bags', 'thumbnail_all.php?Cat=GolfBags', 'MainFrame');
addItem('Balls', 'thumbnail_all.php?Cat=Golfballs', 'MainFrame');
addItem('Clubs', 'thumbnail_all.php?Cat=GolfClubs', 'MainFrame');

startMenu('mYouth', true, 0, 'MainFrame.page.scrollY()+2', 80, subM, 'MainFrame', false);
addItem('Shirts', 'thumbnail_all.php?Cat=YouthShirts', 'MainFrame');
addItem('Jackets', 'thumbnail_all.php?Cat=YouthJackets', 'MainFrame');

startMenu('mWorkWear', true, 0, 'MainFrame.page.scrollY()+2', 80, subM, 'MainFrame', false);
addItem('Work Wear', 'thumbnail_all.php?Cat=Workwear', 'MainFrame');

startMenu('mPromo', true, 0, 'MainFrame.page.scrollY()+2', 138, subM, 'MainFrame', false);
addItem('Awards', 'thumbnail_all.php?Cat=Awards', 'MainFrame');
addItem('Bags', 'thumbnail_all.php?Cat=Bags', 'MainFrame');
addItem('Balloons', 'thumbnail_all.php?Cat=Balloons', 'MainFrame');
addItem('Beverage', 'thumbnail_all.php?Cat=Beverage', 'MainFrame');
addItem('Binoculars', 'thumbnail_all.php?Cat=Binoculars', 'MainFrame');
addItem('Business Gifts', 'thumbnail_all.php?Cat=BusinessGifts', 'MainFrame');
addItem('Calculators', 'thumbnail_all.php?Cat=Calculators', 'MainFrame');
addItem('Calendars', 'thumbnail_all.php?Cat=Calendars', 'MainFrame');
addItem('Candy', 'thumbnail_all.php?Cat=Candy', 'MainFrame');
addItem('Carafes', 'thumbnail_all.php?Cat=Carafes', 'MainFrame');
addItem('Chairs', 'thumbnail_all.php?Cat=Chairs', 'MainFrame');
addItem('Christmas', 'thumbnail_all.php?Cat=Christmas', 'MainFrame');
addItem('Clocks', 'thumbnail_all.php?Cat=Clocks', 'MainFrame');
addItem('Coasters', 'thumbnail_all.php?Cat=Coasters', 'MainFrame');
addItem('Computer Accessories', 'thumbnail_all.php?Cat=ComputersAcces', 'MainFrame');
addItem('Coolers', 'thumbnail_all.php?Cat=Coolers', 'MainFrame');
addItem('Crystal', 'thumbnail_all.php?Cat=Crystal', 'MainFrame');
addItem('Decals', 'thumbnail_all.php?Cat=Decals', 'MainFrame');
addItem('More', 'mPromoMore', 'sm:');

startMenu('mPromoMore', true, 50, 'MainFrame.page.scrollY()+50', 100, subM, 'MainFrame', false);
addItem('More', 'mPromoMore2', 'sm:');
addItem('Desk Stuff', 'thumbnail_all.php?Cat=Deskstuff', 'MainFrame');
addItem('Electronics', 'thumbnail_all.php?Cat=Electronics', 'MainFrame');
addItem('Emergency', 'thumbnail_all.php?Cat=EmergencyKits', 'MainFrame');
addItem('Flashlights', 'thumbnail_all.php?Cat=Flashlites', 'MainFrame');
addItem('Food', 'thumbnail_all.php?Cat=Food', 'MainFrame');
addItem('Games', 'thumbnail_all.php?Cat=Games', 'MainFrame');
addItem('Glassware', 'thumbnail_all.php?Cat=Glassware', 'MainFrame');
addItem('Health', 'thumbnail_all.php?Cat=Health', 'MainFrame');
addItem('Keychains', 'thumbnail_all.php?Cat=Keychains', 'MainFrame');
addItem('Kitchen Ware', 'thumbnail_all.php?Cat=KitchenWare', 'MainFrame');
addItem('Lanyards', 'thumbnail_all.php?Cat=Lanyards', 'MainFrame');
addItem('Lapel Pins', 'thumbnail_all.php?Cat=LapelPins', 'MainFrame');
addItem('Luggage', 'thumbnail_all.php?Cat=Luggage', 'MainFrame');
addItem('Magnets', 'thumbnail_all.php?Cat=Magnets', 'MainFrame');
addItem('Pens', 'mPens', 'sm:');
addItem('Pins/Medals', 'thumbnail_all.php?Cat=LapelPins', 'MainFrame');
addItem('Planners', 'thumbnail_all.php?Cat=Planners', 'MainFrame');
addItem('Playing Cards', 'thumbnail_all.php?Cat=PlayingCards', 'MainFrame');

startMenu('mPromoMore2', true, 50, 'MainFrame.page.scrollY()+60', 100, subM, 'MainFrame', false);
addItem('Poker Sets', 'thumbnail_all.php?Cat=Poker', 'MainFrame');
addItem('Portfolios', 'thumbnail_all.php?Cat=Portfolios', 'MainFrame');
addItem('Radios', 'thumbnail_all.php?Cat=Radios', 'MainFrame');
addItem('Stemware', 'thumbnail_all.php?Cat=Stemware', 'MainFrame');
addItem('Stress Toys', 'thumbnail_all.php?Cat=StressToys', 'MainFrame');
addItem('Sunglasses', 'thumbnail_all.php?Cat=SunGlasses', 'MainFrame');
addItem('Travel Mugs', 'thumbnail_all.php?Cat=Travelmugs', 'MainFrame');
addItem('Tools', 'thumbnail_all.php?Cat=Tools', 'MainFrame');
addItem('Toys', 'thumbnail_all.php?Cat=Toys', 'MainFrame');
addItem('Umbrellas', 'thumbnail_all.php?Cat=Umbrellas', 'MainFrame');
addItem('USB Products', 'thumbnail_all.php?Cat=USBProducts', 'MainFrame');
addItem('Watches', 'thumbnail_all.php?Cat=Watches', 'MainFrame');
addItem('Western', 'thumbnail_all.php?Cat=Western', 'MainFrame');
//addItem('Miscellaneous', 'thumbnail_all.php?Cat=Misc', 'MainFrame');

startMenu('mPens', true, 50, 'MainFrame.page.scrollY()+285', 100, subM, 'MainFrame', false);
addItem('Less than $1', 'thumbnail_all.php?Cat=Pens1', 'MainFrame');
addItem('Less than $5', 'thumbnail_all.php?Cat=Pens5', 'MainFrame');
addItem('Less than $20', 'thumbnail_all.php?Cat=PensUnder20', 'MainFrame');
addItem('More than $20', 'thumbnail_all.php?Cat=PensOver20', 'MainFrame');
addItem('Pen Sets', 'thumbnail_all.php?Cat=PenSets', 'MainFrame');

startMenu('mBrands', true, 0, 'MainFrame.page.scrollY()+2', 140, subM, 'MainFrame', false);
addItem('3M', 'thumbnail_all.php?Cat=3M', 'MainFrame');
addItem('Ashworth', 'thumbnail_all.php?Cat=Ashworth', 'MainFrame');
addItem('BIC', 'thumbnail_all.php?Cat=BIC', 'MainFrame');
addItem('Built', 'thumbnail_all.php?Cat=Built', 'MainFrame');
addItem('Bushnell', 'thumbnail_all.php?Cat=Bushnell', 'MainFrame');
//addItem('California Innovations', 'thumbnail_all.php?Cat=CaliforniaInnovations', 'MainFrame');
addItem('Callaway', 'thumbnail_all.php?Cat=Callaway', 'MainFrame');
addItem('Carhartt', 'thumbnail_all.php?Cat=Carhartt', 'MainFrame');
//addItem('Columbia', 'thumbnail_all.php?Cat=Columbia', 'MainFrame');
addItem('Cross', 'thumbnail_all.php?Cat=Cross', 'MainFrame');
//addItem('Danier Leather', 'thumbnail_all.php?Cat=Danier', 'MainFrame');
addItem('Dixon', 'thumbnail_all.php?Cat=Dixon', 'MainFrame');
//addItem('ESQ Swiss', 'thumbnail_all.php?Cat=ESQSwiss', 'MainFrame');
addItem('Garrity', 'thumbnail_all.php?Cat=Garrity', 'MainFrame');
addItem('Munsingwear', 'thumbnail_all.php?Cat=Munsingwear', 'MainFrame');
addItem('Nike Golf', 'thumbnail_all.php?Cat=Nike', 'MainFrame');
addItem('Ogio', 'thumbnail_all.php?Cat=Ogio', 'MainFrame');
addItem('Papermate', 'thumbnail_all.php?Cat=Papermate', 'MainFrame');
addItem('Parker', 'thumbnail_all.php?Cat=Parker', 'MainFrame');
addItem('More', 'mBrands2', 'sm:');

startMenu('mBrands2', true, 50, 'MainFrame.page.scrollY()+260', 100, subM, 'MainFrame', false);
//addItem('Ping', 'thumbnail_all.php?Cat=Ping', 'MainFrame');
addItem('Roots', 'thumbnail_all.php?Cat=Roots', 'MainFrame');
addItem('Samsonite', 'thumbnail_all.php?Cat=Samsonite', 'MainFrame');
addItem('Sun Ice', 'thumbnail_all.php?Cat=SunIce', 'MainFrame');
addItem('Swiss Army', 'thumbnail_all.php?Cat=SwissArmy', 'MainFrame');
addItem('Timex', 'thumbnail_all.php?Cat=Timex', 'MainFrame');
addItem('Uni-Ball', 'thumbnail_all.php?Cat=UniBall', 'MainFrame');
addItem('Waterman', 'thumbnail_all.php?Cat=Waterman', 'MainFrame');

startMenu('mSearch', true, 0, 'MainFrame.page.scrollY()+2', 90, subM, 'MainFrame', false);
addItem('By Price', 'search_price.php', 'MainFrame');
addItem('By Category', 'search_category.php', 'MainFrame');
addItem('By Both', 'search_both.php', 'MainFrame');
addItem('By Product ID', 'search_full.php', 'MainFrame');
}


