#menu {
width: 140px; /* set width of menu */
padding-top:;
padding-left: 5px;
padding-bottom: 10px;
} 

#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: normal x-small Verdana, Arial, Helvetica, sans-serif;
display: block;
margin: 0;
padding: 3px;
}

#menu h2 {
color: #ccddee;
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #CCCCCC;
font-family:Verdana, Arial, Helvetica, sans-serif;
text-transform: uppercase;
}

#menu a {

border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #666666;
font-family:Verdana, Arial, Helvetica, sans-serif;
text-decoration: none;
z-index:10;
}

#menu ul ul li a {color: #ccddee;}

#menu a:hover {
color: #333333;
background: #CCCCCC;
}

#menu ul ul li:hover {
background: #CCCCCC;
color:#333333;
}

#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%;
width: 100%;
background-color:#CCCCCC;
color:#333333;
}

div#menu ul ul ul li a {color:#333333}
div#menu ul ul ul li a:hover {color: #CCCCCC; background-color:#666666;}

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; background-color:#CCCCCC; color: #333333;}

div#menu ul li a:hover,
div#menu ul ul li:hover ul a,
div#menu ul ul ul li:hover ul a
{
font:Verdana, Arial, Helvetica, sans-serif;
color: #000;
background: #cccccc;
}

div#menu ul ul li:hover a,
div#menu ul ul ul li:hover a,
div#menu ul ul ul ul li:hover a
{
color: #a00;
background: #efefef;
display:block;
}
