#mobileMenu{
	display:none;
}
#mobileMenuButton{
	display:none;
}

#nav{
	width: auto; /* 1000 */
	font-family: Verdana, Geneva, sans-serif;
	font-weight: bold;
}

#nav > a{
	display: none;
}

#nav li{
	position: relative;
}
#nav li a{
}
#nav .active a{
	color: #ffc300;
}

#nav span:after{
	width: 0;
	height: 0;
	content: '';
	vertical-align: middle;
	display: inline-block;
	position: relative;
	right: -0.313em; /* 5 */
}

/* first level */

#nav > ul{
}
#nav > ul > li{
	width: auto;
	height: 100%;
	float: left;
	padding-top:12px;
	background: #fff;
	padding-bottom:15px;
}
#nav ul li:hover {
}
#nav ul li:hover a{
	color: #ffc300;
}
#nav ul li:hover li a{
	background-color: #fff;
	color: #000;
}
#nav ul li:hover li.active a{
	color: #ffc300;
}
	
#nav > ul > li > a{
	height: 100%;
	text-align: center;
	padding:12px 20px 15px 10px;
	font-size:12px;
	text-decoration:none;
}
#nav > ul > li > a:hover{
	text-decoration:none;
	color:#ffc300;
}

/* second level */

#nav li ul{
	color: #000;
	visibility:hidden;
	background-color: #fff;
	opacity:0;
	padding: 3px 0 10px 0;
	position: absolute;
	top: 100%;
	width: 170px;
	z-index:-1;
	-webkit-transition: all 0.3s ease 0.7s;  
    -moz-transition: all 0.3s ease 0.7s;  
    -ms-transition: all 0.3s ease 0.7s;  
    -o-transition: all 0.3s ease 0.7s;  
    transition: all 0.3s ease 0.7s;  
}
#nav li:hover ul{
	visibility:visible;
	opacity: 1;
	left: 0;
	right: 0;
	-webkit-transition: all 0s ease 0s;  
    -moz-transition: all 0s ease 0s;  
    -ms-transition: all 0s ease 0s;  
    -o-transition: all 0s ease 0s;  
    transition: all 0s ease 0s;  
}
#nav li:not( :first-child ):hover ul{
	left: 0px;
}
#nav li ul a{
	font-size:12px;
	font-weight:normal;
	padding: 3px 10px;
	display: block;
	text-decoration:none;
	color:#000;
}
#nav li ul li a:hover{
	color:#284895;
	text-decoration:none;
	width:auto;
	background: #eaeaea;
	text-decoration:none;
	width:auto;
}
#nav li ul li.active a:hover{
	color:#ffc300;
}
#nav li ul:not( :hover ) li a{
	color:#000;
	text-decoration:none;
	width:auto;
}
#nav li ul:not( :hover ) li.active a{
	color:#ffc300;
	text-decoration:none;
	width:auto;
}
#nav li ul li {
}
#nav li ul li:hover {
	background-color:#fff;
}


@media only screen and ( max-width: 672px ) /* 640 */{
html{
	font-size: 75%; /* 12 */
}

#mobileMenu{
	display:block;
}

#mobileMenuButton{
	background:url(../hp_images/menu.jpg) center right no-repeat;
	display: block;
	float:left;
    position: relative;
    z-index: 900;
	padding:8px 21px 10px 10px;
	margin-top: 5px;
	color: #284996;
	font-size: 14px;
	cursor:pointer;
}

#nav{
	text-align:right;
}


#nav:not( :target ) > a:first-of-type,
#nav:target > a:last-of-type{
	display: block;
	width:100px;
	padding: 5px 10px;
}


/* first level */

#nav a{
	font-size:14px;
}

#nav .active a{
	color: #000;
}


#navigation #nav > ul{
	height: auto;
	display: none;
	position: absolute;
	left: -90px;
	right: 0;
}
#mobileMenu #nav > ul{
	background:#fff;
	border-left:1px solid #9a9a9a;
	border-right:1px solid #9a9a9a;
	border-bottom:1px solid #9a9a9a;
	overflow:hidden;
	padding: 10px 0;
	-moz-box-shadow: 0 6px 4px -8px #333333 inset;
	-webkit-box-shadow:0 6px 4px -8px #333333 inset;
	box-shadow: 0 6px 4px -8px #333333 inset; 
	
}
#nav:target > ul{
	display: block;
	background: #fff;
}
#nav > ul > li{
	float: none;
	padding: 0;
	border-left:none;
	border-right:none;
	margin: 0;
	text-align:left;
}
#nav ul li:hover {
    background-color: #fff;
}

#nav ul li:hover li a {
    background-color: #FFFFFF;
    border-bottom: medium none;
    color: #000;
	text-decoration:none;
}

#nav ul li:hover a{
    background-color: #fff;
	color: #000;
	text-decoration:none;

}

#nav li ul li {
	padding:0px 0;
}

#nav li ul:not(:hover) li.active a {
}
#nav li ul li a:hover{
    color: #284996;
    text-decoration: none;
    width: auto;
	background: #eaeaea;
}

#nav ul li a:hover{
    background-color: #fff;
	color: #284996;
	background: #eaeaea;
}

#nav > ul > li > a{
	height: auto;
	text-align: left;
}
#nav > ul > li:not( :last-child ) > a{
	border-right: none;
}


/* second level */

#nav li ul{
	position: static;
	display:block;
	border:none;
	font-size:14px;
	width:100%;
	margin-top:0px;
	padding: 0 0;
	opacity:1;
	visibility:visible;
	z-index:300;
}
#nav li ul a{
	font-size:16px;
	line-height:14px;
	padding: 3px 20px;
}

}