/* ----[ LINKS ]----*/

#subMenusContainer li {
	height: 24px;
	background-image: url('../images/bg-menu.gif');
	background-repeat: repeat-x;
}

/* all menu links */
#subMenusContainer a {
	display: block;
	padding: 4px 10px 0 10px; /* top right bottom left */
	height: 20px;
	font-family: Arial;
	font-size: 120%;
	font-weight: bold;
	text-decoration: none;
}

#mainnav a.mainMenuParentBtnFocused {
	color: #1c395c;
	background-color: #dfb22a;
}

/* sub menu links on hover or focus */
#subMenusContainer a:hover, 
#subMenusContainer a:focus, 
#subMenusContainer a.subMenuParentBtnFocused {
	color: #1c395c;
	background-color: #b7ceec;
}

/* Parent Sub Menu Links ---[javascript users only]*/
.subMenuParentBtn { 
	background-image: url('../images/icons/arrow_right.gif');
	background-position: right center;
	background-repeat: no-repeat;
}

/* Parent Sub Menu Links on hover or focus ---[javascript users only]*/
.subMenuParentBtnFocused {
	background-image: url('../images/icons/arrow_right_over.gif');
	background-position: right center;
	background-repeat: no-repeat;
}

/* Parent Main Menu Links ---[javascript users only]*/
.mainMenuParentBtn {
	background-image: url('../images/icons/arrow_down.gif');
	background-position: right center;
	background-repeat: no-repeat;
}

/* Parent Main Menu Links on hover or focus ---[javascript users only]*/
.mainMenuParentBtnFocused {
	background-image: url('../images/icons/arrow_down_over.gif');
	background-position: right center;
	background-repeat: no-repeat;
}

/* ----[ OLs ULs, LIs, and DIVs ]----*/

/* Submenu Outer Wrapper - each submenu is inside a div with this class - javascript users only */
.smOW { 
	display: none; 
	position: absolute; 
	overflow: hidden; 
	/*the 2px left & right padding lets you have a 1px border 
	  on the ul or ol inside since overflow is set to hidden*/
	padding: 0 2px;
	margin: 0 0 0 -2px;
}

/* All submenu OLs and ULs */
#subMenusContainer ul, #subMenusContainer ol {
	border: 1px solid #000000;
	left: 0;
}


/* List items in main menu --[for non-javascript users this applies to submenus as well]  */
#mainnav li { 
	/*great place to use a background image as a divider*/
	display: block;
	list-style: none;
	position: relative;
	float: left;
}

#subMenusContainer li {
	list-style: none;
}

#subMenusContainer {
	display: block; 
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 0;
	overflow: visible;
	z-index: 1000000000;
}


/* --------------------------[ The below is just for non-javscript users ]--------------------------*/

#mainnav li li {
	float: none;
	height: 24px;
	background-image: url('../images/bg-menu.gif');
	background-repeat: repeat-x;
}

#mainnav li li a { /* Just submenu links*/	
	position: relative;
	float: none;
}

#mainnav li li a:hover {
	background-color: #b7ceec;
}

#mainnav li ul { /* second-level lists */
	position: absolute;
	margin-left: -1000em; /* using left instead of display to hide menus because display: none isn't read by screen readers */
	margin-top: 1.7em;
	width: 10em;
	border: 1px solid #000000;
}

/* third-and-above-level lists */
#mainnav li ul ul {
	margin: -1.8em 0 0 -1000em;
}

#mainnav li:hover ul ul {
	margin-left: -1000em;
}

 /* lists nested under hovered list items */
#mainnav li:hover ul {
	margin-left: 0;
}

#mainnav li li:hover ul {
	margin-left: 10em;
	margin-top: -1.8m;
}

/* extra positioning rules for limited noscript keyboard accessibility */
#mainnav li a:focus + ul {
	margin-left: 0;
	margin-top: 2.2em;
}

#mainnav li li a:focus + ul {
	left: 0;
	margin-left: 1010em;
	margin-top: -2.2em;
}

#mainnav li li a:focus {
	left:0;
	margin-left:1000em;
	width:10em;
	margin-top:0;
}

#mainnav li li li a:focus {
	left:0;
	margin-left: 2010em;
	width: 10em;
	margin-top:-1em;
}

#mainnav li:hover a:focus {
	margin-left: 0;
}

#mainnav li li:hover a:focus + ul {
	margin-left: 10em;
}