﻿/* Get rid of the margin, padding and bullets in the unordered lists */
#nav ul, #nav {
	padding:0;
	margin:0;
	list-style-type: none;
	list-style:none;
}
#nav li{
	background-image:none;
	padding:0;
}
/*******************************************************************************************************
*		 Set up the top level nav buttons
*******************************************************************************************************/
.nav_icon
{
    vertical-align:middle;	
	padding-right:3px;
}
* html .nav_icon
{    
    padding:7px 0 0 5px;    
    display:block;
    float:left;
}
/*All buttons */
#nav a:visited, #nav a {
	border:0px;
	display:block;
	width:74px;
	height:25px;
	line-height:25px;
	color:#fff;
	font-size:10px;
	font-weight:bold;
	text-decoration:none;
	text-align:center;
	background:url(../images/layout/btn_nav.jpg) no-repeat;
	background-position:0 0;
}
/* Drop down buttons*/

#nav .drop a:visited, #nav .drop a {
	background:url(../images/layout/btn_nav_dd.jpg) no-repeat;
	background-position:0 0;
}/**/

/*Highlight button */
#nav .drop a:hover, #nav .drop a:hover {
	background-color:#353638;	
	background-position:0 -25px;
}
/*******************************************************************************************************
*		 Set up the sub level buttons and clear bg images
*******************************************************************************************************/
#nav li.drop ul li a, #nav li.drop ul li a:visited {
	width:160px;
	height:20px;
	line-height:20px;
	text-align:left;
	padding-left:8px;
	background:#353638 url('../images/layout/nav_dd_bg.gif') no-repeat;
	color:#fff !important;
	font-weight:normal;
	border-width:0px;	
}

/* dd hover states */
#nav li.drop ul li a:hover , #nav li ul li a:hover {
	background-color:#282828;
	background-position:0 -20px;
}
#nav li ul li a.enclose_top:visited, #nav li ul li a.enclose_top{
	background-color:transparent;
	background-position:0 -40px;
}
#nav li ul li a.enclose_bottom:visited, #nav li ul li a.enclose_bottom {
	background-color:transparent;
	background-position:0 -60px;
}

/* Set up the list items */
#nav li {
	float:left;
}
/* For Non-IE browsers and IE7 */
#nav li:hover {
	position:relative;
	color:#c3dafb;
}
/* Make the hovered list color persist */
#nav li:hover > a:visited, #nav li:hover > a:hover, #nav li:hover > a:link, #nav li:hover > a {	
	background-position:0 -25px;	
}

/* Set up the sublevel lists with a position absolute for flyouts and overrun padding.
	 The transparent gif is for IE to work */
#nav li ul {
	background:transparent url(../images/spacer.gif) repeat;
	display:none;
}
/* For good browsers (ie7 f.f.) make the sublevels visible on list hover. This is all it needs */
#nav li:hover > ul {
	display:block;
	position:absolute;
	top:-10px;
	left:137px;
	padding:0;
	margin-top:10px;
	margin-left:30px;
	line-height:25px;
	background:transparent url(../images/spacer.gif);
	width:170px;	
}
/* Position the first sub level beneath the top level links */
#nav > li:hover > ul {
	left:-30px;
	top:14px;
}
/* Persist highlighted sub*/
#nav > li:hover > ul li:hover > a{
	background-position:0 -20px;
	background-color:#353638;
}

/* get rid of the table */
#nav table {
	position:absolute;
	border-collapse:collapse;
	top:0;
	left:0;
	z-index:100;
	font-size:1em;
}
/* For IE5.5 and IE6 give the hovered links a position relative and a change of background and foreground color. 
	This is needed to trigger IE to show the sub levels */
* html #nav li a:hover {
	position:relative;	
	background-position:0 -25px;
	color:#fff;
}
/* For accessibility of the top level menu when tabbing */
#nav li a:focus, #nav li a:active {
	background-color:#dfd7ca;
	color:#fff;
}
/* Set up the pointer images for the sub level indication */
.fly img {
	float:right;
	margin-top:1px;
	margin-right:7px;
	height:18px;
	width:3px;
	display:inline;
	position:relative;
}
/******************************************************************************************************* 
*	Section for IE5.5 and IE6 ONLY and is necessary to make the sublevels appear 						
*******************************************************************************************************/
/* change the drop down levels from display:none; to visibility:hidden; */
* html #nav li ul {
	visibility:hidden;
	display:block;
	position:absolute;
	top:-11px;
	left:137px;
	padding:0;
	margin-top:10px;
	margin-left:31px;
	background:#353638;
}
/* keep the third level+ hidden when you hover on first level link */
#nav li a:hover ul ul {
	visibility:hidden;
}
/* keep the fourth level+ hidden when you hover on second level link */
#nav li a:hover ul a:hover ul ul {
	visibility:hidden;
}
/* make the second level visible when hover on first level link and position it */
#nav li a:hover ul {
	visibility:visible;
	left:-30px;
	top:14px;
	lef\t:-31px;
	to\p:14px;
}
/* make the third level visible when you hover over second level link and position it and all further levels */
#nav li a:hover ul a:hover ul {
	visibility:visible;
	top:-11px;
	left:137px;
}
/* make the fourth level visible when you hover over third level link */
#nav li a:hover ul a:hover ul a:hover ul {
	visibility:visible;
}
/* If you can see the pattern in the above IE5.5 and IE6 style then you can add as many sub levels as you like */