﻿/* 
---------------------------------
This is the style info for the menu.

Parts of this code came from the "Son of Suckerfish Dropdowns" article.

http://www.htmldog.com/articles/suckerfish/dropdowns/

The rest was written by Jeremy Green of webEprint.com.

http://www.webeprint.com/

!!Note!!
All of the images reffered to in this file are assumed
to be in a directory called "img" in the same directory
as the page being viewed.  For implementation the image
paths may need to be changed.  Probably something like:
url(/img/menu_gradient.png)
---------------------------------
*/
#navWrap {
	width: 760px;
	margin-left: auto;
	margin-right: auto;
	text-align: left;
	position: relative;
	z-index: 100;
}

#topmenu {
	width: 600px;
	list-style: none; /* font-size:0.7em;           font-weight:bold; */
	border-top: 1px solid #355683;
	border-bottom: 1px solid #355584;
	background: #85a5e2 url(../images/menu_gradient.png) 0 0 repeat-x;
	padding-left: 160px;
	margin: 0;
	list-style: none;
	line-height: 1;
}

#topmenu a {
	padding: 0.5em 1em;
	color: black;
	display: block;
}

#topmenu a:hover {
	color: white;
	background: #2b406b url(../images/menu_gradient_hover.png) 0 0 repeat-x;
}

#topmenu a.noLink {
	padding: 0.5em 1em;
	color: black;
	display: block;
	text-decoration: none;
	cursor: default;
}

#topmenu a.noLink:hover {
	color: white;
	background: #2b406b url(../images/menu_gradient_hover.png) 0 0 repeat-x;
	text-decoration: none;
	cursor: default;
}

#topmenu ul {
	/* all sub-lists */
	padding: 0;
	margin: 0;
	list-style: none;
	line-height: 1;
	opacity: 0.95; /*filter:alpha(opacity=95);*/
}

#topmenu li ul.dropRight a {
	width: 13em; /* width of li - 2em for padding */
	color: white; /* border: 1px dotted red; */
}

#topmenu li ul.dropLeft a {
	width: 12em; /* width of li - 2em for padding */
	color: white;
	padding-left: 2em;
}

#topmenu li {
	/* all top level list items */
	float: left;
	position: relative;
}

#topmenu li ul li {
	/* all second level and below list items */
	float: none;
	width: 15em; /* width needed or else Opera goes nuts */
}

#topmenu li ul.dropRight {
	/* second-level lists */
	position: absolute;
	background: #2b406b;
	border: 2px solid #2b406b;
	border-right: 2px solid #1b203b;
	border-bottom: 2px solid #1b203b;
	width: 15em;
	left: -999em; /* using left instead of display to hide menus because display: none isn't read by screen readers */
}

#topmenu li ul.dropLeft {
	/* second-level lists */
	position: absolute;
	background: #2b406b;
	border: 2px solid #2b406b;
	border-left: 2px solid #1b203b;
	border-bottom: 2px solid #1b203b;
	width: 15em;
	display: none;
	right: 0;
}

@media aural  {
	#topmenu li ul.dropLeft {
		right: -999em; /* using left instead of display to hide menus because display: none isn't read by screen readers */
	}

	#topmenu li:hover ul ul, #topmenu li.sfhover ul ul {
		right: -999em;
	}

	#topmenu li:hover ul, #topmenu li li:hover ul, #topmenu li.sfhover ul, #topmenu li li.sfhover ul {
		/* lists nested under hovered list items */
		position: absolute;
		right: 0;
	}
}

#topmenu ul li a:hover {
	background: #171d33;
}

#topmenu ul.dropRight li.sub a {
	background: transparent url(../images/arrow.gif) 95% 50% no-repeat;
}

#topmenu ul.dropRight li.sub a:hover {
	background: #171d33 url(../images/arrow.gif) 95% 50% no-repeat;
}

#topmenu ul.dropRight li.end a {
	background: none;
}

#topmenu ul.dropRight li.end a:hover {
	background: none;
}

#topmenu ul.dropLeft li.sub a {
	background: transparent url(../images/arrow_l.gif) 5% 50% no-repeat;
}

#topmenu ul.dropLeft li.sub a:hover {
	background: #171d33 url(../images/arrow_l.gif) 5% 50% no-repeat;
}

#topmenu ul.dropLeft li.end a {
	background: none;
}

#topmenu ul.dropLeft li.end a:hover {
	background: none;
}

#topmenu ul li.sub li a {
	background: transparent;
}

#topmenu ul li.sub li a:hover {
	background: #171d33;
}

#topmenu li ul ul.dropRight {
	/* third-and-above-level lists */
	margin: -2em 0em 0em 15em;
}

#topmenu li ul ul.dropLeft {
	/* third-and-above-level lists */
	margin: -2em 15em 0em 0em;
}

#topmenu li:hover ul ul.dropRight, #topmenu li.sfhover ul ul.dropRight {
	left: -999em;
}

#topmenu li:hover ul ul.dropLeft, #topmenu li.sfhover ul ul.dropLeft {
	display: none;
}

#topmenu li:hover ul.dropRight, #topmenu li li:hover ul.dropRight, #topmenu li.sfhover ul.dropRight, #topmenu li li.sfhover ul.dropRight {
	/* lists nested under hovered list items */
	left: auto;
}

#topmenu li:hover ul.dropLeft, #topmenu li li:hover ul.dropLeft, #topmenu li.sfhover ul.dropLeft, #topmenu li li.sfhover ul.dropLeft {
	/* lists nested under hovered list items */
	position: absolute;
	display: block;
}

/*
This is a hack to make any element with a class
of 'clearfix' expand to contain any floted elements
within them.
*/

.clearfix, .clearfixLeft, .clearfixRight {
	display: inline-block;
}

.clearfix:after {
	content: ".";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}

/* Hides from IE-mac \*/
* html .clearfix {
	height: 1%;
}
/* End hide from IE-mac */
