td.tabmenu {
	height:27px;
	padding-right:3px;
}
#blue td.tabmenu {
	background-color:#2F5785;
	border-top:1px solid #4d8ed3;
	border-bottom:1px solid #102d4d;
	background-image:url(menublue.gif);
	background-position: top center;
}
#green td.tabmenu {
	background-color:#6C9D42;
	border-top:1px solid #b1db6c;
	border-bottom:1px solid #3c621e;
	background-image:url(menugreen.gif);
	background-position: top center;
}
#grey td.tabmenu {
	background-color:#666666;
	border-top:1px solid #aeaeae;
	border-bottom:1px solid #373737;
	background-image:url(menugrey.gif);
	background-position: top center;
}
#orange td.tabmenu {
	background-color:#E7A22B;
	border-top:1px solid #f6dd46;
	border-bottom:1px solid #c1680e;
	background-image:url(menuorange.gif);
	background-position: top center;
}

#nav, #nav ul { /* all lists */
	padding:0px;
	margin:0px;
	list-style: none;
	line-height:0px;
	z-index:1000;
}
#nav a { /* all top items */
	display: block;
	width:auto;
	text-decoration:none;
	font-size:11px;
	font-style:normal;
	font-weight:bold;
	font-family:Verdana,Arial,Helvetica,sans-serif;
	padding:0px;
	padding-left:13px;
	padding-right:13px;
	line-height:27px;
}
#nav li li a { /* all sub items */
	display: block;
	width:auto;
	text-decoration:none;
	font-size:12px;
	font-style:normal;
	font-weight:normal !important;
	font-family:Verdana,Arial,Helvetica,sans-serif;
	padding-top:2px;
	padding-bottom:2px;
	padding-left:5px;
	padding-right:5px;
	line-height:16px;
	margin:0px;
	border:1px solid #999999;
}
#nav li li a:hover { /* all sub items hover */
	color:#999999 !important;
	background:#FFFFFF;
	padding-top:2px;
	padding-bottom:2px;
	padding-left:5px;
	padding-right:5px;
	line-height:16px;
	margin:0px;
	border:1px solid #FFFFFF;
}
#nav li li a.parent { /* all sub items parent */
	background-image:url(menu_arrow.gif);
	background-repeat:no-repeat;
	background-position:100% 6px;
}
#nav li { /* all top items */
	float: left;
	
	width:auto; /* width needed or else Opera goes nuts */
	list-style: none;
}
#nav li li { /* all sub items */
	float: left;
	width:200px; /* width needed or else Opera goes nuts */
	list-style: none;
	white-space:normal;
	margin:0px;
	padding:0px;
}
#nav li li:hover,
#nav li li.shover { /* all sub items hover */
	float: left;
	width:200px; /* width needed or else Opera goes nuts */
	list-style: none;
	white-space:normal;
	margin:0px;
	padding:0px;
}
#nav li ul { /* second-level lists */
	position: absolute;
	background:#999999;
	width: 200px;  /* don't forget to add the border width! */
	border:1px solid #999999;
	left: -999em; /* using left instead of display to hide menus because display: none isn't read by screen readers */
	margin:0px;
	padding:0px;
}

#nav li ul ul { /* third-and-above-level lists */
	margin: -23px 0 0 200px;
}

#nav li:hover ul ul, #nav li:hover ul ul ul, #nav li.sfhover ul ul, #nav li.sfhover ul ul ul {
	left: -999em;
}

#nav li:hover ul, #nav li li:hover ul, #nav li li li:hover ul, #nav li.sfhover ul, #nav li li.sfhover ul, #nav li li li.sfhover ul { /* lists nested under hovered list items */
	left: auto;
}

/* Tabbed Top level menu */
li.tabmenu {
	height:27px;
	vertical-align:top;
	margin:0 auto;
	padding:0px;
}
li.tabmenu DIV {
	float:left;
	height:27px;
	vertical-align:top;
	margin:0 auto;
	padding:0px;
	line-height:0px;
}
li.tabmenu DIV DIV {
	float:left;
	height:27px;
	vertical-align:top;
	margin:0 auto;
	padding:0px;
	line-height:0px;
}
li.tabmenu DIV DIV DIV {
	cursor:pointer;
	height:27px;
	line-height:27px;
	vertical-align:top;
	margin:0 auto;
	padding:0px;
	white-space:nowrap !important;
	background-image:url(spacer.gif);
	background-repeat:no-repeat;
	background-position:right;
}
li.tabmenu DIV DIV DIV a {
	color:#FFFFFF !important;
	font-size:11px;
	font-style:normal;
	font-weight:bold;
	font-family:Verdana,Arial,Helvetica,sans-serif;
}
/* Selected state */
li.selectedtabmenu DIV,
li.parenttabmenu DIV {
	float:left;
	height:27px;
	vertical-align:top;
	margin:0 auto;
	padding:0px;
	line-height:0px;
}
li.selectedtabmenu DIV DIV,
li.parenttabmenu DIV DIV {
	float:left;
	height:27px;
	vertical-align:top;
	margin:0 auto;
	padding:0px;
	line-height:0px;
}
li.selectedtabmenu DIV DIV DIV,
li.parenttabmenu DIV DIV DIV {
	cursor:pointer;
	height:27px;
	line-height:27px;
	vertical-align:top;
	margin:0 auto;
	padding:0px;
	white-space:nowrap !important;
	background-repeat:no-repeat;
	background-position:top center;
}
#green li.selectedtabmenu DIV DIV DIV,
#green li.parenttabmenu DIV DIV DIV {
	background-image:url(green_menu.gif);
}
#orange li.selectedtabmenu DIV DIV DIV,
#orange li.parenttabmenu DIV DIV DIV {
	background-image:url(orange_menu.gif);
}
#blue li.selectedtabmenu DIV DIV DIV,
#blue li.parenttabmenu DIV DIV DIV {
	background-image:url(blue_menu.gif);
}
#grey li.selectedtabmenu DIV DIV DIV,
#grey li.parenttabmenu DIV DIV DIV {
	background-image:url(grey_menu.gif);
}

li.selectedtabmenu DIV DIV DIV a,
li.parenttabmenu DIV DIV DIV a {
	color:#FFFFFF !important;
	font-size:11px;
	font-style:normal;
	font-weight:bold;
	font-family:Verdana,Arial,Helvetica,sans-serif;
}
/* Hover state */
li.sfhover DIV,
li:hover DIV {
	float:left;
	height:27px;
	vertical-align:top;
	margin:0 auto;
	padding:0px;
	line-height:0px;
	background-image:url(menu_back.gif);
	background-repeat:repeat-x;
}
li.sfhover DIV DIV,
li:hover DIV DIV {
	float:left;
	height:27px;
	vertical-align:top;
	margin:0 auto;
	padding:0px;
	line-height:0px;
}
li.sfhover DIV DIV DIV,
li:hover DIV DIV DIV {
	cursor:pointer;
	height:27px;
	line-height:27px;
	vertical-align:top;
	margin:0 auto;
	padding:0px;
	white-space:nowrap !important;
	background-repeat:no-repeat;
	background-position:top center;
}
#green li.sfhover DIV DIV DIV,
#green li:hover DIV DIV DIV {
	background-image:url(green_menu.gif);
}
#orange li.sfhover DIV DIV DIV,
#orange li:hover DIV DIV DIV {
	background-image:url(orange_menu.gif);
}
#blue li.sfhover DIV DIV DIV,
#blue li:hover DIV DIV DIV {
	background-image:url(blue_menu.gif);
}
#grey li.sfhover DIV DIV DIV,
#grey li:hover DIV DIV DIV {
	background-image:url(grey_menu.gif);
}

li.sfhover DIV DIV DIV a,
li:hover DIV DIV DIV a {
	color:#FFFFFF !important;
	font-size:11px;
	font-style:normal;
	font-weight:bold;
	font-family:Verdana,Arial,Helvetica,sans-serif;
}

/* IE Fix for sticky submenus */
#nav li:hover, #nav li.shover {
	position:static;
} 

/* admin menu */
.TabList {
	margin:5px;
}

