#menu nav
{
	height: 27px;
	padding: 1px 0px 0px 0px;
	border:    none;
	background-image: url(../images/mainmenu-bg.png);
	background-repeat: repeat-x;
}

#menu nav .active a
{
	color: red;
}

#menu nav ul 
{
	margin: 0px;
	padding: 0px;
	list-style: none;
	position: relative;
	display: inline-table;
}

#menu nav ul:after 
{
	content: ""; 
	clear: both; 
	display: block;
}

#menu nav ul li 
{
	float: left;
}

#menu nav ul ul
{
	display: none;
}

#menu nav ul li:hover > ul 
{
	display: block;
	z-index: 1000;
}

#menu nav ul li:hover 
{
	background-image: url(../images/mainmenu-hover.png);
	background-repeat: repeat-x;
	background-color:#3f3f3f;
}

#menu nav ul li:hover a 
{
	color:white;
}
		
#menu nav ul li a 
{
	display: block; 
	color: black;
	padding: 5px 15px 5px 15px;
	border: none;
	border-left: 1px solid white;
	border-right: 1px solid #adadad;
	font-size: 14px;
	font-weight: bold;
	text-decoration:none;
}
			
		
#menu nav ul ul 
{
	padding: 0;
	position: absolute; 
	top: 100%;
	background-color:#3f3f3f;
	color: white;
	border-left: 1px solid white;
	border-right: 1px solid #adadad;
	border-bottom: 1px solid white;
}
		
#menu nav ul ul li 
{
	float: none; 
	border: none;
	position: relative;
	color: black;
}

#menu nav ul ul li a 
{
	padding: 5px 15px 5px 15px;
	border: none;
	color: white;
}	

#menu nav ul ul li a:hover 
{
	background: #c7c7c7;
	color: black;
}

#smartmenu .icon
{
    display: block;
    width: 32px;
    height: 32px;
    background: url(../images/smartmenu.png)  no-repeat 0px 0px;
}

#smartmenu .icon:hover
{
    background: url(../images/smartmenu_active.png)  no-repeat 0px 0px;
}

#smartmenu ul 
{ 
    display: none;
    position: absolute;
    list-style: none;
    padding: 0px;
    margin: 0px;
    background: #ffffff;
    border: 1px solid white;
    font-size: 18px;
    width: 75%;
}

#smartmenu ul li
{
    width: 100%;
    padding: 0;
    margin: 0;
    background-color: #373737;
}

#smartmenu ul li a, #smartmenu ul li a:visited
{
    display: block; 
    font-weight: bold;
    color: white;
    text-decoration: none;
    padding: 10px 5px;
}

#smartmenu ul li span
{
    display: block; 
    font-weight: normal;
    font-style: italic;
    font-size: 13px;
    color: white;
    text-decoration: none;
    padding: 5px 2px;
    border-top: 1px solid #ffffff;
}

#smartmenu ul li:hover 
{
    background-color: #707070;
}

#smartmenu:hover ul,
#smartmenu:active ul
{
    display: block;
    z-index: 1000;
}

/*
#smartmenu:hover ul ul,
#smartmenu:active ul ul
{
    display: none;
}

#smartmenu:hover ul li:hover > ul,
#smartmenu:active ul li:active > ul
{
    display: block;
    z-index: 1001;
}
*/

#smartmenu ul ul
{
    /* display: none; */
    box-sizing: border-box;  
    position: relative;
    padding: 0;
    margin: 0; 
    top: 100%;
    width: 100%;
    right: 0px;
    background-color:#b0b0b0;
    color: white;
    border-top: 1px solid #ffffff;
    border-right: none;
    border-bottom: 1px solid #ffffff;
    border-left: none;
}
        
#smartmenu ul ul li 
{
    float: none; 
    border: none;
    position: relative;
    color: black;
}

#smartmenu ul ul li a 
{
    padding: 10px 5px;
    border: none;
    color: white;
}   

#smartmenu ul ul li a:hover 
{
    background: #707070;
    color: white;
}

