/* Main menu settings */
#topnav {
	clear:both;
	float:left;
	margin: 2px 0;
	padding:0;
 	border-bottom:2px solid #63ba5a; /* black line below menu */
	width:100%;
	font-family:Verdana, Geneva, sans-serif; /* Menu font */
	font-size:14px; /* Menu text size */
	z-index:1000; /* This makes the dropdown menus appear above the page content below */
	position:relative;
	background:#63ba5a;
}

/* Top menu items */
#topnav ul {
	margin:0;
	padding:0;
	list-style:none;
	float:right;
	position:relative;
	right:50%;
}
#topnav ul li {
	margin:0 0 0 3px;
	padding:0;
	float:left;
	position:relative;
	left:50%;
	top:1px;
}
#topnav ul li:first-child {border-left: 1px solid #fff;}
#topnav ul li a {
	display:block;
	margin:0;
	padding:.6em .9em .4em;
	font-size:12px;
	line-height:1em;
	text-decoration:none;
	background:#63ba5a;
	color:#fff;
	font-weight:bold;
	border-right: 1px solid #fff;
	border-bottom:1px solid #63ba5a; 
}
#topnav ul li.active a {
	color:#fff;
	background:#000;
}
#topnav ul li a:hover {
	background:#8B090F; /* Top menu items background colour */
	color:#fff;
/*	border-bottom:1px solid #03f; */
}
#topnav ul li:hover a,
#topnav ul li.hover a { /* This line is required for IE 6 and below */
	background:#127407; /* Top menu items background colour */
	color:#fff;
/*	border-bottom:1px solid #3f9e8d; */
}

/* Submenu items */
#topnav ul ul {
	display:none; /* Sub menus are hiden by default */
	position:absolute;
	top:2em;
	left:0;
	right:auto; /*resets the right:50% on the parent ul */
	width:12em; /* width of the drop-down menus */
}
#topnav 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;
	width:100%;
}
#topnav ul ul li a,
#topnav ul li.active li a,
#topnav ul li:hover ul li a,
#topnav ul li.hover ul li a { /* This line is required for IE 6 and below */
	font-size:11px;
	font-weight:normal; /* resets the bold set for the top level menu items */
	background:#eee;
	color:#444;
	line-height:1.4em; /* overwrite line-height value from top menu */
	border-bottom:1px solid #ddd; /* sub menu item horizontal lines */
}
#topnav ul ul li a:hover,
#topnav ul li.active ul li a:hover,
#topnav ul li:hover ul li a:hover,
#topnav ul li.hover ul li a:hover { /* This line is required for IE 6 and below */
	background:#060; /* Sub menu items background colour */
	color:#fff;
}

/* Flip the last submenu so it stays within the page */
#topnav ul ul.last {
	left:auto; /* reset left:0; value */
	right:0; /* Set right value instead */
}

/* Make the sub menus appear on hover */
#topnav ul li:hover ul,
#topnav ul li.hover ul { /* This line is required for IE 6 and below */
	display:block; /* Show the sub menus */
}
