MediaWiki:Infobox.js

if(document.getElementById('infobox')) {

function InfoboxModule { $('.WikiaRail form#WikiaSearch').after(' '); } addOnloadHook(InfoboxModule);

function MoveInfobox { var fooel = document.getElementById('infobox'); if (fooel!=null) { var artel = document.getElementById('InfoboxModule'); var titel = document.getElementById('top'); fooel = fooel.parentNode.removeChild(fooel); if (artel!=null) { artel.parentNode.insertBefore(fooel,artel); } else { //fall back to a position before H1 - useful for monobook skin titel.parentNode.insertBefore(fooel,titel); } } }

addOnloadHook(MoveInfobox);

function SwitchModules { $('section.InfoboxModule').css({"display": 'block'}); $('section.WikiaPagesOnWikiModule').css({"display": 'none'}); $('section.WikiaActivityModule').css({"display": 'none'}); $('section.LatestPhotosModule').css({"display": 'none'}); $('section.ChatModule').css({"display": 'none'}); $('section.WikiaSpotlightsModule').css({"display": 'none'}); $('section.InfoboxModule').after('&#160;Show Modules&#160;'); } addOnloadHook(SwitchModules); function SwitchRail { $('section.InfoboxModule').css({"display": 'none'}); $('section.WikiaPagesOnWikiModule').css({"display": 'block'}); $('section.WikiaActivityModule').css({"display": 'block'}); $('section.LatestPhotosModule').css({"display": 'block'}); $('section.ChatModule').css({"display": 'block'}); $('section.WikiaSpotlightsModule').css({"display": 'block'}); $('ul#switchrail').hide; $('section.ChatModule').after('&#160;Show Infobox&#160;'); }

function SwitchInfo { $('section.InfoboxModule').css({"display": 'block'}); $('section.WikiaPagesOnWikiModule').css({"display": 'none'}); $('section.WikiaActivityModule').css({"display": 'none'}); $('section.LatestPhotosModule').css({"display": 'none'}); $('section.ChatModule').css({"display": 'none'}); $('section.WikiaSpotlightsModule').css({"display": 'none'}); $('ul#switchinfo').hide; $('section.InfoboxModule').after('&#160;Show Modules&#160;'); }

}