/* ================================================================ 
This copyright notice must be untouched at all times.

The original version of this stylesheet and the associated (x)html
is available at http://www.cssplay.co.uk/menus/simple_vertical.html
Copyright (c) 2005-2007 Stu Nicholls. All rights reserved.
This stylesheet and the associated (x)html may be modified in any 
way to fit your requirements.
=================================================================== */

/* Add a margin - for this demo only - and a relative position with a high z-index to make it appear over any element below */


#navmenu_container {
 margin: 0;
 position: relative; 
 width: 100%;
 z-index: 100;
 font-size: 0.75em; 
}

/* Get rid of the margin, padding and bullets in the unordered lists */
#navmenu, 
#navmenu ul {
 padding: 0; 
 margin: 0 0 0 -0.0625em; 
 list-style-type: none;
}

/* Set up the link size, color and borders */
#navmenu a, 
#navmenu a:visited {
 display :block;
 width: 7.81em; 
 .width: 7.75em;/* Hack for IE7 */
 color: #fcb81b; 
 height: 1.75em;
 line-height: 1.6875em;
 text-decoration: none; 
 border: 0.0625em solid #cacaca;
 border-width: 0 0 0.0625em 0.0625em; 
 text-align: center; 
 padding: 0 0.4em; 
}

/* Hack for IE 5.5 and IE 6 */
/** html #navmenu a:visited {
 width: 8.7em;
 widt\h: 7.75em;
}*/

/* Set up the sub level borders */
#navmenu li ul li a, 
#navmenu li ul li a:visited {
 border-width: 0.0625em 0.0625em 0.0625em 0.0625em; 
 text-align: left; 
 width: 13em; /*12em*//*10em*/
 border-color: #cacaca;
 color: #fff;
 margin-top: -0.0625em;/* Overlaps border to decrease thickness */
}

#navmenu li a.enclose, 
#navmenu li a.enclose:visited {
 border-width: 0.0625em;
}

/* Set up the list items */
#navmenu li {
 float: left; 
 background: #494949;
}

/* For Non-IE browsers and IE7 */
#navmenu li:hover {
 position: relative;
}

/* Make the hovered list color persist */
#navmenu li:hover > a {
 background: #c98d02;
 color: #fff;
}

/* Set up the sublevel lists with a position absolute for flyouts and overrun padding. The transparent gif is for IE to work */
#navmenu li ul {
 display: none;
}

/* For Non-IE and IE7 make the sublevels visible on list hover. This is all it needs */
#navmenu li:hover > ul {
 display: block; 
 position: absolute; 
 top: 0.3em;/*0.3em;*/
 left: 10em;/*8em;*//*7em;*/
 padding: 0.625em 2em 2em 2em;
 background: transparent  url(image_themes/transparent.gif);
}

/* Makes the drop down nav menus fly out to the left of the container. 
Still working the bugs for IE 5.5 & 6. 
Insert a class="left" in the Ul & Li tags.*/

#navmenu li:hover > ul.left {
left:-7.15em;/*-4.15em*/
text-align:right;
}

#navmenu li:hover > ul ul.left {
left:-10.5em;
text-align:right;
}

#navmenu li ul li.left a{
left:-4.15em;
text-align:right;
}

/*End left fly out*/



/* Position the first sub level beneath the top level links */
#navmenu > li:hover > ul {
 left: -1.95em;
 top: 1.1625em;
 /*.top: 1.225em;*/ /*IE7 Hack*/
}


/* get rid of the table */
#navmenu table {
 position: absolute; 
 border-collapse: collapse; 
 top: 0; 
 left: 0; 
 z-index: 100; 
 font-size: 1em;
}

/* 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 #navmenu li a:hover {
 position: relative; 
 background: #c98d02; 
 color: #fff; 
}

/* For accessibility of the top level menu when tabbing */
#navmenu li a:active, 
#navmenu li a:focus {
 background: #c98d02; 
 color: #fff;
}

/* Set up the pointers for the sub level indication */
/*#navmenu li*/
 .flyR {
 background: #494949 url(image_themes/flyR.gif) no-repeat right center;
}

/* Set up the pointers for the sub level indication */
/*#navmenu li*/
 .flyL {
 background: #494949 url(image_themes/flyL.gif) no-repeat left center;
}


#navmenu li.drop {
 background: #494949 url(image_themes/drop.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 #navmenu li ul {
 visibility: hidden; 
 display: block; 
 position: absolute; 
 top:1.2625em;
 left: -2em;
 padding: 0.625em 2em 2em 2em;
 background: transparent url(image_themes/transparent.gif);
}

/* keep the third level+ hidden when you hover on first level link */
#navmenu li a:hover ul ul{
 visibility: hidden;
}

/* keep the fourth level+ hidden when you hover on second level link */
#navmenu li a:hover ul a:hover ul ul{
 visibility: hidden;
}

/* keep the fifth level hidden when you hover on third level link */
#navmenu 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 */
#navmenu 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 */
#navmenu li a:hover ul {
 visibility: visible; 
 top: 1.15em;
 to\p: 1.25em;
}

/* make the third level visible when you hover over second level link and position it and all further levels */
#navmenu li a:hover ul a:hover ul{ 
 visibility: visible; 
 top: .3em; 
 left: 8em;
}

/* make the fourth level visible when you hover over third level link */
#navmenu li a:hover ul a:hover ul a:hover ul { 
 visibility: visible;
}

/* make the fifth level visible when you hover over fourth level link */
#navmenu 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 */
#navmenu 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 */
