#mainmenu {
	position:relative;
	margin-top:4px;
	float:left;
	z-index:100;
	font-weight: normal;
}

#mainmenu ul {
/* 	position:relative; */
	padding:0px;
	margin:0px;
	cursor: pointer;             /* gives a pointer cursor */
	list-style-type: none;
	white-space: nowrap;
	width:auto;
}

#mainmenu ul ul {
  padding: 0px;           /* stops the usual indent from ul */
  margin: 0px;            /* Opera 7 final's margin and margin-box model cause problems */
  width:170px;
}

#mainmenu ul li {
  display: inline;             /* display horizontal */
  list-style-type: none;       /* removes the bullet points */
  margin: 0px;                 /* Opera 7 puts large spacings between li elements */
  position: relative;          /* makes the menu blocks be positioned relative to their parent menu item
                                  the lack of offset makes these appear normal, but it will make a difference
                                  to the absolutely positioned child blocks */
  color: #ffffff;                 /* sets the default font colour to white */
}

#mainmenu ul li > ul {             /* using the > selector prevents many lesser browsers (and IE - see below) hiding child ULs */
  display: none;               /* hides child menu blocks - one of the most important declarations */
  position: absolute;          /* make child blocks hover without leaving space for them */
  top: 16px;                    /* position slightly lower than the parent menu item */
  left: 0px;                  /* this must not be more than the width of the parent block, or the mouse will
                                  have to move off the element to move between blocks, and the menu will close */
  border-top:1px solid #999;
  width:170px;
}
#mainmenu ul li > ul li > ul {             /* using the > selector prevents many lesser browsers (and IE - see below) hiding child ULs */
  display: none;               /* hides child menu blocks - one of the most important declarations */
  position: absolute;          /* make child blocks hover without leaving space for them */
  top: 2px;                    /* position slightly lower than the parent menu item */
  left: 168px;                  /* this must not be more than the width of the parent block, or the mouse will
                                  have to move off the element to move between blocks, and the menu will close */
  width:170px;
}
/* #mainmenu ul li:hover, #mainmenu ul li:hover a, #mainmenu ul li.CSStoHighlight, #mainmenu ul li.CSStoHighlight a { */
#mainmenu ul li:hover a, #mainmenu ul li.CSStoHighlight a {
  background-color: #666666;      /* gives the active menu items a yellow background */
  color: #ffffff;                 /* makes the active menu item text black  (dark blue: #2A3588) */
}
#mainmenu ul ul.CSStoShow {        /* must not be combined with the next rule or IE gets confused */
  display: block;				/* specially to go with the className changes in the behaviour file */
}
#mainmenu ul li:hover > ul {       /* one of the most important declarations - the browser must detect hovering over arbitrary elements
                                  the > targets only the child ul, not any child uls of that child ul */
  display: block;              /* makes the child block visible - one of the most important declarations */
}


#mainmenu ul li li {
	display: block;				/* NEEDED! */
/* 	top:0px; */
	padding:0px;
	border-left: 1px solid #aaa;
	border-right: 1px solid #aaa;
	border-bottom: 1px solid #aaa;
}


/* and some link styles */
#mainmenu ul li a {
	font-family: verdana, sans serif;
	padding-top:3px;
	padding-bottom:4px;
	padding-left:7px;
	padding-right:7px;
	font-size:12px;
	color: #ffffff;
	text-decoration:none;
	font-weight: normal;
}
#mainmenu ul li li a {
	display: block;				/* NEEDED! */
	padding:4px;
	font-size:12px;
    font-weight:normal;
}
#mainmenu ul li li a:hover,
#mainmenu ul li ul li a.CSStoHighLink {
	background-color:#a7a7a7;
	color: #fff;
}
#mainmenu ul li li:hover > a {		/* supports links in branch headings - must not be display: block; */
	background-color:#a7a7a7;
	color: #fff;
}

#mainmenu .noarrow > a {
	background:none;
}