/* Main menu settings */
#mainmenu {
   clear:both;
   float:center;
   margin:0;
   padding:0;
   border-bottom:1px solid #000;
   border-right:1px solid #000;
   width:100%;
   height:43px;
   font-family:Verdana, Geneva, sans-serif;
   font-size:90%;
   z-index:1000;
   position:relative;
   background:yellow;
}

/* Top menu items */
#mainmenu ul {
   margin:0;
   padding:0;
   
   list-style:none;
   float:right;
   position:relative;
   right:50%;
   
}
#mainmenu ul li {
   margin:0 0 0 0px;
   padding:0;
   float:left;
   position:relative;
   left:50%;
   top:0px;
}
#mainmenu ul li a {
   display:block;
   margin:0;
   padding:.6em .5em .4em;
   font-size:1em;
   line-height:1em;
   background:yellow;
   text-decoration:none;
   color:#444;
   font-weight:bold;
   border-right:1px solid #000;
   border-left:1px solid #000;
   
   
}
#mainmenu ul li.active a {
   color:#fff;
   background:#000;
}
#mainmenu ul li a:hover {
   background:#494C00; /* Top menu items background colour when hovering*/
   color:#fff;
   border-bottom:1px solid #03f;
}
#mainmenu ul li:hover a,
#mainmenu ul li.hover a { /* This line is required for IE 6 and below */
   background:#36f; /* Top menu items background colour */
   color:#fff;
   border-bottom:1px solid #03f;
}

/* Submenu items */
#mainmenu ul ul {
   display:none; /* Sub menus are hidden by default */
   position:absolute;
   top:3em;
   left:0;
   right:auto; /*resets the right:50% on the parent ul */
   width:10em; /* width of the drop-down menus */
}
#mainmenu ul ul li {
   left:auto;  /*resets the left:50% on the parent li */
   margin:0; /* Reset the 1px margin from the top menu */
   clear:left;
   width:100%;
}
#mainmenu ul ul li a,
#mainmenu ul li.active li a,
#mainmenu ul li:hover ul li a,
#mainmenu ul li.hover ul li a { /* This line is required for IE 6 and below */
   font-size:.8em;
   font-weight:normal; /* resets the bold set for the top level menu items */
   background:#E4EA01; /* drop down menu background color */
   color:#7B7F00;       /* drop menu text color */
   line-height:1.4em; /* overwrite line-height value from top menu */
   border-bottom:1px solid #000000; /* sub menu item horizontal lines */
}
#mainmenu ul ul li a:hover,
#mainmenu ul li.active ul li a:hover,
#mainmenu ul li:hover ul li a:hover,
#mainmenu ul li.hover ul li a:hover { /* This line is required for IE 6 and below */
   background:#494C00; 
   color:#F1F1E7;  /* Highlighted Hover Text */
}

/* Flip the last submenu so it stays within the page */
#mainmenu ul ul.last {
   left:auto; /* reset left:0; value */
   right:0; /* Set right value instead */
}

/* Make the sub menus appear on hover */
#mainmenu ul li:hover ul,
#mainmenu ul li.hover ul { /* This line is required for IE 6 and below */
   display:block; /* Show the sub menus */
}