/*

Here's a demo stylesheet used to format a menu and its content.
Feel free to alter the menu layout however you want!
All you have to do is ensure the script has the correct CSS property name
(like 'visibility' or 'display') that changes to show/hide menus.

If you want to extend this layout, one good resource for UL/LI formatting is:
    http://www.alistapart.com/articles/taminglists/
Alternatively, you can use any other CSS dropdown layout instead. More here:
    http://www.alvit.de/css-showcase/
Consult your favourite CSS reference for customising fonts/borders/etc.

Otherwise, you can just change the #RGB border/background colours where
suitable to customise for your site -- easy :).

*/



/* OFFICE-STYLE FREESTYLE MENU LAYOUT */


/* All <ul> tags in the menu including the first level 
	 You may need to adjust the padding to provide continuous line breaks between menu options.
	 You can provide a repeatable image to pad a side of the menu options, or remove it and adjust the 
	 ".menulist li" padding to move the text. Be sure to set regular background color here if desired.
	 If you will be adding breaks between options, then set border-bottom: 0px and border-bottom in
	 ".menulist li" to desired thickness. */
.menulist, .menulist ul {
 margin: 0;
 padding: 1px;
 width: 170px;
 list-style: none;
 /*background: #F0F0F8 url(listmenu_o.png) left repeat-y;*/
 border-bottom: 0px solid #006;*/
}

/* Submenus (<ul> tags) are hidden and absolutely positioned across from their parent.
	 Adjust the top and left positions to adjust where submenus will pop up. */
.menulist ul {
 display: none;
 position: absolute;
 top: 0;
 left: 170px;
}

/* All menu items (<li> tags) are relatively positioned (to correctly offset submenus).
   Set border-bottom here to divide menu options. */
.menulist li {
 position: relative;
 list-style: none;
}

/* Links inside the menu. Set text color and position via padding here, and alter border
	 between menu option and outer table border if desired. */
.menulist li a {
 display: block;
 padding: 3px 4px 3px 30px;
 color: #000;
 text-decoration: none;
 /*border: 1px solid transparent;*/
 margin: 0;

}
/* HACKS: MSIE6 doesn't support transparent borders, mimic with margins */
* html .menulist li a {
 border-width: 0;
 margin: 1px;
}

/*
 Lit items: hover/focus = the current item. 'highlighted' = parent items to visible menus.
 Here, active items are given a border, and a padding tweak to 'elevate' the text within.
 Feel free to use background-image:url(file.gif) instead of background-color:#nnn here...
*/
.menulist a:hover, .menulist a.highlighted:hover, .menulist a:focus {
 color: #FFF;
 background-color: #46A;
 padding: 2px 5px 4px 29px;
 /*border: 1px solid #ADF;*/
 margin: 0;
}
.menulist a.highlighted {
 color: #FFF;
 background-color: #68C;
 /*border: 1px solid #CDE;*/
 margin: 0;
}

/*
 If you want per-item background images in your menu items, here's how to do it.
 1) Assign a unique ID tag to each link in your menu, like so: <a id="xyz" href="#">
 2) Copy and paste these next lines for each link you want to have an image:
    .menulist a#xyz {
      background-image: url(out.gif);
    }
    .menulist a#xyz:hover, .menulist a.highlighted#xyz, .menulist a:focus {
     background-image: url(over.gif);
    }
*/


/* 'subind' submenu indicators (The ">"), which are automatically prepended to 'A' tag contents.
   Add display:none if you want to get rid of them, or look in popup_tree_menu.js to customize. */
.menulist a .subind {
 float: right;
}

/*
 HACKS: IE/Win:
 A small height on <li> and <a> tags and floating prevents gaps in menu.
 * html affects <=IE6 and *:first-child+html affects IE7.
 You may want to move these to browser-specific style sheets.
*/
*:first-child+html .menulist li {
 float: left;
 width: 100%;
}

* html .menulist li {
 float: left;
 height: 1%;
}
* html .menulist a {
 height: 1%;
}
/* End Hacks */

/* HORIZONTAL FREESTYLE MENU LAYOUT */


/* All <ul> tags in the menu including the first level */
.horizmenulist, .horizmenulist  ul {
 margin: 0;
 padding: 0;
 list-style: none;
}

/* Submenus (<ul> tags) are hidden and absolutely positioned downwards from their parent */
.horizmenulist ul {
 display: none;
 position: absolute;
 top: 1.0em; margin-top: 13px; /* I'm using ems and px to allow people to zoom their font */
 left: -1px;
 width: 150px;
}

/* Second and third etc. level submenus - position across from parent instead */
.horizmenulist ul ul {
 top: -1px; margin-top: 0;
 left: 148px;
}

/*
 All menu items (<li> tags). 'float: left' lines them up horizontally, and they are
 positioned relatively to correctly offset submenus. Also, they have overlapping borders.
*/
.horizmenulist li {
 float: left;
 display: block;
 position: relative;
 background: #FED;
 /*border: 1px solid #330;*/
 margin-right: -1px;
}

/* Items in submenus - override float/border/margin from above, restoring default vertical style */
.horizmenulist ul li {
 float: none;
 margin: 0;
 margin-bottom: -1px;
}
.horizmenulist ul>li:last-child {
 margin-bottom: 1px; /* Mozilla fix */
}

/* Links inside the menu */
.horizmenulist a {
 display: block;
 padding: 3px;
 color: #000;
 text-decoration: none;
}

/* Lit  items: 'hover' is mouseover, 'highlighted' are parent items to visible menus */
.horizmenulist a:hover, .horizmenulist a.highlighted:hover, .horizmenulist a:focus {
 color: #FFF;
 background-color: #A64;
}
.horizmenulist a.highlighted {
 color: #FFF;
 background-color: #C86;
}

/*
 If you want per-item background images in your menu items, here's how to do it.
 1) Assign a unique ID tag to each link in your menu, like so: <a id="xyz" href="#">
 2) Copy and paste these next lines for each link you want to have an image:
    .horizmenulist a#xyz {
      background-image: url(out.gif);
    }
    .horizmenulist a#xyz:hover, .menulist a.highlighted#xyz, .menulist a:focus {
     background-image: url(over.gif);
    }
*/

/* Only style submenu indicators within submenus. */
.horizmenulist a .subind {
 display: none;
}
.horizmenulist ul a .subind {
 display: block;
 float: right;
}


/* 'Escaped Comment' hack for horizontal menubar width in IE5/Mac */
.horizmenulist a {
 float: left;
}
.horizmenulist ul a {
 float: none;
}
/* \*/
.horizmenulist a {
 float: none;
}
/* */


/*
 HACKS: IE/Win:
 A small height on <li> and <a> tags and floating prevents gaps in menu.
 * html affects <=IE6 and *:first-child+html affects IE7.
 You may want to move these to browser-specific style sheets.
*/
*:first-child+html .horizmenulist ul li {
 float: left;
 width: 100%;
}

* html .horizmenulist ul li {
 float: left;
 height: 1%;
}
* html .horizmenulist ul a {
 height: 1%;
}
/* End Hacks */

/* End of Horizontal Menu Styles */


/* VERTICAL FREESTYLE MENU LAYOUT */


/* All <ul> tags in the menu including the first level */
.vertmenulist, .vertmenulist ul {
 margin: 0;
 padding: 0;
 width: 150px;
 list-style: none;
}

/*
 Submenus (<ul> tags) are hidden and absolutely positioned across from their parent.
 They don't *have* to touch their parent menus, but is' a good idea as CSS-only fallback
 mode requires menus to touch/overlap (when JS is disabled in the browser).
*/
.vertmenulist ul {
 display: none;
 position: absolute;
 top: -5px;
 left: 200px;
}

/*
 All menu items (<li> tags) are relatively positioned to correctly offset their submenus.
 They have borders that are slightly overlaid on one another to avoid doubling up.
*/
.vertmenulist li {
 position: relative;
 border: 1px solid #330;
 background: #FED;
 margin-bottom: -1px;
}
.vertmenulist ul>li:last-child {
 margin-bottom: 1px; /* Mozilla fix */
}

/* Links inside the menu */
.vertmenulist a {
 display: block;
 padding: 3px;
 color: #000;
 text-decoration: none;
}

/*
 Lit items: 'hover' is mouseover, 'highlighted' are parent items to visible menus.
*/
.vertmenulist a:hover, .vertmenulist a.highlighted:hover, .vertmenulist a:focus {
 color: #FFF;
background-color: #A64;
}
.vertmenulist a.highlighted {
 color: #FFF;
 background-color: #C86;
}

/*
 If you want per-item background images in your menu items, here's how to do it.
 1) Assign a unique ID tag to each link in your menu, like so: <a id="xyz" href="#">
 2) Copy and paste these next lines for each link you want to have an image:
    .vertmenulist a#xyz {
      background-image: url(out.gif);
    }
    .vertmenulist a#xyz:hover, .vertmenulist a.highlighted#xyz, .vertmenulist a:focus {
     background-image: url(over.gif);
    }
*/


/* 'subind' submenu indicators, which are automatically prepended to 'A' tag contents. */
.vertmenulist a .subindpic {
 float: right;
}

/*
 HACKS: IE/Win:
 A small height on <li> and <a> tags and floating prevents gaps in menu.
 * html affects <=IE6 and *:first-child+html affects IE7.
 You may want to move these to browser-specific style sheets.
*/
*:first-child+html .vertmenulist li {
 float: left;
 width: 100%;
}

* html .vertmenulist li {
 float: left;
 height: 1%;
}
* html .vertmenulist a {
 height: 1%;
}
/* End Hacks */
