nav {
	clear:both;
	float:left;
	margin: 0 0 12px 0;
	padding:0;
	width:100%;
	font: bold 14px/18px verdana, Garamond, serif; /* Menu font */
	z-index:20;
	position:relative;
	background:#2B51AA;
}


nav ul {
	margin:0;
	padding:0;
	list-style:none;
	float:right;
	position:relative;
	right:50%;
}
nav ul li {
	margin:0;
	padding:0;
	float:left;
	position:relative;
	left:50%;
}
nav ul li a {
	display:block;
	margin:0;
	padding:.8em 2em;
	line-height:1em;
	text-decoration:none;
	background: #2B51AA;
	text-shadow: 1px 1px 1px rgba(0,0,0,0.7);
	border-left: 1px solid #fff;
	/*
	background:#E3DCCD;
	color:#333;
	font-weight:bold;
	border-bottom:1px solid #E3DCCD; 
	border-radius: 3px;
	box-shadow: 1px 1px 4px #ccc;
	*/
	color:#fff;
}
nav ul li:last-child a {border-right: 1px solid #fff;}
nav ul li.active a {
	color:#fff;
	background:#000;
}
nav ul li a:hover {
	background:#B57800; /* Top menu items background colour */
	color:#fff;
/*	border-bottom:1px solid #03f; */
}
nav ul li:hover a,
nav ul li.hover a { /* This line is required for IE 6 and below */
 /* 	background:#840;Top menu items background colour */
 
	background: #B57800;
	color:#fff;
/*	border-bottom:1px solid #840; */
}

/* Submenu items */
nav ul ul {
	display:none; /* Sub menus are hiden by default */
	position:absolute;
	top:2.6em;
	left:0;
	right:auto; /*resets the right:50% on the parent ul */
	width:14em; /* width of the drop-down menus */
	box-shadow: 2px 2px 18px rgba(0,0,0,0.6);
	border-radius: 0 0 8px 8px;
}
nav ul ul li {
	left:auto;  /*resets the left:50% on the parent li */
	margin:0; /* Reset the 1px margin from the top menu */
	clear:left;
	width:100%;
}
nav ul ul li a,
nav ul li.active li a,
nav ul li:hover ul li a,
nav ul li.hover ul li a { /* This line is required for IE 6 and below */
	font-size:.95em;
	font-weight:bold; /* resets the bold set for the top level menu items */
	background: #6d3e00;
	color:#fff;
	line-height:1.3em; /* overwrite line-height value from top menu */
/* 	border-bottom:1px solid #ddd; sub menu item horizontal lines */
	-webkit-border-radius: 0;
	-moz-border-radius: 0;
	border-radius: 0;
	border:none;
	padding: 0.625em 1em;
	text-shadow: none;
	border-bottom:1px solid #ddd;
}
nav ul ul li:last-child a, nav ul li:hover ul li:last-child a { border-bottom: none; border-radius: 0 0 8px 8px;}
nav ul ul li a:hover,
nav ul li.active ul li a:hover,
nav ul li:hover ul li a:hover,
nav ul li.hover ul li a:hover { /* This line is required for IE 6 and below */
	background: #879B5C;
	color:#fff;
}

/* Flip the last submenu so it stays within the page */
nav ul ul.last {
	left:auto; /* reset left:0; value */
	right:0; /* Set right value instead */
}

/* Make the sub menus appear on hover */
nav ul li:hover ul,
nav ul li.hover ul { /* This line is required for IE 6 and below */
	display:block; /* Show the sub menus */
}


/*Styles for screen ~520px and lower*/
@media screen and (max-width: 50em) {
	nav { 
  		height: auto;
  	}
  	nav ul {
  		width: 100%;
  		display: block;
  		height: auto;
  	}
  	nav ul li {
  		width: 50%;
  		float: left;
		margin:0;
  		position: relative;
  	}
  	nav ul li a {
		border-bottom: 1px solid #fff;
		border-right: 1px solid #fff;
		border-radius: 0;
	}
  	nav a {
	  	text-align: left;
	  	width: 100%;
	  	text-indent: 25px;
  	}
	nav ul li:hover ul, nav ul li.hover ul { /* This line is required for IE 6 and below */
		display:none; /* Don't Show the sub menus */
	}
	nav ul li a {padding: .75em .15em;}
}