function fixBlogLinks(){if(wgPageName=="Special:RecentChanges")$("#bodyContent ul.special li:contains('article-comments-rc-blog-comment')").each(function(i){oldHTML=$(this).html();lnk=$(this).find("a:contains('hist')").attr("href");if(typeof(lnk)!="undefined"){rawID=lnk.replace(/.*curid=(.*?)&.*/,"$1");bLink="/wiki/User_blog:"+lnk.replace(/.*User_blog_comment:(.*?\/.*?)\/.*/,"$1")+"?showall=1#comm-"+rawID;newHTML=oldHTML.replace("&lt;article-comments-rc-blog-comment&gt;","(<a href='"+bLink+"'>Blog comment</a>) ");$(this).html(newHTML);}});}function fbl(){fixBlogLinks();$("#bodyContent").bind("ajaxPageLoad",fixBlogLinks);}addOnloadHook(fbl);var hasClass=(function(){var reCache={};return function(element,className){return(reCache[className]?reCache[className]:(reCache[className]=new RegExp("(?:\\s|^)"+className+"(?:\\s|$)"))).test(element.className);};})();var autoCollapse=2;var collapseCaption="hide";var expandCaption="show";function collapseTable(tableIndex){var Button=document.
getElementById("collapseButton"+tableIndex);var Table=document.getElementById("collapsibleTable"+tableIndex);if(!Table||!Button){return false;}var Rows=Table.rows;if(Button.firstChild.data==collapseCaption){for(var i=1;i<Rows.length;i++){Rows[i].style.display="none";}Button.firstChild.data=expandCaption;}else{for(var i=1;i<Rows.length;i++){Rows[i].style.display=Rows[0].style.display;}Button.firstChild.data=collapseCaption;}}function createCollapseButtons(){var tableIndex=0;var NavigationBoxes=new Object();var Tables=document.getElementsByTagName("table");for(var i=0;i<Tables.length;i++){if(hasClass(Tables[i],"collapsible")){var HeaderRow=Tables[i].getElementsByTagName("tr")[0];if(!HeaderRow)continue;var Header=HeaderRow.getElementsByTagName("th")[0];if(!Header)continue;NavigationBoxes[tableIndex]=Tables[i];Tables[i].setAttribute("id","collapsibleTable"+tableIndex);var Button=document.createElement("span");var ButtonLink=document.createElement("a");var ButtonText=document.createTextNode
(collapseCaption);Button.style.styleFloat="right";Button.style.cssFloat="right";Button.style.fontWeight="normal";Button.style.textAlign="right";Button.style.width="6em";ButtonLink.style.color=Header.style.color;ButtonLink.setAttribute("id","collapseButton"+tableIndex);ButtonLink.setAttribute("href","javascript:collapseTable("+tableIndex+");");ButtonLink.appendChild(ButtonText);Button.appendChild(document.createTextNode("["));Button.appendChild(ButtonLink);Button.appendChild(document.createTextNode("]"));Header.insertBefore(Button,Header.childNodes[0]);tableIndex++;}}for(var i=0;i<tableIndex;i++){if(hasClass(NavigationBoxes[i],"collapsed")||(tableIndex>=autoCollapse&&hasClass(NavigationBoxes[i],"autocollapse"))){collapseTable(i);}}}addOnloadHook(createCollapseButtons);function UserNameReplace(){if(typeof(disableUsernameReplace)!='undefined'&&disableUsernameReplace||wgUserName==null)return;$('.insertusername').html(wgUserName);}addOnloadHook(UserNameReplace);function showRating(){var
titleDiv=document.getElementById("title-rating");if(titleDiv!=null&&titleDiv!=undefined){var content=document.getElementById('article');if(!content){var content=document.getElementById('content');}if(content){var hs=content.getElementsByTagName('h1');var firstHeading;for(var i=0;i<hs.length;i++){if((' '+hs[i].className+' ').indexOf(' firstHeading ')!=-1){firstHeading=hs[i];break;}}var cloneNode=titleDiv.cloneNode(true);firstHeading.insertBefore(cloneNode,firstHeading.childNodes[0]);cloneNode.style.display="block";cloneNode.style.visibility="visible";if(skin!="monaco"){cloneNode.style.marginTop="-11px";}}}}addOnloadHook(showRating);$(function(){var nick=(wgUserName==null)?('BP-Visitor-'+Math.floor(Math.random()*10)):wgUserName.replace(/ /g,'_');$('#IRCReplace').html('<iframe src="http://webchat.freenode.net/?nick='+nick+'&channels=brickipedia&prompt=true&uio=OT10cnVlJjExPTUxJjEyPXRydWU37" width="650" height="400" style="border:0;"></iframe>');});var editsummOriginalSummary=new String();
var editsummDropdown=null;function editsummInitialize(){var label=document.getElementById('wpSummaryLabel');if(label==null)return;label.firstChild.style.cssText='display:none';editsummOriginalSummary=document.forms.editform.wpSummary.value;var dropdown=document.createElement('select');dropdown.setAttribute('title','Standard Summaries')
dropdown.style.cssText='margin-top:3px;';dropdown.onchange=new Function('editsummOnCannedSummarySelected()');addDropdownOption(dropdown,'','(Summary)');addDropdownOption(dropdown,'','Refactoring:');addDropdownOption(dropdown,'Cleanup','— Cleanup');addDropdownOption(dropdown,'Formating','— Formatting');addDropdownOption(dropdown,'HTML tidying','— HTML tidying');addDropdownOption(dropdown,'Wikification','— Wikification');addDropdownOption(dropdown,'','Content:');addDropdownOption(dropdown,'Page created','— Page created');addDropdownOption(dropdown,'Update with new info.','— Update with new info.');addDropdownOption(dropdown,'Expansion','— Expansion');addDropdownOption(dropdown,'Rewrite','— Rewrite');addDropdownOption(dropdown,'Fix spelling/grammar','— Corrected spelling/grammar');addDropdownOption(dropdown,'','Remove/Revert:');addDropdownOption(dropdown,'Revert Vandalism','— Revert Vandalism');addDropdownOption(dropdown,'-unverified info','— Remove unverified info')
;addDropdownOption(dropdown,'','Templates:');addDropdownOption(dropdown,'+Infobox','— Added Infobox');addDropdownOption(dropdown,'Corrected template usage','— Corrected template usage');addDropdownOption(dropdown,'','Categories:');addDropdownOption(dropdown,'+Cat','— Added Category');addDropdownOption(dropdown,'-Cat','— Remove Category');addDropdownOption(dropdown,'Alphabetized ""','— Alphabetized ');label.appendChild(dropdown);editsummDropdown=dropdown;var onMonaco=skin=='monaco'?true:false;if(onMonaco){document.getElementById('wpMinoredit').nextSibling.nextSibling.innerHTML='Minor';document.getElementById('wpWatchthis').nextSibling.nextSibling.innerHTML='Watch';}else{var wpSumamaryCssSize=document.getElementById('wpSummary');wpSumamaryCssSize.style.cssText='width:70%';wpSumamaryCssSize.size='60';}}function addDropdownOption(dropdown,optionValue,optionText){var option=document.createElement('option');option.setAttribute('value',optionValue)
option.appendChild(document.createTextNode(optionText));dropdown.appendChild(option);}function editsummOnCannedSummarySelected(){var newSummary=editsummOriginalSummary;if(newSummary.length!=0)newSummary+=" - ";var idx=editsummDropdown.selectedIndex;var canned=editsummDropdown.options[idx].value;newSummary+=canned;document.forms.editform.wpSummary.value=newSummary;}addOnloadHook(editsummInitialize);importScript('MediaWiki:Common.js/mosbox.js');importScript('MediaWiki:Common.js/userCSS.js');importScriptPage('MediaWiki:Common.js/Countdown.js','legouniverse');importScript('MediaWiki:Common.js/profileRedesign.js');function preloadUploadDesc(){if(wgPageName.toLowerCase()!='special:upload'){return;}document.getElementById('wpUploadDescription').appendChild(document.createTextNode("{{Fair use rationale\r| Description       = \r| Source            = \r| Portion           = \r| Purpose           = \r| Resolution        = \r| Replaceability    = \r| Other Information = \r| Licensing = \r}}"));}
addOnloadHook(preloadUploadDesc);importScriptPage('MediaWiki:Common.js/displayTimer.js');importScriptPage('MediaWiki:Common.js/Other2.js','legouniverse');importScriptPage('User:Jgjake2/js/ElderScrolls/Popups.js','deadisland');$(function(){$(".clicker-show").parent().siblings("p").css("margin","0em");$(".clicker-show").click(function(){$(this).parent().next().slideDown();$(this).fadeOut();$(this).prev().fadeIn();});});$(function(){$(".clicker-hide").click(function(){$(this).parent().next().slideUp();$(this).fadeOut();$(this).next().fadeIn();});});$(function(){$(".advent-cal img").attr({width:"",height:""});});if(wgCanonicalSpecialPageName=='Chat'&&skin!='oasis'){window.location.search=window.location.search+(window.location.search?'&':'?')+'useskin=oasis';}$('#hideinfobox').click(function(){$('#hideinfobox').animate({opacity:'0'},1000,function(){$('#hideableinfobox').animate({opacity:'0'},1000,function(){$('#hideableinfobox, #hideinfobox').hide().animate({display:'none'},function(){$(
'#showinfobox').stop().show().animate({opacity:'1'},800);});});});});$('#showinfobox').stop().click(function(){$('#showinfobox').animate({opacity:'0'},1000,function(){$('#showinfobox').hide().animate({top:'+=0px'},function(){$('#hideableinfobox').show().animate({opacity:'1',display:'inline-table'},1000,function(){$('#hideinfobox').show().animate({opacity:'1'},1000);});});});});$(function(){$(".slide-link").addClass("link");var hidelink="[hide]";var showlink="[show]";$(".slide-content").each(function(){if($(this).hasClass("noshown")){var fid=$(this).attr("title");var flink=$(".slide-link[title="+fid+"]");flink.html(showlink);}else{var tid=$(this).attr("title");var tlink=$(".slide-link[title="+tid+"]");tlink.html(hidelink);}});$(".slide-link").click(function(){var tid=$(this).attr("title");var content=$(".slide-content[title="+tid+"]");if(content.hasClass("noshown")){content.slideDown(500);$(this).fadeOut(250,function(){$(this).html(hidelink);});$(this).fadeIn(250);content.removeClass(
"noshown");content.addClass("shown");}else{content.slideUp(500);$(this).fadeOut(250,function(){$(this).html(showlink);});$(this).fadeIn(250);content.removeClass("shown");content.addClass("noshown");}});});$(window).scroll(function(){placeDetection($(window).scrollTop());});function placeDetection(scroll){$(".ttbutton").each(function(index){var it=$(this).nextAll(".themetable").first();var top=it.offset().top;var bottom=it.outerHeight()+it.offset().top;var browser=$(window).height();if(it.outerHeight()>browser*1.5){if(scroll>=top&&scroll<=bottom&&$(this).is(":hidden")){$(this).fadeIn();}if(scroll<=top||scroll>=bottom&&$(this).is(":visible")){$(this).fadeOut();}}else{$(this).hide();}});}$(".ttbutton > .bottom").click(function(){var it=$(this).parent().nextAll(".themetable").first();var where=it.outerHeight()+it.offset().top-100;$("html,body").animate({scrollTop:where},1500);});$(".ttbutton > .top").click(function(){var it=$(this).parent().nextAll(".themetable").first();var where=it.
offset().top-100;$("html,body").animate({scrollTop:where},1500);});function rewriteTitle(){if(typeof(window.SKIP_TITLE_REWRITE)!='undefined'&&window.SKIP_TITLE_REWRITE){return;}if($('#title-meta').length==0){return;}var newTitle=$('#title-meta').html();if(skin=="oasis"){$('header.WikiaPageHeader > h1').html('<div id="title-meta" style="display: inline;">'+newTitle+'</div>');$('header.WikiaPageHeader > h1').attr('style','text-align:'+$('#title-align').html()+';');}else{$('.firstHeading').html('<div id="title-meta" style="display: inline;">'+newTitle+'</div>');$('.firstHeading').attr('style','text-align:'+$('#title-align').html()+';');}}addOnloadHook(rewriteTitle);$('#user-MeikoBot').remove();;importScript('MediaWiki:Wikia.js/userRightsIcons.js');importScriptPage('MediaWiki:AjaxRC/code.js','legouniverse');ajaxPages=["Special:RecentChanges","User:Mythrun/Recent_Changes","Special:WikiActivity","Special:NewPages"];importScript('MediaWiki:Wikia.js/test.js');$(function(){if(!document.
getElementById("switchtabs")){return;}var page=wgTitle.replace(/&/g,"%26");var inv="<a id='inv' href='http://lego.wikia.com/wiki/Inventory:"+page+"'>Inventory</a>";var rev="<a id='rev' href='http://lego.wikia.com/wiki/Review:"+page+"'>Reviews</a>";var wiki="<a id='wiki' href='http://lego.wikia.com/wiki/"+page+"'>Encyclopedia</a>";var string=wiki+inv+rev;document.getElementById("switchtabs").innerHTML=string;var ns=wgNamespaceNumber;switch(ns){case 0:document.getElementById("wiki").className="selected";break;case 114:document.getElementById("inv").className="selected";break;case 118:document.getElementById("rev").className="selected";break;}});addOnloadHook(btnSubmitReview);function btnSubmitReview(){var btn;var title=wgTitle.replace(/&/g,"%26");var url="/index.php?title=Review:'+title+'/'+wgUserName+'&action=edit&preload=MediaWiki:Createplate-Review&redlink=1";if(url=="/index.php?title=Review:'+title+'/null&action=edit&preload=MediaWiki:Createplate-Review&redlink=1"){btn=
'<center><div style="background-color:#ddddee;border:2px outset #9999bb;text-align:center;padding:2px 5px" id="sb-rev"><a href="/index.php?title=Special:UserLogin">Log in</a> to submit a review</div></center>';}else{btn='<center><a style="background-color:#ddddee;border:2px outset #9999bb;text-align:center;padding:2px 5px; display:block;" id="sb-rev" href=url>Submit a review</a></center>';}$("#reviewBtn").html(btn);}$(function(){$(".WikiHeaderRestyle > nav li").not(".subnav-2.accent li").mouseenter(function(){$(this).addClass("marked");$(".WikiHeaderRestyle > nav li").not(this).removeClass();});});$(function(){var olds=$(".tabs-container > ul.tabs").html();var address="http://lego.wikia.com/wiki/Special:Editcount/"+wgTitle;var adds="<li data-id='editcount'><a href='"+address+"'>Editcount</a></li>";var news=olds+adds;$(".tabs-container > ul.tabs").html(news);});var SocialMediaButtons={position:'top',colorScheme:'color',buttonSize:'35px'};importScriptPage('SocialIcons/code.js','dev');;;
mw.loader.state({"site":"ready"});

/* cache key: lego:resourceloader:filter:minify-js:7:a9a522c55df2c7ae7fd513ce251c2ae8 */