﻿/* CSS Dropdown Nav Bar*/
/* Original code by Stu Nicholls of*/
/* http://www.cssplay.co.uk/ */
/* Edited by me for content, formatting and some elements */
/* Please help support CSSPlay at: */
/* http://www.cssplay.co.uk/support.html */


/* CSS Section */

/* style the outer div to give it width */
.menu {
margin-left:2px;
padding:10px 0px 15px 0px;
position:relative; /*Make the container moveable*/
width:750px;     /*Main bar total width*/
font-size:0.85em;
padding-bottom:30px; /*Padding between the bottom of your mainbar and the rest of your page */
}
/* remove all the bullets, borders and padding from the default list styling */
.menu ul {
padding:0;
margin:0;
list-style-type:none;
}
.menu ul ul {
width:125px; /* Cell size. Divide the main width (750px) by the number of cells you need */
}
/* float the list to make it horizontal and a relative positon so that you can control the dropdown menu positon */
.menu li {
float:left;
width:125px; /* Cell size. Divide the main width (750px) by the number of cells you need */
position:relative;
}
/* style the links for the top level */
.menu a, .menu a:visited {
	border-style: solid;
	border-width: 1px 1px 1px 0px;
	display: block;
	font-size: 13px;
	font-family:Arial, Helvetica, sans-serif;
	font-weight:bold;
	text-decoration: none;
	color: #fff;
	background: navy;
	border-color: #0000CC;
	width: 125px; /* Defines the main box dimensions. */;
	height: 30px; /*How tall your cells are*/;
	text-align:center;
	line-height: 29px; /*Adjust this to vertically center your text in each cell. Should be about the same as height. */
}
/* a hack so that IE5.5 faulty box model is corrected */
* html .menu a, * html .menu a:visited {
width:125px; 
w\idth:139px;
}

/* style the top level hover */
.menu a:hover, .menu ul ul a:hover{
	font-weight:bold;
	text-decoration: none;
	color: #fff;
	background: #666;
	border-bottom-width: 1px;
}
.menu :hover > a, .menu ul ul :hover > a {
	font-weight:bold;
	text-decoration: none;
	color: #fff;
	background: #666;
}


/* style the second level background */
.menu ul ul a.drop, .menu ul ul a.drop:visited {
background:red;
}
/* style the second level hover */
.menu ul ul a.drop:hover{
background:#FFFF99;
}
.menu ul ul :hover > a.drop {
background:#FFFF99;
}
/* style the second level links */
.menu ul ul a, .menu ul ul a:visited {
background: #FFFFCC; 
color: black; 
height:auto; 
line-height:1em; 
padding:5px 10px; 
width:129px;
border-top-style:none;
border-left-width:1px;
}

/* position the third level flyout menu */
.menu ul ul ul{
left:125px; 
top:0;
width:125px;
}
/* position the third level flyout menu for a left flyout */
.menu ul ul ul.left {
left:-125px;
}

/* style the third level background */
.menu ul ul ul a, .menu ul ul ul a:visited {
background:#e2dfa8;
}
/* style the third level hover */
.menu ul ul ul a:hover {
background:#FFFF99;
}
.menu ul ul ul :hover > a {
background:#FFFF99;
}


/* another hack for IE5.5 */
* html .menu ul ul {
top:30px;
top:31px; /* IE gap between main bar and the dropdown items */
}

/* style the table so that it takes no ppart in the layout - required for IE to work */
.menu table {position:absolute; top:0; left:0;}

/* yet another hack for IE5.5 */
* html .menu ul ul a{
width:100px;
w\idth:129px;
}


/* hide the sub levels and give them a positon absolute so that they take up no room */
.menu ul ul {
visibility:hidden;
position:absolute;
height:0;
top:31px;
left:0; 
width:125px;  /* Size of the daughter cells */
}

/* make the second level visible when hover on first level list OR link */
.menu ul :hover ul{
visibility:visible; 
}
/* keep the third level hidden when you hover on first level list OR link */
.menu ul :hover ul ul{
visibility:hidden;
}
/* keep the fourth level hidden when you hover on second level list OR link */
.menu ul :hover ul :hover ul ul{
visibility:hidden;
}
/* make the third level visible when you hover over second level list OR link */
.menu ul :hover ul :hover ul{ 
visibility:visible;
}
/* make the fourth level visible when you hover over third level list OR link */
.menu ul :hover ul :hover ul :hover ul { 
visibility:visible;
}

/* End Navbar Code */
