body { color: Text; background-color: Window; }

/*************************************************************************/
/* BASE CONTAINER */

#body {
	width: 752px;
	padding: 4px;
	margin: 4px auto;
	color: #000;
	background-color: #fff;
}

/*************************************************************************/
/* BASE RULES FOR CUSTOM ELEMENTS */

ul.links {
	margin: 0;
	padding: 0;
	line-height: 100%;
	list-style-type: none;
}

/*************************************************************************/
/* HEADER */

#header {
	position: relative;
	height: 100px; /* IE fucks up without this! */
}
#header a {text-decoration: none;}
#header a:hover, #header a:focus {text-decoration: underline;}

#header h1,
#header h2
{
	z-index: 10;
	margin: 0;
	padding: 0;
	font-weight: bold;
	font-size: 2.5em;
}
#header h2 {
	font-weight: normal;
	font-size: 1.1em;
}

#header ul.links {
	position: absolute;
	bottom: 16px;
	right: 1ex;
	z-index: 90;
}

#header ul.links li {
	float: left;
	display: inline;
	white-space: nowrap;
	padding: 0 6px 0 0;
	margin: 0 10px 0 0;
	background: transparent url(/gfx/COVER/header_tab.png) 100% -200px no-repeat;
}
#header ul.links li:hover { background-position: 100% -400px; }
#header ul.links li.active:hover,
#header ul.links li.active {
	background-position: 100% -600px;
}

#header ul.links li a {
	display: block;
	padding: 4px 8px 4px 14px;
	margin: 0;
	font-size: smaller;
	font-weight: bold;
	text-decoration: none;
	text-align: center;
	color: #000;
	background: transparent url(/gfx/COVER/header_tab.png) 0% -200px no-repeat;
}
#header ul.links li:hover a { background-position: 0% -400px; }
#header ul.links li a.active:hover,
#header ul.links li a.active {
	background-position: 0% -600px;
	color: #fff;
}

#header div.details {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 400px;
	height: 16px;
	font-size: 12px;
	text-align: right;
	padding: 0;
	margin: 0;
	z-index: 80;
	color: #fff;
	background: url(/gfx/COVER/header_tab.png) -30px -0px repeat-x;
}
#smDetails {margin-right: 1em;}

#header div.search {
	position: absolute;
	right: 0;
	top: .1em;
	z-index: 30;
	font-size: smaller;
}
#header div.search form {white-space: nowrap;}
#header div.search input.text {margin: 6px 2px 0 0;}
#header div.search a img {float: left; padding-right: .1em;}
#header div.search label {margin-right: 1em;}
#header div.search input.text:focus,
#header div.search input.text:hover {
	background-color: #fff;
}

/*************************************************************************/
/* FOOTER */

#footer {
	width:100%;
	clear: both;
	text-align: center;
	font-size: smaller;
	padding: 1em 0;
	margin: 0;
}
body.home #footer { border-top: 1px solid #00f; }

#footer ul.links li {
	display: inline;
	width: auto;
	padding: 0;
	margin: 0;
	border-right: 1px solid #00f;
}
#footer ul.links li.last {border-right: 1px solid #fff;}
#footer ul.links li a {padding: 0 .5em;}

#footer div.disclaimer {padding: 1em 5em;}

#footer div.copyright {
	padding-top: 1ex;
	margin: 0 auto;
	text-align: center;
}
#footer div.copyright ul {
	margin: 0 auto;
	padding: 0;
	width: 170px;
}
#footer div.copyright ul li {
	display: inline;
	padding: 0;
	margin: 0;
}
#footer div.copyright ul li span {display: none;}
#footer div.copyright ul li a {
	display: block;
	float: left;
	width: 80px;
	height: 15px;
	text-indent: -700em;
	text-decoration: none;
	white-space: nowrap;
	background: transparent 0 0 no-repeat;
	margin-right: 4px;
}
#footer div.copyright ul li.license a {background-image:url(creative-commons.png);}
#footer div.copyright ul li.publisher a {background-image:url(neomedia.png);}

#header h1 a:hover img,
#footer div.copyright ul li a:hover {opacity: 0.7; filter: alpha(opacity=70);}

/*************************************************************************/
/* FIRST/LAST lines */

div.breadcrumbs a { text-decoration: none; }
div.breadcrumbs a:hover { text-decoration: underline; }

#first-line, #last-line {
	position: relative;
	clear: both;
	font-size: smaller;
	padding: 2em 1ex 1em 0;
	margin: 0;
	min-height: 1.2em;
	height: 1.2em;
}
#last-line {
	border-top: 1px solid #00f;
	border-bottom: 1px solid #00f;
	padding: 1ex;
}

/*************************************************************************/
/* CONTENT */

#content {padding: 1em 0;}
#content h1 {margin-top: 0;}

#related-sites {
	padding: .2em;
}
#related-sites ul {
	list-style-type: none;
	padding-left: 8px;
	margin: 0;
	padding: 4px;
}
#related-sites ul li {
	padding-top: 4px;
	font-size: smaller;
}
#related-sites h3 { font-size: 1em; font-weight: normal; margin-left: 1em;}


#content div.main-content
{
	margin-left: 194px;
	padding-left: 1em;
	padding-right: .5em;
	border-left: 1px solid #00f;
}

#snippet-before
{
	float: left;
	font-size: 90%;
	width: 190px;
	margin: 0 0 8px 0;
	padding: 0 0 0 4px;
	border-right: 1px solid #00f;
	z-index: 1;
}

#snippet-after
{
	margin-left: 194px;
	border-left: 1px solid #00f;
}

#snippet-before h3 {
	margin: 0 1em 8px -8px;
	padding: 0 0 0 4px;
	font-weight: normal;
}

#snippet-before div.tree,
#snippet-before div.news-categories
{margin-bottom: 8px;}

#snippet-before div.news-categories ul,
#snippet-before div.tree ul,
#snippet-before div.tree ol,
#snippet-before div.tree ul li
{
	position: relative;
	z-index: 2;
	margin: 0 0 2px 0;
	padding: 0 0 0 2px;
	list-style-type: none;
	line-height: 160%;
}


#snippet-before div.news-categories ul li,
#snippet-before div.tree ol li {margin: 0;}
#snippet-before div.tree ol li ol li {margin-left: 1em; font-size: 90%;}
#snippet-before div.tree ol li ol li ol li {font-size: 100%;}

#snippet-before div.tree ol li.active li a {text-decoration: none;}

#snippet-before div.news-categories ul li,
#snippet-before div.tree ul li {
	border: 1px solid #fff;
	position: relative;
}
#snippet-before div.tree ul li {border-bottom-color: #00f;}
#snippet-before div.tree ul li:hover {border-bottom-color: #c60;}

#snippet-before div.tree ul li ul
{margin-left: 1em; border: none;}

#snippet-before div.news-categories li a,
#snippet-before div.tree li a
{
	text-decoration: none;
	display: block;
}
#snippet-before div.news-categories li a:hover,
#snippet-before div.tree li a:hover
{
	text-decoration: underline;
}

#snippet-before.index div.news-categories ul li.active,
#snippet-before div.tree ul li.active
{
	margin: 10px -1px 5px 0;
	padding-left: 4px;
	z-index: 3;
	background-color: #fff;
	font-weight: bolder;
	border-color: #00f;
	border-right-color: #fff;
}

#snippet-before div.tree li a.active,
#snippet-before div.news-categories ul li a.active
{color: #c60;}

#snippet-before div.news-categories ul li {
	border-left: 4px solid #00f;
	padding-left: 8px;
}
#snippet-before div.news-categories ul li:hover {border-left-color: #f60;}
#snippet-before div.news-categories ul li.active
{
	font-weight: bolder;
	border-left: 4px solid #f60;
}

#snippet-before div.tree ol li ol li a {
	padding-left: 8px;
	background-position: 0 0.6em;
	background-repeat: no-repeat;
	background-image: url(right_000099.gif);
}

#snippet-before div.tree ol li ol li a.active,
#snippet-before div.tree ol li ol li a:focus,
#snippet-before div.tree ol li ol li a:active,
#snippet-before div.tree ol li ol li a:hover
{background-image: url(right_990000.gif);}

#snippet-before div.tree ol li ol li a.active:focus,
#snippet-before div.tree ol li ol li a.active:active,
#snippet-before div.tree ol li ol li a.active:hover
{background-image: url(right_009900.gif);}

#snippet-before div.tree ol li a.active {
	margin: 10px -1px 5px -4px;
	padding-left: 12px;
	background-position: 4px 0.6em;
	z-index: 3;
	border: 1px solid #00f;
	border-right-color: #fff;
}

* html #snippet-before ul, * html #snippet-before ol {padding-top: 4px; border-top: 4px solid #fff;}

/*************************************************************************/
/* Prev Next Navigation */

#content div.navigation {
	font-size: smaller;
	text-align: center;
	margin: 1ex 0;
	border: 1px dotted #00f;
	padding: 2px 4px;
}
#content div.navigation.nav-bottom {margin-bottom: 0;}
#content div.navigation a {
	font-weight: bold;
	text-decoration: none;
}
#content div.navigation .prev {float: left;}
#content div.navigation .next {float: right;}
#content div.navigation span {color: #999;}


/*************************************************************************/
/* ADSENSE blocks */

#adsense-top {width: 728px; padding: 0; margin: 4px auto;}
#adsense-right {float: right; width: 160px; height: 600px; padding: 0; margin: 4px 0 8px 8px;}
#adsense-bottom {padding: 0; margin: 1em auto 4px 0;}
body.sites #adsense-bottom {margin-left: 2em;}
#adsense-left {padding: 0; margin: 1em 8px 0 0;}

/*************************************************************************/
/* TERMS */
body.terms #content, body.privacy #content {padding: 0 1em;}

/*************************************************************************/
/* CONTACT */
body.contact div.notes {margin-left: 2em; font-size: smaller;}

/*************************************************************************/
/* SUGGEST */
body.suggest h2 {margin:0; margin-left: 2em; font-size: 120%;}
body.suggest p.sample {margin-left: 32%;}
body.suggest p.sample.code {font-size: smaller;}

/*************************************************************************/
/* SITEMAP */

ul#site-sitemap ul,
ul#site-sitemap ol
{
	list-style-type: circle;
	margin-left: 2em;
}

li.site-sitemap-section {
	list-style-type: none;
	padding-top: 2px;
	font-weight: bolder;
}

/*************************************************************************/
/* LEARN */

body.learn #content h1 {margin-top: 1ex;}

#article-description {
	padding: 1em;
	margin: 1em 2em;
	font-size: 110%;
	border-top: 1px solid #00f;
	border-bottom: 1px solid #00f;
}

/*************************************************************************/
/* SITES */
#sites .category .links li {padding-top: 1em;}
#sites .category .links li .description {padding-left: 2em;}

/*************************************************************************/
/* HOME */
div.site-section {margin-left: 50%; padding-bottom: 1em;}
#welcome-blurb {margin: 0 1em;}
#start-here {
	width: 49%;
	float: left;
	margin: 0;
	padding: 0 0 1em 0;
	border-right: 1px solid #00f;
}
div.site-section h2 {margin-top: 0; padding-left: .5em;}

div.site-section ul li, div.site-section ol li, div.site-section div.more {
	list-style-type: none;
	line-height: 150%;
	margin-left: 1.5em;
}
div.site-section li a {
	padding-left: 10px;
	background-position: 0 50%;
	background-repeat: no-repeat;
	background-image: url(right_000099.gif);
}
div.site-section li a:hover {
	background-image: url(right_990000.gif);
}

/*************************************************************************/
/* NEWS */

#news-index p.news-category {
	float: right;
	margin: 0;
	padding: 0 0 1ex 1em;
}
#news-index h2.news-title {
	margin: 0;
	padding: 0;
}
#news h3.news-date,
#news-index h3.news-date
{
	text-align: right;
	font-size: .8em;
	font-weight: normal;
	line-height: 1.2em;
	margin-top: 0;
	padding-top: 0;
}

#news-index p.more {
	padding-bottom: 1em;
	margin-bottom: 1em;
	border-bottom: 1px solid #00f;
}

/*************************************************************************/
/* Remote links tweaks */
a[href^="http:"], a[href^="https:"], a[href^="ftp:"] {
	background: transparent url(link.gif) 100% 50% no-repeat;
	padding-right: 10px;
	text-decoration: none;
}
a[href^="http:"]:hover, a[href^="https:"]:hover, a[href^="ftp:"]:hover {
	text-decoration: underline;
}
a.plain {
	background: inherit;
	color: inherit;
	padding-right: 0px;
}
