/*parts of this are from: http://carroll.org.uk/sandbox/suckerfish/bones2.html*/

/* ----[ LINKS ]----*/

/* all menu links */
#nav a, #subMenusContainer a {
	text-decoration: none;
	display: block;
  padding: 7px 10px 7px 10px;
}

/* Just main menu links --[for non-javascript users this applies to submenu links as well]*/
#nav a {
  position: relative;
  color: #355419;
  background: url(../images/main-nav-bg.gif) no-repeat;
  padding: 13px 0px 13px 20px;
}

/* Just sub menu links */
#subMenusContainer a, #nav ol a, #nav ul a {
	/* position:relative; */
	display: block;
  color: #355419;
}

/* 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: url(../images/main-nav-bg-roll.gif) right center no-repeat;
	color: #87AD3A;
}

/* sub menu links on hover or focus */
#subMenusContainer a:hover, #subMenusContainer a:focus, #nav a.mainMenuParentBtnFocused, #subMenusContainer a.subMenuParentBtnFocused {
	background: url(../images/main-nav-bg-roll.gif) right center no-repeat;
  color: #87AD3A;
}
#subMenusContainer a:hover, #subMenusContainer a:focus, #subMenusContainer a.subMenuParentBtnFocused {
  text-decoration: underline;
}


/* Parent Sub Menu Links ---[javascript users only]*/
.subMenuParentBtn{ 
	 background: url(../images/main-nav-bg.gif) right center no-repeat;
}

/* Parent Sub Menu Links on hover or focus ---[javascript users only]*/
.subMenuParentBtnFocused{ 
	background: url(../images/main-nav-bg-roll.gif) right center no-repeat;
}

/* Parent Main Menu Links ---[javascript users only]*/
.mainMenuParentBtn{	
	 background: url(../images/main-nav-bg.gif) right center no-repeat;
}

/* Parent Main Menu Links on hover or focus ---[javascript users only]*/
.mainMenuParentBtnFocused {
	 background: url(../images/main-nav-bg-roll.gif) right center no-repeat;
}

#subMenusContainer {
  position: relative;  /* Ek removed this and then the submenus dont appear at all in IE */
	z-index: 2;	
}

/* ----[ OLs ULs, LIs, and DIVs ]----*/

/* main menu ul or ol elment */
#nav {
	list-style: none;	
	display: block;
	position: absolute;
	z-index: 2;
	left: 0;
  margin: 0px;
  padding: 0px;
  width: 173px;
	/*
border-right:1px solid #325ABC;
*/
}

/* 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 7px;
}

/* All submenu OLs and ULs */
#nav ol, #nav ul, #subMenusContainer ul, #subMenusContainer ol {	
	/*border around submenu goes here*/
	display: block;
	position: relative;
	border: 1px solid #AB9657;
	margin: 2px;
	background-color: #F7EDCB;
	font: 12px Arial,Verdana,SunSans-Regular,Sans-Serif;
}

/* All ULs and OLs */
#nav, #nav ul, #nav ol, #subMenusContainer ul, #subMenusContainer ol { 
	padding: 0;
	margin: 0;
	list-style: none;
	line-height: 1em;
}

/* List items in main menu --[for non-javascript users this applies to submenus as well]  */
#nav li { 
	/*great place to use a divider image as a background*/
	float: left;
	list-style: none;
	width: 100%;
	list-style: none;
	position: relative;
	display: block;
}

#subMenusContainer ul li, #subMenusContainer ol li {
	list-style: none;
	position: relative;
	display: block;
}

/* --------------------------[ The below is just for non-javscript users ]--------------------------*/
#nav li li {	float:none; }

#nav li li a { /* Just submenu links*/	
	position: relative;
	float: none;
}

#nav li ul { /* second-level lists */
	position: absolute;
	width: 10em;
	margin-left: -1000em; /* using left instead of display to hide menus because display: none isn't read by screen readers */
}

/* 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: 120px; margin-top:-1.5em;}
#nav li li:hover ul {	margin-left: 10em; }

/* extra positioning rules for limited noscript keyboard accessibility */
#nav li a:focus + ul { margin-left: 120px; margin-top:-1.5em; }
#nav li li a:focus + ul { left:120px; margin-left: 1010em; margin-top:-1.5em;}
#nav li li a:focus {left:120px;  margin-left:1000em; width:10em;  margin-top:-1.5em;}
#nav li li li a:focus {left:120px; margin-left: 2010em; width: 10em;  margin-top:-1.5em;}
#nav li:hover a:focus { margin-left: 0; }
#nav li li:hover a:focus + ul { margin-left: 10em; }