div#link_box_dynamic { display:none; } /* Preserve a plain vanilla Monaco-toolbox */

// Start "Hidden appearances section/interactive tree" script; by [[User:Bp]]
// -----
function toggleAppearancesPane(eid) {
	e = document.getElementById(eid);
	if (e) { e.className = (e.className == "hiddenlist") ? "visiblelist" : "hiddenlist"; }
}

function showAppearancesPane(eid) {
	e = document.getElementById(eid);
	if (e) { e.className = "visiblelist"; }
}

function hideAppearancesPane(eid) {
	e = document.getElementById(eid);
	if (e) { e.className = "hiddenlist"; }
}
// -----

var tree = 0;
var pane = 0;
var paneListForThisTree = new Array();
var descriptionString = new String("This list contains %d items."); //%d is where the number of items is inserted

var smallTreeCount = 8; // less leaves than this, the tree will be open at first
var interactiveTrees = 1; // set this to 0 in user.js to turn this off

function button(text,onclick,cls) {
	var b = document.createElement('a');
	b.innerHTML = text;
	b.href="javascript:"+onclick;
	b.className = cls;
	return b;
}

function recursiveCountAndMark(e, depth, nocount) {
	var si = e.firstChild;
	var total = 0;
	while(si) {
		var tn = (si.tagName) ? si.tagName.toLowerCase() : '';
		if (tn == "li") { total++; }
		var subtotal = recursiveCountAndMark(si, depth+1, nocount);
		if (tn == "ul" || tn == "ol") {
			if (depth > 1) {
				si.id = "Pane" + pane++;
				paneListForThisTree.push(si.id);
				si.className = "hiddenlist";

				si.parentNode.insertBefore(document.createTextNode('('), si);
				si.parentNode.insertBefore(button( (nocount) ? "+/-" : subtotal, "toggleAppearancesPane(\""+si.id+"\")", "listexpand"), si);
				si.parentNode.insertBefore(document.createTextNode(')'), si);
				total--; // don't count the li that this ul/ol is in
			} else {
				// we are finished and this is the top ul/ol
				if (subtotal < smallTreeCount) { // this small enough they can be visible right away
					for (var i=0;i<paneListForThisTree.length;i++) {
						toggleAppearancesPane(paneListForThisTree[i]);
					}
				}
				var allonexec = '{';
				var alloffexec = '{';
				for (var i=0;i<paneListForThisTree.length;i++) {
					allonexec += "showAppearancesPane(\""+paneListForThisTree[i]+"\"); ";
					alloffexec += "hideAppearancesPane(\""+paneListForThisTree[i]+"\"); ";
				}
				allonexec += '}'; alloffexec += '}';

				var ds = (nocount) ? "" : descriptionString.replace(/\%d/g, subtotal);

				si.parentNode.insertBefore(document.createTextNode(ds + ' ('), si);
				si.parentNode.insertBefore(button("show all", allonexec, "listexpand"), si);
				si.parentNode.insertBefore(document.createTextNode(' | '), si);
				si.parentNode.insertBefore(button("hide all", alloffexec, "listexpand"), si);
				si.parentNode.insertBefore(document.createTextNode(')'), si);
			}
		}
		total += subtotal;
		si = si.nextSibling;
	}
	return total;
}

function doAppearancesTrees() {
	if (!interactiveTrees) { return; }

	var divs = document.getElementsByTagName("div");
	for (var i = 0; i < divs.length; i++) {
		if (divs[i].className.match(/\bappear\b/)) {
			recursiveCountAndMark(divs[i], 0, (divs[i].className.match(/\bnocount\b/)) ? 1 : 0);
			paneListForThisTree = new Array();
			tree++;
		}
	}

	// fix a bug noticed by renegade54
	// jump to the named anchor again
	if (window.location.hash && tree > 0) {
		// still won't work 100% in safari and khtml
		if (navigator.userAgent.indexOf("MSIE") != -1) {
			window.location = window.location.hash; // -- causes Firefox to fire onload events
		} else {
			window.location.hash = window.location.hash;
		}
	}

}

hookEvent("load", doAppearancesTrees);



#wikia_logo {
   background-image: url(http://images.wikia.com/x-files/images/6/62/WikiaLogo.png);
}
* html #wikia_logo {
   background-image: none;
   filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://images.wikia.com/x-files/images/6/62/WikiaLogo.png', sizingMethod='crop');
}

.headerMenuButton dt, .headerMenuButton dd {
   background-image: url(http://images.wikia.com/x-files/images/9/90/HeaderButton.png);
}
* html .headerMenuButton dt, * html .headerMenuButton dd  {
   background-image: none;
   filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://images.wikia.com/x-files/images/9/90/HeaderButton.png', sizingMethod='crop');
}

.color1, .color1 a {
        background-color: #000000;
        color: #fff;
}
 
.color2 {
	background-color: #000000;
}

#background_strip {
	background: #000000;
        border-color: #ffffff;
}

#wikia_footer {
        color: #FFF; }

#monaco_footer, #monaco_footer a {
	color: #FFF;
}

#wikia_page {
   background-color: #2a477d;
}

#wikia_header a {
	color: #FFF;
}

#navigation div a {
	background-color: #2a477d;
	color: #fff;
}
#navigation div div a {
        background-color: #2a477d;
}

#navigation a:hover, .navigation-hover {
	background-color: #afb7c3;
}

.community_details {
        background: #000;
        color: #FFF;
}



.widget dd {
        background-color: #2a477d;
        color: #fff;
}

#header_username a { color: #fff; }
#userData a, #wikiaBranding a { color: white; }





/* from monobook.css
<pre>
*/

#siteNotice {
    padding-left: 4px;
    font-style: italic;
    font-weight: bold;
    text-align: center;
    color: white;
    line-height: 85%;
}

div#catlinks {
  border: 1px inset #999999;
  background-color: #000000;
  color: inherit;
  padding: 0;
}

div#userloginForm form,
div#userlogin form#userlogin2 {
  border: 1px solid #AAAAAA;
  background-color: #222222;
}
div#userloginForm table,
div#userlogin form#userlogin2 table {
  background-color: #222222;
}


p.catlinks {
  border: 1px outset #222222;
  margin: 2px;
  padding: 7px;
}

.prefsection table, .prefsection legend {
  background-color: #2a477d;
}

div.prefsectiontip {
  background-color: #2a477d;
  border: 1px solid #66BBFF;
  color: #000000;
}

#preferences {
 background-color: #2a477d;
}
#preferences fieldset {
 border: 1px solid #AAAAAA;
 background-color: #2a477d;
}
#preferences table {
 background-color: #2a477d;
}
#preferences legend {
 background-color: #2a477d;
 border: 1px solid #AAAAAA;
 color: #FFD942;
}

body {
/*	background-image: url(/graphics/background_monobook.gif); -- this does not exist --User:TOR */
	background-repeat: repeat;
	background-color: #000000;
}

#bodyContent, #content, #footer {
	background-color: #2a477d;
	color: #FFFFFF;
}

#bodyContent { 
        background: none; 
}

#content_withads {
     background-color: #2a477d;
}

#footer { 
   z-index: 200;
}

#column-google {
   z-index: 100;
}

.pBody {
	background-color: #2a477d;
	color: #FFFFFF;
	border:#AAAAAA
}

#p-logo {
	height: 100px !important;
}

#column-one { padding-top: 140px !important; }

h1, h2, h3, h4, h5, h6 { color: #FFCC00; }
a { color: #66CCFF; }
a:visited { color: #aaefce; }
a:link, a:visited, a:active { text-decoration: none }
a:hover { text-decoration: underline; }
a.new, #p-personal { color: #ed4747 !important; }
a.new:visited { color: #ec7e7e; }
#bodyContent a.extiw, #bodyContent a.extiw:active { color: #00CCFF; }
#bodyContent a.extiw:visited { color: #0066FF; }
#bodyContent a.external { color: #00CCFF; }
#bodyContent a.external:visited { color: #0066FF; }
#bodyContent a.stub, #bodyContent a.stub:visited { color: #FF5500; }

h1 { border-bottom: 1px solid #aaaaaa; }

#bodyContent div.noicon a {
	background: none;
	padding: 0;
}

.selected {
	background-color: #333333;
	color: #FFFFFF;
	border-color: #CCCCCC;
}

#p-cactions ul li a {
	background-color: #2a477d;
	color: #FFFFFF;
}

pre {
	background-color: transparent;
	color: inherit;
	border: none;
}

code {
	background-color: transparent;
}

#footer {
	border-top: 1px solid #aaaaaa;
	border-bottom: 1px solid #aaaaaa;
	min-height: 39px;
}

#p-personal {
	background-color: transparent;
	color: #00CCFF;
}

#p-personal a {
	color: #00CCFF !important;
	background-color: transparent;
}

#p-personal a:hover { background-color: transparent !important; }

#pagehistory li { border: 1px solid #333333; }

#pagehistory li.selected {
	background-color: #000000;
        color: #ffffff;
	border: 1px dashed #aaaaaa;
}

table.diff { background: #ffffff; color: #000000; }
td.diff-otitle { background: #ffffff; color:#000000; }
td.diff-ntitle { background: #ffffff; color:#000000; }

td.diff-addedline {
	font-size: smaller;
	background-color: #000033;
}

td.diff-deletedline {
	font-size: smaller;
	background-color: #330000;
}

td.diff-context {
	background: #ffffff;
        color: #000000;
	font-size: smaller;
}

table.grey, table.wiki-sidebar, table.browser {
	border: 1px inset #999999;
	background-color: #000000;
	color: inherit;
}

table.grey td {
	border: 1px outset #000000;
}

table.grey tr th, table.grey thead tr th {
	color: inherit;
	background-color: #660000;
	border: 1px outset #660000;
	text-align: left;
	font-weight: bold;
}

th {
	text-align: left;
	color: #FFFFFF;
	background-color: inherit;
	font-size: 106.25%;
}

td.odd {
	background-color: #000000;
	border: 1px outset #000000;
}
td.even {
	border: 1px outset #000000;
	background-color: #000000;
}
table.wiki-sidebar {
	float: right;
	margin-left: 5px;
	width: 200px;
}
table.wiki-sidebar td {
	line-height: 130%;
}
table.wiki-sidebar td.odd {
	width: 35%;
	font-weight: bold;
	text-align: right;
}
table.browser {
	width: 100%;
	clear: both;
}
table.browser td {
	text-align: center;
	width: 33%;
	background: #000000;
	border: 1px outset #000000;
	line-height: 130%;
}
table.browser td.topic {
	background-color: #000000;
	border: 1px outset #000000; 
}

span.diffchange { color: red; }
tr[bgcolor] td { color: black; }

#siteSub {
	display: block !important;
	margin-top: -5px;
	font-size: smaller;
	color: white;
}

#contentSub {
	color: #AAAAAA;
}

table.mainpage {
	width: 100%;
	background-color: #332244;
	/*background-image: url(/graphics/tableborder.png);*/
	border: 3px inset #666666;
}

table.mainpage tr td, table.mainpage tr th {
	padding: 0px;
	width: 33%;
}

table.mainpage tr th {
	background: #000000;
	text-align: center;
	font-size: 1.0em;
}

/*table.mainpage tr td ul li {
        margin-left: -2.0em;
}*/

caption {
	color: #FFFFFF;
	font-size: 1.2em;
	text-decoration: underline;
}

div.header-notice, div.warning {
	width: 85%;
	margin: 1.0em auto 0.5em auto;
	padding: 5px;
	text-align: left;
	border: 1px inset #999999;
	background-color: #000000;
	color: #FFFFFF;
	line-height: 120%;
}

div.warning {
	color: red !important;
	font-weight: bold;
}

div.notice, div.usermessage {
	width: 65%;
	margin: 1.0em auto 0.5em auto;
	padding: 5px;
	text-align: center;
	border-style: dashed;
	border-width: 2px;
	border-color: red;
	background-color: #000000;
	color: #FFFFFF;
	line-height: 120%;
}

div.header-notice#fa {
	width: auto;
	font-size: inherit !important;
}

div.notice p, div.header-notice p, div.warning p {
	line-height: 120% !important;
}

.floatright, .floatright span, .floatright a.image, .floatleft, .floatleft span, .floatleft a.image {
	background-color: transparent !important;
	border-color: transparent !important;
}
.thumb, .tright, .tleft {
	border: 1px inset #999999 !important;
	background-color: #000000 !important;
}

div.thumb div a img { border: none; }

div.thumb div { background-color: #000000 !important; }
table, td, tr {
	background-color: transparent;
	color: #FFFFFF;
}
td, th {
	vertical-align: top;
}

div.fullImage {
	text-align: center;
}

#toc {
	background-color: #000000;
	border: 1px inset #999999;
}

#toc #toctitle { background-color: transparent; }

legend {
	background-color: #000000;
	border: 1px solid #2f6fab;
	color: #FFCC00;
}

fieldset { background-color: #000000; }

#preftoc li {
	background-color: transparent;
	border: 0px;
}

#preftoc li a { color: #FFFFFF; }

#preftoc li.selected {
	border: 1px;
	background-color: #000000;
}

ol ol { list-style-type: lower-latin; }

ol ol ol { list-style-type: lower-roman; }

li#pt-userpage {
/*	background: url("/graphics/user.gif") top left no-repeat !important; --this does not exist */
	background-repeat: no-repeat;
	background-color: transparent !important;
	padding-left: 20px;
	text-transform: none;
}


table.gallery {
	border:  #FFFFFF;
	background-color: transparent;
}

table.gallery td {
	background-color: #000000;
}

div.gallerytext {
        background-color: #000000;
        color: #FFFFFF;
}

div.gallerybox div.thumb {
	border: 1px #FFFFFF;
}

#p-cactions li.selected {
	border-color: #66dddd;
}
#p-cactions li.selected a {
	background-color: #3f5c7c;
}
#p-cactions li a:hover {
	background-color: #444466;
}

div.thumbinner {
	color: white;
}

div.thumbinner a {
	color: #66ccff;
}

table.problemReportsList thead tr
{
  background-color: #1F355D;
}

table.problemReportsList tr.odd
{
  background-color: #315391;
}

#ImageUploadBody * { color: black !important; }

/*
</pre>
*/