#mainmenu{text-align:center;}
/* common styling */
/* set up the overall width of the menu div, the font and the margins */
/* remove the bullets and set the margin and padding to zero for the unordered list */
#mainmenu ul 
{
    clear:both;
margin:40px 0 0;
padding:0 0 0 5px;
list-style-type: none;
height:35px;
width:100%;
}
#mainmenu ul li ul {
margin:0;
padding:0;
list-style-type: none;
background: transparent;
border:0;
}
/* float the list so that the items are in a line and their position relative so that the drop down list will appear in the right place underneath each list item */
#mainmenu ul li {
float:left; width:120px;
position: relative;
}
#mainmenu ul li a, #mainmenu ul li a:visited {
border-width:1px 1px 0 0;
color:#FFFFFF;
display:block;
height:29px;
line-height:20px;
text-decoration:none;
}
/* make the dropdown ul invisible */
#mainmenu ul li ul {
display: none;
}

/*---------------------------------------------------*/
/* common styling */
/* set up the overall width of the menu div, the font and the margins */

/* float the list so that the items are in a line and their position relative so that the drop down list will appear in the right place underneath each list item */
#mainmenu ul li {
float:left; 
position: relative;
}
/* style the links to be 104px wide by 30px high with a top and right border 1px solid white. Set the background color and the font size. */
#mainmenu ul li a, #mainmenu ul li a:visited {
display: block; 
text-align: left; 
text-decoration: none;
padding-top: 4px;
padding-left:2px;
padding-right:5px;
height: 29px;
color: #FFF;
border-width: 1px 1px 0 0; 
line-height: 20px;
margin-top: 3px;

}
/* make the dropdown ul invisible */
#mainmenu ul li ul {
display: none;
}

/* specific to non IE browsers */
/* set the background and foreground color of the main menu li on hover */
#mainmenu ul li:hover a {
color:#021828; 
background:#FFF;
}
/* make the sub menu ul visible and position it beneath the main menu list item */
#mainmenu ul li:hover ul {
display:block; 
position:absolute; 
top:28px;
left:0px;
width: 160px;
}
/* style the background and foreground color of the submenu links */
#mainmenu ul li:hover ul li a {
	display:block;
	color:#FFF;
	padding-left:3px;
	width: 160px;
	margin-bottom:-3px;
	background-color: #021828;
}
/* style the background and forground colors of the links on hover */
#mainmenu ul li:hover ul li a:hover {
	color:#021828;
	background-color: #F3F3F3;
}