#menu {
	width: 780px;
	background-color: transparent;
	float: left;
}

/* zmiana wartosci w zaleznosci od ilosci przyciskow */

#menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
	width: 253px;
	float: left;
	height: 24px;
}

#menu ul li ul{
	top: 21px;
}

#menu ul.corner {
	list-style: none;
	margin: 0;
	padding: 0;
	width: 6px;
	float: left;
}

#menu ul.middle{
	list-style: none;
	margin: 0;
	padding: 0;
	width: 1px;
	float: left;
}


#menu a	{
	font: bold 11px/16px arial, helvetica, sans-serif;
	display: block;
	border-width: 1px;
	border-style: solid;
	border-color: #ccc #888 #555 #bbb;
	margin: 0;
	padding: 2px 3px;
}

#menu li a.main {
	background-color: transparent;
	border: none;
	font: bold 11px/16px arial, helvetica, sans-serif;
	display: block;
	margin: 0;
	padding: 2px 3px;
	color: #fff;
	background-image: url('../gfx/menu_red.gif');
	background-repeat: repeat-x;
	height: 24px;
	text-transform: uppercase;
}
#menu li a.main:hover {
	border: none;	
	background-color: transparent;
	font: bold 11px/16px arial, helvetica, sans-serif;
	display: block;
	margin: 0;
	padding: 2px 3px;
	color: #fff;
	background-image: url('../gfx/menu_black.gif');
	background-repeat: repeat-x;
	height: 24px;
	text-transform: uppercase;
}

#menu a {
	color: #fff;
	background: #9c0100;
	text-decoration: none;
}

#menu a:hover {
	color: #fff;
	background: #330000;
}

#menu li {position: relative;}

#menu ul ul {
position: absolute;
z-index: 500;
}

#menu ul ul ul {
top: 0;
left: 100%;
}

div#menu ul ul,
div#menu ul li:hover ul ul,
div#menu ul ul li:hover ul ul
{display: none;}

div#menu ul li:hover ul,
div#menu ul ul li:hover ul,
div#menu ul ul ul li:hover ul
{display: block;}

#menu li.left{
	background-image: url('../gfx/menu_left_corner_red.gif');
	width: 6px;
	height: 24px;
}

#menu li.right{
	background-image: url('../gfx/menu_right_corner_red.gif');
	width: 6px;
	height: 24px;
}

#menu li.spacer{
	background-image: url('../gfx/menu_middle.gif');
	width: 1px;
	height: 20px;
}

#menu a.li_first{
	height: 20px; 
	border: none; 
	background-image: url('../gfx/menu_left_corner_red.gif');
	background-repeat: no-repeat;
}

#menu a.li_last{
	height: 20px; 
	border: none; 
	background-image: url('../gfx/menu_right_corner_red.gif');
	background-repeat: no-repeat;
}



#menu a.submenu_ {
	color: #fff;
	background: #330000;
	text-decoration: none;
}

#menu li a.main_ {
	background-color: transparent;
	border: none;
	font: bold 11px/16px arial, helvetica, sans-serif;
	display: block;
	margin: 0;
	padding: 2px 3px;
	color: #fff;
	background-image: url('../gfx/menu_black.gif');
	background-repeat: repeat-x;
	height: 24px;
	text-transform: uppercase;
}

#menu li.left_{
	background-image: url('../gfx/menu_left_corner_black.gif');
	width: 6px;
	height: 24px;
}

#menu li.right_{
	background-image: url('../gfx/menu_right_corner_black.gif');
	width: 6px;
	height: 24px;
}

#menu a.li_first_{
	height: 20px; 
	border: none; 
	background-image: url('../gfx/menu_left_corner_black.gif');
	background-repeat: no-repeat;
}

#menu a.li_last_{
	height: 20px; 
	border: none; 
	background-image: url('../gfx/menu_right_corner_black.gif');
	background-repeat: no-repeat;
}
