function animate(){safe&&(handle.style.webkitAnimationName="handle",handle.style.animationName="handle",sprite.style.webkitAnimationName="sprite",sprite.style.animationName="sprite",safe=!1)}function loadStyleSheet(e){if(document.createStyleSheet)document.createStyleSheet(e);else{var t=document.createElement("link");t.href=e,t.rel="stylesheet",t.type="text/css",document.getElementsByTagName("head")[0].appendChild(t)}}function AJAX(e,t){var n;(n=new XMLHttpRequest).onreadystatechange=function(){4==n.readyState&&t(n)},n.open("GET",e,!0),n.send()}function createindex(){var e=contentIndexData;Object.keys(e.project).forEach(function(t,n){"string"==typeof e.project[t]?qs("#O2>ul").innerHTML+='<a href="£'+e.project[t]+'">'+t+"</a> ":(qs("#O2>ul").innerHTML+='<a href="#O2-S'+n+'">'+t+"</a> ",qs("#O2>ul").innerHTML+=' ',e.project[t].forEach(function(e){qs("#O2>ul>li:last-child>ul").innerHTML+='<a href="£'+e.replace(/\s+/g,"-").replace(/[^A-Z0-9-_]+/gi,"")+'">'+e+"</a> "}))}),Object.keys(e.team).forEach(function(t,n){"string"==typeof e.team[t]?qs("#O4>ul").innerHTML+='<a href="£'+e.team[t]+'">'+t+"</a> ":(qs("#O4>ul").innerHTML+='<a href="#O4-S'+n+'">'+t+"</a> ",qs("#O4>ul").innerHTML+=' ',e.team[t].forEach(function(e){qs("#O4>ul>li:last-child>ul").innerHTML+='<a href="£'+e.replace(/\s+/g,"-").replace(/[^A-Z0-9-_]+/gi,"")+'">'+e+"</a> "}))})}function newPage(e){var t=(e=window.e||e).target.getAttribute("href");if(null!==t&&("£"==t[0]||"#"==t[0])){if("#"==t[0]){magic=!0;try{qs(".JC #content-body "+t).scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}catch(e){location.hash=t}return t=="#"+e.target.parentElement.id&&window.scrollTo(0,document.body.scrollTop),void e.preventDefault()}e.preventDefault(),loadPage(t=t.substring(1)),window.history.pushState(null,null,"/Team:Judd_UK/"+t.replace("*","/"))}}function loadPage(e){qs(".JC #content-container").style.visibility="hidden",AJAX("/Team:Judd_UK/Pages/"+e+"?action=raw&ctype=text/plain",function(t){if(200==t.status){page=e,html.innerHTML=t.responseText;var n=html.content||html;qs(".JC #content-body").innerHTML="",qs(".JC #content-index ol").innerHTML="","false"!=n.querySelector("div").dataset.templated&&qsa("[data-selector]").forEach(function(e){var t=n.querySelector(e.dataset.selector);e.innerHTML=t?e.dataset.text?t.innerText:t.outerHTML:""}),"false"!=n.querySelector("div").dataset.wiki?(qs(".JC #content-index").style.display="block",n.querySelectorAll("h2, h3").forEach(function(e,t){"H2"==e.tagName?qs(".JC #content-index ol").innerHTML+='<a href="#'+e.innerHTML.replace(/\s+/g,"-").replace(/[^A-Z0-9-_]+/gi,"")+"-"+t+'">'+e.innerHTML+"</a> ":qs(".JC #content-index ol").lastChild.querySelector("ol")?qs(".JC #content-index ol").lastChild.querySelector("ol").innerHTML+='<a href="#'+e.innerHTML.replace(/\s+/g,"-").replace(/[^A-Z0-9-_]+/gi,"")+"-"+t+'">'+e.innerHTML+"</a> ":qs(".JC #content-index ol").lastChild.innerHTML+='
- <a href="#'+e.innerHTML.replace(/\s+/g,"-").replace(/[^A-Z0-9-_]+/gi,"")+"-"+t+'">'+e.innerHTML+"</a>