/* Main menu settings */
#dd_menu {
	clear:both;
	float:left;
	margin:0;
	padding:0;
	border-bottom:1px solid #000; /* black line below menu */
	width:100%;
	font-family:Verdana, Geneva, sans-serif; /* Menu font */
	font-size:90%; /* Menu text size */
	z-index:1000; /* This makes the dropdown menus appear above the page content below */
	position:relative;
}

/* Top menu items */
#dd_menu ul {
	margin:0;
	padding:0;
	list-style:none;
	float:left;
	position:relative;
}

#dd_menu ul li {
	margin:0 0 0 1px;
	padding:0;
	float:left;
	position:relative;
	top:1px;
}

#dd_menu ul li a {
	display:block;
	margin:0;
	padding:6px 6px 6px;
	font-size:12px;
	line-height:12px;
	background:#ddd; /* Inactive main menu background color */
	color:#444; /* Inactive main menu text color */
	text-decoration:none;
	font-weight:bold;
	border-bottom:1px solid #444; /* To match border across menu bottom */
}

/* For the active main menu */
#dd_menu ul li.active a {
	color:#fff; /* Active main menu color */
	background:#000; /* Active background color */
}

#dd_menu ul li.bactive a {
	color:#fff; /* Background active main menu color */
	background:#654; /* Background active main menu background color */
}

#dd_menu ul li a:hover {
	background:#000; /* Top menu items background color */
	color:#fff;
	border-bottom:1px solid #000;
}

#dd_menu ul li:hover a,
#dd_menu ul li.hover a { /* This line is required for IE 6 and below */
	background:#000; /* Top menu items background color */
	color:#fff;
	border-bottom:1px solid #000;
}

/* Submenu items */
#dd_menu ul ul {
	display:none; /* Sub menus are hidden by default */
	position:absolute;
	top:24px; /* offset main menu height */
	left:0;
	float:left;
	right:auto; /*resets the right:50% on the parent ul */
	width:150px; /* width of the drop-down menus */
}

#dd_menu ul ul li {
	left:auto;  /*resets the left:50% on the parent li */
	margin:0; /* Reset the 1px margin from the top menu */
	clear:left;
	float:left;
	width:100%;
}

#dd_menu ul li.bactive ul li.sactive a {
	color:#fff; /* Active submenu text color */
	background:#000; /* Active submenu background color */
}

#dd_menu ul li.bactive ul li.sbactive a {
	color:#fff;
	background:#999;
}

#dd_menu ul ul li a,
#dd_menu ul li.active li a,
#dd_menu ul li.bactive li a, 
#dd_menu ul li:hover ul li a,
#dd_menu ul li.hover ul li a { /* This line is required for IE 6 and below */
	font-size:75%;
	font-weight:normal; /* resets the bold set for the top level menu items */
	background:#654;
	color:#fff;
	line-height:15px; /* overwrite line-height value from top menu */
	border-bottom:1px solid #ddd; /* sub menu item horizontal lines */
	float:left;
	width:100%;
}

#dd_menu ul ul li a:hover,
#dd_menu ul li.active ul li a:hover,
#dd_menu ul li.bactive ul li a:hover, 
#dd_menu ul li:hover ul li a:hover,
#dd_menu ul li.hover ul li a:hover { /* This line is required for IE 6 and below */
	background:#000; /* Sub menu items background color */
	color:#fff;
	float:left;
}

/* Flip the last submenu so it stays within the page */
#dd_menu ul ul.last {
	left:auto; /* reset left:0; value */
	right:0; /* Set right value instead */
}
#dd_menu ul ul.last li {
	/*float:right;*/
	position:relative;
	right:12px; /* same as main menu font size */
}

/* Make the sub menus appear on hover */
#dd_menu ul li:hover ul,
#dd_menu ul li.hover ul { /* This line is required for IE 6 and below */
	display:block; /* Show the sub menus */
}

