/* Defines the beginnig of the menu system */
#nav
{
	padding: 0;
	margin: 0;
	list-style: none;
	height: 38px;
	background: #5078A8;
	position: relative;
	z-index:500;
	font-family: arial, verdana, sans-serif;
}

/* Defines top-level menu items */
#nav li.top
{
	display: block;
	float: left;
	height: 38px;
}
#nav li a.top_link
{
	display: block;
	float: left;
	height: 35px;
	line-height: 33px;
	color: white;
	text-decoration: none;
	font-size: 15px;
	font-weight: bold;
	padding: 0 0 0 12px;
	cursor: pointer;
	background: #5078A8;
	}
#nav li a.top_link span
{
	float:left;
	display:block;
	padding:0 24px 0 12px;
	height:35px;
	background: #5078A8
}

/* Defines the style of the drop-down box menus*/
#nav li:hover
{
	position:relative;
	z-index:200;
}

#nav li:hover ul.sub
{
	left: 15px;
	top: 38px;
	background: #A2B8D2;
	padding: 0px;
	border: 1px solid black;
	white-space: nowrap;
	height: auto;
	z-index: 300;
}
#nav li:hover ul.sub li
{
	display: block;
	position: relative;
	border-bottom: solid black 1px;
}
#nav li:hover ul.sub li a
{
	display: block;
	font-size: 16px;
	font-weight: normal;
	height: 30px;
	color: white;
	text-decoration: none;
	padding-left: 15px;
	/*
	  This  is requried to make the text center vertically
	  
	  NOTE: must always set line-height to whatever the container is.
	*/
	line-height: 30px;
	vertical-align: middle;
}
#nav li:hover ul.sub li a:hover 
{
	background: #5078A8;
	color:#fff;
	border-color:#fff;
}

/* Hides menus on the initial state. DONT EVER MESS WITH THIS */
#nav ul, 
#nav li:hover ul ul,
#nav li:hover li:hover ul ul,
#nav li:hover li:hover li:hover ul ul,
#nav li:hover li:hover li:hover li:hover ul ul
{
	position: absolute;
	left: -9999px;
	top: -9999px;
	width: 0;
	height: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	}
