// Style definitions used by the script (defined in basestyles.css).
var hBar = new ItemStyle(10, 5, '', 3, 0, '', '', 'lowText', 'highText',
null, null, null, null, 'hand', 'default');
// Following itemStyle is only used by individual main menu (non-flyout) addItem rows in order to
// hilite the department whose page we're currently viewing.
var hBarAlwaysOn = new ItemStyle(10, 5, '', 3, 0, '', '', 'highText', 'highText',
null, null, null, null, 'hand', 'default');
var subM = new ItemStyle(22, 0, '>', -15, 3, '#ffffff', '#ffffff', 'subTextLow', 'subTextHigh',
null, null, 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)
{
// ROOT MENU (Horizontal across the top of the page)
// The code in the third param of the startMenu call below is to determine the horizontal positioning of the
// main menu bar. The center-floated nature of the page content makes the menu bar position change as a user
// sizes/resizes/maximizes the browser window, so we can't specify a specific distance from the left side of
// the window. The code finds the center of the window by dividing the window width in half, then subtracts
// half of the width of the page's content area to find where the left side of the page content begins, and
// then adds 15 pixels to push the menu right-ward within the confines of the content's main black box. If the
// window becomes smaller than the main content then we specify a fixed position of 15, otherwise the normal
// calculation will push the menu off the left side of the window as the window shrinks.
// small unfixed issue: when Firefox's vertical scroll bar appears, the menu shifts to the left 9 pixels. A
// solution was offered for this, which is to subtract the result of (isIE&&!isOp?0:9) and "overflow: scroll;"
// as a body tag style in order to keep the scroll bar present at all times, which appears worse to me than
// the menu shift.x = Math.min(19, 20)
startMenu('root', false, 'if (page.winW() <= 762){15} else {page.winW()/2 - (762/2) + 15}', 80, 17, hBar, '', false);
addItem(' JEWELRY', 'm1', 'sm:', null, 86).onclick='window.location.href = "http://www.hamiltonjewelers.com/dept.cfm?dept=1"';
addItem(' WATCHES', 'm2', 'sm:', null, 86).onclick='window.location.href = "http://www.hamiltonjewelers.com/dept.cfm?dept=2"';
addItem(' GIFTS & ACCESSORIES', 'm3', 'sm:', null, 161).onclick='window.location.href = "http://www.hamiltonjewelers.com/dept.cfm?dept=3"';
addItem(' AT THE TABLE', 'm4', 'sm:', null, 117).onclick='window.location.href = "http://www.hamiltonjewelers.com/dept.cfm?dept=4"';
addItem(' CLIENT SERVICES', 'm5', 'sm:', null, 136).onclick='window.location.href = "http://www.hamiltonjewelers.com/dept.cfm?dept=5"';
addItem(' ABOUT HAMILTON', 'm6', 'sm:', null, 130).onclick='window.location.href = "http://www.hamiltonjewelers.com/dept.cfm?dept=6"';
startMenu('m1', true, 0, 21, 142, subM, '', false);
addItem('Bracelets',pathToRoot + 'http://www.hamiltonjewelers.com/category.cfm?rf=y&cid=500', '','',24);
addItem('Brooches / Pins',pathToRoot + 'http://www.hamiltonjewelers.com/category.cfm?rf=y&cid=501', '','',24);
addItem('Cufflinks',pathToRoot + 'http://www.hamiltonjewelers.com/category.cfm?rf=y&cid=502', '','',24);
addItem('Earrings',pathToRoot + 'http://www.hamiltonjewelers.com/category.cfm?rf=y&cid=503', '','',24);
addItem('Engagement Rings',pathToRoot + 'http://www.hamiltonjewelers.com/category.cfm?rf=y&cid=504', '','',24);
addItem('Estate',pathToRoot + 'http://www.hamiltonjewelers.com/category.cfm?rf=y&cid=505', '','',24);
addItem('Eternity &
Anniversary Bands',pathToRoot + 'http://www.hamiltonjewelers.com/category.cfm?rf=y&cid=506', '','',37);
addItem('Necklaces',pathToRoot + 'http://www.hamiltonjewelers.com/category.cfm?rf=y&cid=507', '','',24);
addItem('Pendants',pathToRoot + 'http://www.hamiltonjewelers.com/category.cfm?rf=y&cid=508', '','',24);
addItem('Rings',pathToRoot + 'http://www.hamiltonjewelers.com/category.cfm?rf=y&cid=509', '','',24);
addItem('Wedding Bands',pathToRoot + 'http://www.hamiltonjewelers.com/category.cfm?rf=y&cid=510', '','',24);
addItem('Private Reserve',pathToRoot + 'http://www.hamiltonjewelers.com/category.cfm?rf=y&cid=609', '','',24);
startMenu('m2', true, 0, 21, 162, subM, '', false);
addItem('Brand',pathToRoot + 'http://www.hamiltonjewelers.com/dept.cfm?rf=y&dept=511', '','',24);
addItem('Gender',pathToRoot + 'http://www.hamiltonjewelers.com/dept.cfm?rf=y&dept=512', '','',24);
addItem('Pre-Owned and Vintage',pathToRoot + 'http://www.hamiltonjewelers.com/dept.cfm?rf=y&dept=513', '','',24);
addItem('Price Point',pathToRoot + 'http://www.hamiltonjewelers.com/dept.cfm?rf=y&dept=514', '','',24);
startMenu('m3', true, 0, 21, 149, subM, '', false);
addItem('Baby',pathToRoot + 'http://www.hamiltonjewelers.com/category.cfm?rf=y&cid=515', '','',24);
addItem('Bridal Gifts',pathToRoot + 'http://www.hamiltonjewelers.com/category.cfm?rf=y&cid=516', '','',24);
addItem('Business Gifts',pathToRoot + 'http://www.hamiltonjewelers.com/category.cfm?rf=y&cid=517', '','',24);
addItem('Clocks',pathToRoot + 'http://www.hamiltonjewelers.com/category.cfm?rf=y&cid=518', '','',24);
addItem('Collectibles',pathToRoot + 'http://www.hamiltonjewelers.com/category.cfm?rf=y&cid=519', '','',24);
addItem('Engravables',pathToRoot + 'http://www.hamiltonjewelers.com/category.cfm?rf=y&cid=520', '','',24);
addItem('Frames',pathToRoot + 'http://www.hamiltonjewelers.com/category.cfm?rf=y&cid=521', '','',24);
addItem('Gift Cards',pathToRoot + 'http://www.hamiltonjewelers.com/adhoc.cfm?cmkey=gfcd', '','',24);
addItem('Gifts for Her',pathToRoot + 'http://www.hamiltonjewelers.com/category.cfm?rf=y&cid=523', '','',24);
addItem('Gifts for Him',pathToRoot + 'http://www.hamiltonjewelers.com/category.cfm?rf=y&cid=524', '','',24);
addItem('Home Décor',pathToRoot + 'http://www.hamiltonjewelers.com/category.cfm?rf=y&cid=525', '','',24);
addItem('Ladies\' Accessories',pathToRoot + 'http://www.hamiltonjewelers.com/category.cfm?rf=y&cid=526', '','',24);
addItem('Leather Goods',pathToRoot + 'http://www.hamiltonjewelers.com/category.cfm?rf=y&cid=527', '','',24);
addItem('Men\'s Accessories',pathToRoot + 'http://www.hamiltonjewelers.com/category.cfm?rf=y&cid=528', '','',24);
addItem('Silver Accessories',pathToRoot + 'http://www.hamiltonjewelers.com/category.cfm?rf=y&cid=529', '','',24);
addItem('Writing Instruments',pathToRoot + 'http://www.hamiltonjewelers.com/category.cfm?rf=y&cid=530', '','',24);
startMenu('m4', true, 0, 21, 116, subM, '', false);
addItem('Bowls',pathToRoot + 'http://www.hamiltonjewelers.com/category.cfm?rf=y&cid=531', '','',24);
addItem('Candlesticks',pathToRoot + 'http://www.hamiltonjewelers.com/category.cfm?rf=y&cid=532', '','',24);
addItem('China',pathToRoot + 'http://www.hamiltonjewelers.com/category.cfm?rf=y&cid=533', '','',24);
addItem('Crystal',pathToRoot + 'http://www.hamiltonjewelers.com/category.cfm?rf=y&cid=534', '','',24);
addItem('Flatware',pathToRoot + 'http://www.hamiltonjewelers.com/category.cfm?rf=y&cid=535', '','',24);
addItem('Hollowware',pathToRoot + 'http://www.hamiltonjewelers.com/category.cfm?rf=y&cid=536', '','',24);
addItem('Serving Pieces',pathToRoot + 'http://www.hamiltonjewelers.com/category.cfm?rf=y&cid=537', '','',24);
addItem('Stemware',pathToRoot + 'http://www.hamiltonjewelers.com/category.cfm?rf=y&cid=538', '','',24);
addItem('Wine & Bar
Accessories',pathToRoot + 'http://www.hamiltonjewelers.com/category.cfm?rf=y&cid=539', '','',37);
startMenu('m5', true, 0, 21, 168, subM, '', false);
addItem('Your Account',pathToRoot + 'https://shop.hamiltonjewelers.com/secure/YourAccount.cfm', '','',24);
addItem('Gift Wrapping
and Shipping',pathToRoot + 'http://www.hamiltonjewelers.com/adhoc.cfm?cmkey=gftwrpshp', '','',37);
addItem('Sign-Up for Your VIP
Membership',pathToRoot + 'http://www.hamiltonjewelers.com/MailingListSignUp.cfm', '','',37);
addItem('The Hamilton Guarantee',pathToRoot + 'http://www.hamiltonjewelers.com/adhoc.cfm?cmkey=hmguar', '','',24);
addItem('Hamilton Hint Program',pathToRoot + 'http://www.hamiltonjewelers.com/adhoc.cfm?cmkey=hmhintprog', '','',24);
addItem('Hamilton Jewelers
Credit Card',pathToRoot + 'http://www.hamiltonjewelers.com/adhoc.cfm?cmkey=hjcrdtcrd', '','',37);
addItem('Client Evaluation Form',pathToRoot + 'http://www.hamiltonjewelers.com/survey', '','',24);
addItem('Contact Us',pathToRoot + 'http://www.hamiltonjewelers.com/adhoc.cfm?cmkey=cntctus', '','',24);
startMenu('m6', true, 0, 21, 181, subM, '', false);
addItem('All About Hamilton',pathToRoot + 'http://www.hamiltonjewelers.com/adhoc.cfm?cmkey=allabout', '','',24);
addItem('Employment Opportunities',pathToRoot + 'http://www.hamiltonjewelers.com/adhoc.cfm?cmkey=empops', '','',24);
addItem('News and Notes',pathToRoot + 'http://www.hamiltonjewelers.com/adhoc.cfm?cmkey=newsnotes', '','',24);
addItem('Upcoming Events',pathToRoot + 'http://www.hamiltonjewelers.com/adhoc.cfm?cmkey=upcmgevnts', '','',24);
addItem('Hamilton in the Press',pathToRoot + 'http://www.hamiltonjewelers.com/adhoc.cfm?cmkey=inpress', '','',24);
addItem('Recent Advertisements',pathToRoot + 'http://www.hamiltonjewelers.com/adhoc.cfm?cmkey=recntads', '','',24);
}