
/*
 *
 *=============================================================================
 *	Menu bar, usually under the page heading
 *=============================================================================
 *
 * #mbar is floated to make it contain the floats below.
 *
 */

/* style the outer div to give it width */
#mbar {
	background-color: #333366;
	color: white;
	width: 100%;
	border: 1px solid black;
	margin: 0;
	clear: both;
	height: 26px;
}

#mbleft {
	float: left;
}

#mbright {
	float: right;
	height: auto;
}

/* Defaults for all elements in this class */
.menubar * {font-size:small; background:#333366; color:white; position:relative; z-index:100;}

/* remove all the bullets, borders and padding from the default list styling */
.menubar ul {padding:0; margin:0; list-style-type:none; height:1.5em;  float:left;
		display: table;
}

/* style the sub-level lists */
.menubar ul ul {width:9em; float:left;}

/* float the top list items to make it horizontal and a relative positon so that you can control the dropdown menu positon */
.menubar ul li {
	float:left;height:1.5em;line-height:1.5em; padding: 0;
	display: table-cell;
	vertical-align: middle;
}

/* style the sub level list items */
.menubar ul ul li {display:block;width:9em;height:auto;position:relative;line-height:1em;text-align:left;
}

/* style the links for the top level */
.menubar a, .menubar a:visited {
	display:block; float:left; text-decoration:none; height:auto;  padding:2px 3px 0 3px;
}

/* style the sub level links */
.menubar ul ul a, .menubar ul ul a:visited {
	display:block; width:9em; height:100%; line-height:1em; padding:0.5em 0;
}

.menubar ul table ul a, .menubar ul table ul a:visited  { width:11em; w\idth:9em; }


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

/*	style the third level background -- unnecessary, remove later 
.menubar ul ul ul a, .menubar ul ul ul a:visited {background:#333366;}
	style the fourth level background
.menubar ul ul ul ul a, .menubar ul ul ul ul a:visited {background:#333366;}
*/
/*	style the sub level 1 background */
.menubar ul :hover a.sub1 {background:#F3BC4D;color:#333366;}
/* style the sub level 2 background */
.menubar ul ul :hover a.sub2 {background:#F3BC4D;color:#333366;}

/* style the level hovers */
/* first */
.menubar a:hover {color:#333366;background:#F3BC4D;}
.menubar :hover > a {color:#333366;background:#F3BC4D;}
/* second */
.menubar ul ul a:hover{color:#333366;background:#F3BC4D;}
.menubar ul ul :hover > a {color:#333366;background:#F3BC4D;}
/* third */
.menubar ul ul ul a:hover {background:#F3BC4D;color:#333366;}
.menubar ul ul ul :hover > a {background:#F3BC4D;color:#333366;}
/* fourth */
.menubar ul ul ul ul a:hover {background:#F3BC4D;color:#333366;}


/* hide the sub levels and give them an absolute position so that they take up no room */
.menubar ul ul {visibility:hidden;position:absolute;height:0;top:2em;left:0;width:9em;}

/* position the third level flyout menu */
.menubar ul ul ul{left:10em;top:0;width:9em;}

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


/* make the second level visible when hover on first level list OR link */
.menubar ul li:hover ul, .menubar ul a:hover ul {visibility:visible; height:auto; padding-bottom:3em;
	background:transparent url('/images/trans.gif');}
/* keep the third level hidden when you hover on first level list OR link */
.menubar ul :hover ul ul{visibility:hidden;}
/* keep the fourth level hidden when you hover on second level list OR link */
.menubar ul :hover ul :hover ul ul{visibility:hidden;}
/* make the third level visible when you hover over second level list OR link */
.menubar ul :hover ul :hover ul{visibility:visible;}
/* make the fourth level visible when you hover over third level list OR link */
.menubar ul :hover ul :hover ul :hover ul {visibility:visible;}

/*
 *=============================================================================
 *	General class, for buttons, etc
 *=============================================================================
 *
 */
 
 
*.menu, .menu * {
	background-color: #333366;
	color: white;
}
 
input.menu { border: 3px groove black;}

.menu a, .menu a:visited {
	display:block;
	float:left;
	height:100%;
	font-size:small;
	text-decoration: none;
	padding:0 1em 0 1em;
}

.menu a:hover {color:#333366;background:#F3BC4D;}
.menu :hover > a {color:#333366;background:#F3BC4D;}


