@media only screen and ( min-width: 999px )
                {
/* Navigation */
#navbar{
float:right; clear:both;
}
#nav{
position: relative;
background-image:url(menufix.gif);
margin-left:20px;
margin-top:54px;
font-family:'made_waffle_soft', Verdana, Arial;
}
#nav ul{
margin:0px;
padding:0px;
}
#nav > a, #nav .mobnav{
display: none;
}
#nav > a{
display: none;
}
#nav li{
position: relative;
list-style:none;
}
#nav li a{
color: #ffffff;
display: block;
text-decoration:none;
-webkit-transition: background-color .3s linear, color .3s linear;
-moz-transition: background-color .3s linear, color .3s linear;
-o-transition: background-color .3s linear, color .3s linear;
-ms-transition: background-color .3s linear, color .3s linear;
transition: background-color .3s linear, color .3s linear;
}
#nav>ul>li>a.selected{

}
#nav ul ul li a.selected{
background-color: #666666 !important;
color:#ffffff;
}



/* first level */

#nav > ul{
}
#nav > ul > li{
height:37px;
float: left;
background-image:url(menufix.gif);

background-color:#FFAB00;

margin:0px 5px 0px 5px;
}

#nav>ul>li::before {
            content:'';
            display:block;
            position:absolute;
            top:0;
            left:-10px;
            height:0;
            width:0;
            border-left:5px solid transparent;
            border-top:18px solid transparent;
            border-right:5px solid #FFAB00;
            border-bottom:19px solid #FFAB00;

        }
#nav>ul>li::after {
            content:'';
            display:block;
            position:absolute;
            top:0;
            right:-10px;
            height:0;
            width:0;
            border-left:5px solid #FFAB00;
            border-top:18px solid #FFAB00;
            border-right:5px solid transparent;
            border-bottom:19px solid transparent;
        }

#nav > ul > li > a{
padding:9px 5px 15px 5px;
margin:0px 0px 0px 0px;
font-size: 1em;
text-align: center;


text-transform:uppercase;
}

#nav > ul > li:not( :last-child ){

}
#nav > ul > li:hover > a, #nav > ul:not( :hover ) > li.selected > a{

-webkit-transition: border-color 200ms ease-in-out, padding 200ms ease-in-out;
    -moz-transition: border-color 200ms ease-in-out, padding 200ms ease-in-out;
    -o-transition: border-color 200ms ease-in-out, padding 200ms ease-in-out;
    -ms-transition: border-color 200ms ease-in-out, padding 200ms ease-in-out;
    transition: border-color 200ms ease-in-out, padding 200ms ease-in-out;
}

/* second level */

#nav li ul{
background-image:url(menufix.gif);
position: absolute;
left: -9999px;
opacity:0;
top: 100%;
z-index:999;

}
#nav li ul ul{

}
#nav>ul>li>ul{
padding-top:10px;

margin-left:-10px;
}
#nav>ul>li>ul>li>ul{
padding-left:9px;
padding-right:9px;

}
#nav>ul>li>ul>li>ul>li:last-child{

}
#nav li ul li{
background-color:#08191C;
z-index:9;

box-shadow: 3px 3px 3px rgba(0, 0, 0, .1);

}
				

        
#nav>ul>li{

}
#nav li ul{
width:200px;
-webkit-transition: opacity .3s linear;
-moz-transition: opacity .3s linear;
-o-transition: opacity .3s linear;
-ms-transition: opacity .3s linear;
}
/* third level */
#nav ul ul li:not( :first-child ):hover ul{
left:199px;
top:0px;
}
#nav ul ul li:hover ul{
left:199px;
top:0px;
}
 .edge ul li:not( :first-child ):hover ul{
left:-200px !important;
}
.edge ul li:hover ul{
left:-200px !important;
}
#nav li:hover>ul{
display: block;
opacity:1;
left: 0;
right: 0;
}
#nav ul::after, #nav ul::before {
content: "";
display: block;
z-index: 1;
position: absolute;
height: 9px;
width: 9px;
}





				
#nav li:not( :first-child ):hover>ul{
left: -1px;
}
#nav li ul a{
font-size: 1em;

padding: 10px; 
}
#nav li ul li:not(:first-child){
border-top: 1px solid #d7dada;

}

#nav li ul li a:hover, #nav li ul:not( :hover ) li.selected a{
background-color: #009087;
color:#ffffff;
}
.menucontrolouter, .menucontrol, .searchnav{
display:none;
}
}
        @media only screen and ( max-height: 600px ) and (orientation:landscape)
                {

    #nav{
    margin-top:0px;
    }
}