/* ================================================================ 
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.
=================================================================== */

/*
default styling*/


/* Add a margin - for this demo only - and a relative position with a high z-index to make it appear over any element below */
#menuContainer {position:absolute; padding:0; width:100%; margin:0; vertical-align:top; z-index:500;}

/* Get rid of the margin, padding and bullets in the unordered lists */
#menu{padding:0; margin-left:auto; margin-right:auto; width:775px; list-style-type:none; background-color:#523952; height:32px;}
#menu ul {padding:0; margin:0; list-style-type:none; text-align:left; background-color:#523952;}

/* Set up the link size, color and borders */
#menu a{text-decoration:none;}
#menu a, #menu a:visited {display:block; width:auto; border:none; background:none; color:#ffffe5;}

/* Set up the sub level borders and LAST elements*/
#menu li ul li a, #menu li ul li a:visited {border:none; width:200px; padding:8px; font-family:Arial, Helvetica, sans-serif; font-weight:bold; font-size:10px; text-transform:uppercase;}
#menu li ul li a:hover{background-color:#523952; color:#CCDF73;}





/* Set up the list items */
#menu li {float:left;}
#menu li ul li{float:left; background-color:#523952;}

/* For Non-IE browsers and IE7 */
#menu li:hover {position:relative;}
/* Make the hovered list color persist */
#menu li:hover > a {background:#523952; color:#CCDF73;}
/* Set up the sublevel lists with a position absolute for flyouts and overrun padding. The transparent gif is for IE to work */
#menu li ul {display:none;}
/* For Non-IE and IE7 make the sublevels visible on list hover. This is all it needs */
#menu li:hover > ul.dropDown {display:block; position:absolute; top:28px; left:0px; padding:0; width:200px;}
#menu li:hover > ul {display:block; position:absolute; top:28px; left:221px; padding:0; width:200px;}
/*keep the flyouts 50% down from top their parent*/
#menu li:hover > ul.thirdTier {top:10px;}

/* Position the first sub level beneath the top level liinks */
#menu > li:hover > ul {left:0px; top:28px;}

/* get rid of the table */
#menu table {position:absolute; border-collapse:collapse; top:0; left:0; z-index:200; 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 #menu li a:hover {position:relative; background-color:#523952; color:#CCDF73;}

/* For accessibility of the top level menu when tabbing */
#menu li a:active, #menu li a:focus, #menu li a:visited{ background:none;}
#menu li a.mainnav:hover,#menu li a.mainnav:visited,#menu li a.mainnav:active{background:none;}




/* 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 #menu li ul {visibility:hidden; display:block; position:absolute; top:28px; left:0px; padding:0;}

/* keep the third level+ hidden when you hover on first level link */
#menu li a:hover ul ul{
visibility:hidden;
}
/* keep the fourth level+ hidden when you hover on second level link */
#menu li a:hover ul a:hover ul ul{
visibility:hidden;
}
/* keep the fifth level hidden when you hover on third level link */
#menu 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 */
#menu 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 */
#menu li a:hover ul {
visibility:visible; left:0px; top:28px; lef\t:0px; to\p:28px;}

/* make the third level visible when you hover over second level link and position it and all further levels */
#menu li a:hover ul a:hover ul.thirdTier{visibility:visible; top:10px; to\p:10px; left:0; lef\t:0;}

/* make the fourth level visible when you hover over third level link */
#menu li a:hover ul a:hover ul a:hover ul { 
visibility:visible;
}
/* make the fifth level visible when you hover over fourth level link */
#menu 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 */
#menu 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 */