/* HORIZONTAL FREESTYLE MENU LAYOUT */


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

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

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

/*
 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.
*/
.menulistb li {
 float: left;
 display: block;
 position: relative;
 border: 0px;
 margin-right: -1px;
}

.menulistb li li {
 float: left;
 display: block;
 position: relative;
 background: #e5e5e5;
 border: 1px solid white;
 margin-right: -1px;
}

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

/* Links inside the menu */
.menulistb a {
 display: block;
 padding: 8px 10px 6px 10px;
 color: #003366;
 font-family:Arial,san-serif;
font-size:12px;
font-weight:bold;
text-decoration:none;
}

/* Links inside the menu */
.menulistb li li a {
 display: block;
 padding: 6px 10px 5px 10px;
 color: #333333;
 font-family:Arial,san-serif;
font-size:12px;
font-weight:normal;
text-decoration:none;
}

/* Lit  items: 'hover' is mouseover, 'highlighted' are parent items to visible menus */
.menulistb a:hover, .menulistb a.highlighted:hover, .menulistb a:focus {
 color: #FFF;
font-family:Arial,san-serif;
font-size:12px;
font-weight:bold;
text-decoration:none;
}
.menulistb a.highlighted {
 color: #FFF;
 font-family:Arial,san-serif;
font-size:12px;
font-weight:bold;
text-decoration:none;
}

.menulistb li li a:hover, .menulistb li li a.highlighted:hover, .menulistb li li a:focus {
 color: #ffffff;
 background-color: #666666;
 text-decoration: none;
font-weight:normal;
}
.menulistb li li a.highlighted {
 color: #ffffff;
 background-color: #666666;
 text-decoration: none;
font-weight:normal;
}

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

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


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

* html .menulistb ul li {
 float: left;
 height: 1%;
}
* html .menulistb ul a {
 height: 1%;
}

* html .menulistb ul ul {
 top: -1px; margin-top: 0;
 left: 230px;
}

*:first-child+html .menulistb ul ul {
 top: -1px; margin-top: 0;
 left: 230px;
}
/* End Hacks */

