/* ==================== */
/* all menu links       */
/* ==================== */
#nav a, #subMenusContainer a
{
	text-decoration: none;
	display: block;
	padding: 5px 15px;
	background: #6d6d6d;
	color: #fff;
	font-size: 100%;
}
/* ===================================================================================== */
/* Just main menu links - for non-javascript users this applies to submenu links as well */
/* ===================================================================================== */
#nav a
{
	margin: 0;
	float: left;
}
/* ==================== */
/* Just sub menu links  */
/* ==================== */
#subMenusContainer a, #nav li li a
{
	text-align: left;
}
/* ================================ */
/* All menu links on hover or focus */
/* ================================ */
#nav a:hover, #nav a:focus, #subMenusContainer a:hover, #subMenusContainer a:focus, #nav a.mainMenuParentBtnFocused, #subMenusContainer a.subMenuParentBtnFocused
{
	background: #999;
	color: #fff;
}

/* ================================ */
/* sub menu links on hover or focus */
/* ================================ */
#subMenusContainer a:hover, #subMenusContainer a:focus, #nav a.mainMenuParentBtnFocused, #subMenusContainer a.subMenuParentBtnFocused, #nav li a:hover, #nav li a:focus
{
	background: #dceeae;
	color: #333;
}

/* =============================================== */
/* Parent Sub Menu Links - javascript users only   */
/* =============================================== */
.subMenuParentBtn
{ 
	background: url("../i/menu/arrow_right.gif") right center no-repeat;  
}

/* =============================================================== */
/* Parent Sub Menu Links on hover or focus - javascript users only */
/* =============================================================== */
.subMenuParentBtnFocused
{ 
	background: url("../i/menu/arrow_right_over.gif") right center no-repeat;  
}

/* ============================================== */
/* Parent Main Menu Links - javascript users only */
/* ============================================== */
.mainMenuParentBtn
{	
	background: url("../i/menu/arrow_down.gif") right center no-repeat; 
}
/* ================================================================ */
/* Parent Main Menu Links on hover or focus - javascript users only */
/* ================================================================ */
.mainMenuParentBtnFocused
{	
	background: url("../i/menu/arrow_down_over.gif") right center 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 ULs and OLs */
#nav, #nav ul, #nav ol, #subMenusContainer ul, #subMenusContainer ol
{ 
	list-style: none;
}

/* All submenu OLs and ULs */
#nav ol, #nav ul, #subMenusContainer ul, #subMenusContainer ol
{	
	/*border around submenu goes here*/	 
	background: #6d6d6d;
	border: 1px solid #999;	
	margin:0;
	padding:0;
}

/* List items in main menu - for non-javascript users this applies to submenus as well */
#nav 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;	
}

/* main menu ul or ol elment */
#nav
{
	display: block;
	list-style: none;
	margin: 0 0 0 0;	
	text-align: center;
	z-index: 5;
}

#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 ]--------------------------*/
#nav li li
{
	float: none;
}
#nav li li a
{
	/* Just submenu links*/	
	position: relative;
	float: none;
	top: -4px;
	white-space: pre;	
}
#nav 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: 29px;
	border: 1px solid #333;
}

/* third-and-above-level lists */
#nav li ul ul
{
	margin: -1em 0 0 -1000em;
}
#nav li:hover ul ul
{
	margin-left: -1000em;
}

 /* lists nested under hovered list items */
#nav li:hover ul
{
	margin-left: 0;
}
#nav li li:hover ul
{
	margin-left: 100px;
	margin-top: -20px;
	/* ###### Debug this to sort out alignment ###### */
}

/* extra positioning rules for limited noscript keyboard accessibility */
#nav li a:focus + ul {  margin-left: 0; margin-top:2.2em; }
#nav li li a:focus + ul { left:0; margin-left: 1010em; margin-top:-2.2em;}
#nav li li a:focus {left:0;  margin-left:1000em; width:10em;  margin-top:0;}
#nav li li li a:focus {left:0; margin-left: 2010em; width: 10em;  margin-top:-1em;}
#nav li:hover a:focus{ margin-left: 0; }
#nav li li:hover a:focus + ul { margin-left: 10em; }
