#nav_main {
    display: block;
    list-style: none;
    font-weight: bold;
    overflow: hidden;
    margin-bottom: 10px;
    font-size: .9em;
}

#nav_main.pnested {
    padding: 46px 0 0 175px;
}

#nav_main.pmain {
    padding: 85px 0 0;
}

#nav_main li.first div {
    width: 11px;
    height: 31px;
    float: left;
    background: transparent url("images/menu_bg_l.png") top right no-repeat;
}

#nav_main li.last {
    background: none;
    overflow:visible;
    position:relative;
}

#nav_main li.last div {
    width: 19px;
    /*float: left;*/
    position:absolute;
    top:0;
    right:0;
    zoom:1;
    height: 31px;
    background: transparent url("images/menu_bg_r.png") top right no-repeat;
    /*margin-left: -1px;*/
    margin-right: -18px;
}

#nav_main li {
    display: block;
    float: left;
    height: 31px;
    background: transparent url("images/menu_separator.png") top right no-repeat; /*position: relative;*/
    margin: 0;
    padding: 0;
}

#nav_main li a {
    display: block;
    float: left;
    padding: 5px 7px 0;
    background: transparent url("images/menu_bg.png") top left repeat-x;
    height: 26px;
    text-decoration: none;
    margin-right: 1px;
}

#nav_main li.first:hover div,
#nav_main li.current.first div,
#nav_main li.current.first div:hover {
    background: transparent url("images/menu_bg_l_h.png") top right no-repeat;
}

#nav_main li.first div:hover {
    background: transparent url("images/menu_bg_l.png") top right no-repeat;
}

#nav_main li.last:hover div,
#nav_main li.last.current div,
#nav_main li.last.current div:hover {
    background: transparent url("images/menu_bg_r_h.png") top right no-repeat;
}

#nav_main li.last div:hover {
    background: transparent url("images/menu_bg_r.png") top right no-repeat;
}

#nav_main li.current a {
    text-decoration: underline;
}

#nav_main li.current a, #nav_main li:hover a:hover {
    background: transparent url("images/menu_bg_h.png") top left repeat-x;
}

/*Стили для всплывающего меню*/
/*** ESSENTIAL STYLES ***/
.menu_pd, .menu_pd * {
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu_pd {
    /*line-height:	1.0;*/
}

.menu_pd ul {
    position: absolute;
    top: -999em;
    width: 210px; /* left offset of submenus need to match (see below) */
}

.menu_pd ul li {
    /*width:			100%;*/
}

.menu_pd li:hover {
    visibility: inherit; /* fixes IE7 'sticky bug' */
}

.menu_pd li {
    /*float:			left;*/
    position: relative;
}

.menu_pd a {
    display: block;
    position: relative;
}

ul.menu_pd li:hover li ul,
ul.menu_pd li.sfHover li ul {
    top: -999em;
}

ul.menu_pd.pdr li li:hover ul,
ul.menu_pd.pdr li li.sfHover ul {
    left: -210px; /* match ul width */
    top: 0;
}

ul.menu_pd.pdl li li:hover ul,
ul.menu_pd.pdl li li.sfHover ul {
    right: -210px; /* match ul width */
    top: 0;
}

ul.menu_pd li li:hover li ul,
ul.menu_pd li li.sfHover li ul {
    top: -999em;
}

ul.menu_pd.pdr li li li:hover ul,
ul.menu_pd.pdr li li li.sfHover ul {
    left: -210px; /* match ul width */
    top: 0;
}

ul.menu_pd.pdl li li li:hover ul,
ul.menu_pd.pdl li li li.sfHover ul {
    right: -210px; /* match ul width */
    top: 0;
}

.menu_pd li:hover ul,
.menu_pd li.sfHover ul {
    /*top: 30px; *//* match top ul list item height */
    /*left: 0;*/
    z-index: 99;
}

/*** arrows **/
ul.menu_pd li a.sf-with-ul {
    padding-right: 2.25em;
    min-width: 1px; /* trigger IE7 hasLayout so spans position accurately */
}

ul.menu_pd li li a.sf-with-ul,
ul.menu_pd li li li a.sf-with-ul {
    padding-right: 0.6em;
}

.sf-sub-indicator {
    position: absolute;
    display: block;
    right: .75em;
    top: 1.05em; /* IE6 only */
    width: 10px;
    height: 10px;
    text-indent: -999em;
    overflow: hidden;
    background: url('images/arrows-444444.png') no-repeat -10px -100px; /* 8-bit indexed alpha png. IE6 gets solid image only */
}

a .sf-sub-indicator {
    /* give all except IE6 the correct values */
    top: 5px;
    background-position: 0 -100px; /* use translucent arrow for modern browsers*/
}

*html a .sf-sub-indicator {
    background-position: -10px -100px;
}

/* apply hovers to modern browsers */
a:focus .sf-sub-indicator,
a:hover .sf-sub-indicator,
a:active .sf-sub-indicator,
li:hover a .sf-sub-indicator,
li.sfHover a .sf-sub-indicator {
    background-position: -10px -100px; /* arrow hovers for modern browsers*/
}

/* point right for anchors in subs */
.menu_pd.pdr ul.sf-sub-indicator {
    background-position: -10px 0;
}

.menu_pd.pdl ul.sf-sub-indicator {
    background-position: -30px 0;
}

.menu_pd ul a .sf-sub-indicator {
    background-position: 0 0;
}

*html .menu_pd ul a .sf-sub-indicator {
    background-position: -10px 0;
}

/* apply hovers to modern browsers */
.menu_pd.pdr ul a:focus .sf-sub-indicator,
.menu_pd.pdr ul a:hover .sf-sub-indicator,
.menu_pd.pdr ul a:active .sf-sub-indicator,
.menu_pd.pdr ul li:hover > a > .sf-sub-indicator,
.menu_pd.pdr ul li.sfHover > a > .sf-sub-indicator {
    background-position: -20px 0; /* arrow hovers for modern browsers*/
}

.menu_pd.pdl ul a:focus .sf-sub-indicator,
.menu_pd.pdl ul a:hover .sf-sub-indicator,
.menu_pd.pdl ul a:active .sf-sub-indicator,
.menu_pd.pdl ul li:hover > a > .sf-sub-indicator,
.menu_pd.pdl ul li.sfHover > a > .sf-sub-indicator {
    background-position: 0 0; /* arrow hovers for modern browsers*/
}

/*** shadows for all but IE6 ***/
.sf-shadow ul {
    background: url('images/shadow.png') no-repeat bottom right;
    padding: 0 8px 9px 0;
    -moz-border-radius-bottomleft: 17px;
    -moz-border-radius-topright: 17px;
    -webkit-border-top-right-radius: 17px;
    -webkit-border-bottom-left-radius: 17px;
}

.sf-shadow ul.sf-shadow-off {
    background: transparent;
}