
/* ================================================================ 
This copyright notice must be untouched at all times.

The original version of this stylesheet and the associated (x)html
is available at http://www.cssplay.co.uk/menus/simple_vertical.html
Copyright (c) 2005-2007 Stu Nicholls. All rights reserved.
This stylesheet and the associated (x)html may be modified in any 
way to fit your requirements.
=================================================================== */

/*
 цвет фона при наведении   #dfd7ca
 цвет шрифта при наведении #c00
 */

/* Add a margin - for this demo only - and a relative position with a high z-index to make it appear over any element below */
.MainMenuContainer, #MainMenuContainer 
{
	position:relative; width:100%; height:25px; z-index:100;
	background:url(/img/main_menu_background.gif) repeat #3261a1;
	font: 11px tahoma, arial, verdana, helvetica, sans-serif;
}

#MainMenu .Current 
{
	color:#f5821f;	
	font-weight: bold;
}

/* Get rid of the margin, padding and bullets in the unordered lists */
#MainMenu, #MainMenu ul {padding:0; margin:0; list-style-type: none;}

/*#MainMenu ul li ul.SubMainMenu {filter : DropShadow(Color=#F0F0F0, OffX=2, OffY=2, Positive=1);}*/

/* Set up the link size, color and borders */
#MainMenu a, #MainMenu a:visited {display:block; text-decoration:none;}
#MainMenu a.top, #MainMenu a.top:visited {width :120px;height:25px; padding-left: 10px;line-height:24px;display:block;font-size:11px; color:#fff; text-decoration:none; text-indent:5px; /*border:1px solid #000; border-width:1px 0 1px 1px;*/}

#MainMenu li a.itemBegin, #MainMenu li a:visited.itemBegin, #MainMenu a.item, #MainMenu a:visited.item 
{width:120px; height:20px; line-height:19px;display:block;font-size:10px; color:#666; text-decoration:none; text-indent:5px; border:1px solid #F6F6F6; border-width:1px 0 1px 1px;}

/* Set up the pointers for the sub level indication */
#MainMenu li.drop, #MainMenu li.top {}
#MainMenu li.drop {background: url(/img/arrow_drop.gif) no-repeat right center;} /*fafafa*/
#MainMenu li.fly {float:left; background: #fafafa url(/img/arrow_fly.gif) no-repeat right center;}/**/
#MainMenu li.item {float:left; background: #fafafa}/**/

#MainMenu li.Separator {height:25px; background:url('/img/main_menu_separator.gif') no-repeat left center;}

/* Set up the sub level borders */
#MainMenu li ul li a, #MainMenu li ul li a:visited {border-width:0 1px 1px 1px;}

#MainMenu li a.itemBegin, 
#MainMenu li a.itemBegin:visited {border:1px solid #e5e5e5; border-width:1px 1px 1px 1px;}
#MainMenu li a.item, 
#MainMenu li a.item:visited {border:1px solid #e5e5e5; border-width:0 1px 1px 1px;}

/* Set up the list items */
#MainMenu li {float:left;}/*background:#7484ad;*/
#MainMenu li.item {float:left;}/*fff*/

/* For Non-IE browsers and IE7 */
#MainMenu li:hover {position:relative;}
/* Make the hovered list color persist */
#MainMenu li:hover > a {background:#dfd7ca; color:#c00;}
/* Set up the sublevel lists with a position absolute for flyouts and overrun padding. The transparent gif is for IE to work */
#MainMenu li ul {display:none;}
/* For Non-IE and IE7 make the sublevels visible on list hover. This is all it needs */
#MainMenu li:hover > ul {display:block; position:absolute; top:-11px; left:80px; padding:10px 30px 30px 30px; background:transparent url(transparent.gif); width:120px;}
/* Position the first sub level beneath the top level liinks */
#MainMenu > li:hover > ul {left:-30px; top:16px;}

/* get rid of the table */
#MainMenu table {position:absolute; border-collapse:collapse; top:0; left:0; z-index:100; font-size:1em;}

/* For IE5.5 and IE6 give the hovered links a position relative and a change of background and foreground color. This is needed to trigger IE to show the sub levels */
/* html */ #MainMenu li a:hover {position:relative; background:#dfd7ca; color:#c00;}
/* html */ #MainMenu li a.top:hover {position:relative; background:#dfd7ca; color:#c00;}
/* html */ #MainMenu li a.item:hover {position:relative; background:#dfd7ca; color:#c00;}
/* html */ #MainMenu li a.itemBegin:hover {position:relative; background:#dfd7ca; color:#c00;}

/* For accessibility of the top level menu when tabbing */
#MainMenu li a:active, #MainMenu li a:focus {background:#dfd7ca; color:#c00;}


/* This lot is for IE5.5 and IE6 ONLY and is necessary to make the sublevels appear */

/* change the drop down levels from display:none; to visibility:hidden; */
* html #MainMenu li ul {visibility:hidden; display:block; position:absolute; top:-11px; left:80px; padding:10px 30px 30px 30px; background:transparent url(transparent.gif);}

/* keep the third level+ hidden when you hover on first level link */
#MainMenu li a:hover ul ul{
visibility:hidden;
}
/* keep the fourth level+ hidden when you hover on second level link */
#MainMenu li a:hover ul a:hover ul ul{
visibility:hidden;
}
/* keep the fifth level hidden when you hover on third level link */
#MainMenu li a:hover ul a:hover ul a:hover ul ul{
visibility:hidden;
}
/* keep the sixth level hidden when you hover on fourth level link */
#MainMenu li a:hover ul a:hover ul a:hover ul a:hover ul ul {
visibility:hidden;
}

/* make the second level visible when hover on first level link and position it */
#MainMenu li a:hover ul {
visibility:visible; left:-30px; top:14px; left:-31px; top:15px;
}

/* make the third level visible when you hover over second level link and position it and all further levels */
#MainMenu li a:hover ul a:hover ul{ 
visibility:visible; top:-11px; left:80px;
}
/* make the fourth level visible when you hover over third level link */
#MainMenu li a:hover ul a:hover ul a:hover ul { 
visibility:visible;
}
/* make the fifth level visible when you hover over fourth level link */
#MainMenu li a:hover ul a:hover ul a:hover ul a:hover ul { 
visibility:visible;
}
/* make the sixth level visible when you hover over fifth level link */
#MainMenu li a:hover ul a:hover ul a:hover ul a:hover ul a:hover ul { 
visibility:visible;
}
/* If you can see the pattern in the above IE5.5 and IE6 style then you can add as many sub levels as you like */