/* - - - ADxMenu: BASIC styles - - - */

.menu {
	width: 100%;/* VERY IMPORTANT! Set this to appropriate value, either here on down in the design section */
	margin-left: 20px;
}

.menu, .menu ul {	/* remove all list stylings */
	padding: 0;
	border: 0;
	list-style-type: none;
	display: block;
}
.menu ul {margin: 0;}
.menu li {
	margin: 0;
	padding: 0;
	border: 0;
	display: block;
	position: relative;	/* position each LI, thus creating potential IE.win overlap problem */
	z-index: 5;		/* thus we need to apply explicit z-index here... */
}

.menu li:hover {
	z-index: 10000;	/* ...and here. this makes sure active item is always above anything else in the menu */
	white-space: normal;/* required to resolve IE7 :hover bug (z-index above is ignored if this is not present)
							see http://www.tanfa.co.uk/css/articles/pure-css-popups-bug.asp for other stuff that work */
}

.menu ul {
	visibility: hidden;	/* initially hide all submenus. */
	position: absolute;
	z-index: 10;
	left: 0;	/* while hidden, always keep them at the top left corner, */
	top: 0;		/* 		to avoid scrollbars as much as possible */
}

.menu li:hover>ul {
	visibility: visible;	/* display submenu them on hover */
	left: 100%;	/* and move them to the right of the item */
}

/* -- float.clear --
	force containment of floated LIs inside of UL */
.menu:after, .menu ul:after {
	content: ".";
	height: 0;
	display: block;
	visibility: hidden;
	overflow: hidden;
	clear: both;
}
.menu, .menu ul {	/* IE7 float clear: */
	min-height: 0;
}
/* -- float.clear.END --  */

/* sticky submenu: it should not disappear when your mouse moves a bit outside the submenu
	YOU SHOULD NOT STYLE the background of the ".menu UL" or this feature may not work properly!
	if you do it, make sure you 110% know what you do */
.menu ul {
	background-image: url(/images/clear.gif);	/* required for sticky to work in IE6 and IE7 - due to their (different) hover bugs */
	padding: 30px 30px 30px 10px;
	margin: -30px 0 0 -10px;
	/*background: #f00;*/	/* uncomment this if you want to see the "safe" area.
								you can also use to adjust the safe area to your requirement */
}


/* xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx */
/* xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx */
/* - - - ADxMenu: DESIGN styles - - - */
/* 		designers start here...       */
/* xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx */
.menu, 
.menu li,
.menu ul li {
	color: #000;
	font-family:Arial, sans-serif;
	font-size: 12px;
}

.menu {
		width: 145px;
		margin-left: 8px;
		margin-top: 5px;
		background-color: #F3F5F7;
}

.menu ul {
		width: 145px;
}

/* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
	The LINKS (:visited and :link)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */
.menu a:link, .menu a:visited 
/*top level*/ {
	text-decoration: none;
	color: #000;
	font-size: 12px;
	padding: 0.4em 0em 0.4em 6px;
	display: block;
	background:#F3F5F7 url(/images/sm_redcross.gif) no-repeat 0px 7px;
	padding-left: 15px;
}

.menu .menu_flyout a:link, .menu .menu_flyout a:visited 
/* top level that has sub menu*/ { 
	background:#F3F5F7 url(/images/sm_redcross.gif) no-repeat 0px 7px;
	padding-left: 15px;
}

.menu li.menu_flyout li a:link, .menu li.menu_flyout li a:visited 
/*sub menu */ { 
	padding: 0.4em 0em 0.4em 6px;
	background-image: none;
	background-color: #F3F5F7;
}

.menu li li.menu_flyout a:link, .menu li li.menu_flyout a:visited 
/* sub level that has sub-sub menu*/
{}

.menu li li.menu_flyout li a:link, .menu li li.menu_flyout li a:visited
/* sub-sub menu */ 
{}

/* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
	The LINKS (:hover, :active and :focus)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */

.menu a:hover, .menu li:hover>a,
.menu a:active, .menu a:focus 
/*top level*/ 
{ background-color:#E5E5E5; }

.menu .menu_flyout a:hover, .menu  li.menu_flyout:hover>a,
.menu .menu_flyout a:active, .menu .menu_flyout a:focus
/*top level that has sub menu*/ 
{ background-color: #E5E5E5;} 

.menu li.menu_flyout li a:hover, .menu li.menu_flyout li:hover>a,
.menu li.menu_flyout li a:active, .menu li.menu_flyout li a:focus,/*sub menu*/
.menu li li.menu_flyout li a:hover, .menu li li.menu_flyout li:hover>a,
.menu li li.menu_flyout li a:active, .menu li li.menu_flyout li a:focus 
/*sub-sub menu*/ 
{ background-color: #E5E5E5;}

/* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
	END The LINKS (:link, :visited, :hover, :active and :focus)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */

/* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
	the LI stuff
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */

.menu li {	/* no borders around top level items */
	border: none;
}

.menu li li {	/* create borders around each sub level item */
	border: 1px solid #4D515A;
}

.menu>li + li, .menu ul>li + li {	/* and remove the top border on all but first item in the list */
	border-top: 0;
}

.menu li:hover>ul {	/* inset submenus, to show off overlapping */
	top: 0px;
	left: 98%;
	z-index: 100;
}

/* special colouring for "Main menu:", and for "xx submenu" items in ADxMenu
	placed here to clarify the terminology I use when referencing submenus in posts */
.menu>li:first-child>a:link,.menu>li:first-child>a:visited, 
.menu li + li + li li:first-child>a:link, .menu li + li + li li:first-child>a:visited {
}
