
/* HORIZONTAL FREESTYLE MENU LAYOUT */


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

/* Submenus (<ul> tags) are hidden and absolutely positioned downwards from their parent */
.hmenulist ul {
 visibility: hidden;
 position: absolute;
 top: 2.3em; /* I'm using ems rather than px to allow people to zoom their font */
 left: -27px;
 width: 120px;
}
.emenulist ul {
 visibility: hidden;
 position: absolute;
 top: 1.3em; /* I'm using ems rather than px to allow people to zoom their font */
 left: -27px;
 width: 240px;
}

/* Second and third etc. level submenus - position across from parent instead */
.hmenulist ul ul {
 top: 0px;
 left: -123px;
}
.emenulist ul ul {
 top: 0px;
 left: -123px;
}

/*
 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.
*/
.hmenulist li {
 float: right;
 position: relative; 
 border-left: 1px solid #bbb;
 border-right: 1px solid #888;
 margin-right: -1px;
}

.emenulist li {
 float: left;
 position: relative; 
 border-left: 1px solid #bbb;
 border-right: 1px solid #888;
 margin-right: -1px;
}

/* Items in submenus - override float/border/margin from above, restoring default vertical style */
.hmenulist ul li {
 float: none;
 margin-right: 0;
 margin-bottom: -1px;
 background-color: #fff;
 border: 1px solid #888;
}
.emenulist ul li {
 float: none;
 margin-right: 0;
 margin-bottom: -1px;
 background-color: #fff;
 border: 1px solid #888;
}
.hmenulist ul>li:last-child {
 margin-bottom: 1px;
}
.emenulist ul>li:last-child {
 margin-bottom: 1px;
}

/* Links inside the menu */
.hmenulist a {
 display: block;
 padding: 3px 10px 3px 10px;
 color: #000;
 text-decoration:  none;
 font-size: 13px;
 font-weight: bold;
 color: #004ec4;
}
.emenulist a {
 display: block;
 padding: 3px 10px 3px 10px;
 color: #000;
 text-decoration:  none;
 font-size: 13px;
 font-weight: bold;
 color: #004ec4;
}

/* Lit  items: 'hover' is mouseover, 'highlighted' are parent items to visible menus */
.hmenulist a:hover, .hmenulist a.highlighted:hover, .hmenulist a:focus {
 color: #666;
 background-color: #eee;
}
.emenulist a:hover, .hmenulist a.highlighted:hover, .hmenulist a:focus {
 color: #666;
 background-color: #eee;
}
.hmenulist  a.highlighted {
 color: #FFF;
 background-color: #aaa;
}
.emenulist  a.highlighted {
 color: #FFF;
 background-color: #aaa;
}

/*
 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);
    }
*/

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

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


/* This semi-commented section exists to fix bugs in IE/Windows (the 'Holly Hack'). \*/
* html .hmenulist  ul li {
 float: right;
 height: 1%;
}
* html .hmenulist  ul a {
 height: 1%;
}
/* End Hack */


/* VERTICAL FREESTYLE MENU LAYOUT */


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

/* Submenus (<ul> tags) are hidden and absolutely positioned across from their parent */
.menulist ul {
 visibility: hidden;
 position: absolute;
 top: 0;
 left: -155px;
}

/*
 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.
*/
.menulist li {
 position: relative;
 border: 1px solid #d2d2d2;
 background: #f2f2f2;
 margin-bottom: -1px;
}
.menulist ul>li:last-child {
 margin-bottom: 1px;
}

/* Links inside the menu */
.menulist a {
 display: block;
 font-size: 12px;
 padding: 3px;
 color: #2e6dcd;
 text-decoration: none;
}

/*
 Lit items: 'hover' is mouseover, 'highlighted' are parent items to visible menus.
*/
.menulist a:hover, .menulist a.highlighted:hover, .menulist a:focus {
 color: #000;
 background-color: #f2f2f2;
}
.menulist a.highlighted {
 color: #000;
 background-color: #d2d2d2;
}

/*
 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, which are automatically prepended to 'A' tag contents. */
.menulist a .subind {
 float: right;
}

/* This semi-commented section exists to fix bugs in IE/Windows (the 'Holly Hack'). \*/
* html .menulist li {
 float: left;
 height: 1%;
}
* html .menulist a {
 height: 1%;
}
/* End Hack */
