/*================================================================
NAV stylesheet for the website.

Define all aspects (layout AND typography) of:
  - Nav (ul)
  - Nav List Items (li)
  - Nav Links
  - Current Page Definitions
  
================================================================*/

/*** ESSENTIAL STYLES ***/
.nav, .nav * {
	margin:	0;	padding: 0;
	list-style:		none;
}
#main-menu ul {
	position:		absolute;	top: -999em;
	width:			12em; /* left offset of submenus need to match (see below) */
}
#main-menu ul li {
	width:			100%;
}
#main-menu li:hover {	visibility:		inherit; /* fixes IE7 */ }
.nav li {
	float:			left;
	position:		relative;
}
.nav a {
	display: block;	position: relative;
}
#main-menu li:hover ul,
#main-menu li.sfhover ul {
	left:			0;
	top:			2em; /* match top ul list item height */
	z-index:		99;
}
ul#main-menu li:hover li ul,
ul#main-menu li.sfhover li ul,
ul#main-menu li li:hover li ul,
ul#main-menu li li.sfhover li ul {
	top:			-999em;
}
ul#main-menu li li:hover ul,
ul#main-menu li li.sfhover ul,
ul#main-menu li li li:hover ul,
ul#main-menu li li li.sfhover ul {
	left:			12em; /* match ul width */
	top:			0;
}
/*** arrows **/
#main-menu a.sf-with-ul {
	padding-right: 	2.25em; min-width: 1px; /* trigger IE7 hasLayout so spans position accurately */
}
.sf-sub-indicator {
	position:		absolute;	display: block;
	right:			.5em;	top: .75em; /* IE6 only */
	width:			10px; 	height:	10px;
	text-indent: 	-999em; 	overflow:		hidden;
	background:		url('/jscripts/images/arrows-fff.png') no-repeat -10px -100px;
	/* 8-bit indexed alpha png. IE6 gets solid image only */
}
a > .sf-sub-indicator {  /* give all except IE6 the correct values */
	top: .8em;	background-position: 0 -100px;
}
a:focus > .sf-sub-indicator,  a:hover > .sf-sub-indicator,
a:active > .sf-sub-indicator, li:hover > a > .sf-sub-indicator, li.sfhover > a > .sf-sub-indicator {
	background-position: -10px -100px; /* arrow hovers for modern browsers*/
}
#main-menu ul .sf-sub-indicator { background-position:  -10px 0; }
#main-menu ul a > .sf-sub-indicator { background-position:  0 0; }
#main-menu ul a:focus > .sf-sub-indicator,  #main-menu ul a:hover > .sf-sub-indicator,
#main-menu ul a:active > .sf-sub-indicator, #main-menu ul li:hover > a > .sf-sub-indicator, #main-menu ul li.sfhover > a > .sf-sub-indicator {
	background-position: -10px 0; /* arrow hovers for modern browsers*/
}

/*** shadows for all but IE6 ***/
#main-menu ul {
	background:	url('/jscripts/images/shadow.png') no-repeat bottom right;
	padding: 0 8px 9px 0;
	-moz-border-radius-bottomleft: 17px;
	-moz-border-radius-topright: 17px;
	-webkit-border-top-right-radius: 17px;
	-webkit-border-bottom-left-radius: 17px;
}
#main-menu ul.sf-shadow-off {
	background: transparent;
}
/*** adding sf-vertical in addition to sf-menu creates a vertical menu ***/
#main-menu.vertical, #main-menu.vertical li {
	width:	100%;
}
/* this lacks ul at the start of the selector, so the styles from the main CSS file override it where needed */
#main-menu.vertical li:hover ul,
#main-menu.vertical li.sfHover ul {
	left:	12em; /* match ul width */
	top:	0;
}

/* FOR VERTICAL MENUS, ADD class="vertical"
----------------------------------------------------------------*/

/*** alter arrow directions ***/
.vertical .sf-sub-indicator { background-position: -10px 0; } /* IE6 gets solid image only */
.vertical a > .sf-sub-indicator { background-position: 0 0; } /* use translucent arrow for modern browsers*/

/* hover arrow direction for modern browsers*/
.vertical a:focus > .sf-sub-indicator,
.vertical a:hover > .sf-sub-indicator,
.vertical a:active > .sf-sub-indicator,
.vertical li:hover > a > .sf-sub-indicator,
.vertical li.sfHover > a > .sf-sub-indicator {
	background-position: -10px 0; /* arrow hovers for modern browsers*/
}

/* DESIGN STARTS HERE!
----------------------------------------------------------------*/
#main-menu {
  	font: bold 1.22em/1em Arial, Helvetica, sans-serif;
  	text-align: left;
  	margin: 0 0;
}

#main-menu a {
	border-left:	1px solid #09618e;
	padding: 		.5em 1.5em;
	text-decoration:none;
}
#main-menu li.home a {
	border-left:	none;
}
#main-menu a, #main-menu a:visited  { /* visited pseudo selector so IE6 applies text colour*/
	color:			#fff;
}
#main-menu li {
	background:		#000;
}
#main-menu li li {
	background:		#000;
}
#main-menu li li li {
	background:		#000;
}
#main-menu li:hover, #main-menu li.sfhover,
#main-menu a:focus, #main-menu a:hover, #main-menu a:active {
	background:		#25aad9;
	outline:		0;
}
#foot {
	margin: 0 20px 1em;
}
#foot a {
	padding: 		.5em 1em;
	text-decoration:none;
}