div #container, div #pagecontainer, div #nav, ul .nav superfish, li .sfHover, #header { z-index: 99; }
.nav, .nav * {
	margin:0;
	padding:0;
	list-style:none;
}

/* top ul.nav element */
.nav {
	line-height:1.0;
}

/* nested submenu ul elements */
.nav ul {
	position:absolute;
	top:-999em;
	width:210px;
}
/* submenu items */
.nav ul li,
.nav a {
	width: 100%;
}

/* all li elements */
.nav li {
	float:left;
	position:relative;
	z-index:99;
}

/* all anchor elements */
.nav a {
	display:block;
}

/**** Position of second tier of nav ****/
.nav li:hover ul,
ul.nav li.sfHover ul
{
	left:210px;
	top:0px;
}

/**** Position of third tier of nav ****/
 /* Note that this rule must appear here in the code order in order for it to override previous positioning rules so that this and subsequent nested submenus still remain hidden when the parent submenu is shown. Do not group these selectors with other top:-999em rules */
.nav li:hover li ul,
.nav li.sfHover li ul {
	top:-999em;
}
/* DO NOT attempt to group these selectors with similar earlier rules. The code order is important so the rules override previous ones correctly */
.nav li li:hover ul,
ul.nav li li.sfHover ul
 {
	left:210px;
	top:0px;
}

/**** Position of fourth tier of nav (not used on main demo page. You could delete this block for a three tiered nav) ****/
 /* Note that this rule must appear here in the code order in order for it to override previous positioning rules so that this and subsequent nested submenus still remain hidden when the parent submenu is shown. Do not group these selectors with other top:-999em rules */
.nav li li:hover li ul,
.nav li li.sfHover li ul {
	top:-999em;
}
/* DO NOT attempt to group these selectors with similar earlier rules. The code order is important so the rules override previous ones correctly */
.nav li li 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 li 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:210px;
	top:0px;
}

/**** Position of further tiers of nav ****/
/* To add further tiers, you need copy the previous block of code (everything back until the "Position of fourth tier of nav" comment) and paste it in here. Then add an extra li just after .nav in each of the pasted selectors. So the new block will differ from the copied block in the same way that the block for the fourth tier differs from the block for the third tier.*/


/**** 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,
.superfish li li li:hover ul {
	top: -999em;
}

/* 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;
}

/******************** ORIGINAL SKIN ******************/
/*
 * The CSS below is my attempt to extract most of the stuff you need to change in order
 * to reskin the menu with the appearance you require. However, certain rules above
 * (indicated with the word "VARIABLE") may also need to be altered to suit the width
 * and height of your menu items and submenus. For example, if you need wider submenus
 * eg: .nav ul { width:12em} then you will need to also apply that value
 * to the left offset of any deeper nested submenus, eg:
 * .nav li li:hover ul,
 * ul.nav li li.sfHover ul {
	 left:12em; top:-1px;
   }
 *
 * Other than that, most of the cosmetic stuff is below:
 */

.nav {
	/* 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-size:1.2em;
	color: #f6e374;
	float:left;
	/*margin-bottom:1.5em; /* add space beneath nav. Purely cosmetic */
}
.nav li {
	background-image: url(../images/menu.gif);
	background-repeat: no-repeat;
	width:210px;
	height: 36px;
}
.nav li li {
	background-image: none;
	background-color: #0E2038;
	width:210px;
	height: 30px;
}
/*
.nav li a.withchild {
	background-position: 135px;
	background-repeat: no-repeat;
	background-image: url(../images/menu_arrow.gif);
}
*/
.nav a {
	color: #f6e374;
	width: 200px;
	height: 25px;
	padding: 8px 0px 3px 10px;
}
.nav ul {
	width: 212px;
	border-bottom: 1px solid #ddd;
}
/*
.nav ul li a.withchild {
	background-position: 167px;
}
*/
/* 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 {
	height: 19px;
}

.nav li:hover, .nav li.sfHover,
.nav a:focus, .nav a:hover, .nav a:active {
	background-image: url(../images/menu-o.gif);
	background-repeat: no-repeat;
	color: #f6e374;
}
.nav li li {
	border-top: 1px solid #ddd;
	border-right: 1px solid #ddd;
	border-left: 1px solid #ddd;
}

.nav li li:hover, .nav li li.sfHover,
.nav li li a:focus, .nav li li a:hover, .nav li li a:active {
	background-image: none;
	background-color: #a74435;
	color: #f6e374;
}
.nav a:visited, .nav a:hover  {
	/*color: #fff;
	text-decoration: none;*/
}