/* This is the part for the CSS menu - these settings are for a horizontal menu */
#dmenu {
/* menu list container */    
    list-style-type: none;
/* disable the display of the list item bullets */    
    margin: 0px;
/* space around the list container */    
    padding: 0px;
/* space within the list container */    
    position: static;
/* need this so that the z-index stuff works correctly */    
    background-color: #fff;
/* the default background color within the main menu container */    
    color: red;
    border:0 solid green;
/* the default font color (not links) within the main menu container */    
    z-index: 20;
/* push the menu up in the layer order a bit so it isn't hidden behind anything */    
/* Browser plug-ins like Flash or Quicktime may not allow you to overlap then with this menu! */
}
#dmenu li {
/* top-level menu element */    
    list-style-type: none;
/* disable the display of the list item bullets */    
    float: left;
/* this is to allow for the horizontal main menu */    

/* The menu cell border for chapters */
    border-right: #CE7810 solid 1px;
    border-left: #E89120 solid 1px;
    height:31px;
/* border for each of the main menu items */    
    /*background-color: #ffc;*/
/* main menu item background color */    
    color: #000;
/* main menu item font color (not links) */    
    margin: 0px;
/* spacing between main menu items */    
    padding: 0;
/* padding within main menu items */    
    width: 82px;
/* the width of each main menu item */    
    display: block;
}



#dmenu ul {
/* third-level (or greater) menu element list elements */    
    position: absolute;
/* this is so that it doesn't push that page content around on hover */    
    margin-top: 5px;
/* space around the list container */    
    padding: 0px;
/* space within the list container */    
    list-style-type: none;
/* disable the display of the list item bullets */    
    display: none;
    width: 150px;
/* should be the same as #dmenu li width */    
    background-color: white;
/* sub-menu default background color */    
    border-top:1px solid #aaaaaa;
    border-left:1px solid #aaaaaa;
    border-right:1px solid #888888;
    border-bottom:1px solid #888888;
/* the border around the sub-menu list */    
    color: #000;
    font-weight:bold;
    font-family:arial, helvetica, sans-serif;
/* sub-menu default font color (not links) */    
    z-index: 99;
/* want to be sure this is above the rest of the menu */    
}
#dmenu ul li {
/* second-level or greater menu element links */    
    background-color: white;
/* default background color for sub-menu container */    
    color: #000;
/* default font color (not links) for sub-menu container */    
    border: none;
/* sub-menu item border settings */    
    margin: 0px;
/* spacing between sub-menu containers */    
    padding: 0;
/* This is for padding between menu items in the drop-downs */    
    width: 150px;   /*114px;*/
/* (padding*2) must be subtracted from #dmenu li width and set for this one, or borders won't display properly. */

    border-bottom:1px solid #cccccc;
}

#dmenu ul li:last-child {
    border-bottom:0;

}
#dmenu ul li a{
    width:140px;
    text-align:left;
    /*height:10px;*/
    vertical-align:bottom;
}

#dmenu li a {
/* top-level menu element links */    
    text-align: center;
    font-family:arial, helvetica, sans-serif;
    padding:0;
    padding-top:8px;
/* text alignment in main menu item links */    
    /*width: 30px;*/
/* set this to #dmenu ul width */    
    display: block;
}
#dmenu ul a {
/* all the other level menu link elements */    
    padding: 0;
    margin: 0px;
    padding-left:10px;
    padding-top:7px;
    padding-bottom:7px;
/*    width: 140px;*/
/* (padding*2) must be subtracted from #dmenu ul li width and set for this one, or borders won't display properly. */    
    display: block;
}

/* top-level hovering properties */#dmenu a:hover,
#dmenu li:hover {
    display: block;
    background-image:url('/img/menu_hover.jpg');
    color: #F47A00;
    cursor:pointer;
}

#dmenu li ul li:hover a {
    /*color: #F47A00;*/
    
}

#dmenu li ul li:hover > ul li{
    color: #000000;
}

/* higher level hovering properties */#dmenu ul li:hover,
#dmenu ul li a:hover {
    display: block;
    /*width: 114px;*/
/* should be set to the same value as #dmenu ul li width */
    background-image:none;
    background-color: #E2E9EF;
    text-align:left;
    color: #F47A00;
    /*height:31px;*/
}
#dmenu ul ul {
/* higher-level list containers */    
    display: none;
/* don't display by default */    
    position: absolute;
    margin-left: 114px; /*114px*/
/* this should be the width of #dmenu ul li */    
    margin-top: -2em; /*-2em;*/
/* this will push the sub-menu up to the level of it's parent */    
}
/* only non-MSIE browsers use this */
#dmenu ul li>ul,
#dmenu ul ul li>ul {
    margin-top: -2em; /*-2em;*/
/* should be set to the same as #dmenu ul ul margin-top */    
}
/* additional sub-menu levels in the next 2 blocks. (For up to 5 levels of drop menus) */
#dmenu li:hover ul ul,
#dmenu li:hover ul ul ul,
#dmenu li:hover ul ul ul ul,
#dmenu li:hover ul ul ul ul ul {
    display:none;
    background-image:none;
}
#dmenu li:hover ul,
#dmenu ul li:hover ul,
#dmenu ul ul li:hover ul,
#dmenu ul ul ul li:hover ul,
#dmenu ul ul ul ul li:hover ul {
    display:block;
/*    background-color:gray;*/
}
li>ul {
    top: auto;
    left: auto;
}
.content {
/* This is used for the content that will appear below the menu */    
    clear: left;
}
