.mainmenu {width:770px; height:25px; font-size:0.85em; position:relative; z-index: 100; background-color: #78777d;}
/* hack to correct IE5.5 faulty box model */
* html .mainmenu {width:770px; w\idth:770px;}
/* remove all the bullets, borders and padding from the default list styling */
.mainmenu ul {padding:0;margin:0;list-style-type:none;}
.mainmenu ul ul {width:128px;}
* html .mainmenu ul ul {width:128px;}

/* float the list to make it horizontal and a relative positon so that you can control the dropdown menu positon */
.mainmenu li {float:left;width:128px;position:relative;}
* html .mainmenu li {width:128px;}
/* style the links for the top level */
.mainmenu a, .mainmenu a:visited {
	display:block;
	font-size:12px;
	text-decoration:none;
	color:#fff;
	width:128px;
	height:25px;
	text-align: center;
	line-height:22px;
	background-color: #78777d;
	font-weight: bold;
}
/* a hack so that IE5.5 faulty box model is corrected */
* html .mainmenu a, * html .mainmenu a:visited {width:128px;}

.mainmenu ul ul a, .mainmenu ul ul a:visited { text-align: left; }

/* style the second level background */
.mainmenu ul ul a.drop, .mainmenu ul ul a.drop:visited {background:#d4d8bd url(/images/drop.gif) bottom right no-repeat;}
/* style the second level hover */
.mainmenu ul ul a.drop:hover{background:#c9ba65 url(/images/drop.gif) bottom right no-repeat;}
.mainmenu ul ul :hover > a.drop {background:#c9ba65 url(/images/drop.gif) bottom right no-repeat;}
/* style the third level background */
.mainmenu ul ul ul a, .mainmenu ul ul ul a:visited {background:#e2dfa8;}
/* style the third level hover */
.mainmenu ul ul ul a:hover {background:#b2ab9b;}


/* hide the sub levels and give them a positon absolute so that they take up no room */
.mainmenu ul ul {visibility:hidden;position:absolute;height:0;top:25px;left:0; width:128px;border-top:1px solid #fff;}
/* another hack for IE5.5 */
* html .mainmenu ul ul {top:24px;t\op:25px;}

/* position the third level flyout menu */
.mainmenu ul ul ul{left:128px; top:-1px; width:128px;}

/* position the third level flyout menu for a left flyout */
.mainmenu ul ul ul.left {left:-128px;}

/* style the table so that it takes no part in the layout - required for IE to work */
.mainmenu table {position:absolute; top:0; left:0; border-collapse:collapse;;}

/* style the second level links */
.mainmenu ul ul a, .mainmenu ul ul a:visited {background:#d4d8bd; color:#000; height:auto; line-height:1em; padding:5px 10px; width:108px;border-width:0 1px 1px 1px; font-weight: normal; font-size: 11px;}
/* yet another hack for IE5.5 */
* html .mainmenu ul ul a, * html .mainmenu ul ul a:visited {width:108px;w\idth:108px;}

/* style the top level hover */
.mainmenu a:hover, .mainmenu ul ul a:hover{color:#fff; background:#949e7c;}
.mainmenu :hover > a, .mainmenu ul ul :hover > a {color:#fff;background:#949e7c;}

/* make the second level visible when hover on first level list OR link */
.mainmenu ul li:hover ul,
.mainmenu ul a:hover ul{visibility:visible; }
/* keep the third level hidden when you hover on first level list OR link */
.mainmenu ul :hover ul ul{visibility:hidden;}
/* make the third level visible when you hover over second level list OR link */
.mainmenu ul :hover ul :hover ul{ visibility:visible;}
