
#navbar
		{
	width:100%;
	height:100%;
	margin:0;
	float:left;
	position:static;
}

#nav {
	font: .6em normal Verdana, Geneva, sans-serif;
	position: static;
	text-transform:uppercase;
	height: 3.3em;
	display: block;
	background: #e8e7e7;
}

#nav > a {
	display: none;
	float:left;
}
#nav li {
	position: relative;
}
#nav li a {
	color: #666;
	display: block;
	text-decoration:none;
	padding: 4px 0px;
}
#nav li a:active {
	background-color: #e8e7e7;
}
#nav span:after {
	content: '';
	vertical-align: middle;
	display: inline-block;
	position: relative;
			}

/* first level */

#nav > ul {
	height: 2.2em;
	background-color: #e8e7e7;
}
#nav > ul > li {
	width: 25%;
	height: 100%;
	float: left;
}
#nav > ul > li > a {
	height: 100%;
	font-size: 1.5em;
	line-height: 1.75em;
	text-align: center;
					}
#nav > ul > li:not( :last-child ) > a{
	border-right: 1px solid #fff;
}
#nav > ul > li:hover > a,
#nav > ul:not( :hover ) > li.active > a {
	background-color: #ccc;
}


/* second level */

#nav li ul{
	background-color: #e8e7e7;
	display: none;
	position: absolute;
	top: 26px;
}
#nav li:hover ul{
	display: block;
	left: 0;
	right: 0;
}
#nav li:not( :first-child ):hover ul{
	left: -1px;
						}
#nav li ul a	
{
	font-size: 1.6em; 
	border-top: 1px solid #fff;
	font-weight:normal;
	text-transform:none;
	padding: .7em  1.7em; 
}
#nav li ul li a:hover,
#nav li ul:not( :hover ) li.active a
{
	background-color: #ccc;
}

@media only screen and ( max-width: 62.5em ) /* 1000 */
		{
#nav {
	font: .5em normal Verdana, Geneva, sans-serif;
	width: 100%;
	height: 3.3em;
	color: #FFFFFF;
	position: static;
	margin: 0;
}
		}
			
@media only screen and ( max-width: 40em ) /* 640 */
		{
			
#nav	{
	position: relative;
	top: 5px;
	left: auto;
	display: block;
	height: 100%;
	width: 100%;
	float: right;
	
}
#nav > a {
	width: 100%;
	text-align: left;
	text-indent: -9999px;
	color: #FFFFFF;
	text-decoration: none;
	z-index: 1;
	background: #666666;
	position: relative;
}
#nav > a:before,
#nav > a:after{
	position: absolute;
	/* border: 2px solid #fff; */
	top: 35%;
	left: 25%;
	right: 25%;
	content: '';
	
}

#nav > a:after{
	top: 60%;
}
#nav:not( :target ) > a:first-of-type,
#nav:target > a:last-of-type{
	display: block;
	background-repeat: no-repeat;
	height: 20px;
	
}

/* first level */

#nav > ul{
	height: auto;
	display: none;
	position: relative;
	left: 0;
	right: 0;
	
}
#nav:target > ul{
	display: block;
}
#nav > ul > li{
	width: 100%;
	float: none;
}
#nav > ul > li > a{
	height: auto;
	font-size:1.78em;
	text-align: left;
	padding: .4em 7.125em; 
}
#nav > ul > li:not( :last-child ) > a{
	border-right: none;

	
}

/* second level */

#nav li ul{
	position: static;
	padding: 0 7.125em;
	padding-top: 0;
	font-size:1.2em;
	display: inherit;
	
}
.smallMenuOpen	{
		border: 2px solid black; 
		margin-top: 0px; 
		color: #FFFFFF; 
		background-color: #DB0217; 
		float: right; 
		width: 100px;
		height: 16px; 
		font-size: 12px; 
		font-family: verdana;
		font-weight: bold; 
		padding-left: 10px; 
		display: block; 
		text-align: right;
}
	
.smallMenuClose	{
		border: 2px solid black; 
		margin-top: 0px; 
		color: #FFFFFF; 
		background-color: #DB0217; 
		float: right; 
		width: 65px;
		height: 16px; 
		font-family: verdana;
		font-size: 12px; 
		font-weight: bold; 
		padding-left: 10px; 
        display: block; 
		text-align: right;
}
		}
