

#mainnav {
	width:900px;
	margin: 0 auto;
	background-color: #4D4D4D;
	clear:both;
}
/* -------------------------- */
/* We begin by styling the main navigation on the page... */
/* -------------------------- */
/* Overall main navigation styles */
#nav, #nav ul {
	float: left;
	list-style: none;
	line-height: 1em;
	font-size:0.8em;
	color: #999;
	background-color: #4D4D4D;
	padding: 0;
	margin: 0;
}
/* -------------------------- */
/* The top main navigation links */
#nav a {
	margin: 0;
	display: block;
	padding: 5px 10px;
	color: #fff;
	background-color: #4D4D4D;
	text-decoration: none;
	
}
/* I'm targeting the last main navigation link to have no "bar" on the right side 
#nav a.last {
	background-image: none;*/

#nav a.one, #nav a.two, #nav a.three, #nav a.four, #nav a.five, #nav a.six, #nav a.seven, #nav a.eight {
	text-align: left;
	font-size: 1em;
	text-transform:uppercase;
}
#nav li {
	float: left;
	padding: 0;
}

#nav li a:hover
 { background-image:  url(../images/site-design/menu-bg.jpg); background-repeat: repeat-x; color:#59AC2A; }
/* -------------------------- */
/* The dropdown links lists */
#nav li ul {
	font-size:0.9em;
	padding-left:0;
	color:#fff;
	letter-spacing:0.1em;
	position: absolute;
	left: -999em;
	height: auto;
	width: 140px; 
	background-color: #7F7F7F;
	margin: 0;
}
#nav li li {
	padding: 0;
	width: 140px; 
}
#nav li ul a {
	padding: 7px 10px;
	width: 120px;
	/*html width: 100px;*/
	
}

#nav li ul a:hover {
	font-style: italic;
	background-color: #7F7F7F;
	
}


/* This controls the flyout location of the second level dropdowns */
#nav li ul ul {
	margin: -2em 0 0 140px;
}
#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 {
	left: auto;
}
/* -------------------------- */
/* Here is the background of the main nav link while looking at the dropdown */
#nav li:hover, #nav li.sfhover {
	background-color:#7F7F7F;
}
/* -------------------------- */
/* The dropdown links list colors */
#nav li ul.under a {
	color: #fff;
	background-color:#3F3B3B;
}
#nav li ul.under a:hover {
	background: #4DA72C;
	font-style: italic;
	color: #fff;
}
/* -------------------------- */
/* The background of the second level links while looking at the dropdown under it... */
#nav li ul.under li:hover a.daddy, #nav li ul.under li.sfhover a.daddy {
	color: #fff;
}
#nav li ul.under li:hover, #nav li ul.under li.sfhover {
	color: #fff;
	background-color:#7F7F7F;
}
