/* Add a margin - for this demo only - and a relative position with a high z-index to make it appear over any element below */
#hmenu {
  clear: both;
  margin:0 0 3px 0px;
  float:left;
  position:relative;
  width:750px;
  height:30px;
  z-index:100;
}

#hmenu_lower {
  clear: both;
  margin:15px 0 3px 8px;
  float:left;
  position:relative;
  width:750px;
  height:30px;
  z-index:100;
}

/* Get rid of the margin, padding and bullets in the unordered lists */
#menulist,
#menulist ul {
  padding:0;
  margin:0;
  list-style-type:none;
}

/* Set up the link size, color and borders */
#menulist li a,
#menulist li a:visited {
  display:block;
  width:104px;
  font-size:11px;
  color:#222222;
  height:25px;
  line-height:24px;
  text-decoration:none;
  text-indent:5px;
  border:1px solid #ffffff;
  border-width:1px 0 0 1px;
  border-bottom: 4px solid #BCBCBC;
}

#menulist li ul li a,
#menulist li ul li a:visited,
#menulist li.here ul li a,
#menulist li.here ul li a:visited {
  display:block;
  width:190px;
  font-size:10px;
  color:#222222;
  height:25px;
  line-height:28px;
  text-decoration:none;
  text-indent:5px;
  border-bottom:1px solid #ffffff;
}

/* Set up the sub level borders */
#menulist li ul li a,
#menulist li ul li a:visited {
  border-width:0 1px 1px 1px;
}

#menulist li.here,
#menulist li.here a {
  background: #b12F27;
  color: #ffffff;
*  color: #ffffff ! important;
}

#menulist li a:hover,
#menulist li ul li a:hover,
#menulist li ul li a.enclose:hover,
#menulist li.drop ul li a:hover,
#menulist li.drop ul li a.enclose:hover,
#menulist li.here ul li a:hover,
#menulist li.here ul li a.enclose:hover {
  background: #b12F27;
  color: #ffffff;
*  color: #ffffff ! important;
}

#menulist li.here ul li a:hover,
#menulist li.here li a:hover,
#menulist li.here li.fly a:hover,
#menulist li.here li.fly li a:hover,
#menulist li.here li.fly li.fly a:hover {
  background: #b12F27;
  color: #ffffff;
*  color: #ffffff ! important;
}

#menulist li ul li ul li a.enclose {
  border-top:1px solid #ffffff;
}

/* Set up the list items */
#menulist li {
  float:left;
  background:#cccccc;
}

/* For Non-IE browsers and IE7 */
#menulist li:hover {
  position:relative;
}

/* Make the hovered list color persist */
#menulist li:hover > a {
  background:#b12F27;
  color:#ffffff;
}

#menulist li ul li:hover > a {
/*  background:#b12F27;*/
  color:#ffffff;
}

*html>#menulist li.here:hover > a {
/*  background:#b12F27;*/
  color:#ffffff;
}

*html>#menulist li ul li:hover > a {
/*  background:#b12F27;*/
  color:#ffffff;
}

/* Set up the sublevel lists with a position absolute for flyouts and overrun padding. The transparent gif is for IE to work */
#menulist li ul {
  display:none;
}

/* For Non-IE and IE7 make the sublevels visible on list hover. This is all it needs */
#menulist li:hover > ul {
  display:block;
  position:absolute;
  top:-11px;
  left:140px;
  padding:10px 60px 0px 0px;
  background:transparent;
  width:140px;
}

/* Position the first sub level beneath the top level liinks */
#menulist > li:hover > ul {
  left:-86px;
  top:16px;
}

#menulist > li:hover > ul ul {
  top:1px;
}

/* get rid of the table */
#menulist table {
  position:absolute;
  border-collapse:collapse;
  top:0px;
  left:-56px;
  z-index:100;
  font-size:1.2em;
}

#menulist table table {
  position:absolute;
  border-collapse:collapse;
  top:10px;
  left:60px;
  z-index:100;
  font-size:1.2em;
}

#menulist table table td {
  border-top:1px solid #ffffff;
}

/* For IE5.5 and IE6 give the hovered links a position relative and a change of background and foreground color. This is needed to trigger IE to show the sub levels */
* html #menulist li a:hover,
* html #menulist li.fly li a:hover,
* html #menulist li.fly li.fly li a:hover {
  position:relative;
/*  background:#d12f27;*/
  color:#ffffff ! important;
}

html #menulist li a:hover,
html #menulist li.fly li a:hover,
html #menulist li.fly li.fly li a:hover {
  position:relative;
/*  background:#d12f27;*/
  color:#ffffff ! important;
}

/* For accessibility of the top level menu when tabbing */
#menulist li a:active,
#menulist li a:focus {
  background:#cccccc;
/*  color:#b12F27;*/
}

/* Set up the pointers for the sub level indication */
#menulist li.drop {
  background:#cccccc url(../images/drop.gif) no-repeat right center;
}

#menulist li.here ul li a,
#menulist li.here li a,
#menulist li.here li.fly li a,
#menulist li.here li.fly li.fly li a {
  background: #cccccc;
  color: #222222;
*  color: #222222 ! important;
}

#menulist li.fly,
#menulist li.here li.fly a,
#menulist li.here li.fly li.fly a,
#menulist li.here li.fly li li a {
  background:#cccccc url(../images/fly.gif) no-repeat right center;
}

/* This lot is for IE5.5 and IE6 ONLY and is necessary to make the sublevels appear */

/* change the drop down levels from display:none; to visibility:hidden; */
* html #menulist li ul {
  visibility:hidden;
  display:block;
  position:absolute;
  top:-15px;
  left:80px;
  padding:10px 60px 0px 0px;
  background:transparent;
}

/* keep the third level+ hidden when you hover on first level link */
#menulist li a:hover ul ul{
  visibility:hidden;
}
/* keep the fourth level+ hidden when you hover on second level link */
#menulist li a:hover ul a:hover ul ul{
  visibility:hidden;
}
/* keep the fifth level hidden when you hover on third level link */
#menulist li a:hover ul a:hover ul a:hover ul ul{
  visibility:hidden;
}
/* keep the sixth level hidden when you hover on fourth level link */
#menulist li a:hover ul a:hover ul a:hover ul a:hover ul ul {
  visibility:hidden;
}

/* make the second level visible when hover on first level link and position it */
#menulist li a:hover ul {
  visibility:visible;
  left:-30px;
  top:14px;
  lef\t:-31px;
  to\p:15px;
}

/* make the third level visible when you hover over second level link and position it and all further levels */
#menulist li a:hover ul a:hover ul{ 
  visibility:visible;
  top:-11px;
  left:80px;
}
/* make the fourth level visible when you hover over third level link */
#menulist li a:hover ul a:hover ul a:hover ul { 
  visibility:visible;
}
/* make the fifth level visible when you hover over fourth level link */
#menulist li a:hover ul a:hover ul a:hover ul a:hover ul { 
  visibility:visible;
}
/* make the sixth level visible when you hover over fifth level link */
#menulist li a:hover ul a:hover ul a:hover ul a:hover ul a:hover ul { 
  visibility:visible;
}
/* If you can see the pattern in the above IE5.5 and IE6 style then you can add as many sub levels as you like */