#nav, #nav ul { /* all lists */
	padding: 0 5px 0 0;
	margin: 0;
	list-style: none;
	line-height: 1;
	float:right;
	overflow:hidden;
}

#nav a {
	display: block;
	/* width: 8em; */
	color:#fff;
	font-size:10pt;
	font-weight:bold;
	margin-left:15px;
	border-bottom:5px solid #fff;
	text-decoration:none;
	height:25px;
}

#nav li.active a {
	border-color:#EF0202;
	}

#nav a:hover {
	border-color:#787878;
	/* color: #777; */
	}

#nav li { /* all list items */
	float: left;
	/* width: 8em; */ /* width needed or else Opera goes nuts */
}

#nav li ul { /* second-level lists */
	position: absolute;
	background: lightblue;
	width: 20em;
	left: -999em; /* using left instead of display to hide menus because display: none isn't read by screen readers */
}

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

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

#nav li:hover ul, #nav li li:hover ul, #nav li li li:hover ul, #nav li.sfhover ul, #nav li li.sfhover ul, #nav li li li.sfhover ul { /* lists nested under hovered list items */
	left: auto;
}

#content {
	clear: left;
	color: #ccc;
}

/* SUBMENU */

#nav-content {
	list-style-type:none;

	height:30px;
	margin:0;
	padding:0 0 1px 20px;
	 background:url('/image/border-top-top.gif') no-repeat left bottom;
	}

#nav-content li {
	float:left;
	display:block;
	height:30px;
	line-height:30px !important;
	margin:0 2px;
	-moz-border-radius-topright:3px;
	-moz-border-radius-topleft:3px;
	}

#nav-content li a {
	display:block;
	padding:0 15px;
	font-size:8pt;
	font-weight:bold;
	color:#fff;
	background:#AAABAB;
	text-decoration:none;
	line-height:30px !important;
	}

#nav-content li a:hover { background-color:#ccc; }

#nav-content li.active { /* border-color:#fff; */ }
#nav-content li.active a { color:#000; background-color:#fff; }