#menu {
width: 11em;
background: #eee;
z-index: 9;
}

#menu ul {
list-style: none;
margin: 0;
padding: 0;
z-index: 9;
}

#menu a, #menu h2 {
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;
z-index: 9;
}

#menu h2 {
color: #fff;
background: #000;
text-transform: uppercase;
z-index: 9;
}

#menu h3 {
font: bold 11px/16px arial, helvetica, sans-serif;
background: #B4B4CC;
display: block;
border-width: 1px;
border-style: solid;
border-color: #ccc #888 #555 #bbb;
margin: 0;
padding: 2px 3px;
color: #000000;
z-index: 9;
}

#menu a {
color: #000;
background: #B4B4CC;
text-decoration: none;
z-index: 9;
}

#menu a:hover {
color: #a00;
background: #7777BB;
z-index: 9;
}

#menu li {
font: bold 11px/16px arial, helvetica, sans-serif;
position: relative;
background: #B4B4CC;
z-index: 9;
}

#menu li:hover {
position: relative;
background: #7777BB;
z-index: 9;
}

#menu ul ul ul {
position: absolute;
top: 0;
left: 100%;
width: 100%;
z-index: 9;
}

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

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

#hmenu a {
border-width: 1px;
border-style: solid;
border-color: #ccc #888 #555 #bbb;
margin: 0;
position: relative;
padding: 1px 12px;
color: #000;
background: #B4B4CC;
text-decoration: none;
z-index: 9;
}

#hmenu a:hover {
color: #a00;
background: #7777BB;
z-index: 9;
}

input:focus {
color: black;
background: #ff9;
z-index: 9;
}
