/* ================================================================ 
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/final_drop3.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.
=================================================================== */
/* style the outer div to give it width */
.hmenu {
	border: 1px solid #c7ae5a;
	font-weight: bold;
}

/* remove all the bullets, borders and padding from the default list styling */
.hmenu ul {
	padding: 0;
	margin: 0;
	list-style-type: none;
}

/* style the sub-level lists */
.hmenu ul ul {
	/*width:15em;*/
}

/* float the top list items to make it horizontal and a relative positon so that you can control the dropdown menu positon */
.hmenu ul li {
	float: left;
	height: 18px;
}

.hmenu ul li.active a {
	color: #333333;
	background-color: #F5E8BA;
}

/* style the sub level list items */
.hmenu ul ul li {
	display: block;
	position: relative;
	border-bottom: 1px solid #fff;
}

/* style the links for the top level */
.hmenu a, .hmenu a:visited {
	display:block;
	float:left;
	text-decoration:none;
	color: #FFFFFF;
	background-color: #e3bb38;
	padding: 2px 13px 2px 13px;
}

/* style the sub level links */
.hmenu ul ul a, .hmenu ul ul a:visited {
	display:block;
	background-color: #e3bb38;
	color:#FFFFFF;
	width: 12em;
	border: 1px solid #fff;
	border-width: 0 1px 1px 1px;
}


.hmenu ul table ul a, .hmenu ul table ul a:visited {
	/*width:14em; w\idth:12em;*/
}


/* style the table so that it takes no part in the layout - required for IE to work */
.hmenu table {position:absolute; left:0; top:0; font-size:1em; z-index:-1;}
.hmenu ul ul table {lef\t:-1px;}
.hmenu ul ul table ul.left {margin-lef\t:2px;}

.hmenu li:hover {position:relative;}
* html .hmenu a:hover {position:relative;}

/* style the third level background */
.hmenu ul ul ul a, .hmenu ul ul ul a:visited {
	background-color: #e3bb38;
	border: 1px solid #fff;
}

/* style the fourth level background */
.hmenu ul ul ul ul a, .hmenu ul ul ul ul a:visited {
	background-color: #e3bb38;
}


/* style the level hovers */
/* first */
.hmenu a:hover {color:#000;background-color: #F5E8BA;}
.hmenu :hover > a {color:#000;background-color: #F5E8BA;}

/* second */
.hmenu ul ul a:hover{color:#000;background-color: #F5E8BA;}
.hmenu ul ul :hover > a {color:#000;background-color: #F5E8BA;}

/* third */
.hmenu ul ul ul a:hover {background-color: #F5E8BA;}
.hmenu ul ul ul :hover > a {background-color: #F5E8BA;}

/* fourth */
.hmenu ul ul ul ul a:hover {background-color: #F5E8BA;}


/* hide the sub levels and give them a positon absolute so that they take up no room */
.hmenu ul ul {
	visibility: hidden;
	position: absolute;
	top: 18px;
	left: -32px;
	padding: 2px 30px 30px 30px;
}

/* position the third level flyout menu */
.hmenu ul ul ul{
	left: 128px;
	top: -3px;
	width: 14em;
}

/* position the third level flyout menu for a left flyout */
.hmenu ul ul ul.left {
	left: -14em;
}


/* make the second level visible when hover on first level list OR link */
.hmenu ul li:hover ul, .hmenu ul a:hover ul {
	visibility: visible;
}

/* keep the third level hidden when you hover on first level list OR link */
.hmenu ul :hover ul ul{visibility:hidden;}
/* keep the fourth level hidden when you hover on second level list OR link */
.hmenu ul :hover ul :hover ul ul{visibility:hidden;}
/* make the third level visible when you hover over second level list OR link */
.hmenu ul :hover ul :hover ul{visibility:visible;}
/* make the fourth level visible when you hover over third level list OR link */
.hmenu ul :hover ul :hover ul :hover ul {visibility:visible;}