#qm, #qm ul { /* all lists */
  padding: 0;
  margin: 0;
  list-style: none;
  line-height: 1;
}

#qm a {
  text-decoration: none;
  display: block;
}

/* level 1 & default */
ul#qm { background: #000;}
ul#qm li span a { padding: 0.25em 0.75em;}

/* and the rest */
ul.level2 { background-image: url(/images/opaque.png);
	        background-repeat: repeat; }
	
ul#qm ul.level2 li ul.level3 li a
      { background-image: url(/images/opaque.png);
		background-repeat: repeat;
		background-color: transparent; }
				
ul.level1 a { color: #fff;}
ul.level1 li:hover a { color: #000;}
ul#qm ul a  { color: #000;}


#qm ul.level2 li:hover a, ul#qm ul.level2 li ul.level3 li:hover a {
  background: #ccc;
  color: #000;
}

#qm li:hover {
  background: #fff;
  color: #000;
}

/* level 1 list items */

#qmcontainer a { text-decoration: none; }

#qmcontainer ul.level1 li 
{ float: left;
  width: 8em;
  padding: 0;
}

/* all other list items */
#qm ul.level2 li { 
  float: left;
  width: 10.5em; /* width needed or else Opera goes nuts */
}

/* second-level lists */
#qm li ul { 
  position: absolute;
  width: 10.5em;
  left: -999em; /* using left instead of display to hide menus because display: none isn't read by screen readers */
}

/* third-and-above-level lists */
#qm li ul ul { 
  margin: -1.5em 0 0 10.5em;
}

#qm li:hover ul ul, #qm li:hover ul ul ul, #qm li.sfhover ul ul, #qm li.sfhover ul ul ul {
  left: -999em;
}

/* lists nested under hovered list items */
#qm li:hover ul, #qm li li:hover ul, #qm li li li:hover ul, #qm li.sfhover ul, #qm li li.sfhover ul, #qm li li li.sfhover ul 
{ 
  left: auto;
}
