importScriptPage('MediaWiki:Functions.js','starwars');var firstRun=true;function loadFunc(){if(firstRun)firstRun=false;else return;initFunctionsJS();addHideButtons();}function addHideButtons(){var hidables=getElementsByClass('hidable');for(var i=0;i<hidables.length;i++){var box=hidables[i];var button=getElementsByClass('hidable-button',box,'span');if(button!=null&&button.length>0){button=button[0];button.onclick=toggleHidable;button.appendChild(document.createTextNode('[Hide]'));if(new ClassTester('start-hidden').isMatch(box))button.onclick('bypass');}}}function toggleHidable(bypassStorage){var parent=getParentByClass('hidable',this);var content=getElementsByClass('hidable-content',parent);var nowShown;if(content!=null&&content.length>0){content=content[0];if(content.style.display=='none'){content.style.display=content.oldDisplayStyle;this.firstChild.nodeValue='[Hide]';nowShown=true;}else{content.oldDisplayStyle=content.style.display;content.style.display='none';this.firstChild.
nodeValue='[Show]';nowShown=false;}if(window.storagePresent&&(typeof(bypassStorage)=='undefined'||bypassStorage!='bypass')){var page=window.pageName.replace(/\W/g,'_');var items=getElementsByClass('hidable');var item=-1;for(var i=0;i<items.length;i++){if(items[i]==parent){item=i;break;}}if(item==-1){return;}var storage=globalStorage[window.location.hostname];storage.setItem('hidableshow-'+item+'_'+page,nowShown);}}}addOnloadHook(loadFunc);function rewriteTitle(){if(typeof(window.SKIP_TITLE_REWRITE)!='undefined'&&window.SKIP_TITLE_REWRITE)return;var titleDiv=document.getElementById('title-meta');if(titleDiv==null)return;var cloneNode=titleDiv.cloneNode(true);var firstHeading=getFirstHeading();var node=firstHeading.childNodes[0];firstHeading.replaceChild(cloneNode,node);cloneNode.style.display="inline";var titleAlign=document.getElementById('title-align');firstHeading.style.textAlign=titleAlign.childNodes[0].nodeValue;}addOnloadHook(rewriteTitle);;mw.loader.state({"site":"ready"});

/* cache key: bttf:resourceloader:filter:minify-js:7:e6efcc2bf9762c748a0cf26c73b3ea8f */