* {
  transition: background .5s;
}

body {
	width: 600px;
	margin: 40px auto;
}
/* Main menu */
#menu {
	width: 100%;
	margin: 0;
	padding: 0px 0 0 0;
	list-style: none;
	background: #000080;
	-moz-border-radius: =0px;
	border-radius: 0px;
}
#menu li {
	float: left;
	padding: 0px 0 0 0;
	position: relative;
	border-right: 1px solid #999;		/*NEW*/

}

#menu li:last-child {
	border-right: none;		/*NEW*/
}

#menu a {
	float: left;
	/* height: 25px;
	padding: 0 4px; */
	padding: 5px 4px 5px 4px;
	height: 21px;
	color: #fafafa;
	text-transform: uppercase;
	font: bold 10px/20px Arial, Helvetica;		/*NEW*/
	text-decoration: none;
	
}

#menu li:hover>a {
	color: #000080;
	background: #cccccc;
	font: bold 10px/20px Arial, Helvetica;
	
}

* html #menu li a:hover /* IE6 */ {
	color: #fafafa;
}

#menu li:hover>ul {
	display: block;
}
/* Sub-menu */
#menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: none;
	position: absolute;
	top: 31px;
	left: 0;
	z-index: 99999;
	/* background: #444; */
	background: #cccccc;			/*NEW*/
	-moz-border-radius: 5px;
	border-radius: 5px;
}

#menu ul ul {
	top: 0;
	/* left: 150px; */
	left: 130px;	/*NEW*/
}

#menu ul li {
	float: none;
	margin: 0;
	padding: 0;
	display: block;
	border-top: 0px solid #999;		/*NEW*/
	border-right: 1px solid #999;		/*NEW*/
	border-bottom: 1x solid #999;		/*NEW*/
	border-left: 1x solid #999;		/*NEW*/
	
}

#menu ul li:last-child {
	-moz-box-shadow: none;
	-webkit-box-shadow: none;
	box-shadow: none;	
	border-top: 0px solid #999;		/*NEW*/
	border-right: 1px solid #999;		/*NEW*/
	border-bottom: 1x solid #999;		/*NEW*/
	border-left: 1x solid #999;		/*NEW*/
}

#menu ul a {
	padding: 5px;
	height: 20px;
	width: 120px;
	height: auto;						/*helps wrapping of text */
	line-height: 1;
	display: block;
	white-space: wrap;					/*helps wrapping of text */
	float: none;
	text-transform: none;
	color: #000080;								/*NEW*/
	font: bold 10px/20px Arial, Helvetica;
}

* html #menu ul a /* IE6 */ {
	height: 20px;
}

*:first-child+html #menu ul a /* IE7 */ {
	padding: 5px;
	height: 20px;
	width: 120px;
	height: auto;						/*helps wrapping of text */
	line-height: 1;
	display: block;
	white-space: wrap;					/*helps wrapping of text */
	float: none;
	text-transform: none;
	color: #000080;								/*NEW*/
	font: bold 10px/20px Arial, Helvetica;
}

#menu ul a:hover {
	/*background: #FFFFCC;*/												/*NEW*/
	background: #FFFC58;
	/* font: bold 10px/20px Arial, Helvetica; */							/*NEW*/
}

#menu ul li:first-child>a {
	-moz-border-radius: 5px 5px 0 0;
	border-radius: 5px 5px 0 0;
}

#menu ul li:first-child>a:after {
	content: '';
	position: absolute;
	left: 30px;
	top: -8px;
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-bottom: 8px solid #000080;		/*NEW*/
}


#menu ul ul li {
	border-top: 0px solid #999;		/*NEW*/
	border-right: 1px solid #999;		/*NEW*/
	border-bottom: 0x solid #999;		/*NEW*/
	border-left: 0x solid #999;		/*NEW*/
}

#menu ul ul li:first-child{
	border-top: 0px solid #999;		/*NEW*/
	border-right: 1px solid #999;		/*NEW*/
	border-bottom: 0x solid #999;		/*NEW*/
	border-left: 0x solid #999;		/*NEW*/
}

#menu ul ul li:first-child a:after {
	left: -8px;
	top: 12px;
	width: 0;
	height: 0;
	border-left: 0;
	border-bottom: 5px solid transparent;
	border-top: 5px solid transparent;
	/* border-right: 8px solid #444; */
	border-right: 8px solid #FFFFCC;		/*NEW*/
}

#menu ul li:first-child a:hover:after {
	/* border-bottom-color: #04acec; */
	border-bottom-color: #FFFFCC;			/*NEW*/
}

#menu ul ul li:first-child a:hover:after {
	/* border-right-color: #04acec; */
	border-bottom-color: #FFFFCC;			/*NEW*/
	border-bottom-color: transparent;
}

#menu ul li:last-child>a {
	-moz-border-radius: 0 0 5px 5px;
	/* border-right: 1px solid #999;		*/
	/*border-radius: 0 0 5px 5px; */    /*curved border for last pull down element */
}
/* Clear floated elements */
#menu:after {
	visibility: hidden;
	display: block;
	font-size: 0;
	content: " ";
	clear: both;
	height: 0;
}

* html #menu {
	zoom: 1;
} /* IE6 */
*:first-child+html #menu {
	zoom: 1;
} /* IE7 */