/* HORIZONTAL ANF VERTICAL FREESTYLE MENU LAYOUTS */
/* classes menulisth and menulistv */

/*

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 :).

*/



/* HORIZONTAL FREESTYLE MENU LAYOUT */


/* All <ul> tags in the menu including the first level */
.menulisth, .menulisth  ul {
 font:11px Arial, Helvetica, sans-serif;
 margin-left: 30px;
 margin-top: 4px;
 top: 0px;
 padding: 0px;
 list-style: none;
}

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

/* Second and third etc. level submenus - position across from parent instead */
.menulisth ul ul {
 top: 2px; margin-top: 0;
 left: 148px;
 border-bottom-color:#304561
}

/*
 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.
*/
.menulisth li {
 float: left;
 display: block;
 position: relative;
 background: #A4DADA;
 border-top: 1px solid #304561;
 border-right: 1px solid #304561;
 border-bottom: 0px solid #304561;
 border-left: 1px solid #304561;
 margin-right: -1px;
}

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

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

/* Lit  items: 'hover' is mouseover, 'highlighted' are parent items to visible menus */
.menulisth a:hover, .menulisth a.highlighted:hover, .menulisth a:focus {
 color: #F30;
 background-color: #DCEEEE;
}

.menulisth a:visited {
 color: #800080;
}

.menulisth a.highlighted {
/* color: #FFF;  */
 background-color: #DCEEEE;
}

/*
 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:
    .menulisth a#xyz {
      background-image: url(out.gif);
    }
    .menulisth a#xyz:hover, .menulisth a.highlighted#xyz, .menulisth a:focus {
     background-image: url(over.gif);
    }
*/

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


/* 'Escaped Comment' hack for horizontal menubar width in IE5/Mac */
.menulisth a {
 float: left;
}
.menulisth ul a {
 float: none;
}
/* \*/
.menulisth 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 .menulisth ul li {
 float: left;
 width: 100%;
}

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

/* VERTICAL FREESTYLE MENU LAYOUT */


/* All <ul> tags in the menu including the first level */
.menulistv, .menulistv ul {
 font:11px Arial, Helvetica, sans-serif;
 margin: 0;
 padding: 0px;
 width: 111px;
 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).
*/
.menulistv ul {
 margin: 0px;
 border: 1px solid #304561;
 display: none;
 position: absolute;
 top: 1px;
 left: 111px;
 width: 150px;
}

/*
 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.
*/
.menulistv li {
 margin: 0px;
 position: relative;
 border: 0px solid #304561;
 background: #C2D3E6;
 margin-bottom: -1px;
}
/* Section added by K to format vertical flyout menus */
.menulistv ul li {
 border-bottom: 1px solid #304561;
}

.menulistv ul>li:last-child {
 margin-bottom: 0px; /* Mozilla fix */
}

/* Links inside the menu */
.menulistv a {
 display: block;
 padding: 2px;
 margin: 0px 0px 1px 2px;
 color: #000080;
 text-decoration: none;
}

/*
 List items: 'hover' is mouseover, 'highlighted' are parent items to visible menus.
*/
.menulistv a:hover, .menulistv a.highlighted:hover, .menulistv a:focus {
 color: #F30;
 background-color: #DCEEEE;
}

.menulistv a:visited {
 color: #800080;
}

.menulistv a.highlighted {
 color: #000;
 background-color: #DCEEEE;
}

/*
 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:
    .menulistv a#xyz {
      background-image: url(out.gif);
    }
    .menulistv a#xyz:hover, .menulistv a.highlighted#xyz, .menulistv a:focus {
     background-image: url(over.gif);
    }
*/


/* 'subind' submenu indicators, which are automatically prepended to 'A' tag contents. */
.menulistv 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 .menulistv li {
 float: left;
 width: 100%;
}

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