var mr=(function($,window,document){"use strict";var mr={},components={documentReady:[],documentReadyDeferred:[],windowLoad:[],windowLoadDeferred:[],};$(document).ready(documentReady);$(window).load(windowLoad);function documentReady(context){context=typeof context==typeof undefined?$:context;components.documentReady.concat(components.documentReadyDeferred).forEach(function(component){component(context);});} function windowLoad(context){context=typeof context=="object"?$:context;components.windowLoad.concat(components.windowLoadDeferred).forEach(function(component){component(context);});} mr.setContext=function(contextSelector){var context=$;if(typeof contextSelector!==typeof undefined){return function(selector){return $(contextSelector).find(selector);};} return context;};mr.components=components;mr.documentReady=documentReady;mr.windowLoad=windowLoad;return mr;})(jQuery,window,document);mr=(function(mr,$,window,document){"use strict";mr.util={};mr.util.requestAnimationFrame=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame;mr.util.documentReady=function($){var today=new Date();var year=today.getFullYear();$(".update-year").text(year);};mr.util.getURLParameter=function(name){return(decodeURIComponent((new RegExp("[?|&]"+name+"="+"([^&;]+?)(&|#|;|$)").exec(location.search)||[undefined,""])[1].replace(/\+/g,"%20"))||null);};mr.util.capitaliseFirstLetter=function(string){return string.charAt(0).toUpperCase()+string.slice(1);};mr.util.slugify=function(text,spacesOnly){if(typeof spacesOnly!==typeof undefined){return text.replace(/ +/g,"");}else{return text.toLowerCase().replace(/[^\w ]+/g,"").replace(/ +/g,"-");}};mr.util.sortChildrenByText=function(parentElement,reverse){var $parentElement=$(parentElement);var items=$parentElement.children().get();var order=-1;var order2=1;if(typeof reverse!==typeof undefined){order=1;order2=-1;} items.sort(function(a,b){var keyA=$(a).text();var keyB=$(b).text();if(keyAkeyB)return order2;return 0;});$parentElement.empty();$(items).each(function(i,itm){$parentElement.append(itm);});};mr.util.idleSrc=function(context,selector){selector=typeof selector!==typeof undefined?selector:"";var elems=context.is(selector+"[src]")?context:context.find(selector+"[src]");elems.each(function(index,elem){elem=$(elem);var currentSrc=elem.attr("src"),dataSrc=elem.attr("data-src");if(typeof dataSrc===typeof undefined){elem.attr("data-src",currentSrc);} elem.attr("src","");});};mr.util.activateIdleSrc=function(context,selector){selector=typeof selector!==typeof undefined?selector:"";var elems=context.is(selector+"[src]")?context:context.find(selector+"[src]");elems.each(function(index,elem){elem=$(elem);var dataSrc=elem.attr("data-src");if(typeof dataSrc!==typeof undefined){elem.attr("src",dataSrc);}});};mr.util.pauseVideo=function(context){var elems=context.is("video")?context:context.find("video");elems.each(function(index,video){var playingVideo=$(video).get(0);playingVideo.pause();});};mr.components.documentReady.push(mr.util.documentReady);return mr;})(mr,jQuery,window,document);mr=(function(mr,$,window,document){"use strict";mr.scroll={};mr.scroll.listeners=[];mr.scroll.y=0;mr.scroll.x=0;var documentReady=function($){if($("body").hasClass("scroll-assist")){mr.scroll.assisted=true;} addEventListener("scroll",function(evt){window.mr.scroll.y=window.pageYOffset;window.mr.scroll.update(evt);},false);};mr.scroll.update=function(event){for(var i=0,l=mr.scroll.listeners.length;i