

/* HORIZONTAL FREESTYLE MENU LAYOUT */

.padding {padding-left:5px; padding-right:5px;}
.bold {font-weight:bold;}

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

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

}

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

/*
 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.
*/

.hor_menulist li {
 float: left;
 display: block;
 position: relative;

 margin-right: 3px;
}

.hor_menulist li li {
	margin-right:-1px;
}


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

/* Links inside the menu */
.hor_menulist a {
 display: block;
 padding: 2px;
 color: #fff;
 text-decoration:  none;
}

.hor_menulist a:link {text-decoration:none; color:#FFFFFF;}     /* unvisited link */
.hor_menulist a:visited {text-decoration:none; color:#FFFFFF;}  /* visited link */
.hor_menulist a:hover {text-decoration:none; color:#E6AC2A;}   /* mouse over link */
.hor_menulist a:active {text-decoration:none; color:#FFFFFF;}   /* selected link */ 


.hor_menulist ul li a {
 line-height:1.4em;
 display: block;
 padding: 3px;
 color: #FFF;
 text-decoration:  none;
 font-size:0.9em;
}

/* Lit  items: 'hover' is mouseover, 'highlighted' are parent items to visible menus */
.hor_menulist a.highlighted:hover, .hor_menulist a:focus {
 color:#ffffff;
}
.hor_menulist a.highlighted {
 color: #FFF;
 
}

.hor_menulist ul li a:hover, .hor_menulist ul li a.highlighted:hover, .hor_menulist ul li a:focus {
 background:#99CC99;
	color:#000000;
 
}
.hor_menulist ul li a.highlighted {
 color: #FFF;
 background-color:#0099FF; 
}

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

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


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


/*
 HACKS: IE/Win:
 A small height on <li> and <a> tags and floating prevents gaps in menu.
 * html affects <=IE6 and *+html affects IE7.
 You may want to move these to browser-specific style sheets.
*/
*+html .hor_menulist ul li {
 float: left;
 height: 1%;
}
*+html .hor_menulist ul a {
 height: 1%;
}
* html .hor_menulist ul li {
 float: left;
 height: 1%;
}

* html .hor_menulist ul a {
 height: 1%;
}
/* End Hacks */