MediaWiki:JS/Compact

/* This is a custom MediaWiki file intended to be used exclusively by the Wikia skin. It is loaded from MediaWiki:Common.js. */ addOnloadHook(function{	var divWikiaPage = document.getElementById("WikiaPage");	var divWikiaSearch = document.getElementById('WikiaSearch');	var divWikiHeader = document.getElementById('WikiHeader');	var divWikiHeaderButtons = document.getElementsByClassName('buttons')[0];	var divWikiaMainContent = document.getElementById("WikiaMainContent");	var divWikiaRail = document.getElementById("WikiaRail");

//	var divWikiaArticle = document.getElementById("WikiaArticle");

if(!divWikiaSearch){ var divWikiaSearch = createElement('DIV', null, {'id':'SearchWrapper', 'class':'SearchWrapper'}); divWikiaSearch.innerHTML='  '; }

divWikiHeader.insertBefore(divWikiaSearch,divWikiHeaderButtons); var divWikiHeaderMigrated = createElement("DIV", divWikiHeaderButtons, {"class":"WikiHeaderMigrated","id":"divWikiHeaderMigrated"});

if(divWikiaRail){ divWikiaRail.insertBefore(divWikiHeaderMigrated, divWikiaRail.firstChild); } else { var divWikiaPageHeader = document.getElementById('WikiaPageHeader'); divWikiaPageHeader.appendChild(divWikiHeaderMigrated); }

var arrWikiaBodyChildren = new Array; arrWikiaBodyChildren[0]=divWikiaMainContent; arrWikiaBodyChildren[1]=divWikiaRail; var divWikiaBody = createElement("DIV", arrWikiaBodyChildren, {"class":"WikiaBody","id":"WikiaBody"}); divWikiaPage.insertBefore(divWikiaBody, document.getElementById("WikiaFooter"));

}); /* */