#menu {
width: 164px; /* set width of menu */
background: #173858;
} 

#menu ul { /* remove bullets and list indents */
list-style: none;
margin: 0;
padding: 0;
}

/* style, color and size links and headings to suit */
#menu a, #menu h2 {
font: bold 1.05em Tahoma, Verdana, arial, sans-serif;
display: block;
border-bottom:1px solid #fff;
margin: 0;
padding: 10px 7px;
}

#menu a {
color: #fff;
background: #173858;
text-decoration: none;
letter-spacing: 1px;
}

#menu a:hover {
color: #000;
background: #D0E8FF;
}

/*positioning the popouts */
#menu li {
/* make the list elements a containing block for the nested lists */
position: relative;
} 

#menu ul ul ul {
position: absolute;
top: 0;
left: 100%; /* to position them to the right of their containing block */
width: 100%; /* width is based on the containing block */
}

#menu ul ul ul a {
font: bold 1.15em Tahoma, Verdana, arial, sans-serif;
display: block;
border-bottom:1px solid #fff;
border-left:1px solid #fff;
margin: 0;
padding: 10px 7px;
}

#menu ul ul ul a:hover {
color: #000;
background: #fff;
}


/*hiding and revealing using hover*/
div#menu ul ul ul,
div#menu ul ul li:hover ul ul
{display: none;}

div#menu ul ul li:hover ul,
div#menu ul ul ul li:hover ul
{display: block;}

/*onderstaande stijl om de selected-state in het menu te regelen*/
.selected{background:#D0E8FF !important; color:#000 !important;}
