

/*
 FastClick: polyfill to remove click delays on browsers with touch UIs.

 @version 1.0.3
 @codingstandard ftlabs-jsv2
 @copyright The Financial Times Limited [All Rights Reserved]
 @license MIT License (see LICENSE.txt)
*/
(function(){"use strict";function e(t,r){function s(e,t){return function(){return e.apply(t,arguments)}}var i;r=r||{};this.trackingClick=false;this.trackingClickStart=0;this.targetElement=null;this.touchStartX=0;this.touchStartY=0;this.lastTouchIdentifier=0;this.touchBoundary=r.touchBoundary||10;this.layer=t;this.tapDelay=r.tapDelay||200;this.tapTimeout=r.tapTimeout||700;if(e.notNeeded(t)){return}var o=["onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel"];var u=this;for(var a=0,f=o.length;a<f;a++){u[o[a]]=s(u[o[a]],u)}if(n){t.addEventListener("mouseover",this.onMouse,true);t.addEventListener("mousedown",this.onMouse,true);t.addEventListener("mouseup",this.onMouse,true)}t.addEventListener("click",this.onClick,true);t.addEventListener("touchstart",this.onTouchStart,false);t.addEventListener("touchmove",this.onTouchMove,false);t.addEventListener("touchend",this.onTouchEnd,false);t.addEventListener("touchcancel",this.onTouchCancel,false);if(!Event.prototype.stopImmediatePropagation){t.removeEventListener=function(e,n,r){var i=Node.prototype.removeEventListener;if(e==="click"){i.call(t,e,n.hijacked||n,r)}else{i.call(t,e,n,r)}};t.addEventListener=function(e,n,r){var i=Node.prototype.addEventListener;if(e==="click"){i.call(t,e,n.hijacked||(n.hijacked=function(e){if(!e.propagationStopped){n(e)}}),r)}else{i.call(t,e,n,r)}}}if(typeof t.onclick==="function"){i=t.onclick;t.addEventListener("click",function(e){i(e)},false);t.onclick=null}}var t=navigator.userAgent.indexOf("Windows Phone")>=0;var n=navigator.userAgent.indexOf("Android")>0&&!t;var r=/iP(ad|hone|od)/.test(navigator.userAgent)&&!t;var i=r&&/OS 4_\d(_\d)?/.test(navigator.userAgent);var s=r&&/OS ([6-9]|\d{2})_\d/.test(navigator.userAgent);var o=navigator.userAgent.indexOf("BB10")>0;e.prototype.needsClick=function(e){switch(e.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(e.disabled){return true}break;case"input":if(r&&e.type==="file"||e.disabled){return true}break;case"label":case"iframe":case"video":return true}return/\bneedsclick\b/.test(e.className)};e.prototype.needsFocus=function(e){switch(e.nodeName.toLowerCase()){case"textarea":return true;case"select":return!n;case"input":switch(e.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return false}return!e.disabled&&!e.readOnly;default:return/\bneedsfocus\b/.test(e.className)}};e.prototype.sendClick=function(e,t){var n,r;if(document.activeElement&&document.activeElement!==e){document.activeElement.blur()}r=t.changedTouches[0];n=document.createEvent("MouseEvents");n.initMouseEvent(this.determineEventType(e),true,true,window,1,r.screenX,r.screenY,r.clientX,r.clientY,false,false,false,false,0,null);n.forwardedTouchEvent=true;e.dispatchEvent(n)};e.prototype.determineEventType=function(e){if(n&&e.tagName.toLowerCase()==="select"){return"mousedown"}return"click"};e.prototype.focus=function(e){var t;if(r&&e.setSelectionRange&&e.type.indexOf("date")!==0&&e.type!=="time"&&e.type!=="month"){t=e.value.length;e.setSelectionRange(t,t)}else{e.focus()}};e.prototype.updateScrollParent=function(e){var t,n;t=e.fastClickScrollParent;if(!t||!t.contains(e)){n=e;do{if(n.scrollHeight>n.offsetHeight){t=n;e.fastClickScrollParent=n;break}n=n.parentElement}while(n)}if(t){t.fastClickLastScrollTop=t.scrollTop}};e.prototype.getTargetElementFromEventTarget=function(e){if(e.nodeType===Node.TEXT_NODE){return e.parentNode}return e};e.prototype.onTouchStart=function(e){var t,n,s;if(e.targetTouches.length>1){return true}t=this.getTargetElementFromEventTarget(e.target);n=e.targetTouches[0];if(r){s=window.getSelection();if(s.rangeCount&&!s.isCollapsed){return true}if(!i){if(n.identifier&&n.identifier===this.lastTouchIdentifier){e.preventDefault();return false}this.lastTouchIdentifier=n.identifier;this.updateScrollParent(t)}}this.trackingClick=true;this.trackingClickStart=e.timeStamp;this.targetElement=t;this.touchStartX=n.pageX;this.touchStartY=n.pageY;if(e.timeStamp-this.lastClickTime<this.tapDelay){e.preventDefault()}return true};e.prototype.touchHasMoved=function(e){var t=e.changedTouches[0],n=this.touchBoundary;if(Math.abs(t.pageX-this.touchStartX)>n||Math.abs(t.pageY-this.touchStartY)>n){return true}return false};e.prototype.onTouchMove=function(e){if(!this.trackingClick){return true}if(this.targetElement!==this.getTargetElementFromEventTarget(e.target)||this.touchHasMoved(e)){this.trackingClick=false;this.targetElement=null}return true};e.prototype.findControl=function(e){if(e.control!==undefined){return e.control}if(e.htmlFor){return document.getElementById(e.htmlFor)}return e.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")};e.prototype.onTouchEnd=function(e){var t,o,u,a,f,l=this.targetElement;if(!this.trackingClick){return true}if(e.timeStamp-this.lastClickTime<this.tapDelay){this.cancelNextClick=true;return true}if(e.timeStamp-this.trackingClickStart>this.tapTimeout){return true}this.cancelNextClick=false;this.lastClickTime=e.timeStamp;o=this.trackingClickStart;this.trackingClick=false;this.trackingClickStart=0;if(s){f=e.changedTouches[0];l=document.elementFromPoint(f.pageX-window.pageXOffset,f.pageY-window.pageYOffset)||l;l.fastClickScrollParent=this.targetElement.fastClickScrollParent}u=l.tagName.toLowerCase();if(u==="label"){t=this.findControl(l);if(t){this.focus(l);if(n){return false}l=t}}else if(this.needsFocus(l)){if(e.timeStamp-o>100||r&&window.top!==window&&u==="input"){this.targetElement=null;return false}this.focus(l);this.sendClick(l,e);if(!r||u!=="select"){this.targetElement=null;e.preventDefault()}return false}if(r&&!i){a=l.fastClickScrollParent;if(a&&a.fastClickLastScrollTop!==a.scrollTop){return true}}if(!this.needsClick(l)){e.preventDefault();this.sendClick(l,e)}return false};e.prototype.onTouchCancel=function(){this.trackingClick=false;this.targetElement=null};e.prototype.onMouse=function(e){if(!this.targetElement){return true}if(e.forwardedTouchEvent){return true}if(!e.cancelable){return true}if(!this.needsClick(this.targetElement)||this.cancelNextClick){if(e.stopImmediatePropagation){e.stopImmediatePropagation()}else{e.propagationStopped=true}e.stopPropagation();e.preventDefault();return false}return true};e.prototype.onClick=function(e){var t;if(this.trackingClick){this.targetElement=null;this.trackingClick=false;return true}if(e.target.type==="submit"&&e.detail===0){return true}t=this.onMouse(e);if(!t){this.targetElement=null}return t};e.prototype.destroy=function(){var e=this.layer;if(n){e.removeEventListener("mouseover",this.onMouse,true);e.removeEventListener("mousedown",this.onMouse,true);e.removeEventListener("mouseup",this.onMouse,true)}e.removeEventListener("click",this.onClick,true);e.removeEventListener("touchstart",this.onTouchStart,false);e.removeEventListener("touchmove",this.onTouchMove,false);e.removeEventListener("touchend",this.onTouchEnd,false);e.removeEventListener("touchcancel",this.onTouchCancel,false)};e.notNeeded=function(e){var t;var r;var i;if(typeof window.ontouchstart==="undefined"){return true}r=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1];if(r){if(n){t=document.querySelector("meta[name=viewport]");if(t){if(t.content.indexOf("user-scalable=no")!==-1){return true}if(r>31&&document.documentElement.scrollWidth<=window.outerWidth){return true}}}else{return true}}if(o){i=navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/);if(i[1]>=10&&i[2]>=3){t=document.querySelector("meta[name=viewport]");if(t){if(t.content.indexOf("user-scalable=no")!==-1){return true}if(document.documentElement.scrollWidth<=window.outerWidth){return true}}}}if(e.style.msTouchAction==="none"){return true}if(e.style.touchAction==="none"){return true}return false};e.attach=function(t,n){return new e(t,n)};if(typeof define=="function"&&typeof define.amd=="object"&&define.amd){define(function(){return e})}else if(typeof module!=="undefined"&&module.exports){module.exports=e.attach;module.exports.FastClick=e}else{window.FastClick=e}})()


/*! modernizr 3.5.0 (Custom Build) | MIT *
 * https://modernizr.com/download/?-csstransforms-csstransforms3d-flexbox-fontface-touchevents-domprefixes-mq-prefixed-prefixedcss-prefixedcssvalue-prefixes-setclasses-testallprops-testprop-teststyles !*/
!function(e,t,n){function r(e,t){return typeof e===t}function o(){var e,t,n,o,s,i,a;for(var u in S)if(S.hasOwnProperty(u)){if(e=[],t=S[u],t.name&&(e.push(t.name.toLowerCase()),t.options&&t.options.aliases&&t.options.aliases.length))for(n=0;n<t.options.aliases.length;n++)e.push(t.options.aliases[n].toLowerCase());for(o=r(t.fn,"function")?t.fn():t.fn,s=0;s<e.length;s++)i=e[s],a=i.split("."),1===a.length?Modernizr[a[0]]=o:(!Modernizr[a[0]]||Modernizr[a[0]]instanceof Boolean||(Modernizr[a[0]]=new Boolean(Modernizr[a[0]])),Modernizr[a[0]][a[1]]=o),x.push((o?"":"no-")+a.join("-"))}}function s(e){var t=b.className,n=Modernizr._config.classPrefix||"";if(_&&(t=t.baseVal),Modernizr._config.enableJSClass){var r=new RegExp("(^|\\s)"+n+"no-js(\\s|$)");t=t.replace(r,"$1"+n+"js$2")}Modernizr._config.enableClasses&&(t+=" "+n+e.join(" "+n),_?b.className.baseVal=t:b.className=t)}function i(e){return e.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-")}function a(e){return e.replace(/([a-z])-([a-z])/g,function(e,t,n){return t+n.toUpperCase()}).replace(/^-/,"")}function u(){return"function"!=typeof t.createElement?t.createElement(arguments[0]):_?t.createElementNS.call(t,"http://www.w3.org/2000/svg",arguments[0]):t.createElement.apply(t,arguments)}function f(){var e=t.body;return e||(e=u(_?"svg":"body"),e.fake=!0),e}function l(e,n,r,o){var s,i,a,l,c="modernizr",d=u("div"),p=f();if(parseInt(r,10))for(;r--;)a=u("div"),a.id=o?o[r]:c+(r+1),d.appendChild(a);return s=u("style"),s.type="text/css",s.id="s"+c,(p.fake?p:d).appendChild(s),p.appendChild(d),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(t.createTextNode(e)),d.id=c,p.fake&&(p.style.background="",p.style.overflow="hidden",l=b.style.overflow,b.style.overflow="hidden",b.appendChild(p)),i=n(d,e),p.fake?(p.parentNode.removeChild(p),b.style.overflow=l,b.offsetHeight):d.parentNode.removeChild(d),!!i}function c(e,t){return!!~(""+e).indexOf(t)}function d(e,t){return function(){return e.apply(t,arguments)}}function p(e,t,n){var o;for(var s in e)if(e[s]in t)return n===!1?e[s]:(o=t[e[s]],r(o,"function")?d(o,n||t):o);return!1}function m(t,n,r){var o;if("getComputedStyle"in e){o=getComputedStyle.call(e,t,n);var s=e.console;if(null!==o)r&&(o=o.getPropertyValue(r));else if(s){var i=s.error?"error":"log";s[i].call(s,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}}else o=!n&&t.currentStyle&&t.currentStyle[r];return o}function v(t,r){var o=t.length;if("CSS"in e&&"supports"in e.CSS){for(;o--;)if(e.CSS.supports(i(t[o]),r))return!0;return!1}if("CSSSupportsRule"in e){for(var s=[];o--;)s.push("("+i(t[o])+":"+r+")");return s=s.join(" or "),l("@supports ("+s+") { #modernizr { position: absolute; } }",function(e){return"absolute"==m(e,null,"position")})}return n}function h(e,t,o,s){function i(){l&&(delete q.style,delete q.modElem)}if(s=r(s,"undefined")?!1:s,!r(o,"undefined")){var f=v(e,o);if(!r(f,"undefined"))return f}for(var l,d,p,m,h,g=["modernizr","tspan","samp"];!q.style&&g.length;)l=!0,q.modElem=u(g.shift()),q.style=q.modElem.style;for(p=e.length,d=0;p>d;d++)if(m=e[d],h=q.style[m],c(m,"-")&&(m=a(m)),q.style[m]!==n){if(s||r(o,"undefined"))return i(),"pfx"==t?m:!0;try{q.style[m]=o}catch(y){}if(q.style[m]!=h)return i(),"pfx"==t?m:!0}return i(),!1}function g(e,t,n,o,s){var i=e.charAt(0).toUpperCase()+e.slice(1),a=(e+" "+N.join(i+" ")+i).split(" ");return r(t,"string")||r(t,"undefined")?h(a,t,o,s):(a=(e+" "+z.join(i+" ")+i).split(" "),p(a,t,n))}function y(e,t,r){return g(e,n,n,t,r)}var x=[],S=[],C={_version:"3.5.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var n=this;setTimeout(function(){t(n[e])},0)},addTest:function(e,t,n){S.push({name:e,fn:t,options:n})},addAsyncTest:function(e){S.push({name:null,fn:e})}},Modernizr=function(){};Modernizr.prototype=C,Modernizr=new Modernizr;var w=C._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];C._prefixes=w;var b=t.documentElement,_="svg"===b.nodeName.toLowerCase(),T="Moz O ms Webkit",z=C._config.usePrefixes?T.toLowerCase().split(" "):[];C._domPrefixes=z;var P=function(e,t){var n=!1,r=u("div"),o=r.style;if(e in o){var s=z.length;for(o[e]=t,n=o[e];s--&&!n;)o[e]="-"+z[s]+"-"+t,n=o[e]}return""===n&&(n=!1),n};C.prefixedCSSValue=P;var E="CSS"in e&&"supports"in e.CSS,R="supportsCSS"in e;Modernizr.addTest("supports",E||R);var j=function(){var t=e.matchMedia||e.msMatchMedia;return t?function(e){var n=t(e);return n&&n.matches||!1}:function(t){var n=!1;return l("@media "+t+" { #modernizr { position: absolute; } }",function(t){n="absolute"==(e.getComputedStyle?e.getComputedStyle(t,null):t.currentStyle).position}),n}}();C.mq=j;var k=C.testStyles=l;Modernizr.addTest("touchevents",function(){var n;if("ontouchstart"in e||e.DocumentTouch&&t instanceof DocumentTouch)n=!0;else{var r=["@media (",w.join("touch-enabled),("),"heartz",")","{#modernizr{top:9px;position:absolute}}"].join("");k(r,function(e){n=9===e.offsetTop})}return n});var A=function(){var e=navigator.userAgent,t=e.match(/w(eb)?osbrowser/gi),n=e.match(/windows phone/gi)&&e.match(/iemobile\/([0-9])+/gi)&&parseFloat(RegExp.$1)>=9;return t||n}();A?Modernizr.addTest("fontface",!1):k('@font-face {font-family:"font";src:url("https://")}',function(e,n){var r=t.getElementById("smodernizr"),o=r.sheet||r.styleSheet,s=o?o.cssRules&&o.cssRules[0]?o.cssRules[0].cssText:o.cssText||"":"",i=/src/i.test(s)&&0===s.indexOf(n.split(" ")[0]);Modernizr.addTest("fontface",i)});var N=C._config.usePrefixes?T.split(" "):[];C._cssomPrefixes=N;var O=function(t){var r,o=w.length,s=e.CSSRule;if("undefined"==typeof s)return n;if(!t)return!1;if(t=t.replace(/^@/,""),r=t.replace(/-/g,"_").toUpperCase()+"_RULE",r in s)return"@"+t;for(var i=0;o>i;i++){var a=w[i],u=a.toUpperCase()+"_"+r;if(u in s)return"@-"+a.toLowerCase()+"-"+t}return!1};C.atRule=O;var L={elem:u("modernizr")};Modernizr._q.push(function(){delete L.elem});var q={style:L.elem.style};Modernizr._q.unshift(function(){delete q.style});C.testProp=function(e,t,r){return h([e],n,t,r)};C.testAllProps=g;var M=C.prefixed=function(e,t,n){return 0===e.indexOf("@")?O(e):(-1!=e.indexOf("-")&&(e=a(e)),t?g(e,t,n):g(e,"pfx"))};C.prefixedCSS=function(e){var t=M(e);return t&&i(t)};C.testAllProps=y,Modernizr.addTest("flexbox",y("flexBasis","1px",!0)),Modernizr.addTest("csstransforms",function(){return-1===navigator.userAgent.indexOf("Android 2.")&&y("transform","scale(1)",!0)}),Modernizr.addTest("csstransforms3d",function(){var e=!!y("perspective","1px",!0),t=Modernizr._config.usePrefixes;if(e&&(!t||"webkitPerspective"in b.style)){var n,r="#modernizr{width:0;height:0}";Modernizr.supports?n="@supports (perspective: 1px)":(n="@media (transform-3d)",t&&(n+=",(-webkit-transform-3d)")),n+="{#modernizr{width:7px;height:18px;margin:0;padding:0;border:0}}",k(r+n,function(t){e=7===t.offsetWidth&&18===t.offsetHeight})}return e}),o(),s(x),delete C.addTest,delete C.addAsyncTest;for(var U=0;U<Modernizr._q.length;U++)Modernizr._q[U]();e.Modernizr=Modernizr}(window,document);

// Columnize
!function(e){e.fn.columnize=function(n){var t={width:400,columns:!1,buildOnce:!1,overflow:!1,doneFunc:function(){},target:!1,ignoreImageLoading:!0,float:"left",lastNeverTallest:!1},n=e.extend(t,n);return this.each(function(){function t(t,l,i,d){for(;i.height()<d&&l[0].childNodes.length;)t.append(l[0].childNodes[0]);if(0!=t[0].childNodes.length){var o=t[0].childNodes,r=o[o.length-1];t[0].removeChild(r);var a=e(r);if(3==a[0].nodeType){var c=a[0].nodeValue,h=n.width/18;n.accuracy&&(h=n.accuracy);for(var s,f=null;i.height()<d&&c.length;)s="-1"!=c.indexOf(" ",h)?c.substring(0,c.indexOf(" ",h)):c,f=document.createTextNode(s),t.append(f),c=c.length>h?c.substring(c.indexOf(" ",h)):"";if(i.height()>=d&&null!=f&&(t[0].removeChild(f),c=f.nodeValue+c),!c.length)return!1;a[0].nodeValue=c}return l.children().length?l.prepend(a):l.append(a),3==a[0].nodeType}}function l(e,n,i,d){n.children().length&&($cloneMe=n.children(":first"),$clone=$cloneMe.clone(!0),1!=$clone.attr("nodeType")||$clone.hasClass("dontend")||(e.append($clone),$clone.is("img")&&i.height()<d+20?$cloneMe.remove():!$cloneMe.hasClass("dontsplit")&&i.height()<d+20?$cloneMe.remove():$clone.is("img")||$cloneMe.hasClass("dontsplit")?$clone.remove():($clone.empty(),t($clone,$cloneMe,i,d)||$cloneMe.children().length&&l($clone,$cloneMe,i,d),0==$clone.get(0).childNodes.length&&$clone.remove())))}function i(){if(!r.data("columnized")||1!=r.children().length){if(r.data("columnized",!0),r.data("columnizing",!0),r.empty(),r.append(e("<div class='first last column' style='width:98%; padding: 3px; float: "+n.float+";'></div>")),$col=r.children().eq(r.children().length-1),$destroyable=c.clone(!0),n.overflow){for(targetHeight=n.overflow.height,t($col,$destroyable,$col,targetHeight),$destroyable.children().find(":first-child").hasClass("dontend")||l($col,$destroyable,$col,targetHeight);d($col.children(":last").length&&$col.children(":last").get(0));){var i=$col.children(":last");i.remove(),$destroyable.prepend(i)}for(var o="",a=document.createElement("DIV");$destroyable[0].childNodes.length>0;){for(var h=$destroyable[0].childNodes[0],s=0;s<h.attributes.length;s++)0==h.attributes[s].nodeName.indexOf("jQuery")&&h.removeAttribute(h.attributes[s].nodeName);a.innerHTML="",a.appendChild($destroyable[0].childNodes[0]),o+=a.innerHTML}e(n.overflow.id)[0].innerHTML=o}else $col.append($destroyable);r.data("columnizing",!1),n.overflow&&n.overflow.doneFunc()}}function d(n){return 1==n.nodeType&&(!!e(n).hasClass("dontend")||0!=n.childNodes.length&&d(n.childNodes[n.childNodes.length-1]))}function o(){if(h!=r.width()){h=r.width();var o=Math.round(r.width()/n.width);if(n.columns&&(o=n.columns),o<=1)return i();if(!r.data("columnizing")){r.data("columnized",!0),r.data("columnizing",!0),r.empty(),r.append(e("<div style='width:"+(Math.round(100/o)-2)+"%; padding: 3px; float: "+n.float+";'></div>")),(p=r.children(":last")).append(c.clone()),a=p.height(),r.empty();var s=a/o,f=3,u=!1;n.overflow?(f=1,s=n.overflow.height):n.height&&n.width&&(f=1,s=n.height,u=!0);for(var g=0;g<f;g++){r.empty();var m;try{m=c.clone(!0)}catch(e){m=c.clone()}m.css("visibility","hidden");for(M=0;M<o;M++){var v=0==M?"first column":"column",v=M==o-1?"last "+v:v;r.append(e("<div class='"+v+"' style='width:"+(Math.round(100/o)-2)+"%; float: "+n.float+";'></div>"))}for(M=0;M<o-(n.overflow?0:1)||u&&m.children().length;){r.children().length<=M&&r.append(e("<div class='"+v+"' style='width:"+(Math.round(100/o)-2)+"%; float: "+n.float+";'></div>"));var p=r.children().eq(M);for(t(p,m,p,s),m.children().find(":first-child").hasClass("dontend")||l(p,m,p,s);d(p.children(":last").length&&p.children(":last").get(0));){var $=p.children(":last");$.remove(),m.prepend($)}M++}if(n.overflow&&!u){if(document.all&&-1!=navigator.appVersion.indexOf("MSIE 7.")){for(var y="",w=document.createElement("DIV");m[0].childNodes.length>0;){for(var b=m[0].childNodes[0],M=0;M<b.attributes.length;M++)0==b.attributes[M].nodeName.indexOf("jQuery")&&b.removeAttribute(b.attributes[M].nodeName);w.innerHTML="",w.appendChild(m[0].childNodes[0]),y+=w.innerHTML}e(n.overflow.id)[0].innerHTML=y}else e(n.overflow.id).empty().append(m.children().clone(!0))}else if(u)r.children().each(function(e){(p=r.children().eq(e)).width(n.width+"px"),0==e?p.addClass("first"):e==r.children().length-1?p.addClass("last"):(p.removeClass("first"),p.removeClass("last"))}),r.width(r.children().length*n.width+"px");else{for(p=r.children().eq(r.children().length-1);m.children().length;)p.append(m.children(":first"));p.height();var N=0,T=1e7,C=0,x=!1;r.children().each(function(e){return function(n){var t=e.children().eq(n).height();x=!1,N+=t,t>C&&(C=t,x=!0),t<T&&(T=t)}}(r));var L=N/o;n.lastNeverTallest&&x?(s+=30,g==f-1&&f++):C-T>30?s=L+30:Math.abs(L-s)>20?s=L:g=f}r.append(e("<br style='clear:both;'>"))}r.find(".column").find(":first.removeiffirst").remove(),r.find(".column").find(":last.removeiflast").remove(),r.data("columnizing",!1),n.overflow&&n.overflow.doneFunc(),n.doneFunc()}}}var r=e(n.target?n.target:this),a=e(this).height(),c=e("<div></div>"),h=0;if(c.append(e(this).children().clone(!0)),!n.ignoreImageLoading&&!n.target&&!r.data("imageLoaded")&&(r.data("imageLoaded",!0),e(this).find("img").length>0)){var s=function(e,t){return function(){e.data("firstImageLoaded")||(e.data("firstImageLoaded","true"),e.empty().append(t.children().clone(!0)),e.columnize(n))}}(e(this),c);return e(this).find("img").one("load",s),void e(this).find("img").one("abort",s)}r.empty(),o(),n.buildOnce||e(window).resize(function(){!n.buildOnce&&e.browser.msie?(r.data("timeout")&&clearTimeout(r.data("timeout")),r.data("timeout",setTimeout(o,200))):n.buildOnce||o()})})}}(jQuery);
// Lazyload
!function(e,t){var o=e(t);e.fn.lazyload=function(n){var i,r=this,f={threshold:0,failure_limit:0,event:"scroll",effect:"show",container:t,data_attribute:"original",skip_invisible:!0,appear:null,load:null};function l(){var t=0;r.each(function(){var o=e(this);if(!f.skip_invisible||o.is(":visible"))if(e.abovethetop(this,f)||e.leftofbegin(this,f));else if(e.belowthefold(this,f)||e.rightoffold(this,f)){if(++t>f.failure_limit)return!1}else o.trigger("appear")})}return n&&(void 0!==n.failurelimit&&(n.failure_limit=n.failurelimit,delete n.failurelimit),void 0!==n.effectspeed&&(n.effect_speed=n.effectspeed,delete n.effectspeed),e.extend(f,n)),i=void 0===f.container||f.container===t?o:e(f.container),0===f.event.indexOf("scroll")&&i.bind(f.event,function(e){return l()}),this.each(function(){var t=this,o=e(t);t.loaded=!1,o.one("appear",function(){if(!this.loaded){if(f.appear){var n=r.length;f.appear.call(t,n,f)}var i;i=o.data("background")?o.data("background"):o.data(f.data_attribute),e("<img />").bind("load",function(){o.hide(),o.data("background")?o.css("backgroundImage","url("+o.data("background")+")"):o.attr("src",o.data(f.data_attribute)),o[f.effect](f.effect_speed),t.loaded=!0;var n=e.grep(r,function(e){return!e.loaded});if(r=e(n),f.load){var i=r.length;f.load.call(t,i,f)}}).attr("src",i)}}),0!==f.event.indexOf("scroll")&&o.bind(f.event,function(e){t.loaded||o.trigger("appear")})}),o.bind("resize",function(e){l()}),l(),this},e.belowthefold=function(n,i){return(void 0===i.container||i.container===t?o.height()+o.scrollTop():e(i.container).offset().top+e(i.container).height())<=e(n).offset().top-i.threshold},e.rightoffold=function(n,i){return(void 0===i.container||i.container===t?o.width()+o.scrollLeft():e(i.container).offset().left+e(i.container).width())<=e(n).offset().left-i.threshold},e.abovethetop=function(n,i){return(void 0===i.container||i.container===t?o.scrollTop():e(i.container).offset().top)>=e(n).offset().top+i.threshold+e(n).height()},e.leftofbegin=function(n,i){return(void 0===i.container||i.container===t?o.scrollLeft():e(i.container).offset().left)>=e(n).offset().left+i.threshold+e(n).width()},e.inviewport=function(t,o){return!(e.rightofscreen(t,o)||e.leftofscreen(t,o)||e.belowthefold(t,o)||e.abovethetop(t,o))},e.extend(e.expr[":"],{"below-the-fold":function(t){return e.belowthefold(t,{threshold:0})},"above-the-top":function(t){return!e.belowthefold(t,{threshold:0})},"right-of-screen":function(t){return e.rightoffold(t,{threshold:0})},"left-of-screen":function(t){return!e.rightoffold(t,{threshold:0})},"in-viewport":function(t){return!e.inviewport(t,{threshold:0})},"above-the-fold":function(t){return!e.belowthefold(t,{threshold:0})},"right-of-fold":function(t){return e.rightoffold(t,{threshold:0})},"left-of-fold":function(t){return!e.rightoffold(t,{threshold:0})}})}(jQuery,window);