#menu {
 margin-top: 0px;
 width: 140px;  
}

#menu ul {
 list-style: none;
 padding: 1px;   /* padding to buttons */
 margin: 0px ;   /* indent from outside div */
 width:140px;
}

#menu li {
 left: 0px;
 margin: 0px ;
 padding: 0px;
 display: block;
 position:relative;
 width: 140px;   
}

#menu a, #menu a:visited  {
	text-align: left;  /* position text within li button */
	text-decoration: none; /* remove typical underline */
	font-size: 10pt;    /* menu text size */
	display: block;    /* treats layout of buttons like they're table cells rather than list items */
	width: 140px;   /* button outside dimensions */
	color: #999999;  /* link text colour */
	/*background-color: #eceded;*/
	padding:2px;   /* padding of text within button */
	margin: 1px;   /* padding of button within list item */
}

#menu a:hover, #menu a:visited:hover {  /* override as neccesary for mouse over effects */
	color: #333333;
	/*background-color: #eceded;*/
}


/* hide the sub levels and give them a positon absolute so that they take up no room */
#menu ul ul {
 display: none;   /* removes the anoying space between buttons where popupmenus exist.*/
 visibility:hidden;  /* dropdowns hidden by default, until hovered over */
 position:absolute;
 top:0px;
 left:141px; 
 width: 130px;  /* width of the entire dropdown */
 margin: 0px;  /* relative position of the menu to the button... 0=tight on bottom.. */
 padding: 0px;
}

#menu ul ul ul {
 position: absolute;
 display: none;   /* removes the anoying space between buttons where popupmenus exist.*/
 top: auto;  /* auto means that it will be in the typically indented list position below the first menu */
 left: 0px;   /* 0 */
 margin: -20px 70px;      /* adjust the margins to position the 2nd level popout menu to the right*/
 width: 130px;   /* width is based on the containing block */
}

#menu ul ul a, #menu ul ul a:visited  {  /* override colours for drop down buttons */
	background-color: #eceded;
	color:#999999;
	width: 250px;
	height: 20px;
	text-align:left;
	font-size: 9pt;
	border-top: 1px  solid white;
	border-left: 1px  solid white;
	border-right: 1px  solid white;
	border-bottom: 1px  solid #ffffff;
	padding:0px;
	margin: 0px;
}


#menu ul ul a:hover {  /* override colours for drop down buttons */
	color: #333333;
	background-color: #eceded;
}

#menu ul li:hover, #menu ul li.sfhover {
 color: #333333;
}


#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.sfhover ul 
{ 
  visibility:visible;
  display: block;  /* anoyingly restores the anoying space between buttons where popupmenus exist.*/
}

#menu li li:hover ul, 
#menu li li li:hover ul, 
#menu li li.sfhover ul, 
#menu li li li.sfhover ul {
  visibility:visible;
  left: auto;
  display: block;  /* anoyingly restores the anoying space between buttons where popupmenus exist.*/
}