/* HORIZONTAL FREESTYLE MENU LAYOUT */


/* All <ul> tags in the menu including the first level */
.menulist, .menulist  ul {
 margin: 0;
 padding: 0;
 list-style: none;
 width:900px;
 
}

/* Submenus (<ul> tags) are hidden and absolutely positioned downwards from their parent */
.menulist ul {
 display: none;
 position: absolute;
 top: 1.2em; margin-top: 13px; /* I'm using ems and px to allow people to zoom their font */
 left: 0px;
 width: 220px;
 background:#2f496e;
}

/* Second and third etc. level submenus - position across from parent instead */
.menulist ul ul {
 top: -1px; margin-top: 0;
 left: 145px;
}

/*
 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.
*/
.menulist li {
 float: left;
 display: block;
 position: relative;
 color:#ffffff;
 margin-right: -1px;
 width:145px;
 text-align:center;
 vertical-align:middle;
 background:#647fa2;
 height:27px;
}

.menulist li a 
{
 height:25px;
}

/* Items in submenus - override float/border/margin from above, restoring default vertical style */
.menulist ul li {
 float: none;
 text-align:left;
 border:0px;
 margin:0px 2px 0px 0px;
 width:215px;
 background:#2f496e; 
}

.menulist ul>li:last-child {
 margin-bottom: 1px; /* Mozilla fix */
}

/* Links inside the menu */
.menulist a {
 display: block;
 padding:2px 0px 0px 0px;
 color:#fff;
 font-size:12px;
 font-weight:bold;
 text-decoration: none;
 height:27px;
}


.menulist ul li a
{	
 height:auto;
 margin:5px 0 5px 10px;
}

.menulist ul li 
{
	height:30px;
	width:100%;
}

/* Lit  items: 'hover' is mouseover, 'highlighted' are parent items to visible menus */

.menulist li:hover, .menulist li.highlighted:hover, .menulist li:focus {
 color: #FFF;
 background-color: #2f496e;
}


.menulist ul li:hover, .menulist ul li.highlighted:hover, .menulist ul li:focus
{
	background:#647fa2;
}

.menulist a.highlighted {
 color: #FFF;
}

/* Only style submenu indicators within submenus. */
.menulist a .subind {
 display: none;
}
.menulist ul a .subind {
 display: block;
 float: right;
}

.menulist a {
 float: left;
}
.menulist ul a {
 float: none;
}

.menulist a {
 float: none;
}

*:first-child+html .menulist ul li {
 float: left;
 width: 100%;
}

* html .menulist ul li {
 float: left;
 height: 1%;
}
* html .menulist ul a {
 height: 1%;
}
/* End Hacks */
