/*-----MENU----*/

#main_menu{
	padding:0;
	overflow:visible;
}

/* 
	Define the width of the menu on a certain level.
	Define the lmenu variant too --> add a left: -1*width + horizontal border widths
	Define colors of certain levels.
*/

/* ---- HMENU ---- */
.hmenu li{
	padding:5px;
}

.hmenu > ul ul{
	width:100px;
}

/*------- 2nd level -------*/
.hmenu > ul >li > ul{
	top:28px; /* Shift down with the height of the 1st level */
	margin-left:-6px; /* This is the padding + border of the ul-li the ul is in. */
}

.hmenu > ul >li > ul.lmenu{
	right:0; /* lmenu on the second level is special in a hmenu*/
}

/*------- 3rd+ level -------*/
.hmenu ul ul ul{
	left:100px; /* This value is the same as the width of the ul one level up*/
	margin-top:-6px;
}

.hmenu > ul > li > ul > li ul.lmenu{
	left:-102px; /* Width + border on the two sides */
}

/* ---- VMENU ---- */
.vmenu li{
	padding:3px;
}

.vmenu > ul ul{
	width:140px;
}

/*------- 2nd+ level -------*/

.vmenu > ul > li > ul{
	left:191px;
	background-color:white;
	border:1px solid #ccc;
	margin-top:-23px;
}

.vmenu > ul > li > ul.lmenu{
	left:-142px;
}

/*------- 3nd+ level -------*/
.vmenu ul ul ul{
	left:140px;
	margin-top:-4px;
}

.vmenu > ul > li > ul > li ul.lmenu{
	left:-142px; /* Width + border on the two sides */
}

.hmenu > ul{width:100%;overflow:hidden;text-align:right;display:inline;}

.vmenu li.selected>a
{
	font-weight:bold;
}
