html, body {
	padding: 0;
	margin: 0;
	font-size: 13px;
	background: #FFF;
	font-family: Verdana, sans-serif;
	color: #333;
	/*
	font-size: 13px;
	font-family: "Trebuchet MS",Arial,sans-serif;
	font-family: Arial,sans-serif;
	*/
	height: 100%;
}

html { overflow-y: scroll; }

a { color:#445599; }
a:visited { color:#445577; }
a:hover { color:#007e00; }

/* so lists next to floated images maintain their margins */
ul,ol{
	overflow: hidden;
	zoom: 1;
}

a img {
	border: none;
}

/* a[target="_blank"] {} */

a span.external {
	background: url(images/external.png) no-repeat 100% 50%;
	padding-left: 14px;
}

div.clear {
	clear: both;
	margin: 0;
	padding: 0;
}

div.hr {
	border-bottom: dashed 1px silver;
}

div.hr hr {
	display: none;
}

h1, h2, h3, h4 {
	font-family: "Trebuchet MS",Georgia,"Times New Roman",serif;
}

span.nowrap {
	white-space: nowrap;
}

code, pre {
	font-family: Consolas, Monaco, "Courier New", Courier, monospace;
	color: #000;
	background: #f0f0f0;
}

pre {
	border: 1px solid #dadada;
	padding: 11px;
	font-size: 13px;
	line-height: 1.3em;
	overflow: auto;
}

/* positioning footer at the bottom */

#page {
	min-height: 100%;
	position: relative;
}

#main {
	padding-top: 20px;
	padding-bottom: 80px;	/* Including height of the footer (60) */
}

#footer {
	position:absolute;
	bottom:0;
	width:100%;
	height:60px;			/* Height of the footer */
}

/* --- */

.wrapper {
	width: 960px;
	margin: 0 auto;
	clear: both;
	
	position: relative;
	overflow: hidden;	/* to disable collapsing margins*/
 	/*
	outline: 1px solid #0ff;
	*/
}

#header {
	background: #112;
	padding: 10px 0 0 0;
	font-size: 12px;
	min-width: 960px;
}

#header-sep {
	background-color: #38518C;
	height: 8px;
	clear: both;
	border-top: 5px solid #546DAA;
	border-bottom: 1px solid #346;
}

#header * {
	color: #fafafa;
	text-decoration: none;
}

#header p {
	margin:0;
}

#top-menu {
	position: absolute;
	right: 0px;
	bottom: 0px;
	padding: 0;
	/*
	border: 1px solid #fff;
	*/
}

#top-menu ul,
#top-menu li {
	margin: 0;
	padding: 0;
	list-style: none;
	
	float: right;
}

#top-menu li {
	float: left;
}

#top-menu a {
	text-decoration: none;
	float: left;
	font-size: 13px; /* was 16*/
	margin-right: 10px;
	padding: 4px 13px;
	color: #ccd;
	-moz-border-radius-topleft: 5px;
	-khtml-border-top-left-radius: 5px;
	-webkit-border-top-left-radius: 5px;
	border-top-left-radius: 5px;
	-moz-border-radius-topright: 5px;
	-khtml-border-top-right-radius: 5px;
	-webkit-border-top-right-radius: 5px;
	border-top-right-radius: 5px;

	font-weight: bold;
	border-left:1px solid #334;
	border-top:1px solid #334;
	border-right:1px solid #334;
	background: #223;
}
	
#top-menu a:hover {
	color: #fff;
	background-color: #292F3D;
}
	
#top-menu li.current a {
	color: #fff;
	background-color: #546DAA;
	border-color: #38518C;
}

li.opened a {
	background: #AABBDD;
}

#content {
	float:left;
	width:760px;
}

#content h2 {
	margin-top: 0;
}

#sidebar {
	position: relative;
	float: right;
	width: 160px;
	overflow: hidden;
	font-size: 13px;
	padding-left: 10px;
	border-left: 1px solid #eee;
}

#side-menu {
	margin: 0px;
	margin-left: -10px;
	/*
	outline: 1px solid #f0f;
	*/
}

#side-menu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

#side-menu a {
	display: block;
	text-decoration: none;
	margin-bottom: 0px;
	padding: 4px 12px;
}

#side-menu li.current a,
#side-menu li a:hover {
	background-color: #EEF2FF;
}

#footer {
	text-align: right;
	font-size: 12px;
	border-top: 1px solid #ddd;
	background-color: #f0f0f0;
}

/* Contact Form */

.contactform td {
	padding:.5em;
}

.contactform .left {
	text-align:right;
	vertical-align:top;
	padding-top:.75em;
}

.contactform .text-input {
	width: 20em;
	padding: 2px;
}

.contactform textarea {
	height: 10em;
	width: 40em;
	padding: 2px;
}

/* Messages */

.messages {
	position: fixed;
	left: 0;
	bottom: 0px;
	z-index: 100;
	overflow: visible;
	margin-left: -1px;
	margin-bottom: -1px;
}

.messages div {
	padding: 4px;
	background-color: #d5fca1;
	border:1px solid #a5bf78;
	-moz-border-radius: 0 7px 0 0;
	-webkit-border-radius: 0 7px 0 0;
	-o-border-radius: 0 7px 0 0;
	border-radius: 0 7px 0 0;
}

.messages ul {
	margin: 0;
	padding: 3px 3em 3px 3em;
}

.messages li {
	list-style: none;
	padding: 0;
	margin: 0;
	font-size: 12px;
	text-decoration: none;
}

/* File Table */

table.files
{
	background-color: #ffffff;
	border: 1px solid #b4bfac;
	border-collapse: collapse;
	width: 100%;
	margin-bottom: 1em;
}

table.files th
{
	background-color: #d9f1c9;
	border: 1px solid #b4bfac;
	padding: 4px;
	text-align: left;
	vertical-align: top;
}

table.files td
{
	border: 1px solid #b4bfac;
	padding: 4px;
	vertical-align: top;
}

/* Image Gallery */

#sidebar .gallery table {
	width: 100%;
	border-collapse: collapse; 
	border-spacing: 0px;
}

.gallery td {
	text-align: center;
}

#sidebar .gallery td {
	padding: 0px 0px 10px 0px;
}

/* Dimmed Overlay */

#overlay {
	background: #222;
	background: rgba(0,0,0,0.85);
	width: 100%;
	height: 100%;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1000;
}