
#nav li ul{
	display: none;
}
#nav li:hover ul{
	display: block;
}




#nav {
	width: 600px; 
	position:relative; 
	z-index:100;
}

/* remove all the bullets, borders and padding from the default list styling */
#nav, #nav ul {
	padding:0;
	margin:0;
	list-style-type:none;
}

#nav ul {
	width:185px;
	
}
/* float the list to make it horizontal and a relative positon so that you can control the dropdown menu positon */
#nav li {
	float:left;
	position:relative;
	/* Original size, added News Item   margin-right: 1.7em; */
	margin-right: 0.9em;
}

#nav li li{
	width:180px;
	margin-right: auto; /*undo the margin i did to its parent*/
}

/* style the links for the top level */
#nav a, 
#nav a:visited {
	display:block;
	text-decoration:none; 
}


/* hide the sub levels and give them a positon absolute so that they take up no room */
#nav ul {
	visibility:hidden; 
	position:absolute;
	height:0;
	top:27px;
	left:0; 
	width:180px;
	
}


/* position the third level flyout menu */
#nav ul ul{
	left:180px;
	top:0px;
	width:180px;
	
}

/* position the third level flyout menu for a left flyout */
#nav ul ul.left {
	left:-180px;
	
}


/* style the second level links */
#nav ul a, 
#nav ul a:visited {
	height:auto; 
	line-height:1.2em; 
	padding:5px 10px; 
	border-width:0 1px 1px 1px;
}

/* make the second level visible when hover on first level list OR link */
#nav li:hover ul,
#nav a:hover ul{
	visibility:visible;
}

/* keep the third level hidden when you hover on first level list OR link */
#nav :hover ul ul{
	visibility:hidden;
}

/* make the third level visible when you hover over second level list OR link */
#nav :hover ul :hover ul{ 
	visibility:visible;
}




/*set background on level 1 list items*/
#nav li{
	
}
/*remove background on level 2 */
#nav li li{
	background-color:#303030;
}

#nav li li li{
	background-color: #3B3B3B;
}

#nav li ul li a:hover {
	background-color: #474747;
}

/*undoes that hiding for level 2 children */
#nav li li a {
	/* height: 20px; */
	height: 25px;
	overflow: visible;

	font-size:1em;
	padding: .5em 1em;
	color: #fff;
}

