#nav, 
#nav ul {padding:0 0 5px 0; margin:0; list-style:none; font-family: 'Open Sans', sans-serif; background:#d5cfcf; position:relative; z-index:200;}
#nav {height:40px; padding:0; width:940px;background: url("/assets/templates/main/images/menu_bg100.jpg") repeat-x;margin: 5px 0 2px 0;}

#nav ul ul {border:1px solid 1px;}
#nav table {border-collapse:collapse;}
#nav li {float:left; padding:0 20px 0 10px; margin: 0;text-align: left;}
#nav li li {float:none;padding:0 10px 0 10px;}
/* a hack for IE5.x and IE6 */
#nav li a li {float:left;}

#nav li a {display:block; float:left; color:#FFF; height:40px; padding-right:5px; line-height:40px; text-decoration:none; white-space:nowrap; text-transform: uppercase;}
#nav li li a {height:25px; line-height:25px; float:none;color:#666;text-transform: none;border-bottom: 1px solid #e7e1e1;}

#nav li:hover {position:relative; z-index:300;background:#666;} /* выделенный пункт меню */
#nav a:hover {position:relative; z-index:300; text-decoration:underline; color:#fff;}

#nav :hover ul {left:0; top:40px;}
/* another hack for IE5.5 and IE6 */
#nav a:hover ul {left:-10px;}

#nav ul {position:absolute; left:-9999px; top:-9999px;}

/* it could have been this simple if all browsers understood */
/* show next level */
#nav li:hover li:hover > ul {left:-15px; margin-left:100%; top:-1px;}
/* keep further levels hidden */
#nav li:hover > ul ul {position:absolute; left:-9999px; top:-9999px; width:auto;}
/* show path followed */
#nav li:hover > a {text-decoration:none; color:#fff;}


/* but IE5.x and IE6 need this lot to style the flyouts*/
/* show next level */
#nav a:hover a:hover ul,
#nav a:hover a:hover a:hover ul,
#nav a:hover a:hover a:hover a:hover ul,
#nav a:hover a:hover a:hover a:hover a:hover ul
{left:100%; top:-1px;}

/* keep further levels hidden */
#nav a:hover ul ul,
#nav a:hover a:hover ul ul,
#nav a:hover a:hover a:hover ul ul,
#nav a:hover a:hover a:hover a:hover ul ul
{position:absolute; left:-9999px; top:-9999px;}
