/* Based partially on Matthew Carroll's keyboard accessible flavor of Suckerfish
 * Dropdowns by Patrick Griffiths and Dan Webb.
 * http://carroll.org.uk/sandbox/suckerfish/bones2.html
 */

#nav { list-style: none; padding:0; }
#nav li { padding:0; line-height:1em; width:96px; display:inline }

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

/* all menu links */
#nav a {
	text-decoration:none;
	display:block;
	padding:15px 8px;
	font-family: Verdana;
	height:18px;
	width:96px;
	margin:0;
	float:left;
	color:#fff;
}

#nav a.tworow {
	padding:10px 8px;
	height:28px;
}

#nav li a.select,
#nav li a:hover,
#nav li a:focus {
	color:#fff;
	background:url(../images/navback_on.gif);
}

/* All ULs and OLs */
#nav {
	padding: 0;
	margin: 0;
	list-style: none;
	line-height: 1em;
}

/* All submenu OLs and ULs */
#nav ol, #nav ul {
	/*border around submenu goes here*/
	background:#f2f2f2;
	border:1px solid #545454;
	left:0;
}


/* main menu ul or ol elment */
#nav{
	height:56px;
	padding-left:0px;
	display:block;
	list-style:none;
	margin:0 0 0 0;
	z-index:5;
	text-align: center;
	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 */
	margin-top:1em;
}

/* 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: 10em; margin-top:-2.5em;}

/* 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; }

#subnav { width: 145px; margin: 0 15px 0 0; float:left }
#subnav ul { display: block; text-align: left; list-style: none; padding:0; }
#subnav ul li { padding: 0; }
#subnav ul li a { display: block; padding: 4px 5px 5px 10px; border-top: 1px solid #d1d1d1; font-weight:normal; }
#subnav ul li a:hover, #nav ul li a:active { display: block; background-color: #f6f6f6; text-decoration:none; }
#subnav ul li.current { background-color: #f6f6f6; font-weight:normal;}
#subnav ul li.current a { color: #000; text-decoration: none; }
#subnav .btn { display: block; padding: 20px 0px 5px 0px; }
#subnav ul li.last { border-bottom: 1px solid #d1d1d1; }
