#nav { /* all lists */
	padding: 0;
	margin: 0;
	list-style: none;
}

#nav li { /* all list items */
	float: left;
	position: relative;
	margin: 0px 5px;
	width:2em;
}

#nav li ul { /* second-level lists */
	display: none;
	position: absolute;
	top: 1.2em;
	background-color:#FFFFCC;
	padding: 0;
	margin: 0;
	list-style: none;
	left: -10px; /* to position them to the right of their containing block */
	width: 100%; /* width is based on the containing block */
}

#nav li ul li {
	float:left;
	position:relative;
	width:200px;
}

li>ul { /* to override top and left in browsers other than IE, which will position to the top right of the containing li, rather than bottom left */
	top: auto;
	left: auto;
}

#nav li:hover ul, #nav li.over ul { /* lists nested under hovered list items */
	display: block;
}
