
/******************************************/
/* X-Cart Horizontal Flyout Menu          */
/* www.xcartmods.co.uk                    */
/******************************************/

/* style the outer div to give it width */
.h4menu {font-size:1em;padding-bottom:0px;margin: 0 0 0 0px;}

/* remove all the bullets, borders and padding from the default list styling */
.h4menu ul {padding:0;margin:0;list-style-type:none;height:3em;} /* top bar */

/* style the sub-level lists */
.h4menu ul ul {width:12em;}

/* float the top list items to make it horizontal and a relative position so that you can control the dropdown menu positon */
.h4menu ul li {
  float:left;
  position:relative;
  height:3em;
  padding-left: 0;
  margin: 0;
  line-height: 3em;
  background: url(tabright.gif) no-repeat top right;
  padding-bottom: 0;
}

/* style the sub level list items */
.h4menu ul ul li {display:block;width:12em;height:auto;position:relative;line-height:1em;text-decoration:none;border-bottom:none;}

/* style the links for the top level */
.h4menu li a, .h4menu li a:visited {
  display:block;float:left;height:100%;font-size:1em;color:black;padding:0em 1.5em 0 1.5em;text-decoration:none;
  background: url(tableft.gif) no-repeat top left; 
} /* main cat */

/* style the sub level links */
.h4menu ul ul a, .h4menu ul ul a:visited {display:block;color:#000000;background:rgb(234,227,221);width:12em;height:100%;line-height:1em; padding:0.25em 1em; border-bottom: 1px solid black;text-decoration:none;} /* sub cat */
.h4menu ul table ul a, .h4menu ul table ul a:visited  {width:14em; w\idth:12em;}

/* add arrow to items with subitems */
.h4menu ul ul a.drop, .menu #current ul a.drop {
   background-image: url(arrow.gif);
   background-position: right center;
   background-repeat: no-repeat;
}
/* add arrow to hovered items with subitems */
.h4menu ul ul a.drop:hover, .menu #current ul a.drop:hover {
   background-image: url(arrowhover.gif);
   background-position: right center;
   background-repeat: no-repeat;
}

/* style the table so that it takes no part in the layout - required for IE to work */
.h4menu table {position:absolute; left:0; top:0; font-size:1em;}
.h4menu ul ul table {lef\t:-1px;}
.h4menu ul ul table ul.left {margin-lef\t:2px;}

/* style the third level background */
.h4menu ul ul ul a, .h4menu ul ul ul a:visited {background:rgb(234,227,221);}
/* style the fourth level background */
.h4menu ul ul ul ul a, .h4menu ul ul ul ul a:visited {background:rgb(234,227,221);}

/* style the level hovers */
/* first */
.h4menu a:hover {
  color: white;
 /*  background: transparent;
   background-image: url(tabright.gif); 
   background-position: right top;
   background-repeat: no-repeat; */
}
.h4menu :hover > a {
  color: white;
  /* background: transparent;
   background-image: url(tabright.gif);
   background-position: right top;
   background-repeat: no-repeat; */
}

/* second */
.h4menu ul ul a:hover{color:white;background:#9696AA;text-decoration:none;}
.h4menu ul ul :hover > a {color:white;background:#9696AA;text-decoration:none;}
/* third */
.h4menu ul ul ul a:hover {background:#9696AA;}
.h4menu ul ul ul :hover > a {background:#9696AA;}
/* fourth */
.h4menu ul ul ul ul a:hover {background:#9696AA;}

/* hide the sub levels and give them a positon absolute so that they take up no room */
.h4menu ul ul {visibility:hidden;position:absolute;height:0;top:3em;left:0;width:14em;}

/* position the third level flyout menu */
.h4menu ul ul ul{left:14em;top:0;width:14em;}

/* position the third level flyout menu for a left flyout */
.h4menu ul ul ul.left {left:-14em;}

/* make the second level visible when hover on first level list OR link */
.h4menu ul :hover ul{visibility:visible; height:auto; padding-bottom:3em; background: transparent url(trans.gif);}
/* keep the third level hidden when you hover on first level list OR link */
.h4menu ul :hover ul ul{visibility:hidden;}
/* keep the fourth level hidden when you hover on second level list OR link */
.h4menu ul :hover ul :hover ul ul{visibility:hidden;}
/* make the third level visible when you hover over second level list OR link */
.h4menu ul :hover ul :hover ul{visibility:visible;}
/* make the fourth level visible when you hover over third level list OR link */
.h4menu ul :hover ul :hover ul :hover ul {visibility:visible;}

