/* * * * Functionality Menu Code  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
#nav {
	background: #fff;
	height: 41px; /* height & line-height is setting the height of all the links */
	line-height: 41px; /* height & line-height should match */
	position: relative;
	z-index: 2;
	width: 960px;
}

#nav * {
	margin: 0;
	padding: 0;
	list-style-type: none;
}

#nav ul {
	width: 925px;
	margin: 0 auto;
	background: url('../images/design/nav-bg.jpg') top left repeat-x;
}

#nav ul ul {
	background-image: none;
	background: #1b67ab;
	color: #fff;
}

#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: 0px; /* precisely positions the drop-down */
	width: 14em;	/* 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:10px; /* stops inheritance from level 1 ul */
	position:absolute; /* positions the drop-down ul in relation to its relatively positioned li parent */
	width: 200px; /* sets the width of menu levels 2 - 4 */
}

#nav ul li ul li {
	width:200px;
	padding-left: 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 */
}  


/* * * * Customizable Menu Code  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

#nav li {
	border-right: 0px solid #000; /* adds border to the right of each horiz level 1 menu item *//* set to 0px to remove */
}

#nav ul.group {
	padding-left: 20px;
}

#nav li.hover a,
#nav li:hover a,
#nav a:hover,
.home #nav #nav-home a,
.about #nav #nav-about a,
.repair #nav #nav-repair a,
.systems #nav #nav-systems a,
.seasonal #nav #nav-seasonal a,
.portfolio #nav #nav-portfolio a,
.testimonials #nav #nav-testimonials a,
.coupons #nav #nav-coupons a,
.articles #nav #nav-articles a,
.contact #nav #nav-contact a

{
	color: #1b67ab;
}

#nav ul.group ul a,
.about #nav #nav-about li a,
.repair #nav #nav-repair li a,
.systems #nav #nav-systems li a,
.portfolio #nav #nav-portfolio li a,
.seasonal #nav #nav-seasonal li a,
.testimonials #nav #nav-testimonials li a,
.coupons #nav #nav-coupons li a,
.articles #nav #nav-articles li a,
.contact #nav #nav-contact li a {
	background: #1b67ab;
	color: #fff;
}

 

#nav ul ul li a:hover,
.about #nav #nav-about li a:hover,
.repair #nav #nav-repair li a:hover,
.systems #nav #nav-systems li a:hover,
.portfolio #nav #nav-portfolio li a:hover,
.seasonal #nav #nav-seasonal li a:hover,
.testimonials #nav #nav-testimonials li a:hover,
.coupons #nav #nav-coupons li a:hover,
.articles #nav #nav-articles li a:hover,
.contact #nav #nav-contact li a:hover {
	background: #faf2d8;
	color: #1b67ab;
}



#nav ul li.first  {
	border-left: none; /* no divider needed to the left of first list item */
}	

#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: 0 12px; /* pads the link away from the list item - do no set vertical paddings */
	text-decoration: none;
	font-weight: bold;
	font-size: 1.1em;
}

#nav ul li ul li a {width: 200px; padding: 0 10px;}

/* start of drop style */
#nav li li /* lines between menu choices - set to 0px if not wanted */
{
	border-top:0px 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 */
}	
