/* ============================================================================================================ */
/* Drop Menu  */
/* the horizontal menu starts here */
div#menu 
{
	/*position:relative; */ /* need this to stop the wierd float */
	width:100%; 	/* makes the div full width */
	float:left; /*makes the div enclose the list */
	font-size:.7em;
	/* margin-top:20px; /* TEMPORARY - pushes the div away from the top of the browser for clarity in this example*/
	z-index:999;
	background-image: url(greyshade.jpg);
	background-repeat: no-repeat;
	margin: 0px;

}
div#menu ul {
	margin:0 0 0 0px;/* indents ul from edge of container */
	float: left; 
	display: block;
	
	}

div#menu li {
	float:left;	/* causes the list to align horizontally instead of stack */
	position:relative; /* positioning context for the absolutely positioned drop-down */
	list-style-type:none;	/* removes the bullet off each list item */
	padding-top: 15px;
	padding-right: 0;
	padding-bottom: 10px;
	padding-left: 0;
	vertical-align: middle;
	border-top-width: 1px;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-left-width: 1px;
	border-top-style: none;
	border-right-style: none;
	border-bottom-style: none;
	border-left-style: solid;
	border-top-color: #999999;
	border-right-color: #999999;
	border-bottom-color: #999999;
	border-left-color: #999999;
	background-image: url(greyshade.jpg);
	}
div#menu a {
	display:block; /*makes list items in drop down highlight and wrapped lines indent correctly */
	padding:0 6px; /*creates space each side of menu item's text */
	text-decoration:none;	 /* removes the underlining of the link */
	color:#000;	/* sets the type color */
	padding:0 5px;
}
div#menu a:hover {
	color:#000;
	text-decoration:none;
	}
div#menu a:active {
	color:#000;
	text-decoration:none;
	}
div#menu a:visited {
	color:#000;
	text-decoration:none;
}
div#menu li a:hover {
	color:#000;
	text-decoration:none;
	}
div#menu li a:active {
	color:#000;
	text-decoration:none;
	}
div#menu li a:visited {
	color:#000;
	text-decoration:none;
}
div#menu ul li li a:hover {
	color:#000;
	text-decoration:none;
	}


div#menu ul li li a:visited {
	color:#000;
	text-decoration:none;
}
div#menu ul li li a:active {
	color:#000;
	text-decoration:none;
}
div#menu ul li ul li a:visited {
	color:#000;
	text-decoration:none;
	}
div#menu ul li ul li a:active {
	color:#000;
	text-decoration:none;
	}
div#menu ul li ul li ul li a:visited {
	color:#000;
	text-decoration:none;
	}
div#menu ul li ul li ul li a:active {
	color:#000;
	text-decoration:none;
	}
div#menu li:first-child {
	color:#000;
	/* border-left:1px solid #0077CC;*/ /*the first vertical line on the menu */
	padding-bottom: 10px;
	padding-left: 0;
	vertical-align: middle;
	border: 1px none #999999;
	}
div#menu ul li li:first-child {
	color:#000;
	background-color: #DFDFDF;
	border-top-width: 1px;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-left-width: 1px;
	border-top-style: none;
	border-right-style: none;
	border-bottom-style: none;
	border-left-style: solid;
	border-top-color: #999999;
	border-right-color: #999999;
	border-bottom-color: #999999;
	border-left-color: #999999;
	padding-top: 8px;
	padding-right: 0px;
	padding-bottom: 10px;
	padding-left: 0px;
	margin-top: 13px;
	margin-right: 0px;
	margin-bottom: 0px;
	margin-left: 0px;
}
div#menu ul li li {
	background-color: #DFDFDF;
	padding-top: 15px;
	padding-right: 0px;
	padding-bottom: 10px;
	padding-left: 0px;
	margin: 0px;
}
div#menu ul li li a:link {
	margin: 0px;

}

div#menu ul li li a:hover {

	}

div#menu a:visited
{
	color:#666;
}

/* the horizontal menu ends here */

/* the drop-down starts here */
div#menu ul li ul {
	margin:0; /* prevents the TEMP value inheriting from the horiz menu - OK to remove if you remove TEMP above */
	position:absolute; /* positions the drop-down ul in relation to its relatively positioned li parent */
	width:15em; /*sets the width of the menu - in combo with the li's 100% width, makes the menu stack*/
	left:-1px; /*aligns the drop exactly under the menu */
	z-index:1001;
	border:solid 1px #ddd;
	}

div#menu ul li ul li {
	width:100%; /* makes the list items fill the list container (ul) */
	/*border-left:1px solid #0077CC;*/ /*  three sides of each drop-down item */
	/* border-bottom:1px solid #0077CC; */
	/*border-right:1px solid #0077CC; */
	}
div#menu ul li ul li:first-child {
	/* border-top:1px solid #0077CC; */ /*the top edge of the dropdown */
	
	}
div#menu ul li ul li ul li:first-child {
	/* border-top:1px solid #0077CC; */ /*the top edge of the dropdown */
	background-color: #DFDFDF;
	border-top-width: 1px;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-left-width: 1px;
	border-top-style: none;
	border-right-style: none;
	border-bottom-style: none;
	border-left-style: solid;
	border-top-color: #999999;
	border-right-color: #999999;
	border-bottom-color: #999999;
	border-left-color: #999999;
	padding-top: 10px;
	padding-right: 0px;
	padding-bottom: 10px;
	padding-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	margin-left: 0px;
	}
/* make the drop-down display as the menu is rolled over */
div#menu ul li ul {display:none;} /* conceals the drop-down when menu not hovered */
div#menu ul li:hover ul {display:block; } /* shows the drop-down when the menu is hovered */

/* pop-out starts here */
body div#menu ul li ul li ul  {
	visibility:hidden; /* same effect as display:none in this situation */
	top:-1px;
	left:15em;
	}
div#menu ul li ul li:hover ul {visibility:visible;} /* same effect as display:block in this situation */

/* second level popouts start here*/
div#menu ul li ul li:hover ul li ul {visibility:hidden;}
div#menu ul li ul li ul li:hover ul {visibility:visible;} /* same effect as display:block in this situation */

/* third level popouts start here*/
div#menu ul li ul li ul li:hover ul li ul {visibility:hidden;}
div#menu ul li ul li ul li ul li:hover ul {visibility:visible;} /* same effect as display:block in this situation */
/* hack for IE (all flavors) so the menu has a vertical line on the left */
div#menu ul {
	float:left; /* makes the ul wrap the li's */
	/* border-left:1px solid #000; */ /* adds the rightmost menu vertical line to the ul */
	margin-left:0px; /* IE doubles the given value above - why? */
	}
/* add a top line to drops and pops in IE browsers - can't read :first-child */
div#menu ul li ul {
	/* border-top:1px solid #0077CC; */
	}
/* the Tantek hack to feed IE Win 5.5-5.0 a lower value to get the pop-out to touch the drop-down */
div#menu ul li ul li ul { 
  left:9.85em; 
  }

