ul {
    font-family: Verdana;
    font-size: 12px;
    font-weight: normal;
    text-decoration: none;
    color: black;
}

#topleft {
    display: block;
    position: absolute;
    top: 0;
    left: 300;
    height: 31px;
}

#topright {
    display: block;
    position: absolute;
    top: 0;
    left: 20;
    height: 31px;
}

#maindiv {
    display: block;
    position: relative;
    top: 0;
    right: 0;
    background-image: url(bg.png);
    height: 31px;
}

/* vertical menu bar */
ul.mbv {
	margin: 0;
	padding: 0;
	list-style: none;
	width: 9em;
}
ul.mbv li {
	padding: 0;
	margin: 0;
	border-bottom: 1px solid #E0E8EF; /* fixes gap problem in IE */
	position: relative;
	z-index: 1;
}
ul.mbv ul {
	margin: 0 0 0 2px;
	padding: 0;
	list-style: none;
	position: absolute;
	top: 0; /* if using borders, -1 to align top borders */
	left: 11em;
	width: 11em;
	background: #E0E8EF;
	z-index: 2;
}
/* separator to mark end of menu group */
ul.mbv li.end {
	border-bottom: 1px dashed black /*#c8d7e6*/;
}

ul.mbv li a:link,
ul.mbv li a:visited,
ul.mbv li a:hover,
ul.mbv li a:active {
	display: block;
	padding: .2em .5em;
	width: 10em;
	text-decoration: none;
	background: #E0E8EF;
	color: #000;
}
ul.mbv li a:hover,
ul.mbv li a:active {
	background: #c8d7e6;
	color: #000;
}

ul.mbv li a.hidden:link,
ul.mbv li a.hidden:visited {
	background: #E0E8EF url(mb1.png) 100% no-repeat;
}
ul.mbv li a.visible:link,
ul.mbv li a.visible:visited,
ul.mbv li a.visible:hover,
ul.mbv li a.visible:active {
	background: #c8d7e6 url(mb2.png) 100% no-repeat;
	color: #000;
}

/* horizontal menu bar */
ul.mbh {
	margin: auto;
	padding: 0;
	list-style: none;
	width: 100%;
}
ul.mbh li {
	float: left;
	padding: 0;
	margin: 0;
	z-index: 1;
}
ul.mbh ul li {
	float: none;
	position: relative;
	border-bottom: 1px solid #E0E8EF; /* fixes gap problem in IE */
}
/* separator to mark end of menu group */
ul.mbh ul li.end {
	border-bottom: 1px dashed black /*#c8d7e6*/;
}
ul.mbh li ul {
	margin: 0;
	padding: 0;
	list-style: none;
	position: relative;
	top: 0;
	left: 0;
	background: #E0E8EF;
	z-index: 2;
}
ul.mbh ul ul {
	margin-left: .2em;
	position: absolute;
	top: 0; /* if using borders, -1px to align top borders */
	left: 9em;
}

ul.mbh li a:link,
ul.mbh li a:visited,
ul.mbh li a:hover,
ul.mbh li a:active {
	display: block;
	padding: .2em .5em;
	text-decoration: none;
	background: #E0E8EF;
	color: #000;
	background-image: url(bar.png);
	background-repeat: no-repeat;
}
ul.mbh li a:hover,
ul.mbh li a:active {
	background: #c8d7e6;
	color: #000;
}
ul.mbh ul li a:link,
ul.mbh ul li a:visited,
ul.mbh ul li a:hover,
ul.mbh ul li a:active {
	width: 8em;
}

ul.mbh ul li a.hidden:link,
ul.mbh ul li a.hidden:visited {
	background: #E0E8EF url(mb1.png) 100% no-repeat;
}
ul.mbh li a.visible:link,
ul.mbh li a.visible:visited,
ul.mbh li a.visible:hover,
ul.mbh li a.visible:active {
	background: #c8d7e6;
	color: #000;
}
ul.mbh ul li a.visible:link,
ul.mbh ul li a.visible:visited,
ul.mbh ul li a.visible:hover,
ul.mbh ul li a.visible:active {
	background: #c8d7e6 url(mb2.png) 100% no-repeat;
}

ul.mbh ul li ul li a:link,
ul.mbh ul li ul li a:visited,
ul.mbh ul li ul li a:hover,
ul.mbh ul li ul li a:active {
	width: 16em;
}
