<!-- // Hide
//
//-----------------------------------------------------------------------------
//
// This logic requires that menusetup.js is also included within the HTML file 
// that is calling this JS script in order to work properly.  
// Ellen L. Przybyszewski  - www.webdesignist.com  9/2001
//
//  TO UPDATE THIS FILE FOR YOUR LEFT NAVIGATION NEEDS.....
//
// - after the startMenu('root') logic, simple modify/add in "addItem" statements for those
//   items you would like to appear in the gold box of the left nav of your page.  
//
// - note:  the sm: indicates that a submenu will also be created.
//   Submenus are created by subsequent startMenu(xxx) statements that correspond to the "mXxx"
//   submenu names entered in the "addItem" statement when the rootmenu was declared.
//
//   see existing "addItem" entries to see how to attach a HTML file to a navigational item. 
//
//
// The main menu section begins with the creation of a 'new PopupMenu(...)' object, which
// includes the main creation and update functions -- this example just has one object created.
// Next, we use its startMenu() function to create the individual menus used by the script.
// A PopupMenu() object must be passed its own name so it can reference itself when the menu
// is active. We also use a 'with' block to work with its properties and functions below.


var pMenu = new PopupMenu('pMenu');
with (pMenu)
{

// *** MOVE OR CENTRE THE MENU HERE ***
// MENU LOGIC......
//
// MAIN (root) MENU
// The 'root' menu is verticle, 
// positioned at (x = 17 - from left margin) , y = 120 from top) 
// and is 200px (LENGTH)wide, 
// and items by default use the colors/dimensions defined by the 
// 'eStyle' ItemStyle defined above.

startMenu('root', true, 46, 250, 180, primeStyle);
// The text is 2 spaces then the MAIN MENU navigation name, 
// then the name of the corresponding sub menu
// and this item pops out as the main menu's submenu 
//when moused over as we've set 'sm:' as the action type.


// beginning of home menu---------------------

if  (progid.substring(0,4) == "home") {
addItem('<center>Home</center>', 'index.html', '',primeStyleon);
  } else {
addItem('<center>Home</center>', 'index.html', '',primeStyle);
}
// end of home menu---------------------

//--------------start of seasons menu--------------------------------------
//if  (progid.substring(0,4) == "seas") {
//addItem('<center>Heather and Matthew</center>', 'mSeas', 'sm:', primeStyleon);
//  } else {
//addItem('<center>Heather and Matthew</center>', 'mSeas', 'sm:', primeStyle);
//}
//--------------end of seasons menu--------------------------------------


if  (progid == "direct") {
addItem('<center>Directions</center>', 'window.open("pdf/directions.pdf")', 'js:', primeStyleon);
  } else {
addItem('<center>Directions</center>', 'window.open("pdf/directions.pdf")', 'js:');
}

//--------------start of contact menu--------------------------------------
if  (progid == "hours") {
addItem('<center>Hours of Operation</center>', 'window.open("hours.html")','js:',primeStyleon);
  } else {
addItem('<center>Hours of Operation</center>', 'window.open("hours.html")','js:');
}
//--------------end of contact menu--------------------------------------




// beginning of seas SUBmenu---------------------
startMenu('mSeas', true, 200, 0, 180, secondStyle);
//addItem('Registry','window.open("wedding.html")', 'js:');
//addItem('Our Wedding Page','window.open("ourwedding.html")', 'js:');
//addItem('Summer', 'seasonal.html#summ', '');
//addItem('Fall/Harvest Time', 'seasonal.html#fall', '');
//addItem('Holidays', 'seasonal.html#holi', '');
//addItem('Winter', 'seasonal.html#wint', '');
// end of seas SUBmenu---------------------



}

// End Hide -->
