function updatetimer(i){var now=new Date();var then=timers[i].eventdate;var diff=count=Math.floor((then.getTime()-now.getTime())/1000);if(isNaN(diff)){timers[i].firstChild.nodeValue='** '+timers[i].eventdate+' **';return;}if(diff<0){diff=-diff;var left='ago since';}else{var left='until';}left=(diff%60)+' seconds '+left;diff=Math.floor(diff/60);if(diff>0)left=(diff%60)+' minutes '+left;diff=Math.floor(diff/60);if(diff>0)left=(diff%24)+' hours '+left;diff=Math.floor(diff/24);if(diff>0)left=diff+' days '+left
timers[i].firstChild.nodeValue=left;tim[i]=setTimeout('updatetimer('+i+')',1000);}function checktimers(){var untimers=getElementsByClassName(document,'span','notimer');for(var i=0;i<untimers.length;i++){untimers[i].style.display='none';}timers=getElementsByClassName(document,'span','countdowntimer');tim=new Array();if(timers.length==0)return;for(var i=0;i<timers.length;i++){timers[i].eventdate=new Date(timers[i].firstChild.nodeValue);timers[i].firstChild.nodeValue='0 days 0 hours 0 minutes 0 seconds';timers[i].style.display='inline';updatetimer(i);}}addOnloadHook(checktimers)
importScript('User:Acather96/Fair use tagger.js');importScript('MediaWiki:Common.js/mosbox.js');;function addMastheadTags(){var rights={};rights["SteamTeam"]=["Bureaucrat","Earl of Sodor"];rights["SkarloeyRailway"]=["Bureaucrat","Earl of Sodor"];rights["Toby7"]=["Bureaucrat","Earl of Sodor"];rights["MH1994"]=["Admin","Sir Topham Hatt"];rights["DuckFan98"]=["Admin","Sir Topham Hatt"];rights["CalleyFan"]=["Director of Video Production","Comment Control","Inspector"];rights["TheBlueSunil"]=["Comment Control","Inspector"];rights["SplatterAndDodge"]=["Comment Control","Inspector"];rights["The Steampunk Whovian"]=["Comment Control","Inspector"];rights["Cinderthomtrooper"]=["Comment Control","Inspector"];rights["Terence2"]=["Image Control","Shunter"];rights["StephOfTheEast"]=["Image Control","Shunter"];rights["TheSodorSteamworks"]=["Image Control","Shunter"];rights["TenCentstheTug"]=["Image Control","Shunter"];rights["Adthinsp"]=["Rollback","VIP","Inactive"];rights["Goldenbear"]=["Rollback",
"VIP","Inactive"];rights["Victory93"]=["Rollback","VIP","Inactive"];rights["NOM"]=["Rollback","VIP","Inactive"];rights["Zem2point0"]=["Rollback","VIP","Inactive"];rights["ZEM"]=["Zem2point0's old account","Inactive"];rights["Oliverandtoad13"]=["Rollback","VIP"];rights["Thomasfan"]=["Rollback","VIP"];rights["Pyrrha Omega"]=["Rollback","VIP"];if(wgCanonicalSpecialPageName=="Contributions"){var user=wgPageName.substring(wgPageName.lastIndexOf("/")+1).replace(/_/g," ");}else{var user=wgTitle;}if(typeof rights[user]!="undefined"){$('.UserProfileMasthead .masthead-info span.tag').remove();for(var i=0,len=rights[user].length;i<len;i++){$('<span class="tag" span style="margin-left: 10px !important">'+rights[user][i]+'</span>').appendTo('.masthead-info hgroup');}}};$(function(){if($('#UserProfileMasthead')){addMastheadTags();}});if(mediaWiki.config.get('wgPageName')!==mediaWiki.config.get('wgMainPageTitle').replace(/ /g,'_')&&({0:1,500:1,1201:1}[mediaWiki.config.get('wgNamespaceNumber')]===1)){
(function($,mw){"use strict";var config=window.SocialMediaButtons=$.extend(true,{position:'top',colorScheme:'dark',userLang:true,en:{google:"Share this on Google+",facebook:"Share this on Facebook",twitter:"Share this on Twitter",via:"via+@TTTEWikia"}},window.SocialMediaButtons||{});function msg(name){if(config.userLang&&mw.config.get('wgUserLanguage')in config&&name in config[mw.config.get('wgUserLanguage')]){return config[mw.config.get('wgUserLanguage')][name];}if(mw.config.get('wgContentLanguage')in config&&name in config[mw.config.get('wgContentLanguage')]){return config[mw.config.get('wgContentLanguage')][name];}return config.en[name];}if(config.colorScheme==='light'){var gInactive='http://static.wikia.com/messaging/images/7/7c/Google%2B_Light.png',fbInactive='http://static.wikia.com/messaging/images/5/56/Facebook_Light.png',twitterInactive='http://static.wikia.com/messaging/images/b/b8/Twitter_Light.png';}else if(config.colorScheme==='color'){var gInactive=
'http://static.wikia.com/messaging/images/7/74/Google%2B_Hover.png',fbInactive='http://static.wikia.com/messaging/images/2/22/Facebook_Hover.png',twitterInactive='http://static.wikia.com/messaging/images/5/5d/Twitter_Hover.png';}else{var gInactive='http://static.wikia.com/messaging/images/4/45/Google%2B_Dark.png',fbInactive='http://static.wikia.com/messaging/images/8/83/Facebook_Dark.png',twitterInactive='http://static.wikia.com/messaging/images/d/d1/Twitter_Dark.png';}var gHover='http://static.wikia.com/messaging/images/7/74/Google%2B_Hover.png',fbHover='http://static.wikia.com/messaging/images/2/22/Facebook_Hover.png',twitterHover='http://static.wikia.com/messaging/images/5/5d/Twitter_Hover.png';var gHoverLoad=new Image(),fbHoverLoad=new Image(),twitterHoverLoad=new Image();gHoverLoad.src=gHover;fbHoverLoad.src=fbHover;twitterHoverLoad.src=twitterHover;var currentURL=document.URL;var gShare='https://plus.google.com/share?url='+currentURL;var fbShare=
'https://facebook.com/sharer/sharer.php?u='+currentURL;var twitterShare='https://twitter.com/intent/tweet?original_referer='+currentURL+'&text='+currentURL+'+'+msg('via');if(mw.config.get('wgCanonicalNamespace')==="User_blog"){var borderColor=$('#WikiaUserPagesHeader').css('border-bottom-color');var topHTML='float: right; margin-top: -24px;';var appendTo='#WikiaUserPagesHeader';}else if(mw.config.get('wgCanonicalNamespace')==="Thread"){var borderColor=$('#mw-content-text .BreadCrumbs').css('border-bottom-color');var topHTML='float:right;';var appendTo='#mw-content-text .BreadCrumbs';}else{var borderColor=$('#WikiaPageHeader').css('border-bottom-color');var topHTML='position: absolute; top: 29px; right: 0;';var appendTo='#WikiaPageHeader';}$(function(){if(config.position==='top'){var socialHTML='<div style="'+topHTML+'" class="socialmedia-share top"><a target="_blank" title="'+msg("google")+'" href="'+gShare+'"><img class="share-button googleplus '+config.colorScheme+
'" height="21px" width="21px" src="'+gInactive+'" /></a><a target="_blank" title="'+msg("facebook")+'" href="'+fbShare+'"><img style="padding-left: 1px;" class="share-button facebook '+config.colorScheme+'" height="21px" width="21px" src="'+fbInactive+'" /></a><a target="_blank" title="'+msg("twitter")+'" href="'+twitterShare+'"><img style="padding-left: 1px;" class="share-button twitter '+config.colorScheme+'" height="21px" width="21px" src="'+twitterInactive+'" /></a></div>';$(appendTo).append(socialHTML);if(mw.config.get('wgCanonicalNamespace')===""){var WikiaPageHeaderHeight=$('#WikiaPageHeader').height();if(WikiaPageHeaderHeight<=28){$('#WikiaPageHeader').css('padding-bottom','27px');}}}else{var socialHTML='<section class="SocialMediaButtons" id="SocialMediaButtons" style="border-top: 1px solid '+borderColor+'; text-align: center; margin-top: 20px;"><div style="padding-top: 1px; margin-top: 10px; text-align: center;" class="socialmedia-share bottom"><a target="_blank" title="'+msg
("google")+'" href="'+gShare+'"><img class="share-button googleplus '+config.colorScheme+'" src="'+gInactive+'"></a><a target="_blank" title="'+msg("facebook")+'" href="'+fbShare+'"><img style="padding-left: 5px;" class="share-button facebook '+config.colorScheme+'" src="'+fbInactive+'"></a><a target="_blank" title="'+msg("twitter")+'" href="'+twitterShare+'"><img style="padding-left: 5px;" class="share-button twitter '+config.colorScheme+'" src="'+twitterInactive+'"></a></div></section>';$('#mw-content-text').append(socialHTML);}$('.socialmedia-share .googleplus').hover(function(){$(this).attr('src',gHover);},function(){$(this).attr('src',gInactive);});$('.socialmedia-share .facebook').hover(function(){$(this).attr('src',fbHover);},function(){$(this).attr('src',fbInactive);});$('.socialmedia-share .twitter').hover(function(){$(this).attr('src',twitterHover);},function(){$(this).attr('src',twitterInactive);});});}(jQuery,mediaWiki));};;mw.loader.state({"site":"ready"});

/* cache key: ttte:resourceloader:filter:minify-js:7:0ec6a07e1b47b9bc56659183a9a39b0c */