/***********************
  SCK Hierarchical Pop-up Menus
  Copyright 2002  SCK Design

  Menu definitions


  Syntax:
     Menus ['<menu_name>'] = <menu>;  (root-level menu)
  or Menus ['<menu_name>'].items [<item_number>] = <menu>;  (submenu)

  -- <item_number> is zero-based; i.e. the first item in a list
    is number 0, the second is number 1, and so on.

  <menu> is
  {
    <parameter>: <value>, ..., <parameter>: <value>,
    items: [<item>, ..., <item>]
  }

  <item> is
  {
    text: '<display_text>', 
    link: '<url>'
  }

  Spacing is irrelevant, but brackets, braces, and commas are 
  ultra-important.  Root-level menus must have as parameters left
  and top (submenus determine left and top from their parent menu).
  
  Menus can have onHide and onShow parameters; these must be strings
  containing valid JavaScript code.

  Menus can also override any of the parameters from menu_params,
  including width.
*/

/***********************
  Menus
***********************/

Menus ['amenities'] =
{
  width: 169, relativeToElement: 'amenities', left_delta: -2, top_delta: 17,
  onShow: "MM_swapImage('amenities','','/images/amenitiesRoll.gif',1);",
  onHide: "SCK_MM_swapImgsRestore ('amenities');",
  items:
  [
    {text: "Amenities &amp; Local Businesses", link: "/amenities/"},
    {text: "Animal Care", link: "/amenities/default.htm#animal"},
    {text: "Arts and Culture", link: "/amenities/default.htm#arts"},
    {text: "Automobile Care", link: "/amenities/default.htm#automobile"},
    {text: "Banks, Financial &amp; Insurance Institutions", link: "/amenities/default.htm#banks"},
    {text: "Education &amp; Libraries", link: "/amenities/default.htm#education"},
    {text: "Fitness", link: "/amenities/default.htm#fitness"},
    {text: "Funeral Homes", link: "/amenities/default.htm#funeral"},
    {text: "Hair Care", link: "/amenities/default.htm#hair"},
    {text: "Healthcare", link: "/amenities/default.htm#healthcare"},
    {text: "Markets", link: "/amenities/default.htm#markets"},
    {text: "Professional Services", link: "/amenities/default.htm#services"},
    {text: "Social Halls", link: "/amenities/default.htm#social"}
  ]
};

Menus ['events'] =
{
  width: 100, relativeToElement: 'events', left_delta: -2, top_delta: 17,
  onShow: "MM_swapImage('events','','/images/eventsRoll.gif',1);",
  onHide: "SCK_MM_swapImgsRestore ('events');",
  items:
  [
    {text: "Events", link: "/events/"},
{text: "Taste of Tremont", link: "/events/tremont/"},
<!--	{text: "Holiday Hop", link: "/events/holidayhop/"}, -->
    {text: "Tremont Art Walk", link: "/arthop/"}
  ]
};

Menus ['map'] =
{
  width: 150, relativeToElement: 'map', left_delta: -2, top_delta: 17,
  onShow: "MM_swapImage('map','','/images/mapRoll.gif',1);",
  onHide: "SCK_MM_swapImgsRestore ('map');",
  items:
  [
    {text: "From I-77 (Northbound)", link: "/map/I77northbound.htm"},
    {text: "From I-71 (Northbound)", link: "/map/I71northbound.htm"},
    {text: "From I-90 (Eastbound)", link: "/map/I90eastbound.htm"},
    {text: "From I-90 (Westbound)", link: "/map/I90westbound.htm"}
  ]
};

/*****************************
  Restores an image on mouseout
  of the menu; don't edit.
*****************************/
function SCK_MM_swapImgsRestore ()
{
   var i, x;
   var args = SCK_MM_swapImgsRestore.arguments;

   for (i = 0; i < args.length; i ++)
   {
     if ((x = MM_findObj (args [i])) != null)
     {
       if (x.oSrc)
         x.src = x.oSrc;
     }
   }   
}