/* top quick navigation starts here */
div#tqnav {
	float: right;
	background-color: #e0f0e0;
	}
div#tqnav li {
	float: right;
	list-style-type: none;
	border-right: 1px solid #CCC;
	padding: 5px 0.5em 0 0.5em;
	}
div#tqnav li.right {
	border-right: none;
	}
/* top quick navigation ends here*/

/* the horizontal menu starts here */
div#nav {
	float:left;
	}
div#nav 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 */
	background-color:#e0f0e0; /*sets the background of the menu items */
	border-left:1px solid #CCC; /* creates dividing lines between the li elements */
	width: 80px;
	padding-left: 0.3em;
	}
div#nav ul li:hover,
div#nav ul li.sfhover { 
	background-color:#ccc; /*sets the background of the menu items */
	color:#22f;
	}

div#nav a {
	display:block; /*makes list items in drop down highlight and wrapped lines indent correctly */
	text-decoration:none;	 /* removes the underlining of the link */
	color:black;	/* sets the type color */
	width:100%;
	height:1.6em;
	padding-top:0.3em;
	}
div#nav a:hover {
	color:#22f;
	}
/* the horizontal menu ends here */

/* the drop-down starts here */
div#nav ul li ul {
	position:absolute; /* positions the drop-down ul in relation to its relatively positioned li parent */
	width:159px; /*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 */
	}

div#nav ul li ul li {
	width:100%; /* makes the list items fill the list container (ul) */
	padding: 0 0.3em;
	border-bottom:1px solid #CCC;
	border-left:2px solid #CCC; /*  three sides of each drop-down item */
	border-right:2px solid #CCC;
	}

div#nav .topnav { border-top:2px solid #CCC; }
div#nav .bottomnav { border-bottom:2px solid #CCC; }

div#nav .topheadernav { border-top:1px solid black; color: #e0f0e0;
						height: 1.6em; padding-top: 0.3em; text-align: center; 
						font-style: italic; font-weight: bold; }
div#nav .headernav { color: black;
						height: 1.6em; padding-top: 0.3em; text-align: center; 
						font-style: italic; font-weight: bold; }

/* make the drop-down display as the menu is rolled over */
div#nav ul li ul { left:-999em;} /* conceals the drop-down when menu not hovered */

div#nav ul li:hover ul,
div#nav ul li.sfhover ul { left:-1px; } /* shows the drop-down when the menu is hovered */

/* THE HACK ZONE - */
/* and the "be nice to Opera" rule */
html>body div#nav ul li ul li ul {
  left:10em;
  }

/* an Opera-only hack to fix a redraw problem by invisibly extending the ul */
/* the first-level drop stays open for 100px below the bottom but at least it works */
/* this can be reduced to as little as 22px if you don't have pop-outs */
/* the pop-out menu stays open for 22px below the bottom but at least it works */
	@media all and (min-width: 0px){
   body div#nav ul li ul {padding-bottom:200px;}
   body div#nav ul li ul li ul {padding-bottom:22px;}
   body div#nav ul li ul li ul li ul li:hover {visibility:visible;} /* same effect as display:block in this situation */

   }
/*end Opera hack */
/* end of hack zone */
/* END OF LIST-BASED MENU */

/* finally after feeding values to all others, we deal with MAc5 IE */
/* IE5 Mac can't do drop-downs so we need to present the info in a different way*/
/* we present the drop down choices in a row and never show any second-level drops */
 /* this stylesheet is read by IE5 Mac only - hack omits 'url' and leave no space between @import and ("   */
@import("ie51_menu_hack.css"); 
/* END OF DROP DOWN MENUS */
