/*LIST-BASED MENUS WITHOUT IDs OR CLASSES ON THE LIST ELEMENTS */
/* tested in NN7, Opera, Firefox, IE6, IE5.5, IE5, on Windows and Safari and IE5 on Mac */
body {
	font-family: Arial, Helvetica, sans-serif;
	font-size:0.85em;
	behavior:url(csshover.htc);
}
* {margin:0; padding:0;} 

/* the horizontal menu starts here */
div#listmenu {
	float:left;	 /* draws line on bottom edge of div */
	font-size:.99em; /* colors the div */
	margin-top:1px; /* TEMPORARY - pushes the div away from the top of the browser for clarity in this example*/
	border-top-width: 1px;
	border-bottom-width: 1px;
	border-top-style: none;
	border-bottom-style: none;
	border-top-color: #9CF;
	border-bottom-color: #9CF;
	z-index: 10;
	}
div#listmenu ul {
	margin:0 0 0 0;
	}
div#listmenu 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; /* creates dividing lines between the li elements */
	border-right-width: 1px;
	border-right-style: solid;
	border-right-color: #000;
	font-weight: bold;
	}
div#listmenu li:first-child {
	border-left:1px solid #000;
	}
div#listmenu li:hover { 
	background-color:#ECECFF; /*sets the background of the menu items */
	}
div#listmenu 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:#0000FF;	/* sets the type color */
	font-style: italic;
	}
div#listmenu a:hover {
	color:#00D700;
	}
/* the horizontal menu ends here */

/* the drop-down starts here */
div#listmenu 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:12em; /*sets the width of the menu - in combo with the li's 100% width, makes the menu stack*/
	left:-1px;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: #9CF;
	}
div#listmenu ul li ul li {
	width:100%;
	padding:0 0 1px;
	border-right-width: 1px;
	border-bottom-width: 0px;
	border-left-width: 1px;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: solid;
	border-right-color: #9CF;
	border-bottom-color: #9CF;
	border-left-color: #9CF;
	font-weight: normal;
	background-color: #FFFFFF;
	border-top-width: 1px;
	border-top-style: solid;
	border-top-color: #9CF;
	}
div#listmenu ul li ul li a {
	font-style: normal;
}

div#listmenu ul li ul li:first-child {
	border-top-width: 1px;
	border-top-style: solid;
	border-top-color: #9CF;
	border-left-color: #9CF;
	border-left-style: solid;
	border-left-width: 1px;
	}
/* make the drop-down display as the menu is rolled over */
div#listmenu ul li ul {display:none;} /* conceals the drop-down when menu not hovered */
div#listmenu ul li:hover ul {display:block; } /* shows the drop-down when the menu is hovered */

/* pop-out starts here */
body div#listmenu ul li ul li ul  {
	visibility:hidden; /* same effect as display:none in this situation */
	top:-1px;
	left: 12em;
	}
div#listmenu ul li ul li:hover ul {visibility:visible;} /* same effect as display:block in this situation */

/* another level of pop-outs */
div#listmenu ul li ul li:hover ul li ul {display:none;} /* conceals the drop-down when menu not hovered */
div#listmenu ul li ul li ul li:hover ul {display:block; } /* shows the drop-down when the menu is hovered */

/* THE HACK ZONE - */

/* hack for IE (all flavors) so the menu has a vertical line on the left */
* html div#listmenu 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 */
* html  div#listmenu ul li ul {
	border-top:1px solid #9CF;
	border-left:0px; /* stops the drop inheriting the ul border */
	}
/* the Tantek hack to feed IE Win 5.5-5.0 a lower value to get the pop-out to touch the drop-down */
* html  div#listmenu ul li ul li ul { 
  left:12em; 
  voice-family: "\"}\""; 
  voice-family:inherit;
 /* left:12em; */
  }

/* and the "be nice to Opera" rule */
html>body div#listmenu ul li ul li ul {
  top:-1px;
  left:12em;
  }

/* 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#listmenu ul li ul {padding-bottom:70px;}
   body div#listmenu ul li ul li ul {padding-bottom:22px;}
   body div#listmenu 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 */
