/* HORIZONTAL FREESTYLE MENU LAYOUT */


/* All <ul> tags in the menu including the first level */
.Custmenulist, .Custmenulist  ul {
 margin: 0;
 padding: 0;
 list-style: none; 
}

/* Submenus (<ul> tags) are hidden and absolutely positioned downwards from their parent */
.Custmenulist ul {
 display: none;
 position: absolute;
 top: 0; margin-top: 35px; /* I'm using ems and px to allow people to zoom their font */
 left: 0px;
 width: 170px;
}

/* Second and third etc. level submenus - position across from parent instead */
.Custmenulist ul ul {
 top: 0px; margin-top: 0;
 left: 170px;
}

/*
 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.
*/
.Custmenulist li {
 float: left;
 display: block;
 position: relative;
 background: #FED;
 border: none;
 border-right:1px solid #B8C97F;
 margin: 0px;
}

/* Items in submenus - override float/border/margin from above, restoring default vertical style */
.Custmenulist ul li {
 float: none;
 margin: 0;
 margin-bottom: -1px;
}
.Custmenulist ul>li:last-child {
 margin-bottom: 1px; /* Mozilla fix */
}

/* Links inside the menu */
.Custmenulist li a {
 -moz-box-sizing:border-box;box-sizing:border-box;
 margin:0px;
 vertical-align:middle;
 text-align:center;
 float:left;
 display: block;
 padding-top: 5px;
 padding-left:10px;
 padding-right:10px;
 color: #fff;
 font-family:arial;
 font-weight:normal;
 font-size:12pt;
 text-decoration: none;
 height: 35px;
 background: url(../images/sitepicts/design/menu_bg.gif) repeat-x;
}
/* Lit  items: 'hover' is mouseover, 'highlighted' are parent items to visible menus */
.Custmenulist li a:hover, .Custmenulist li a.highlighted:hover, .Custmenulist li a:focus {
 color: #FFF;
 margin: 0;
 font-family:arial;
 font-weight:normal;
 font-size:12pt;
 background: url(../images/sitepicts/design/menu_over.gif) repeat-x;
}
.Custmenulist li a.highlighted {
 color: #FFF;
 background-color: #778c2d;
}

/* SUB MENUS */
.Custmenulistsub li a {
 -moz-box-sizing:border-box;box-sizing:border-box;
 margin:0px;
 vertical-align:middle;
 text-align:left;
 float:left;
 display: block;
 padding:2px;
 color: #fff;
 font-family:arial;
 font-weight:normal;
 font-size:11pt;
 text-decoration: none;
 height: 20px;
 background: #95ad3f;
}
.Custmenulistsub li a:hover, .Custmenulistsub li a.highlighted:hover, .Custmenulistsub li a:focus {
 color: #FFF;
 margin: 0;
 font-family:arial;
 font-weight:normal;
 font-size:11pt;
 background: #023574;
}
.Custmenulistsub li a.highlighted {
 color: #FFF;
 background-color: #778c2d;
}

/*
 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:
    .Custmenulist a#xyz {
      background-image: url(out.gif);
    }
    .Custmenulist a#xyz:hover, .Custmenulist a.highlighted#xyz, .Custmenulist a:focus {
     background-image: url(over.gif);
    }
*/

/* Only style submenu indicators within submenus. */
.Custmenulist li a .subind {
 display: none;
}
.Custmenulist ul li a .subind {
 display: block;
 float: right;
}


/* 'Escaped Comment' hack for horizontal menubar width in IE5/Mac */
.Custmenulist a {
 float: left;
}
.Custmenulist ul a {
 float: none;
}
/* \*/
.Custmenulist 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 .Custmenulist ul li {
 float: left;
 width: 100%;
}

* html .Custmenulist ul li {
 float: left;
 height: 1%;
}
* html .Custmenulist ul a {
 height: 1%;
}
/* End Hacks */
