  #nav {
}
#nav > a {
	display: none;
}
#nav li {
	position: relative;
}
#nav li a {
	color: #fff;
	display: block;
}
#nav li a:active {
}
#nav span:after {
	width: 0;
	height: 0;
	border: 0.313em solid transparent; /* 5 */
	border-bottom: none;
	border-top-color: #efa585;
	content: '';
	vertical-align: middle;
	display: inline-block;
	position: relative;
	right: -0.313em; /* 5 */
}
/* first level */

			#nav > ul {
/*height: 3.75em;*/ /* 60 */
				/*background-color: #e15a1f;*/
			}
#nav > ul > li {
	height: 100%;
	float: left;
	border-right:1px solid #bababa;
	border-left:1px solid #f0f0f0;
	display:block;

}
	

	

	

#nav > ul > li:hover {
	background:url(../images/menu-bg-hover.jpg) repeat-x top left #fecd07;
	
}
#nav > ul > li.selected {
	background:url(../images/menu-bg-hover.jpg) repeat-x top left #fecd07;
	
}

#nav > ul > li  > ul > li.selected {
	background:#999;
	color:#FFFFFF;
		border-radius:0px;

	
}
#nav > ul > li  > ul > li  > ul > li.selected {
	background:#999;
	color:#FFFFFF;
	border-radius:0px;

	
}

.second-sub:after
{
	 	width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 12px solid #e9e8e8;
	display:block;
	content:"";
	position:absolute;
	right:15px;
	top:17px;
	
}
#nav > ul > li > a {
   color: rgb(0, 0, 0);
    font-weight: bold;
	 padding: 10px;
    text-align: center;
    text-decoration: none;
    text-shadow: 0 1px 1px rgb(255, 255, 255);
}

#nav ul li:last-child {
	border-right:none;
		  border-radius: 0px 10px 0px 0px;
	 -moz-border-radius: 0px 10px 0px 0px;
	  -webkit-border-radius: 0px 10px 0px 0px;
	  -khtml-border-radius: 0px 10px 0px 0px;	
	  
	  
}
#nav ul li:first-child {
	border-left:none;

	 border-radius: 10px 0px 0px 0px;
	 -moz-border-radius: 10px 0px 0px 0px;
	  -webkit-border-radius: 10px 0px 0px 0px;
	  -khtml-border-radius: 10px 0px 0px 0px;	
}
#nav > ul > li:not( :last-child ) > a {
}
#nav > ul:not( :hover ) > li.active > a {
	background-color: #c6c6c6;
}
/* second level */

#nav li ul {
	background-color: #dbdbdb !important;
	display: none;
	position: absolute;
	top: 100%;
	z-index:5;
	width:240px;
		  box-shadow: 0 4px 4px rgb(153, 153, 153);
	 -moz-box-shadow: 0 4px 4px rgb(153, 153, 153);
	   -webkit-box-shadow: 0 4px 4px rgb(153, 153, 153);
	  -khtml-box-shadow: 0 4px 4px rgb(153, 153, 153);


}
#nav li ul li ul {

	display: none !important;
	top:0;
	background:#e9e8e8 !important;
	left: 100%;
	position: absolute; !important;

}
#nav > ul > li:hover ul {
	display:block;
	
}
#nav > ul > li > ul > li:hover ul {
	display:block!important;

	
}
#nav li:not( :first-child ):hover ul {
	/*left: -1px;*/
}
#nav li ul a {
	border-top: 1px solid #c6c6c6;
	 padding: 10px;
	color:#292b56;
	text-decoration:none;
}
#nav li ul a:hover {
	background:#c6c6c6;
}
#nav li ul:not( :hover ) li.active a {
	background-color: #c6c6c6;
}
 @media only screen and ( max-width: 62.5em ) /* 1000 */ {
#nav {
	width: 99%;
	position: static;
	margin: 0;
}
}
 @media only screen and ( max-width: 735px ) /*  */ {
#nav {
	position: relative;
	top: auto;
	left: auto;
}
#nav > a {

	font-weight: bold;
	height: 32px;
	padding-top: 13px;
	position: relative;
	text-align: center;
	text-decoration: none;
	width: 100%;
	background:url(../images/menu-bg-hover.jpg) repeat-x #ffcc08;
	  border-radius: 10px 10px 0px 0px;
	 -moz-border-radius: 10px 10px 0px 0px;
	  -webkit-border-radius: 10px 10px 0px 0px;
	  -khtml-border-radius: 10px 10px 0px 0px;	
}
/*#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;
}
/* first level */

#nav > ul {
	background: none repeat scroll 0 0 #d2d2d2;
	display: none;
	height: auto;
	left: 0;
	position: absolute;
	right: 0;
	width: 100% !important;
	z-index: 5;
	
}
#nav:target > ul {
	display: block;
	padding: 0%;
		border-radius: 0px;
	 -moz-border-radius:  0px;
	  -webkit-border-radius:  0px;
	  -khtml-border-radius:  0px;	

}
#nav > ul > li {
	width: 100%;
	float: none;
	line-height: 30px;
	padding: 0 !important;
	width: 100% !important;
	margin-top:0px;
	border:none;
}
#nav > ul > li.selected {
	background: #999;
		color:#FFFFFF;
			border-radius:0px;
	
	
}

#nav > ul > li  > ul > li.selected {
	background: #999;
		color:#FFFFFF;
			border-radius:0px;

	
}
#nav > ul > li  > ul > li > ul > li.selected {
	background: #999;
		color:#FFFFFF;
			border-radius:0px;

	
}
#nav > ul > li:First-child  {
	border-radius:0px;
	
}
#nav > ul > li > a {
	height: auto;
	text-align: center;
	padding:7px;
	text-decoration:none;
	color:#292b56;
}
#nav > ul > li > a:hover {
	background: none repeat scroll 0 0 #dbdbdb;
}
#nav > ul > li:not( :last-child ) > a {
	border-right: none;
	border-bottom: 1px solid #c6c6c6;
}
/* second level */

#nav li ul {
  padding: 0 10% 0;
    position: static;
    width: 80%;
	
	 box-shadow: none;
	 -moz-box-shadow:none;
	   -webkit-box-shadow:none;
	  -khtml-box-shadow:none;

}
#nav li ul a {
	padding:2% !important;
}


#nav ul li ul li:first-child a {
	border-top:none;

	
}
#nav li ul li ul {

	display: none !important;
	left: 0;
	width:96%;
	padding:2%;
	top:100%;
	position: static;

}
/*#nav li ul li ul:before {
   	width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 12px solid #e9e8e8;
	display:block;
	content:"";
	position:absolute;
	right:15px;
	top:17px;
	
}*/
.submenu:after
{
	   	width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 12px solid #e9e8e8;
	display:block;
	content:"";
	position:absolute;
	right:15px;
	top:17px;
	
}

}
