#mainmenu {
	font-family:arial,sans-serif;
	position:relative;
	top:2px;
	left:0px;
	float:left;
}

#mainmenu ul {
	position:relative;
	padding:0px;
	margin:0px;
	cursor: pointer;             /* gives an pointer cursor */
	list-style-type: none;
	white-space: nowrap;
	width:auto;
	height: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:195px;							/*   width:180px; */
}

#mainmenu ul li {
	display: inline;		/* block -> display horizontal | inline -> display vertical */
	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: #fff;            /* sets the default font colour to white */
	

}

/* 
using the > selector prevents many lesser browsers (and IE - see below) hiding child ULs */
#mainmenu ul li > ul {             
	display: none; 			/* hides child menu blocks - one of the most important declarations */
	position: absolute; 	/* make child blocks hover without leaving space for them */
	top: 21px; 				/* 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 */
	z-index:1;
	border-bottom:1px solid #fff;
}

/* using the > selector prevents many lesser browsers (and IE - see below) hiding child ULs */
#mainmenu ul li > ul li > ul {             
	display: none; 			/* hides child menu blocks - one of the most important declarations */
	position: absolute; 	/* make child blocks hover without leaving space for them */
	top: 0px; 				/* position slightly lower than the parent menu item */
	left: 150px; 			/* 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 */
	z-index:1;
}

/* #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: #0686B8;	/* gives the active menu items a yellow background */
	color: #fff;				/* makes the active menu item text black */
	border-right:2px solid transparant;


}

/* 
must not be combined with the next rule or IE gets confused */
#mainmenu ul ul.CSStoShow { 
	display: block; 		/* specially to go with the className changes in the behaviour file */
}

/* 
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 */
#mainmenu ul li:hover > ul { 
	display: block;			/* makes the child block visible - one of the most important declarations */
}

#mainmenu ul li li {
	display: block;				/* NEEDED! */
	width:170px;
	top:0px;
	padding:0px;
}


/* and some link styles */
#mainmenu ul li a {
	padding-top:6px;
	padding-bottom:6px;
	padding-left:20px;
	padding-right:20px;
	font-size:9pt;
	font-weight:normal;
	color: #fff;
	text-decoration:none;
}
#mainmenu ul li li a {
	display: block;				/* NEEDED! */
	width:150px;
	padding-top:0px;
	padding-bottom:0px;
	padding-left:10px;
	padding-right:10px;
	border-top:1px solid #fff;
	font-size:9pt;
    font-weight:normal;
	text-align:left;
	border-right:2px solid transparant;
}
#mainmenu ul li li a:hover,
#mainmenu ul li ul li a.CSStoHighLink {
	background-color:#d3d3d3;
	color: #0686B8;
    font-weight:bold;
}
#mainmenu ul li li:hover > a {		/* supports links in branch headings - must not be display: block; */
	background-color:#d3d3d3;
	color: #0686B8;
}