#mainmenu
{
	color: White;
	font-family: Tahoma,Verdana;
	font-weight: bold;
	font-size: .8em;
	letter-spacing: .06em;
	text-align: left;	
}

/* 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: #330066;*/     /* the default background color within the main menu container */
    color: White;                /* 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! */
	float: left;
	width: 100%;
	padding: 0px 0px 0px 0px;
				
}
#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 */
    /*border-top: black solid 1px;*/    /* border for each of the main menu items */
    /*border-bottom: black solid 1px;*/    /* border for each of the main menu items */
    /*background-color: #330066;*/     /* main menu item background color */
    color: White;                /* main menu item font color (not links) */
    margin: 0px;                /* spacing between main menu items */
    padding: 2px 1em 2px 1em;               /* padding within main menu items */

}

#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: 0px;                /* 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;
    background-color: #66A2CC;     /* sub-menu default background color */ /*[!Menu.BackgroundColor!]*/
    border: #ffffff solid 1px;     /* the border around the sub-menu list */
    color: White;                /* sub-menu default font color (not links) */
    z-index: 900;                /* want to be sure this is above the rest of the menu */
}

#dmenu ul li{                   /* second-level or greater menu element links */
    background-color: Transparent;     /* default background color for sub-menu container */
    color: White;                /* default font color (not links) for sub-menu container */
    border: none;               /* sub-menu item border settings */
    margin: 0px;                /* spacing between sub-menu containers */
    padding: 3px;               /* This is for padding between menu items in the drop-downs */
    white-space: nowrap;
    display: block;
    clear:both;
    position:relative;
    z-index: 910;
}

#dmenu li a:visited
{
	color: White;/*White;*/ /*[!Menu.LinkColor!]*/
}
#dmenu li ul a:visited			/* For sub-menu link color */
{
	color: White; /*White;*/ /*[!Menu.LinkColor!]*/
}


#dmenu li a{                    /* top-level menu element links */
    text-align: center;         /* text alignment in main menu item links */
    display: block;
    color: White; /*[!Menu.LinkColor!]*/
    text-decoration: none;
}

#dmenu li ul a{                    /* top-level menu element links */
    text-align: center;         /* text alignment in main menu item links */
    display: block;
    color: White; /*[!Menu.LinkColor!]*/
    text-decoration: none;

}

#dmenu ul a {                   /* all the other level menu link elements */
    padding: 3px;
    margin: 0px;
    display: block;

}

#dmenu a:hover,                 /* top-level hovering properties */
#dmenu li:hover{
    display: block;
    /*background-color: #3E77AF;*/
    color: #2E526B; /*#ffcc00;*/ /*[!Menu.LinkOnOverColor!]*/
    text-decoration: none;
}

#dmenu ul li:hover,             /* higher level hovering properties */
#dmenu ul li a:hover
{
    display: block;
    /*background-color: #330066;*/
    color: #2E526B;/*#ffcc00;*/ /*[!Menu.LinkOnOverColor!]*/
    text-decoration: none;
}

#dmenu ul ul
{
	background-color: #66A2CC; /*[!Menu.BackgroundColor!]*/
	border: 1px solid #ffffff;             /* higher-level list containers */
    display: none;              /* don't display by default */
    position: absolute;
    margin-left: 90%;         /* this should be the width of #dmenu ul li */
    top: 2px;             /* this will push the sub-menu up to the level of it's parent */
    z-index: 950;
}
*html #dmenu ul ul{border: 1px solid #ffffff}
/* only non-MSIE browsers use this */
#dmenu ul li>ul,
#dmenu ul ul li>ul{
    margin-top: 0em;           /* 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;
}

#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;
}

li>ul {
    top: auto;
    left: auto;
}

