/*
	name: superfish.css

	type: stylesheet
	description: superfish.css (commented version) -- Floating Island International
	note: anything to do with levels past the second level has been removed from this version -- the original can have as many levels as you can stand

	created: 05/29/2008
	last rev: 12/2/2008
*/

/* This file is commented in great detail for educational purposes. There is also
 * an uncommented version for production use, here:
 * http://users.tpg.com.au/j_birch/plugins/superfish/superfish.css
 */

/**************** ESSENTIAL STYLES ***************/
/* This first group of styles are most important for the function of Superfish.
 * The more cosmetic styling rules are grouped together below under the heading
 * ORIGINAL SKIN.
 *
 * Note that this CSS file will create the kind of menu demonstrated on the main
 * page of the Superfish documentation, ie. top tier of nav is horizontal, with
 * subsequent tiers vertical.
 */
 
/* remove any default styles */
.nav, .nav * {
	margin:0;
	padding:0;
	list-style:none;
}

/* top ul.nav element */
.nav {
	line-height:1.0; /* makes calculating the 'top' value for first submenu easier */
}


/* nested submenu ul elements */
.nav ul {
	position:absolute; /* remove from flow and allow positioning */
	top:-999em; /* hide submenu in screen-reader and search-engine friendly way */
	/* JJH: need to eliminate this since each top-level item (and the 2nd-level dropdown items) all have specific widths */
	/* width:9.45em; */  /* VARIABLE. Must have a width for menu items to inherit. Use ems so font scaling does not break design*/

}

/*
li#home { width: 3.45em; }
li#home ul { width: 3.45em; }
*/

li#home { width: 4.00em; }
li#home ul { width: 4.00em; }

li#aboutus { width: 6.90em; }
li#aboutus ul { width: 6.90em; }

li#aboutbiohavens { width: 9.80em; }
li#aboutbiohavens ul { width: 9.80em; }

li#applications { width: 8.30em; }
li#applications ul { width: 8.30em; }

li#gallery { width: 7.00em; }
li#gallery ul { width: 7.00em; }

li#research { width: 7.10em; }
li#research ul { width: 7.10em; }

li#casestudies { width: 7.80em; }
li#casestudies ul { width: 7.80em; }

li#press { width: 7.00em; }
li#press ul { width: 7.00em; }

li#sales { width: 7.40em; }
li#sales ul { width: 7.40em; }

li#licensing { width: 8.00em; }
li#licensing ul { width: 8.00em; }


/* submenu items */
.nav ul li,
.nav a { /* this affects top level anchors too */
	width: 100%;/* stretch submenu items to width of submenu ul width (see .nav ul rules above). When link text runs over more than one line, use padding and an explicit width for the anchor instead of width:100% and text-indent. Example below in the SKIN section */
}



/* all li elements */
.nav li {
	float:left; /* must float all li elements. Vertical submenu items are restrained by parent ul width (see .nav ul rules above) */
	position:relative; /* make child submenu ul position relative to parent li */
	z-index:99; /* ensure submenus appear above other page items. Increase if needed, but do not exceed thickbox overlay z-index! */
}

/* all anchor elements */
.nav a {
	display:block; /* make IE6 obey width when text-indent is used */
}

/**** Position of second tier of nav ****/
.nav li:hover ul, /* this pure CSS hover is overridden by the .superfish rules below which are applied only when JavaScript is available. This way, the menu degrades to regular CSS dropdown when JavaScript is unavailable */
ul.nav li.sfHover ul /* this is the familiar IE6 hover support. With Superfish, all browsers use this rule when JS is available. This is because the JS needs to be able to control hide and reveal delays and animations without the pure CSS rule intruding. Note the tag selector ul.nav instead of just .nav - this gives it the most specificity of all and makes it trump all other positioning rules, including the .superfish overrides below */
{
	left:-1px; /* position first submenu directly under parent li */
	top:2.5em; /* VARIABLE. This is calculated by adding 1em text height to top and bottom anchor element padding (original skin: .75em top + .75em bottom + 1em text height = 2.5em) */
}



/**** Very important ****/
/* this negates the pure CSS hovers so submenu remains hidden and JS controls when and how it appears. This is in turn is overridden by the .sfHover rules above as they have greater specificity */
/* notice there are three selectors here. You need three for a four tier menu system. If you had a five tier system you would copy the last selector of these three and paste it below to create a fourth selector and add another li just after the .superfish part. On the other hand if you only had a three tiered menu you could delete the third line here and save some file size.*/
.superfish li:hover ul,
.superfish li li:hover ul {
	top: -999em; /* hide submenu in screen-reader and search-engine friendly way */
}

/* A quick note about issues with submenus appearing under Flash animations. Some say that setting wmode="opaque" or  wmode="transparent" on the embed or object tag is sufficient. This does fix many issues but I find it sometimes helps to also add this CSS: */
embed, object {
	position: relative;
	z-index: 0;
}



/* All JJH after here */
/**************** ESSENTIAL STYLES VARIABLE CHANGES ***************/

/**** Position of second tier of nav ****/
.nav li:hover ul, /* this pure CSS hover is overridden by the .superfish rules below which are applied only when JavaScript is available. This way, the menu degrades to regular CSS dropdown when JavaScript is unavailable */
ul.nav li.sfHover ul /* this is the familiar IE6 hover support. With Superfish, all browsers use this rule when JS is available. This is because the JS needs to be able to control hide and reveal delays and animations without the pure CSS rule intruding. Note the tag selector ul.nav instead of just .nav - this gives it the most specificity of all and makes it trump all other positioning rules, including the .superfish overrides below */
{
	top:1.62em; /* VARIABLE. This is calculated by adding 1em text height to top and bottom anchor element padding (original skin: .75em top + .75em bottom + 1em text height = 2.5em) */
	/* JJH note: nominally, this should be 1.60em, but then the top submenu entry's text twitches up one pixel at the moment it has dropped-down completely... */
}

/**************** OTHER CHANGES ***************/

.nav {
	/* visibility: hidden; */
	/* if you want to change font-size, do it here as opposed to setting it on deeper nested anchor elements for example,  so that the em unit is the same size for all elements in the menu */
	/* font-weight: bold; */
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	float:left; /* necessary if you don't want this element to collapse */
	/* margin-bottom:1.5em; */  /* add space beneath nav. Purely cosmetic */
	


	/*
	position: absolute;
	top: 70px;
	left: 16px;
	*/
}



.nav li {
	/* width:9.00em; */  /* affects top level menu items only, as nested li elements have width 100% of their ul parent (see .nav ul rules above)*/
	border: none;

	/* border-right: 1px solid #ffce09; */  /* gold */
	/* border-right: 1px solid #f0f1f2; */  /* silver */
	/* border-right: 1px solid #e93c06; */  /* rusty orange */


	/* background:#BDD2FF; */  /* default background colour */
	/* background: url(../images/text_bg_60pc.png) repeat; */
	background-color: #73b651;

	text-align: center;
}

.nav li {
	/*gold borders */
	border-top: 1px solid #ffce09;
	border-right: 1px solid #ffce09;
	border-bottom: 1px solid #ffce09;
}

.nav li#home {
	border-left: 1px solid #ffce09; /* gold */
}


.nav li li {
	/* background: url(../images/text_bg_70pc.png) repeat; */
	background-color: #ffffff;
}


.nav li li {
	/*gold borders */
	border: none;

	/* border-top: 1px solid #ffce09; */
	border-right: 1px solid #ffce09;
	border-bottom: 1px solid #ffce09;
	border-left: 1px solid #ffce09;
}
.nav li li:first-child {
	border-top: 1px solid #ffce09;
}


.nav li a {
	width: 100%;/* stretch submenu items to width of submenu ul width (see .nav ul rules above). When link text runs over more than one line, use padding and an explicit width for the anchor instead of width:100% and text-indent. Example below in the SKIN section */
	padding: .30em 0; /* note that the top and bottom padding will affect the 'top' value (marked with the word "VARIABLE") of the second tier of nav (see "essential rules" above and alter accordingly) */
	text-decoration:none;
	text-indent: 0;
	/* color: #f0f1f2; */  /* default - color "silver" */
	color: #e8e8e8 /* default - a little darker "silver" */
}
.nav li li a {
	color: #2490af; /* blue */
}

/* if link text runs over two or more lines, you will want padding in the anchor element instead of relying on text-indent to provide space. The following disabled rule shows how to style the submenu links in this case. Note that the width plus left and right padding must equal the width set above for the submenu (.nav ul) */
/*
.nav ul a {
	width: 7.45em;
	padding: .75em 1em;
	text-indent: 0;
	}
*/


.nav li:hover, .nav li.sfHover,
.nav a:focus, .nav a:hover, .nav a:active, .nav li.current_item a {
	/* background: url(../images/text_bg_370073_70pc.png) repeat; */ /* hover highlight (JJH note: had to add the .current rule myself) */
	background-color: #579f33;
	color: #ffce09;
}

.nav li.current_item a {
	/* background: url(../images/text_bg_370073_70pc.png) repeat; */ /* JJH: had to add the .current rule myself */
	background-color: #579f33; 
	color: #ffce09;
}

.nav li.current_item li, .nav li.current_item li a {
	/* background: url(../images/text_bg_70pc.png) repeat; */
	background-color: #ffffff;
	/* color: #f0f1f2; */
	color: #2490af; /* blue */
}


.nav li li:hover, .nav li li.sfHover,
.nav li li a:focus, .nav li li a:hover, .nav li li a:active, .nav li li#current_subitem,  .nav li li#current_subitem a {
	/* background: url(../images/text_bg_370073_70pc.png) repeat; */ /* hover highlight (JJH note: had to add the .current rule myself) */
	background-color: #579f33; 
	color: #ffce09;
}

