#nav, #nav ul { /* all lists */
	padding: 0;
	margin: 0;
	list-style: none;
	line-height: 1;
}

#nav a {
	display: block;
	text-decoration: none;
	color: #FFF;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 1em;
	font-weight: bold;
}

#nav li:hover a {
	color: #FFD97F;	
}

#nav li { /* all list items */
	float: left;
	width: 150px; /* width needed or else Opera goes nuts */
	background: #FFF;
	text-align: left;
}

#nav li li {
	background: #CCC;	
	text-align: left;
	font-size: 1em;
	width: 150px;
	padding: 5px;
}

#nav li li:hover {
	background: #EEE;	
}

#nav li li a:active {
	background: #FFF;	
}

#nav li li a, #nav li:hover li a {
	color: #333;
	font-size: 1em;
	width: 150px;
}

#nav li li:hover a {
	color: #000;
}

#nav li ul { /* second-level lists */
	position: absolute;
	background: orange;
	width: 150px;
	margin-left: -1000em; /* using left instead of display to hide menus because display: none isn't read by screen readers */
	z-index: 1000;
}

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

#nav li:hover ul ul, #nav li.sfhover ul ul {
	margin-left: -1000em;
}

#nav li:hover ul, #nav li.sfhover ul { /* lists nested under hovered list items */
	margin-left: 0px;
	margin-top: 0px;
}
#nav li li:hover ul, #nav li li.sfhover ul {
	margin-left: 155px;
	margin-top: -16px;
}

/* extra positioning rules for limited noscript keyboard accessibility */
#nav li a:focus + ul { margin-left: 0; }
#nav li li a:focus + ul { margin-left: 1010em; }
#nav li li a:focus { margin-left:1000em; width: 140px; background: #CCC; color: #333;}
#nav li li li a:focus {margin-left: 2010em; width: 140px; background: #CCC; }
#nav li:hover a:focus, #nav li.sfhover a.sffocus { margin-left: 0; }
#nav li li:hover a:focus + ul, #nav li li.sfhover a.sffocus + ul { margin-left: 155px; }