/* ----------------- wrapper div ----------------- */ 
#dynamicmenu {
	position:relative;
	margin:0;
	padding:0;
	width:700px;
	height:30px;
	text-align:right;
	float:right;
	z-index:5;
}





/* ----------------- main links ----------------- */ 
#dynamicmenu ul {
	font-size:14px;
	line-height:30px;
	font-weight:normal;
	color:#fff;
	text-decoration:none;
	text-align:center;
	margin: 0;
	padding: 0;
	float: right;
}
#dynamicmenu ul li {
	margin: 0;
	padding: 0 0 0 1px;
	display: inline-block;
	float: left;	/* move all main list items into one row, by floating them */
	position: relative;	/* position each LI, thus creating potential IE.win overlap problem */
	z-index: 5;		/* thus we need to apply explicit z-index here... */
	background:url(../images/bg-nav-border.gif) 0 0 no-repeat;
}

#dynamicmenu ul li:hover {
	z-index: 5;	/* ...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 */
	margin-top:0;
	padding-top:0;
}
#dynamicmenu ul a {
	padding:0 20px;
	text-decoration: none;
	color: #fff;
	display: inline-block;
	position: relative;
	font-weight:normal;
}
#dynamicmenu ul li a:hover, #dynamicmenu ul li:hover>a {
	color:#fff; 
	background:url(../images/bg-nav-tile.gif) 0 0 repeat-x;
	display: inline-block;
	line-height:30px;
}





/* ----------------- level 2 links ----------------- */ 
#dynamicmenu ul ul {
	visibility: hidden;	/* initially hide all submenus. */
	position: absolute;
	z-index: 5;
	left: 0;	/* while hidden, always keep them at the top left corner, */
	top: 0;		/* 		to avoid scrollbars as much as possible */
}
#dynamicmenu ul ul {
	width:140px;
	position:absolute;
	border-top:1px solid #fff;
	border-right:1px solid #aaa;
	border-bottom:1px solid #aaa;
	border-left:1px solid #aaa;
	font:normal 13px Helvetica;
	line-height:18px;
	margin:0;
	padding:10px 0 0 !important;
	display: block;
	text-align:left;
	background:#eee url(../images/bg-nav-flyout.gif) 0 0 repeat-x;
	z-index:5;
}
#dynamicmenu ul li:hover>ul {
	visibility: visible;	/* display submenu them on hover */
	top: 100%;	/* 1st level go below their parent item */
	margin:0;
	padding:0;
}

#dynamicmenu ul ul li {
	font:normal 13px Helvetica;
	line-height:15px;
	color:#fff;
	text-decoration:none;
	text-align:left;
	background:none;
	margin:0;
	padding:0;
}
#dynamicmenu ul li li {
	float: none;/* items of the nested menus are kept on separate lines */
}
#dynamicmenu ul li li a {	/* create borders around each item */
	width:130px;
	display:block; 
	color:#333;
	text-indent:0;
	margin:0;
	padding:5px;
	font-size:13px;
	line-height:15px;
	text-align:left;
}
#dynamicmenu ul ul a:hover, #dynamicmenu ul ul li:hover>a {
	background:#327ebe;
	color:#fff;
	font-size:13px;
	line-height:15px;
	margin:0;
}






/* ----------------- level 3 links ----------------- */ 
#dynamicmenu ul li li:hover>ul {	/* inset 2nd+ submenus, to show off overlapping *//*
	top: 5px;
	left: 90%;*/
	display:none;
	visibility:hidden;
}








/* -- float.clear -- force containment of floated LIs inside of UL */
#dynamicmenu ul:after, #dynamicmenu ul ul:after {
	content: ".";
	height: 0;
	display: block;
	visibility: hidden;
	overflow: hidden;
	clear: both;
}
#dynamicmenu ul, #dynamicmenu ul ul {	/* IE7 float clear: */
	min-height: 0;
}
/* -- float.clear.END --  */