nav {
	margin-top: 0;
	line-height: 1.8;
	padding-bottom: 8px;
}
#navShell {
	display: table;
	margin-left: auto;
	margin-right: auto;
}
/* remove the list style */
#nav {
	margin: 8px 0 -2px 0;
	padding: 0;
	list-style: none;
}
/* this is the parent menu */
#nav li {
	display: inline;
	margin: 0 1px;
}
#nav li a {
	padding: 8px 16px 20px 16px;
	height: 18px;
	text-decoration: none;
	/*color:#fff;*/
	text-align: left;
}
#nav li a:hover {
	background: none;
	text-decoration: none;
	/*background-color: #fff;*/
}
#nav > li > a {
	letter-spacing: .05em;
}
#nav li .clear {
	display: none;
}
/* you can make a different style for default selected value */
#nav a.selected {
	/*color:#f00;*/
}
/* submenu, it's hidden by default */
#nav ul {
	position: absolute;
	left: 0;
	display: none;
	margin: 0 0 0 -1px;
	padding: 12px 0;
	list-style: none;
	background-color: #f2f2f2;
}
#nav ul li {
	text-transform: none;
	width: 170px;
	float: left;
	line-height: 1.2;
	/*border-top:1px solid #fff;*/
}
/* display block will make the link fill the whole area of LI */
#nav ul a {
	display: block;
	height: auto;
	padding: 8px 12px;
	/*color:#666;*/
}
#nav ul a:hover {
	/*text-decoration:underline;*/
}
/* fix ie6 small issue */
/* we should always avoid using hack like this */
/* should put it into separate file : ) */
*html #nav ul {
	margin:0 0 0 -2px;
}

#nav ul {
	visibility: hidden;
}
@media screen and (min-width: 800px) {
	nav {
		padding-bottom: 0px;
	}
	#nav {
		margin: 0;
	}
	#nav ul {
		visibility: visible;
	}
	/* make the LI display inline */
	/* it's position relative so that position absolute */
	/* can be used in submenu */
	#nav li {
		float: left;
		display: block;
		background: none;
		position: relative;
		z-index: 5000;
	}
	#nav li a {
		display: block;
	}
	#nav > li > a {
		padding: 8px 19px 20px 19px;
	}
	#nav li .clear {
		display: block;
	}
}