.menu {
width:175px;
font-size:100%;
margin:2px 0 20px 0px;
font-family: helvetica, arial, sans-serif;
position:relative;
z-index:1000;
}

/* remove all the bullets, borders and padding from the default list styling */
.menu ul {
padding:0;
margin:0;
list-style-type:none;
width:175px; /* if this is changed, also amend ".menu a" & ".menu ul ul" */
z-index:1000;
}
/* hack for IE5.5 */
* html .menu ul {margin-left:-16px; ma\rgin-left:0;}

.menu li {
position:relative; /* position relative so that you can position the sub levels */
background:#FFF; /* item background colour - static state */
}
/* get rid of the table */
.menu table {position:absolute; border-collapse:collapse; top:0; left:0; z-index:100; font-size:1em;}

/* style the links and lines between */
.menu a, .menu a:visited {
display:block; 
text-decoration:none;
line-height:14px;
width:174px; /* same as .menu ul width minus 1 pixel */
color:#69C; /* item text colour - static state */
border: solid #9CF; /* line below each menu item */
border-width:0 0 1px 0;
padding: 8px 0 8px 0;
}
/* hack for IE5.5 */
* html .menu a, * html .menu a:visited {background:#FFFFFF; width:175px; w\idth:174px;}

/* style the link hover */
* html .menu a:hover {
color:#005BA6;
background:#E9F0F7;
}

.menu :hover > a {
color:#005BA6; 
background:#E9F0F7;
}

/* style the selected link */
.menu li.selected a, .menu li.selected a:visited, .menu li.selected a:active  {
color:#CC2299;
background:#FFF;
border: solid #CC2299;
border-width: 0 0 1px 0;
}

/* style the selected link */
.menu li.selected a:hover {
color:#CC2299;
background:#E9F0F7;
}

/* style the sub level links */
.menu ul ul a, .menu ul ul a:visited {
font-size: 100%;
border-width:0 0 1px 1px;
text-indent:5px;
}

/* style the sub level selected links to include pink borders and bold selected subitem only */
.menu ul ul li.selected a, .menu ul ul li.selected a:visited {
font-size: 100%;
font-weight: bold;
border-width:0 0 1px 1px;
text-indent:5px;
}

/* style the sub level selected links - to remove pink colour on all subitems */
.menu ul li.selected ul a, .menu ul li.selected ul a:visited {
font-size: 100%;
color: #69C;
border-width:0 0 1px 1px;
text-indent:5px;
}

/* hide the sub levels and give them a positon absolute so that they take up no room */
.menu ul ul {
visibility:hidden;
position:absolute;
top:0px;
left:175px;  /* same as .menu ul width */
background-color:#FFF;
z-index:1000;
}
/* 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;
}

<!--[if IE 7]>
<style type="text/css">
.menu li {float:left;}
</style>
<![endif]-->

