/* * * * Functionality Menu Code  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

#nav * {

	margin: 0;

	padding: 0;

	list-style-type: none;

	z-index:100;

}	



#nav  {
	background: url(/design/nav.gif) no-repeat;
	border-bottom: 5px solid #0181c2;
	float: left; /* makes the div enclose the ul */
	font-size: 10px;
	letter-spacing: -1px;
	width: 818px;

}	



#nav ul {

	display:inline;	/* fixes margin-doubling bug in IE6 */

	float: left; /* makes the ul enclose the li's */

}	



#nav li {

	float: left; /* makes the list items sit side by side. note: if you try to get the list items to stack by unfloating the li elements, IE6+ leaves gaps */

	position: relative; /* positioning content for the nested ul (drop down) */

}



#nav a {

	display: block; /* no divider needed to the left of first list items */



}	







/* start of drop style */



#nav ul li ul li ul  {

	top:-1px; /* set to negative value of border-top for perfect pop-out alignment -set to 0 if border is 0 - don't remove! */

} 



#nav li ul {

	display: none; /* hides the drop-down (revealed when hovered. see below) */

	position: absolute; /* positions the drop-down relative to the parent li position context */

	left: -1px; /* precisely positions the drop-down */

	width: 7em;	/* sets the width of the drop-down */

}		



#nav li:hover ul,

#nav li.hover ul {	

	display: block; /* displays the menu when hovered */

}



#nav li ul li {	

	width: 100%; /* makes each li the width of the ul and therefore stack */

}











/* * * * drop-downs start here * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

#nav ul li ul { 

	border:0; /* stops inheritance from level 1 ul */

	margin-left:0px; /* stops inheritance from level 1 ul */

	position:absolute; /* positions the drop-down ul in relation to its relatively positioned li parent */

	width: 12em; /* sets the width of menu levels 2 - 4 */

}



#nav ul li ul li {

	width:100%;

	padding:0; /* stops inheritance */

	border-left:0; /* stops inheritance */

	border-right:0; /* stops inheritance */

}

	

#nav ul li ul {

	display:none; /* conceals the drop-down when menu not hovered */

} 

	

#nav ul li:hover ul,

#nav ul li.hover ul {

	display:block; /* shows the drop-down when the menu is hovered */

	z-index:1000; /* Safari needs this to display menu on top of other page elements */

} 



#nav .vertical li ul li:first-child {

	border-top: none; /* removes top border from first drop-down li */

}	





/* pop-outs starts here (n-level) */

body #nav ul li ul li ul  {

	left:100%;

	position:absolute; /* associated menu with parent li positioning context */

	visibility:hidden; /* ensures that level 3 menu is not reveal when level 2 is reveled */

	top:-1px; /* aligns level 3 and 4 pop-out with previous level */

}

	

#nav ul li ul li:hover ul,

#nav ul li ul li.hover ul {

	visibility:visible;

} /* shows level 3 menu when associated level 2 li is hovered */



/* second and third level popouts here*/

#nav ul li ul li:hover ul li ul,

#nav ul li ul li.hover ul li ul {

	visibility:hidden; /* ensures that level 4 is not reveal when level 3 is reveled */

}

 

#nav ul li ul li ul li:hover ul,

#nav ul li ul li ul li.hover ul {

	visibility:visible; /* shows level 4 menu when associated level 3 li is hovered */

}  









/* * * * extra styles for the vertical menu * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */	 

#nav.vertical ul {

	border-left:0px; /* removes the border of the level 1 ul that can be used in the horizontal menu */

	margin-left:0; /* removes left margin that is available on horizontal menu */

}

	

.vertical ul { 

	width:100%; /* took off the id so the ul ul width setting in prefs was more specific */ 

}



#nav.vertical li {

	border-right:0; /* removes right borders used by horiz level 1 */

	border-top: 1px solid #000; /* adds top border */

	clear:left; /* makes the main menu stack - note: turning off floating (alternative way to create stacking) causes spacing problems in IE */

	position:relative; /* positioning context for the level 2 menu */

	width: 10em; /* set width of level 1 menu - MUST match left value in ul ul selector below */

}



#nav.vertical ul ul  {

	left:100%;         /* align level 2 with level 1 - MUST match li width in selector above */

	position:absolute; /* make ul position relative to parent li for all menu levels */

	top:-1px; /* aligns the level 2 pop-out. adjust if border-top removed above */

	width: 10em;

}



#nav .vertical li:hover ul,

#nav .vertical li.hover ul {

	top: 0

}



/* levels 2 -4 width */

	#nav.vertical li li {

}



#nav.vertical ul ul ul {

	left:100%; /* align level 2 with level 3 and 3 with 4 - MUST match li width in selector above */

}



/* inevitable hacks for IE6  and < */

* html #nav {

 z-index:1; /* IE6 won't respect high z-index on abs-pos'd child (ul li ul) without this on its parent rel-pos'd element */

 }				/* see http://www.last-child.com/conflicting-z-index-in-ie6/ */

* html #nav ul li ul {

  z-index:400; /*ensures menu is on top of other page elements */

 }

* html #nav a {

/* cannot find a way to get the top level 'a' to fill the unwidthed menu choices without drop-down in IE : ( */

} 

* html #nav.vertical a {

/* now hasLayout in IE - works on the vert menu as container has width */

 zoom:100%;

 } 

 * html #nav ul ul a { /* second level of horiz menu */

 zoom:100%;  /* now IE 'haslayout" - IE now makes background hot in horizontal menus */

 } 









/* * * * Customizable Menu Code  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

#nav ul {

	font-size:1em; /* prevents inheritence */

}	



#nav li {

	border-right: 1px solid #000; /* adds border to the right of each horiz level 1 menu item *//* set to 0px to remove */

}



#nav li:hover,

#nav li.hover {	

	background: #024a7e; /* background color of hovered menu items */

}



#nav ul li.first-item  {

	border-left: none; /* no divider needed to the left of first list item */
	margin-left: 20px;
}	



#nav ul li.last  {

	border-right: none; /* no divider needed to the right of first last item */
}	



#nav a {

	color:#000;	/* sets the color of all menu types */

	padding: .3em 6px; /* pads the link away from the list item - set vertical height in ems */

	text-decoration: none;

}	

#nav a:hover {

	background:#176299; /* background color of hovered menu items */

	color: #fff; /* MH CORE default. Developer should change */

}



/* start of drop style */

#nav li li { 

	background:#176299; /* background color of the level 2 menu */

	border-bottom:1px solid #000; /* lines between menu choices - set to 0px if not wanted */

}



#nav ul li ul li ul  {

	border-top:1px solid #000; /* sets the border-top of levels 3 and 4 of a horizontal menu - set to 0px to remove - for a vertical menu, you will set this for levels 1 - 4 below */

} 



#nav li li li { 

	background:#000; /* background color of the level 3 menu */

}



#nav li li li li { 

	background:#000; /* background color of the level 4 menu */

}



#nav li ul  {

	border-top: 1px solid #000; /* hack - adds a top border to the drop-downs for IE6 */

}	

