
body {
	margin: 0;
	padding: 0;
	background-color: #eef;
	color: #000;
	font-family: sans-serif;
	font-size: 100%;
}

.banner {
	margin: 1em;
	display: block;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0.3em 0.1em;
	border-width: 1px 1px 1px 2px;
	border-style: dashed dashed none solid;
	border-color: black;
	padding: 0.2em 0.3em;
	font-family: sans-serif;
	background-image: url('/images/widgets/pastel/header.png');
	background-repeat: repeat-x;
	background-position: top left;
	clear: both;
}
h1 { font-size: x-large; padding-left: 10px; }
h2 { font-size: large; padding-left: 15px; }
h3 { font-size: medium; padding-left: 20px; }
h4 { font-size: medium; padding-left: 25px; }
h5 { font-size: medium; padding-left: 30px; }
h6 { font-size: medium; padding-left: 35px; }

* + h1, * + h2, * + h3, * + h4, * + h5, * + h6
{
	margin-top: 1em;
}

img {
	margin: 1px;
	border: none;
	padding: 0;
}

.nolink {
	border: 1px solid #F00;
}

ul {
	list-style: disc;
}

acronym, a.definition {
	cursor: help;
}

/* Gallery stuff */
ul.gallery {
	display: block;
	list-style-type: none;
}
ul.gallery li {
	display: block;
	float: left;
}

ul.gallery img {
	margin: 1px;
	padding: 0;
	border: 2px groove #FFF;
}

ul.gallery img.subgal {
	border-color: #FF0;
	border-style: outset;
}


/* Hyperlinks */
a {
	text-decoration: none;
	color: #00F;
}
a:hover {
	text-decoration: underline;
	color: #F00;
}
a:active {
	text-decoration: underline;
	color: #F00;
}
a:visited {
	color: #808;
}

q {
	font-style: oblique;
	font-size: smaller;
}
q:before {
	content: open-quote;
	font-style: normal;
	font-size: smaller;
}
q:after {
	content: close-quote;
	font-style: normal;
	font-size: smaller;
}

.clearBoth {
	clear: both;
}
.floatLeft {
	float: left;
}
.floatRight {
	float: right;
}

.stackLeft {
	float: left;
	padding: 1em;
}

var {
	font-style: oblique;
	font-weight: bolder;
}

div.imageWithCaption {
	margin: 1em;
	border: 1px solid #DDD;
	padding: 2px;
	font-size: smaller;
}

/* Tables */
table {
	border: 1px solid #DDD;
	padding: 0;
	border-spacing: 0;
	border-collapse: collapse;
}
tr {
	margin: 0;
	padding: 0;
}
td, th {
	margin: 0;
	padding: 2px;
}
td {
	border: 1px solid white;
	background-color: #dde;
}
th {
	border: 1px solid white;
	background-color: #ccd;
	font-weight: bold;
	font-size: medium;
}
th.major {
	font-weight: bold;
	font-size: large;
}

/* Download table specific stuff */

td[header~="h_md5"] {
	font-family: monospace;
	font-size: 75%;
}

/* Navigation bar, and footer stuff */

#navbar {
	margin: 0;
	border-bottom: 1px solid black;
	padding: 1em 0 0 0;
	position: absolute;
	top: 0px;
	width: 100%;
	background-color: #ccd;
}

#navbar a {
	text-decoration: none;
	color: black;
}
#navbar a:visited {
	color: black;
}
#navbar a:hover {
	color: red;
}

ul.tabs {
	margin: 0 1em;
	border: none;
	padding: 0;
	list-style: none;
}
ul.tabs li {
	margin: 0 0.1em -1px 0.1em;
	border: none;
	padding: 0;
	position: relative;
	float: left;
	white-space: nowrap;
}
ul.tabs li a {
	margin: 0;
	border: 1px solid black;
	padding: 0.2em 0.5em;
	background-color: #dde;
	display: block;
	color: #CCC;
}

ul.tabs li a:hover {
	text-decoration: none;
	color: red;
}

/* Selected tab stuff */
ul.tabs li.selected a {
	background-color: #eef;
	background-image: url('/images/widgets/pastel/header.png');
	border-bottom: 1px solid #eef;
	color: black;
}
ul.tabs li.selected a:hover {
	text-decoration: none;
}

/* Dropdown menus */
ul.dropdown, ul.dropside {
	margin: 0;
	border: none;
	padding: 1px 0 0 2px;
	display: none;
	position: absolute;
	top: 1.5em;
	left: 0;
}

ul.dropside {
	padding-top: 0;
	left: 100%;
	top: 0;
}
li:hover ul.dropdown, li:hover ul.dropside {
	display: block;
	z-index: 1;
}

ul.dropdown li, ul.dropside li {
	margin: 0 0 -1px 0;
	border: 1px solid #888;
	padding: 0;
	
	display: block;
	position: relative;
	width: 100%;
	white-space: normal;
}

ul.dropside li {
	margin-left: -2px;
	margin-top: -1px;
}

ul.dropdown li a, ul.dropside li a {
	margin: 0;
	border: none;
	/*border: 1px solid black;*/
	padding: 0.1em;
	display: block;
	
	background-color: #bbc;
	width: 7em;
	text-align: left;
}

ul.dropdown li.selected a, ul.dropside li.selected a {
	background-color: #fec;
}
ul.dropdown li a:hover, ul.dropside li a:hover {
	background-color: #dde;
}

/* Compliance box */
#footer {
	margin: 1em;
	border-width: 1px 1px 2px 1px;
	border-color: black;
	border-style: dashed dashed solid dashed;
	padding: 0;
	background-color: #dde;
	text-align: center;
	float:center;
	clear: both;
}
#footer ul {
	list-style: none;
	margin: 0.1em;
	padding: 0.1em;
}
#footer li {
	margin: 0.1em;
	padding: 0;
	width: 100%;
	text-align: center;
	display: inline;
}

#content {
	margin: 3em 2em 1em 2em;
	padding: 1em;
	width: auto;
	clear: both;
	z-index: 0;
}

/* IM protocol styles */
li.im_msn {
	list-style-image: url("/images/im_protocols/msn.png");
	display: list-item;
}
li.im_yahoo {
	list-style-image: url("/images/im_protocols/yahoo.png");
}
li.im_aim {
	list-style-image: url("/images/im_protocols/aim.png");
}
li.im_jabber {
	list-style-image: url("/images/im_protocols/jabber.png");
}
li.im_icq {
	list-style-image: url("/images/im_protocols/icq.png");
}

/* Be nice to people who might print something */
@media print {
	/* Don't print the sidebar */
	#navbar, #footer {
		display: none;
	}
	
	/* Expand the content part out to use the whole page and remove
	 *  its border */
	#content {
		margin: 0;
		padding: 0;
		position: static;
		border: none;
	}

	p, table {
		page-break-inside: avoid;
	}
	h1,h2,h3,h4,h5,h6 {
		page-break-after: avoid;
	}
}
