#menu {
 width: 100%; 
}

#menu ul {
 list-style: none;
 padding: 2px;   /* padding to buttons */
 margin: 0 ;   /* indent from outside div */
}

#menu li {
 float: left;     /* left for horizonal menu, otherwise its vertical. */
}

#menu a {
 text-align: center;  /* position text within li button */
 text-decoration: none; /* remove typical underline */
 font-size: 9pt;    /* menu text size */
 display: block;    /* treats layout of buttons like they're table cells rather than list items */
 color: white;  /* link text colour */
 padding: 2px;   /* padding of text within button */
 margin: 1px;   /* padding of button within list item */
}

#menu a:hover {  /* override as neccesary for mouse over effects */
 color: white;
}


#menu ul ul {  /* this one is the dropdown */
 position: absolute; /* so we can hide it */
 left: -999em;  /* by default it is hidden */
 width: 120px;  /* width of the entire dropdown */
 margin: -10px 0 0 0;  /* relative position of the menu to the button... 0=tight on bottom.. */
}

#menu ul ul ul {
 position: absolute;
 top: auto;  /* auto means that it will be in the typicall indented list position below the first menu */
 left: 0;   /* 0 */
 margin: -20px 160px;       /* adjust the margins to position the 2nd level popout menu to the right*/
 width: 120px;   /* width is based on the containing block */
 background-color: #300208; /* color of the entire dropdown */
}

#menu ul ul a {  /* override colours for drop down buttons */
 text-align:left;
 font-size: 12px;
 border-top: 1px  solid black;
 border-left: 1px  solid black;
 border-right: 1px  solid black;
  border-bottom: 1px  solid black;
 padding:7px;
 margin: 0 0 0 35px;
background-color: #300208;
line-height: 12px;
color: #ffaeae;
width:100px;

}

#menu li ul a:hover {  /* override colours for drop down buttons */
 color: #ffffff;
 background-color: #55030f;
}

#menu ul li:hover, #menu ul li.sfhover {
 color: blue;
}


#menu li:hover ul ul,
#menu li:hover ul ul ul,
#menu li.sfhover ul ul,
#menu li.sfhover ul ul ul
{
 left: -999em;
}

#menu li:hover ul,
#menu li li:hover ul,
#menu li li li:hover ul,
#menu li.sfhover ul,
#menu li li.sfhover ul,
#menu li li li.sfhover ul {
 left:auto;
}
