/* ================================================================ 
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/final_drop.html
Copyright (c) 2005-2008 Stu Nicholls. All rights reserved.
This stylesheet and the associated (x)html may be modified in any 
way to fit your requirements.
=================================================================== */

/*
 * Modified by MBMprojekt Marcin Matras to fit specific requirements
 */

#menu ul {list-style-type: none;margin: 0;padding: 0;position: relative;}
#menu li {width: 93px;height: 43px;float: left;text-align: center;background-image: url(/Layout/gfx/button_tlo.png);	background-repeat: no-repeat;margin-left: 1px;position: relative;}
#menu li a {display: block;line-height: 43px;width: 93px;height: 43px;text-align: center;text-decoration: none;color: #4b6478;font-weight: bold;}
#menu li a.active, #menu li a:hover {background-image: url(/Layout/gfx/button_grot.png);background-repeat: no-repeat;background-position: 50% 33px;color: #4b6478;}


/* hide the sub levels and give them a positon absolute so that they take up no room */
#menu ul ul {
	z-index: 80;
	visibility: hidden;
	min-width: 200px;
	width: auto;
	position: absolute;
	height:auto;
	top: 43px;
	left: 0;
	padding: 2px 5px 0 5px;
	height: auto;
	font-weight: normal;
	text-align: center;
	background-color: #f4ffff;
	background-image: url(/Layout/gfx/tlo_hover.png);
	background-repeat: repeat-x;
}

#menu ul ul li {
	display: block;
	clear: left;
	width: 200px;
	padding: 2px 0;
	line-height: 1.5em;
	position: relative;
	min-height: 20px !important;
	height: auto !important;
	background: none;
	overflow: hidden;	
}

html>body #menu ul ul li {
	font-size: 9pt;
	width: auto;
}

/* style the table so that it takes no ppart in the layout - required for IE to work */
#menu table {position:absolute;top:0;left:0;border-collapse:collapse;}

/* style the second level links */
#menu ul ul a, #menu ul ul a:visited, #menu ul ul a:hover {
	color: #4b6478 !important; 
	height: auto; 
	line-height: 1.5em; 
	width: auto;
	background-image: none !important;
}

#menu ul ul li a {
	display: block !important;
	width: 200px !important;
	min-height: 20px;
	height: auto;
	text-align: left !important;
	margin: 0 !important;
	padding: 0 !important;
	float: left;
	line-height: 1.5em;
}

#menu ul ul li a:hover, #menu ul ul li a.active {
	text-decoration: underline !important;
}

/* style the top level hover */
#menu a:hover {
	background-image: url(/Layout/gfx/button_grot.png);
	background-repeat: no-repeat;
	color: #4b6478;
	background-position: 50% 33px;
}

#menu :hover > a, #menu ul ul :hover > a {
	background-image: url(/Layout/gfx/button_grot.png);
	background-repeat: no-repeat;
	color: #4b6478;
	background-position: 50% 33px;
}

/* make the second level visible when hover on first level list OR link */
#menu ul li:hover ul, #menu ul a:hover ul {
	visibility: visible;
}

/* keep the third level hidden when you hover on first level list OR link */
.menu2 ul :hover ul ul {
	visibility:hidden;
}

/* make the third level visible when you hover over second level list OR link */
.menu2 ul :hover ul :hover ul {
	visibility:visible;
}

.menu2 ul ul :hover > a {
	color: #000080;
	background-image: url(/Layout/gfx/_mbm/menu_strzalka.png);
	background-position: right center;
	background-repeat: no-repeat;
}

.last {margin-left: 0 !important;width: 160px !important;}