/* HORIZONTAL FREESTYLE MENU LAYOUT */
/* All <ul> tags in the menu including the first level */


ul.main_menu{
	position:absolute;
	left: 0px;
	
}
.main_menu, .main_menu  ul
{
	margin: 0;
	padding: 0;
	list-style: none;
	color: #29357A;
	font-size: 14px;
}

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

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

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

ul.main_menu li
{
	float: left;
	display: block;
	position: relative;
	background: #FFF;
	margin-right: 10px;
	font-weight: bold;

}

/* First menu */
ul.main_menu>li{
	height:21px;
}
ul.main_menu>li:hover, ul.main_menu>li .highlighted:hover
{
	border-width: 0 0 4px 0;
	border-style:solid;
	border-color: #EEA14D;
}

/* Items in submenus - override float/border/margin from above, restoring default vertical style */
.main_menu ul li
{
	float: none;
	margin-right: 0;
	margin-bottom: 0px;
	background-color: #ECF0F5;
	border-width: 0 0 1px 0;
	border-style:solid;
	border-color: #29357A;
	font-size: 11px;
	width:100%;

}

.main_menu ul>li:last-child
{
	margin-bottom: 1px;
	/* Mozilla fix */
}

/* Links inside the menu */
.main_menu a
{
	display: block;
	padding: 3px;
	text-decoration: none;
	color: #29357A;
}

/* Lit  items: 'hover' is mouseover, 'highlighted' are parent items to visible menus */
.main_menu a:hover, .main_menu a.highlighted:hover, .main_menu a:focus
{

}

.main_menu a.highlighted
{
	color: #FFF;
	background-color: #FFF;
}

.main_menu ul li a:hover, .main_menu a.highlighted:hover, .main_menu a:focus
{
	background-color: #B0BDF1;
}

.main_menu ul li a.highlighted
{

}

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

/* Only style submenu indicators within submenus. */
.main_menu a .subind { display: none; }

.main_menu ul a .subind
{
	display: block;
	float: right;
}

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

/* \*/
.main_menu 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 .main_menu ul li
{
	float: left;
	height: 1%;
}

*+html .main_menu ul a { height: 1%; }

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

* html .main_menu ul a { height: 1%; }

/* End Hacks */