.nav {
		width: 100%;
		margin: 50px auto;
		border: 1px solid #222;
		background-color: #f5e58c;
		background-image: -moz-linear-gradient(#f5e58c, #444); 
		background-image: -webkit-gradient(linear, left top, left bottom, from(#f5e58c), to(#444));	
		background-image: -webkit-linear-gradient(#f5e58c, #444);	
		background-image: -o-linear-gradient(#f5e58c, #444);
		background-image: -ms-linear-gradient(#f5e58c, #444);
		background-image: linear-gradient(#f5e58c, #444);
		-moz-border-radius: 3px;
		-webkit-border-radius: 3px;
		border-radius: 3px;
		-moz-box-shadow: 0 1px 1px #777, 0 1px 0 #666 inset;
		-webkit-box-shadow: 0 1px 1px #777, 0 1px 0 #666 inset;
		box-shadow: 0 1px 1px #777, 0 1px 0 #666 inset;
	}

/* главный стиль */
#nav,#nav ul {
    list-style:none;
    margin:0;
    padding:0;
}
#nav {
    height:40px;
    padding-left:5px;
    padding-top:5px;
    position:relative;
    z-index:2;
}
#nav ul {
    left:-9999px;
    position:absolute;
    top:40px;
    width:auto;
}
#nav ul ul {
    left:-9999px;
    position:absolute;
    top:0;
    width:auto;
}
#nav li {
    float:left;
    margin-right:5px;
    position:relative;
}
/* родитель */
#nav li a {
	text-align: center;
    color:#500214;
    display:block;
	text-transform: uppercase;	
	font: bold 14px 'Tahoma';
	text-decoration: none;
	text-shadow: 0 1px 0 #000;
    padding:6px 10px;
    width:125px;
}
/* родитель */
#nav > li > a {
		padding: 10px 10px;
		background-color: #f5e58c;
		background-image: -moz-linear-gradient(#f5e58c, #444); 
		background-image: -webkit-gradient(linear, left top, left bottom, from(#f5e58c), to(#444));	
		background-image: -webkit-linear-gradient(#f5e58c, #444);	
		background-image: -o-linear-gradient(#f5e58c, #444);
		background-image: -ms-linear-gradient(#f5e58c, #444);
		background-image: linear-gradient(#f5e58c, #444);
		-moz-border-radius: 3px;
		-webkit-border-radius: 3px;
		border-radius: 3px;
		-moz-box-shadow: 0 1px 1px #777, 0 1px 0 #666 inset;
		-webkit-box-shadow: 0 1px 1px #777, 0 1px 0 #666 inset;
		box-shadow: 0 1px 1px #777, 0 1px 0 #666 inset;
		overflow:hidden;
}
/*есть вложения*/
#nav li a.ruka {
		padding: 10px 10px;
		background-color: #f5e58c;
		background-image: -moz-linear-gradient(#f5e58c, #444); 
		background-image: -webkit-gradient(linear, left top, left bottom, from(#f5e58c), to(#444));	
		background-image: -webkit-linear-gradient(#f5e58c, #444);	
		background-image: -o-linear-gradient(#f5e58c, #444);
		background-image: -ms-linear-gradient(#f5e58c, #444);
		background-image: linear-gradient(#f5e58c, #444);
		-moz-border-radius: 3px;
		-webkit-border-radius: 3px;
		border-radius: 3px;
		-moz-box-shadow: 0 1px 1px #777, 0 1px 0 #666 inset;
		-webkit-box-shadow: 0 1px 1px #777, 0 1px 0 #666 inset;
		box-shadow: 0 1px 1px #777, 0 1px 0 #666 inset;
		padding-right:15px;

}

/* детки */
#nav ul li a {
		padding: 10px 10px;
		border: 1px solid #222;
		background-color: #f5e58c;
		background-image: -moz-linear-gradient(#f5e58c, #444); 
		background-image: -webkit-gradient(linear, left top, left bottom, from(#f5e58c), to(#444));	
		background-image: -webkit-linear-gradient(#f5e58c, #444);	
		background-image: -o-linear-gradient(#f5e58c, #444);
		background-image: -ms-linear-gradient(#f5e58c, #444);
		background-image: linear-gradient(#f5e58c, #444);
		-moz-border-radius: 3px;
		-webkit-border-radius: 3px;
		border-radius: 3px;
		-moz-box-shadow: 0 1px 1px #777, 0 1px 0 #666 inset;
		-webkit-box-shadow: 0 1px 1px #777, 0 1px 0 #666 inset;
		box-shadow: 0 1px 1px #777, 0 1px 0 #666 inset;
    width:130px;
}
#nav ul li a.ruka {
    padding-right:10px;
}

/*hover styles*/
#nav li:hover > a {
    color:#4ad8f6;
}

/*focus styles*/
    #nav li a:focus {
    outline-width:0;
}

/*popups*/
#nav li a:active + ul.palec,#nav li a:focus + ul.palec,#nav li ul.palec:hover {
    left:0;
}
#nav ul.palec li a:active + ul,#nav ul.palec li a:focus + ul,#nav ul.palec li ul:hover {
    left:150px;
}