/* ============================================================================================================ */
/* 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:.8em;	/* SET FONT-SIZE HERE */
	padding:0;
	/* margin-top:20px; /* TEMPORARY - pushes the div away from the top of the browser for clarity in this example*/
	z-index:1000;
}
div#menu ul {margin:0 0 0 10px;/* indents ul from edge of container */
	}
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 */
	/* border-right:1px solid #0077CC; */ /* creates dividing lines between the li elements */
	}
div#menu li:first-child {
	/* border-left:1px solid #0077CC;*/ /*the first vertical line on the menu */
	}
div#menu li:hover { 

	}
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:visited
{
	color:#666;
}
div#menu a:hover {
	color:#000;
	text-decoration:none;
	}
/* 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 */
	}
/* 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 */