function onYouTubeIframeAPIReady(){ytp.YTAPIReady||(ytp.YTAPIReady=!0,jQuery(document).trigger("YTAPIReady"))}function uncamel(n){return n.replace(/([A-Z])/g,function(n){return"-"+n.toLowerCase()})}function setUnit(n,t){return"string"!=typeof n||n.match(/^[\-0-9\.]+jQuery/)?""+n+t:n}function setFilter(n,t,i){var u=uncamel(t),r=jQuery.browser.mozilla?"":jQuery.CSS.sfx;n[r+"filter"]=n[r+"filter"]||"";i=setUnit(i>jQuery.CSS.filters[t].max?jQuery.CSS.filters[t].max:i,jQuery.CSS.filters[t].unit);n[r+"filter"]+=u+"("+i+") ";delete n[t]}function PresentMessage_TitleMessage(n,t){swal({title:n,text:t,html:!0})}function PresentMessage_TitleMessageType(n,t,i){swal({title:n,text:t,type:i,html:!0})}function PresentChoice(n,t,i,r,u,f,e,o){swal({title:n,text:t,type:i,showCancelButton:!0,confirmButtonText:r,cancelButtonText:u,closeOnConfirm:!0,closeOnCancel:!0,customClass:o,html:!0},function(n){n?typeof f!="undefined"&&f():typeof e!="undefined"&&e()});$("button.cancel").before($("button.confirm"))}function PresentInfoAndWait(n,t,i,r,u,f){swal({title:n,text:t,type:i,showCancelButton:!1,confirmButtonText:r,closeOnConfirm:!0,customClass:f,html:!0},function(n){n&&typeof u!="undefined"&&u()})}function PresentBottomNotification(n,t){$.toast({heading:n,text:t,position:"bottom-right",loaderBg:"#ff6849",icon:"info",hideAfter:3e3,stack:6})}function navbarSubmenu(n){n>767&&$(".main-navigation .navbar-nav > li.dropdown").hover(function(){var t=$(".dropdown-menu",$(this)).offset().left,i=$(".dropdown-menu",$(this)).width(),r;n-t<i*2?$(this).children(".dropdown-menu").addClass("leftauto"):$(this).children(".dropdown-menu").removeClass("leftauto");$(".dropdown",$(this)).length>0&&(r=$(".dropdown-menu",$(this)).width(),n-t-i<r?$(this).children(".dropdown-menu").addClass("left-side"):$(this).children(".dropdown-menu").removeClass("left-side"))})}function hoverDropdown(n,t){if(n>767&&t!==!0){$(".main-navigation .navbar-nav > li.dropdown, .main-navigation li.dropdown > ul > li.dropdown").removeClass("open");var r=0,i;$(".main-navigation .navbar-nav > li.dropdown, .main-navigation li.dropdown > ul > li.dropdown").hover(function(){var n=$(this);i=setTimeout(function(){n.addClass("open");n.find(".dropdown-toggle").addClass("disabled")},r)},function(){clearTimeout(i);$(this).removeClass("open");$(this).find(".dropdown-toggle").removeClass("disabled")})}else{$(".main-navigation .navbar-nav > li.dropdown, .main-navigation li.dropdown > ul > li.dropdown").unbind("mouseenter mouseleave");$(".main-navigation [data-toggle=dropdown]").not(".binded").addClass("binded").on("click",function(n){n.preventDefault();n.stopPropagation();$(this).parent().siblings().removeClass("open");$(this).parent().siblings().find("[data-toggle=dropdown]").parent().removeClass("open");$(this).parent().toggleClass("open")})}}function ssc_init(){var r;if(document.body){var n=document.body,i=document.documentElement,t=window.innerHeight,u=n.scrollHeight;ssc_root=document.compatMode.indexOf("CSS")>=0?i:n;ssc_activeElement=n;ssc_initdone=!0;top!=self?ssc_frame=!0:u>t&&(n.offsetHeight<=t||i.offsetHeight<=t)&&(ssc_root.style.height="auto",ssc_root.offsetHeight<=t&&(r=document.createElement("div"),r.style.clear="both",n.appendChild(r)));ssc_fixedback||(n.style.backgroundAttachment="scroll",i.style.backgroundAttachment="scroll");ssc_keyboardsupport&&ssc_addEvent("keydown",ssc_keydown)}}function ssc_scrollArray(n,t,i,r){if(r||(r=1e3),ssc_directionCheck(t,i),ssc_que.push({x:t,y:i,lastX:t<0?.99:-.99,lastY:i<0?.99:-.99,start:+new Date}),!ssc_pending){var u=function(){for(var w=+new Date,s=0,h=0,c,l,y,p,e=0;e<ssc_que.length;e++){var f=ssc_que[e],a=w-f.start,v=a>=ssc_animtime,o=v?1:a/ssc_animtime;ssc_pulseAlgorithm&&(o=ssc_pulse(o));c=f.x*o-f.lastX>>0;l=f.y*o-f.lastY>>0;s+=c;h+=l;f.lastX+=c;f.lastY+=l;v&&(ssc_que.splice(e,1),e--)}t&&(y=n.scrollLeft,n.scrollLeft+=s,s&&n.scrollLeft===y&&(t=0));i&&(p=n.scrollTop,n.scrollTop+=h,h&&n.scrollTop===p&&(i=0));t||i||(ssc_que=[]);ssc_que.length?setTimeout(u,r/ssc_framerate+1):ssc_pending=!1};setTimeout(u,0);ssc_pending=!0}}function ssc_wheel(n){var r,u,i,t;if(ssc_initdone||ssc_init(),r=n.target,u=ssc_overflowingAncestor(r),!u||n.defaultPrevented||ssc_isNodeName(ssc_activeElement,"embed")||ssc_isNodeName(r,"embed")&&/\.pdf/i.test(r.src))return!0;i=n.wheelDeltaX||0;t=n.wheelDeltaY||0;i||t||(t=n.wheelDelta||0);Math.abs(i)>1.2&&(i*=ssc_stepsize/120);Math.abs(t)>1.2&&(t*=ssc_stepsize/120);ssc_scrollArray(u,-i,-t);n.preventDefault()}function ssc_keydown(n){var u=n.target,s=n.ctrlKey||n.altKey||n.metaKey,e;if(/input|textarea|embed/i.test(u.nodeName)||u.isContentEditable||n.defaultPrevented||s||ssc_isNodeName(u,"button")&&n.keyCode===ssc_key.spacebar)return!0;var o,f=0,t=0,i=ssc_overflowingAncestor(ssc_activeElement),r=i.clientHeight;i==document.body&&(r=window.innerHeight);switch(n.keyCode){case ssc_key.up:t=-ssc_arrowscroll;break;case ssc_key.down:t=ssc_arrowscroll;break;case ssc_key.spacebar:o=n.shiftKey?1:-1;t=-o*r*.9;break;case ssc_key.pageup:t=-r*.9;break;case ssc_key.pagedown:t=r*.9;break;case ssc_key.home:t=-i.scrollTop;break;case ssc_key.end:e=i.scrollHeight-i.scrollTop-r;t=e>0?e+10:0;break;case ssc_key.left:f=-ssc_arrowscroll;break;case ssc_key.right:f=ssc_arrowscroll;break;default:return!0}ssc_scrollArray(i,f,t);n.preventDefault()}function ssc_mousedown(n){ssc_activeElement=n.target}function ssc_setCache(n,t){for(var i=n.length;i--;)ssc_cache[ssc_uniqueID(n[i])]=t;return t}function ssc_overflowingAncestor(n){var t=[],r=ssc_root.scrollHeight,i;do{if(i=ssc_cache[ssc_uniqueID(n)],i)return ssc_setCache(t,i);if(t.push(n),r===n.scrollHeight){if(!ssc_frame||ssc_root.clientHeight+10<r)return ssc_setCache(t,document.body)}else if(n.clientHeight+10<n.scrollHeight&&(overflow=getComputedStyle(n,"").getPropertyValue("overflow"),overflow==="scroll"||overflow==="auto"))return ssc_setCache(t,n)}while(n=n.parentNode)}function ssc_addEvent(n,t,i){window.addEventListener(n,t,i||!1)}function ssc_removeEvent(n,t,i){window.removeEventListener(n,t,i||!1)}function ssc_isNodeName(n,t){return n.nodeName.toLowerCase()===t.toLowerCase()}function ssc_directionCheck(n,t){n=n>0?1:-1;t=t>0?1:-1;(ssc_direction.x!==n||ssc_direction.y!==t)&&(ssc_direction.x=n,ssc_direction.y=t,ssc_que=[])}function ssc_pulse_(n){var t,i,r;return n=n*ssc_pulseScale,n<1?t=n-(1-Math.exp(-n)):(i=Math.exp(-1),n-=1,r=1-Math.exp(-n),t=i+r*(1-i)),t*ssc_pulseNormalize}function ssc_pulse(n){return n>=1?1:n<=0?0:(ssc_pulseNormalize==1&&(ssc_pulseNormalize/=ssc_pulse_(1)),ssc_pulse_(n))}function callPlayer(n,t,i){window.jQuery&&n instanceof jQuery&&(n=n.get(0).id);var r=document.getElementById(n);r&&r.tagName.toUpperCase()!="IFRAME"&&(r=r.getElementsByTagName("iframe")[0]);r&&r.contentWindow.postMessage(JSON.stringify({event:"command",func:t,args:i||[],id:n}),"*")}var ytp,getYTPVideoID,nAgt,nameOffset,verOffset,ix,start,end,$event,$special,resizeTimeout,BLANK,Grid,navbar,width,mobileTest,ssc_uniqueID,ischrome;(function(){function t(){}function r(n,t){for(var i=n.length;i--;)if(n[i].listener===t)return i;return-1}function i(n){return function(){return this[n].apply(this,arguments)}}var n=t.prototype,u=this,f=u.EventEmitter;n.getListeners=function(n){var r,t,i=this._getEvents();if("object"==typeof n){r={};for(t in i)i.hasOwnProperty(t)&&n.test(t)&&(r[t]=i[t])}else r=i[n]||(i[n]=[]);return r};n.flattenListeners=function(n){for(var i=[],t=0;n.length>t;t+=1)i.push(n[t].listener);return i};n.getListenersAsObject=function(n){var t,i=this.getListeners(n);return i instanceof Array&&(t={},t[n]=i),t||i};n.addListener=function(n,t){var i,u=this.getListenersAsObject(n),f="object"==typeof t;for(i in u)u.hasOwnProperty(i)&&-1===r(u[i],t)&&u[i].push(f?t:{listener:t,once:!1});return this};n.on=i("addListener");n.addOnceListener=function(n,t){return this.addListener(n,{listener:t,once:!0})};n.once=i("addOnceListener");n.defineEvent=function(n){return this.getListeners(n),this};n.defineEvents=function(n){for(var t=0;n.length>t;t+=1)this.defineEvent(n[t]);return this};n.removeListener=function(n,t){var f,i,u=this.getListenersAsObject(n);for(i in u)u.hasOwnProperty(i)&&(f=r(u[i],t),-1!==f&&u[i].splice(f,1));return this};n.off=i("removeListener");n.addListeners=function(n,t){return this.manipulateListeners(!1,n,t)};n.removeListeners=function(n,t){return this.manipulateListeners(!0,n,t)};n.manipulateListeners=function(n,t,i){var r,u,f=n?this.removeListener:this.addListener,e=n?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(r=i.length;r--;)f.call(this,t,i[r]);else for(r in t)t.hasOwnProperty(r)&&(u=t[r])&&("function"==typeof u?f.call(this,r,u):e.call(this,r,u));return this};n.removeEvent=function(n){var t,r=typeof n,i=this._getEvents();if("string"===r)delete i[n];else if("object"===r)for(t in i)i.hasOwnProperty(t)&&n.test(t)&&delete i[t];else delete this._events;return this};n.removeAllListeners=i("removeEvent");n.emitEvent=function(n,t){var i,f,r,e,u=this.getListenersAsObject(n);for(r in u)if(u.hasOwnProperty(r))for(f=u[r].length;f--;)i=u[r][f],i.once===!0&&this.removeListener(n,i.listener),e=i.listener.apply(this,t||[]),e===this._getOnceReturnValue()&&this.removeListener(n,i.listener);return this};n.trigger=i("emitEvent");n.emit=function(n){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(n,t)};n.setOnceReturnValue=function(n){return this._onceReturnValue=n,this};n._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0};n._getEvents=function(){return this._events||(this._events={})};t.noConflict=function(){return u.EventEmitter=f,t};"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return t}):"object"==typeof module&&module.exports?module.exports=t:this.EventEmitter=t}).call(this),function(n){function f(t){var i=n.event;return i.target=i.target||i.srcElement||t,i}var t=document.documentElement,r=function(){},i,u;t.addEventListener?r=function(n,t,i){n.addEventListener(t,i,!1)}:t.attachEvent&&(r=function(n,t,i){n[t+i]=i.handleEvent?function(){var t=f(n);i.handleEvent.call(i,t)}:function(){var t=f(n);i.call(n,t)};n.attachEvent("on"+t,n[t+i])});i=function(){};t.removeEventListener?i=function(n,t,i){n.removeEventListener(t,i,!1)}:t.detachEvent&&(i=function(n,t,i){n.detachEvent("on"+t,n[t+i]);try{delete n[t+i]}catch(r){n[t+i]=void 0}});u={bind:r,unbind:i};"function"==typeof define&&define.amd?define("eventie/eventie",u):n.eventie=u}(this),function(n,t){"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(i,r){return t(n,i,r)}):"object"==typeof exports?module.exports=t(n,require("wolfy87-eventemitter"),require("eventie")):n.imagesLoaded=t(n,n.EventEmitter,n.eventie)}(window,function(n,t,i){function s(n,t){for(var i in t)n[i]=t[i];return n}function c(n){return"[object Array]"===v.call(n)}function l(n){var t=[],i,r;if(c(n))t=n;else if("number"==typeof n.length)for(i=0,r=n.length;r>i;i++)t.push(n[i]);else t.push(n);return t}function r(n,t,i){if(!(this instanceof r))return new r(n,t);"string"==typeof n&&(n=document.querySelectorAll(n));this.elements=l(n);this.options=s({},this.options);"function"==typeof t?i=t:s(this.options,t);i&&this.on("always",i);this.getImages();f&&(this.jqDeferred=new f.Deferred);var u=this;setTimeout(function(){u.check()})}function e(n){this.img=n}function u(n){this.src=n;o[n]=this}var f=n.jQuery,h=n.console,a=h!==void 0,v=Object.prototype.toString,o;return r.prototype=new t,r.prototype.options={},r.prototype.getImages=function(){var i,u,n,t,e;for(this.images=[],i=0,u=this.elements.length;u>i;i++)if(n=this.elements[i],"IMG"===n.nodeName&&this.addImage(n),t=n.nodeType,t&&(1===t||9===t||11===t))for(var f=n.querySelectorAll("img"),r=0,o=f.length;o>r;r++)e=f[r],this.addImage(e)},r.prototype.addImage=function(n){var t=new e(n);this.images.push(t)},r.prototype.check=function(){function f(n,r){return t.options.debug&&a&&h.log("confirm",n,r),t.progress(n),u++,u===i&&t.complete(),!0}var t=this,u=0,i=this.images.length,n,r;if(this.hasAnyBroken=!1,!i)return this.complete(),void 0;for(n=0;i>n;n++)r=this.images[n],r.on("confirm",f),r.check()},r.prototype.progress=function(n){this.hasAnyBroken=this.hasAnyBroken||!n.isLoaded;var t=this;setTimeout(function(){t.emit("progress",t,n);t.jqDeferred&&t.jqDeferred.notify&&t.jqDeferred.notify(t,n)})},r.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done",n;this.isComplete=!0;n=this;setTimeout(function(){if(n.emit(t,n),n.emit("always",n),n.jqDeferred){var i=n.hasAnyBroken?"reject":"resolve";n.jqDeferred[i](n)}})},f&&(f.fn.imagesLoaded=function(n,t){var i=new r(this,n,t);return i.jqDeferred.promise(f(this))}),e.prototype=new t,e.prototype.check=function(){var n=o[this.img.src]||new u(this.img.src),t;if(n.isConfirmed)return this.confirm(n.isLoaded,"cached was confirmed"),void 0;if(this.img.complete&&void 0!==this.img.naturalWidth)return this.confirm(0!==this.img.naturalWidth,"naturalWidth"),void 0;t=this;n.on("confirm",function(n,i){return t.confirm(n.isLoaded,i),!0});n.check()},e.prototype.confirm=function(n,t){this.isLoaded=n;this.emit("confirm",this,t)},o={},u.prototype=new t,u.prototype.check=function(){if(!this.isChecked){var n=new Image;i.bind(n,"load",this);i.bind(n,"error",this);n.src=this.src;this.isChecked=!0}},u.prototype.handleEvent=function(n){var t="on"+n.type;this[t]&&this[t](n)},u.prototype.onload=function(n){this.confirm(!0,"onload");this.unbindProxyEvents(n)},u.prototype.onerror=function(n){this.confirm(!1,"onerror");this.unbindProxyEvents(n)},u.prototype.confirm=function(n,t){this.isConfirmed=!0;this.isLoaded=n;this.emit("confirm",this,t)},u.prototype.unbindProxyEvents=function(n){i.unbind(n.target,"load",this);i.unbind(n.target,"error",this)},r});!function(n){function i(){}function t(n){function u(t){t.prototype.option||(t.prototype.option=function(t){n.isPlainObject(t)&&(this.options=n.extend(!0,this.options,t))})}function f(i,u){n.fn[i]=function(f){var h,e,s;if("string"==typeof f){for(var c=r.call(arguments,1),o=0,l=this.length;l>o;o++)if(h=this[o],e=n.data(h,i),e)if(n.isFunction(e[f])&&"_"!==f.charAt(0)){if(s=e[f].apply(e,c),void 0!==s)return s}else t("no such method '"+f+"' for "+i+" instance");else t("cannot call methods on "+i+" prior to initialization; attempted to call '"+f+"'");return this}return this.each(function(){var t=n.data(this,i);t?(t.option(f),t._init()):(t=new u(this,f),n.data(this,i,t))})}}if(n){var t="undefined"==typeof console?i:function(n){console.error(n)};return n.bridget=function(n,t){u(t);f(n,t)},n.bridget}}var r=Array.prototype.slice;"function"==typeof define&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],t):t("object"==typeof exports?require("jquery"):n.jQuery)}(window),function(n){function f(t){var i=n.event;return i.target=i.target||i.srcElement||t,i}var t=document.documentElement,u=function(){},i,r;t.addEventListener?u=function(n,t,i){n.addEventListener(t,i,!1)}:t.attachEvent&&(u=function(n,t,i){n[t+i]=i.handleEvent?function(){var t=f(n);i.handleEvent.call(i,t)}:function(){var t=f(n);i.call(n,t)};n.attachEvent("on"+t,n[t+i])});i=function(){};t.removeEventListener?i=function(n,t,i){n.removeEventListener(t,i,!1)}:t.detachEvent&&(i=function(n,t,i){n.detachEvent("on"+t,n[t+i]);try{delete n[t+i]}catch(r){n[t+i]=void 0}});r={bind:u,unbind:i};"function"==typeof define&&define.amd?define("eventie/eventie",r):"object"==typeof exports?module.exports=r:n.eventie=r}(window),function(){"use strict";function t(){}function u(n,t){for(var i=n.length;i--;)if(n[i].listener===t)return i;return-1}function i(n){return function(){return this[n].apply(this,arguments)}}var n=t.prototype,r=this,f=r.EventEmitter;n.getListeners=function(n){var r,t,i=this._getEvents();if(n instanceof RegExp){r={};for(t in i)i.hasOwnProperty(t)&&n.test(t)&&(r[t]=i[t])}else r=i[n]||(i[n]=[]);return r};n.flattenListeners=function(n){for(var i=[],t=0;t<n.length;t+=1)i.push(n[t].listener);return i};n.getListenersAsObject=function(n){var t,i=this.getListeners(n);return i instanceof Array&&(t={},t[n]=i),t||i};n.addListener=function(n,t){var i,r=this.getListenersAsObject(n),f="object"==typeof t;for(i in r)r.hasOwnProperty(i)&&-1===u(r[i],t)&&r[i].push(f?t:{listener:t,once:!1});return this};n.on=i("addListener");n.addOnceListener=function(n,t){return this.addListener(n,{listener:t,once:!0})};n.once=i("addOnceListener");n.defineEvent=function(n){return this.getListeners(n),this};n.defineEvents=function(n){for(var t=0;t<n.length;t+=1)this.defineEvent(n[t]);return this};n.removeListener=function(n,t){var f,i,r=this.getListenersAsObject(n);for(i in r)r.hasOwnProperty(i)&&(f=u(r[i],t),-1!==f&&r[i].splice(f,1));return this};n.off=i("removeListener");n.addListeners=function(n,t){return this.manipulateListeners(!1,n,t)};n.removeListeners=function(n,t){return this.manipulateListeners(!0,n,t)};n.manipulateListeners=function(n,t,i){var r,u,f=n?this.removeListener:this.addListener,e=n?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(r=i.length;r--;)f.call(this,t,i[r]);else for(r in t)t.hasOwnProperty(r)&&(u=t[r])&&("function"==typeof u?f.call(this,r,u):e.call(this,r,u));return this};n.removeEvent=function(n){var t,r=typeof n,i=this._getEvents();if("string"===r)delete i[n];else if(n instanceof RegExp)for(t in i)i.hasOwnProperty(t)&&n.test(t)&&delete i[t];else delete this._events;return this};n.removeAllListeners=i("removeEvent");n.emitEvent=function(n,t){var i,f,r,e,u=this.getListenersAsObject(n);for(r in u)if(u.hasOwnProperty(r))for(f=u[r].length;f--;)i=u[r][f],i.once===!0&&this.removeListener(n,i.listener),e=i.listener.apply(this,t||[]),e===this._getOnceReturnValue()&&this.removeListener(n,i.listener);return this};n.trigger=i("emitEvent");n.emit=function(n){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(n,t)};n.setOnceReturnValue=function(n){return this._onceReturnValue=n,this};n._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0};n._getEvents=function(){return this._events||(this._events={})};t.noConflict=function(){return r.EventEmitter=f,t};"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return t}):"object"==typeof module&&module.exports?module.exports=t:r.EventEmitter=t}.call(this),function(n){function t(n){if(n){if("string"==typeof r[n])return n;n=n.charAt(0).toUpperCase()+n.slice(1);for(var t,u=0,f=i.length;f>u;u++)if(t=i[u]+n,"string"==typeof r[t])return t}}var i="Webkit Moz ms Ms O".split(" "),r=document.documentElement.style;"function"==typeof define&&define.amd?define("get-style-property/get-style-property",[],function(){return t}):"object"==typeof exports?module.exports=t:n.getStyleProperty=t}(window),function(n){function i(n){var t=parseFloat(n),i=-1===n.indexOf("%")&&!isNaN(t);return i&&t}function u(){}function f(){for(var r,i={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},n=0,u=t.length;u>n;n++)r=t[n],i[r]=0;return i}function r(r){function c(){var f,t,c,l;h||(h=!0,f=n.getComputedStyle,(o=function(){var n=f?function(n){return f(n,null)}:function(n){return n.currentStyle};return function(t){var i=n(t);return i||e("Style returned "+i+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),i}}(),u=r("boxSizing"))&&(t=document.createElement("div"),t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style[u]="border-box",c=document.body||document.documentElement,c.appendChild(t),l=o(t),s=200===i(l.width),c.removeChild(t)))}function l(n){var e,r,v,h,y,p;if(c(),"string"==typeof n&&(n=document.querySelector(n)),n&&"object"==typeof n&&n.nodeType){if(e=o(n),"none"===e.display)return f();r={};r.width=n.offsetWidth;r.height=n.offsetHeight;for(var tt=r.isBorderBox=!(!u||!e[u]||"border-box"!==e[u]),l=0,it=t.length;it>l;l++)v=t[l],h=e[v],h=a(n,h),y=parseFloat(h),r[v]=isNaN(y)?0:y;var w=r.paddingLeft+r.paddingRight,b=r.paddingTop+r.paddingBottom,rt=r.marginLeft+r.marginRight,ut=r.marginTop+r.marginBottom,k=r.borderLeftWidth+r.borderRightWidth,d=r.borderTopWidth+r.borderBottomWidth,g=tt&&s,nt=i(e.width);return nt!==!1&&(r.width=nt+(g?0:w+k)),p=i(e.height),p!==!1&&(r.height=p+(g?0:b+d)),r.innerWidth=r.width-(w+k),r.innerHeight=r.height-(b+d),r.outerWidth=r.width+rt,r.outerHeight=r.height+ut,r}}function a(t,i){if(n.getComputedStyle||-1===i.indexOf("%"))return i;var r=t.style,e=r.left,u=t.runtimeStyle,f=u&&u.left;return f&&(u.left=t.currentStyle.left),r.left=i,i=r.pixelLeft,r.left=e,f&&(u.left=f),i}var o,u,s,h=!1;return l}var e="undefined"==typeof console?u:function(n){console.error(n)},t=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];"function"==typeof define&&define.amd?define("get-size/get-size",["get-style-property/get-style-property"],r):"object"==typeof exports?module.exports=r(require("desandro-get-style-property")):n.getSize=r(n.getStyleProperty)}(window),function(n){function t(n){"function"==typeof n&&(t.isReady?n():f.push(n))}function r(n){var r="readystatechange"===n.type&&"complete"!==i.readyState;t.isReady||r||e()}function e(){var n,i,r;for(t.isReady=!0,n=0,i=f.length;i>n;n++)r=f[n],r()}function u(u){return"complete"===i.readyState?e():(u.bind(i,"DOMContentLoaded",r),u.bind(i,"readystatechange",r),u.bind(n,"load",r)),t}var i=n.document,f=[];t.isReady=!1;"function"==typeof define&&define.amd?define("doc-ready/doc-ready",["eventie/eventie"],u):"object"==typeof exports?module.exports=u(require("eventie")):n.docReady=u(n.eventie)}(window),function(n){"use strict";function i(n,t){return n[u](t)}function r(n){if(!n.parentNode){var t=document.createDocumentFragment();t.appendChild(n)}}function o(n,t){r(n);for(var u=n.parentNode.querySelectorAll(t),i=0,f=u.length;f>i;i++)if(u[i]===n)return!0;return!1}function s(n,t){return r(n),i(n,t)}var t,u=function(){var u,i;if(n.matches)return"matches";if(n.matchesSelector)return"matchesSelector";for(var r=["webkit","moz","ms","o"],t=0,f=r.length;f>t;t++)if(u=r[t],i=u+"MatchesSelector",n[i])return i}(),f,e;u?(f=document.createElement("div"),e=i(f,"div"),t=e?i:s):t=o;"function"==typeof define&&define.amd?define("matches-selector/matches-selector",[],function(){return t}):"object"==typeof exports?module.exports=t:window.matchesSelector=t}(Element.prototype),function(n,t){"use strict";"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["doc-ready/doc-ready","matches-selector/matches-selector"],function(i,r){return t(n,i,r)}):"object"==typeof exports?module.exports=t(n,require("doc-ready"),require("desandro-matches-selector")):n.fizzyUIUtils=t(n,n.docReady,n.matchesSelector)}(window,function(n,t,i){var r={},f,u;return r.extend=function(n,t){for(var i in t)n[i]=t[i];return n},r.modulo=function(n,t){return(n%t+t)%t},f=Object.prototype.toString,r.isArray=function(n){return"[object Array]"==f.call(n)},r.makeArray=function(n){var t=[],i,u;if(r.isArray(n))t=n;else if(n&&"number"==typeof n.length)for(i=0,u=n.length;u>i;i++)t.push(n[i]);else t.push(n);return t},r.indexOf=Array.prototype.indexOf?function(n,t){return n.indexOf(t)}:function(n,t){for(var i=0,r=n.length;r>i;i++)if(n[i]===t)return i;return-1},r.removeFrom=function(n,t){var i=r.indexOf(n,t);-1!=i&&n.splice(i,1)},r.isElement="function"==typeof HTMLElement||"object"==typeof HTMLElement?function(n){return n instanceof HTMLElement}:function(n){return n&&"object"==typeof n&&1==n.nodeType&&"string"==typeof n.nodeName},r.setText=function(){function t(t,i){n=n||(void 0!==document.documentElement.textContent?"textContent":"innerText");t[n]=i}var n;return t}(),r.getParent=function(n,t){for(;n!=document.body;)if(n=n.parentNode,i(n,t))return n},r.getQueryElement=function(n){return"string"==typeof n?document.querySelector(n):n},r.handleEvent=function(n){var t="on"+n.type;this[t]&&this[t](n)},r.filterFindElements=function(n,t){var u;n=r.makeArray(n);for(var f=[],e=0,h=n.length;h>e;e++)if(u=n[e],r.isElement(u))if(t){i(u,t)&&f.push(u);for(var s=u.querySelectorAll(t),o=0,c=s.length;c>o;o++)f.push(s[o])}else f.push(u);return f},r.debounceMethod=function(n,t,i){var u=n.prototype[t],r=t+"Timeout";n.prototype[t]=function(){var t=this[r],f,n;t&&clearTimeout(t);f=arguments;n=this;this[r]=setTimeout(function(){u.apply(n,f);delete n[r]},i||100)}},r.toDashed=function(n){return n.replace(/(.)([A-Z])/g,function(n,t,i){return t+"-"+i}).toLowerCase()},u=n.console,r.htmlInit=function(i,f){t(function(){for(var a,t,o,v,s,h=r.toDashed(f),c=document.querySelectorAll(".js-"+h),l="data-"+h+"-options",e=0,y=c.length;y>e;e++){t=c[e];o=t.getAttribute(l);try{a=o&&JSON.parse(o)}catch(p){u&&u.error("Error parsing "+l+" on "+t.nodeName.toLowerCase()+(t.id?"#"+t.id:"")+": "+p);continue}v=new i(t,a);s=n.jQuery;s&&s.data(t,f,v)}})},r}),function(n,t){"use strict";"function"==typeof define&&define.amd?define("outlayer/item",["eventEmitter/EventEmitter","get-size/get-size","get-style-property/get-style-property","fizzy-ui-utils/utils"],function(i,r,u,f){return t(n,i,r,u,f)}):"object"==typeof exports?module.exports=t(n,require("wolfy87-eventemitter"),require("get-size"),require("desandro-get-style-property"),require("fizzy-ui-utils")):(n.Outlayer={},n.Outlayer.Item=t(n,n.EventEmitter,n.getSize,n.getStyleProperty,n.fizzyUIUtils))}(window,function(n,t,i,r,u){"use strict";function y(n){for(var t in n)return!1;return t=null,!0}function f(n,t){n&&(this.element=n,this.layout=t,this.position={x:0,y:0},this._create())}function p(n){return n.replace(/([A-Z])/g,function(n){return"-"+n.toLowerCase()})}var o=n.getComputedStyle,w=o?function(n){return o(n,null)}:function(n){return n.currentStyle},e=r("transition"),b=r("transform"),k=e&&b,d=!!r("perspective"),s={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"}[e],h=["transform","transition","transitionDuration","transitionProperty"],c=function(){for(var n,t,u={},i=0,f=h.length;f>i;i++)n=h[i],t=r(n),t&&t!==n&&(u[n]=t);return u}(),l,a,v;return u.extend(f.prototype,t.prototype),f.prototype._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}};this.css({position:"absolute"})},f.prototype.handleEvent=function(n){var t="on"+n.type;this[t]&&this[t](n)},f.prototype.getSize=function(){this.size=i(this.element)},f.prototype.css=function(n){var r=this.element.style,t,i;for(t in n)i=c[t]||t,r[i]=n[t]},f.prototype.getPosition=function(){var r=w(this.element),u=this.layout.options,f=u.isOriginLeft,e=u.isOriginTop,o=r[f?"left":"right"],s=r[e?"top":"bottom"],n=parseInt(o,10),t=parseInt(s,10),i=this.layout.size;n=-1!=o.indexOf("%")?n/100*i.width:n;t=-1!=s.indexOf("%")?t/100*i.height:t;n=isNaN(n)?0:n;t=isNaN(t)?0:t;n-=f?i.paddingLeft:i.paddingRight;t-=e?i.paddingTop:i.paddingBottom;this.position.x=n;this.position.y=t},f.prototype.layoutPosition=function(){var i=this.layout.size,n=this.layout.options,t={},r=n.isOriginLeft?"paddingLeft":"paddingRight",u=n.isOriginLeft?"left":"right",f=n.isOriginLeft?"right":"left",e=this.position.x+i[r];t[u]=this.getXValue(e);t[f]="";var o=n.isOriginTop?"paddingTop":"paddingBottom",s=n.isOriginTop?"top":"bottom",h=n.isOriginTop?"bottom":"top",c=this.position.y+i[o];t[s]=this.getYValue(c);t[h]="";this.css(t);this.emitEvent("layout",[this])},f.prototype.getXValue=function(n){var t=this.layout.options;return t.percentPosition&&!t.isHorizontal?n/this.layout.size.width*100+"%":n+"px"},f.prototype.getYValue=function(n){var t=this.layout.options;return t.percentPosition&&t.isHorizontal?n/this.layout.size.height*100+"%":n+"px"},f.prototype._transitionTo=function(n,t){this.getPosition();var r=this.position.x,u=this.position.y,f=parseInt(n,10),e=parseInt(t,10),o=f===this.position.x&&e===this.position.y;if(this.setPosition(n,t),o&&!this.isTransitioning)return void this.layoutPosition();var s=n-r,h=t-u,i={};i.transform=this.getTranslate(s,h);this.transition({to:i,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},f.prototype.getTranslate=function(n,t){var i=this.layout.options;return n=i.isOriginLeft?n:-n,t=i.isOriginTop?t:-t,n=this.getXValue(n),t=this.getYValue(t),d?"translate3d("+n+", "+t+", 0)":"translate("+n+", "+t+")"},f.prototype.goTo=function(n,t){this.setPosition(n,t);this.layoutPosition()},f.prototype.moveTo=k?f.prototype._transitionTo:f.prototype.goTo,f.prototype.setPosition=function(n,t){this.position.x=parseInt(n,10);this.position.y=parseInt(t,10)},f.prototype._nonTransition=function(n){this.css(n.to);n.isCleaning&&this._removeStyles(n.to);for(var t in n.onTransitionEnd)n.onTransitionEnd[t].call(this)},f.prototype._transition=function(n){var i,t,r;if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(n);i=this._transn;for(t in n.onTransitionEnd)i.onEnd[t]=n.onTransitionEnd[t];for(t in n.to)i.ingProperties[t]=!0,n.isCleaning&&(i.clean[t]=!0);n.from&&(this.css(n.from),r=this.element.offsetHeight,r=null);this.enableTransition(n.to);this.css(n.to);this.isTransitioning=!0},l="opacity,"+p(c.transform||"transform"),f.prototype.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:l,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(s,this,!1))},f.prototype.transition=f.prototype[e?"_transition":"_nonTransition"],f.prototype.onwebkitTransitionEnd=function(n){this.ontransitionend(n)},f.prototype.onotransitionend=function(n){this.ontransitionend(n)},a={"-webkit-transform":"transform","-moz-transform":"transform","-o-transform":"transform"},f.prototype.ontransitionend=function(n){var t,i,r;n.target===this.element&&(t=this._transn,i=a[n.propertyName]||n.propertyName,(delete t.ingProperties[i],y(t.ingProperties)&&this.disableTransition(),i in t.clean&&(this.element.style[n.propertyName]="",delete t.clean[i]),i in t.onEnd)&&(r=t.onEnd[i],r.call(this),delete t.onEnd[i]),this.emitEvent("transitionEnd",[this]))},f.prototype.disableTransition=function(){this.removeTransitionStyles();this.element.removeEventListener(s,this,!1);this.isTransitioning=!1},f.prototype._removeStyles=function(n){var t={},i;for(i in n)t[i]="";this.css(t)},v={transitionProperty:"",transitionDuration:""},f.prototype.removeTransitionStyles=function(){this.css(v)},f.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element);this.css({display:""});this.emitEvent("remove",[this])},f.prototype.remove=function(){if(!e||!parseFloat(this.layout.options.transitionDuration))return void this.removeElem();var n=this;this.once("transitionEnd",function(){n.removeElem()});this.hide()},f.prototype.reveal=function(){delete this.isHidden;this.css({display:""});var n=this.layout.options,t={},i=this.getHideRevealTransitionEndProperty("visibleStyle");t[i]=this.onRevealTransitionEnd;this.transition({from:n.hiddenStyle,to:n.visibleStyle,isCleaning:!0,onTransitionEnd:t})},f.prototype.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},f.prototype.getHideRevealTransitionEndProperty=function(n){var t=this.layout.options[n],i;if(t.opacity)return"opacity";for(i in t)return i},f.prototype.hide=function(){this.isHidden=!0;this.css({display:""});var n=this.layout.options,t={},i=this.getHideRevealTransitionEndProperty("hiddenStyle");t[i]=this.onHideTransitionEnd;this.transition({from:n.visibleStyle,to:n.hiddenStyle,isCleaning:!0,onTransitionEnd:t})},f.prototype.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},f.prototype.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},f}),function(n,t){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["eventie/eventie","eventEmitter/EventEmitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(i,r,u,f,e){return t(n,i,r,u,f,e)}):"object"==typeof exports?module.exports=t(n,require("eventie"),require("wolfy87-eventemitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):n.Outlayer=t(n,n.eventie,n.EventEmitter,n.getSize,n.fizzyUIUtils,n.Outlayer.Item)}(window,function(n,t,i,r,u,f){"use strict";function e(n,t){var i=u.getQueryElement(n),r;if(!i)return void(h&&h.error("Bad element for "+this.constructor.namespace+": "+(i||n)));this.element=i;o&&(this.$element=o(this.element));this.options=u.extend({},this.constructor.defaults);this.option(t);r=++l;this.element.outlayerGUID=r;s[r]=this;this._create();this.options.isInitLayout&&this.layout()}var h=n.console,o=n.jQuery,c=function(){},l=0,s={};return e.namespace="outlayer",e.Item=f,e.defaults={containerStyle:{position:"relative"},isInitLayout:!0,isOriginLeft:!0,isOriginTop:!0,isResizeBound:!0,isResizingContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},u.extend(e.prototype,i.prototype),e.prototype.option=function(n){u.extend(this.options,n)},e.prototype._create=function(){this.reloadItems();this.stamps=[];this.stamp(this.options.stamp);u.extend(this.element.style,this.options.containerStyle);this.options.isResizeBound&&this.bindResize()},e.prototype.reloadItems=function(){this.items=this._itemize(this.element.children)},e.prototype._itemize=function(n){for(var u,f,i=this._filterFindItemElements(n),e=this.constructor.Item,r=[],t=0,o=i.length;o>t;t++)u=i[t],f=new e(u,this),r.push(f);return r},e.prototype._filterFindItemElements=function(n){return u.filterFindElements(n,this.options.itemSelector)},e.prototype.getItemElements=function(){for(var t=[],n=0,i=this.items.length;i>n;n++)t.push(this.items[n].element);return t},e.prototype.layout=function(){this._resetLayout();this._manageStamps();var n=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;this.layoutItems(this.items,n);this._isLayoutInited=!0},e.prototype._init=e.prototype.layout,e.prototype._resetLayout=function(){this.getSize()},e.prototype.getSize=function(){this.size=r(this.element)},e.prototype._getMeasurement=function(n,t){var f,i=this.options[n];i?("string"==typeof i?f=this.element.querySelector(i):u.isElement(i)&&(f=i),this[n]=f?r(f)[t]:i):this[n]=0},e.prototype.layoutItems=function(n,t){n=this._getItemsForLayout(n);this._layoutItems(n,t);this._postLayout()},e.prototype._getItemsForLayout=function(n){for(var i,r=[],t=0,u=n.length;u>t;t++)i=n[t],i.isIgnored||r.push(i);return r},e.prototype._layoutItems=function(n,t){var i,r;if(this._emitCompleteOnItems("layout",n),n&&n.length){for(var f=[],u=0,e=n.length;e>u;u++)i=n[u],r=this._getItemLayoutPosition(i),r.item=i,r.isInstant=t||i.isLayoutInstant,f.push(r);this._processLayoutQueue(f)}},e.prototype._getItemLayoutPosition=function(){return{x:0,y:0}},e.prototype._processLayoutQueue=function(n){for(var t,i=0,r=n.length;r>i;i++)t=n[i],this._positionItem(t.item,t.x,t.y,t.isInstant)},e.prototype._positionItem=function(n,t,i,r){r?n.goTo(t,i):n.moveTo(t,i)},e.prototype._postLayout=function(){this.resizeContainer()},e.prototype.resizeContainer=function(){if(this.options.isResizingContainer){var n=this._getContainerSize();n&&(this._setContainerMeasure(n.width,!0),this._setContainerMeasure(n.height,!1))}},e.prototype._getContainerSize=c,e.prototype._setContainerMeasure=function(n,t){if(void 0!==n){var i=this.size;i.isBorderBox&&(n+=t?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth);n=Math.max(n,0);this.element.style[t?"width":"height"]=n+"px"}},e.prototype._emitCompleteOnItems=function(n,t){function r(){s.dispatchEvent(n+"Complete",null,[t])}function o(){f++;f===u&&r()}var s=this,u=t.length,e;if(!t||!u)return void r();for(var f=0,i=0,h=t.length;h>i;i++){e=t[i];e.once(n,o)}},e.prototype.dispatchEvent=function(n,t,i){var u=t?[t].concat(i):i,r;(this.emitEvent(n,u),o)&&((this.$element=this.$element||o(this.element),t)?(r=o.Event(t),r.type=n,this.$element.trigger(r,i)):this.$element.trigger(n,i))},e.prototype.ignore=function(n){var t=this.getItem(n);t&&(t.isIgnored=!0)},e.prototype.unignore=function(n){var t=this.getItem(n);t&&delete t.isIgnored},e.prototype.stamp=function(n){var t,i,r;if(n=this._find(n))for(this.stamps=this.stamps.concat(n),t=0,i=n.length;i>t;t++)r=n[t],this.ignore(r)},e.prototype.unstamp=function(n){var t,r,i;if(n=this._find(n))for(t=0,r=n.length;r>t;t++)i=n[t],u.removeFrom(this.stamps,i),this.unignore(i)},e.prototype._find=function(n){if(n)return("string"==typeof n&&(n=this.element.querySelectorAll(n)),n=u.makeArray(n))},e.prototype._manageStamps=function(){var n,t,i;if(this.stamps&&this.stamps.length)for(this._getBoundingRect(),n=0,t=this.stamps.length;t>n;n++)i=this.stamps[n],this._manageStamp(i)},e.prototype._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),n=this.size;this._boundingRect={left:t.left+n.paddingLeft+n.borderLeftWidth,top:t.top+n.paddingTop+n.borderTopWidth,right:t.right-(n.paddingRight+n.borderRightWidth),bottom:t.bottom-(n.paddingBottom+n.borderBottomWidth)}},e.prototype._manageStamp=c,e.prototype._getElementOffset=function(n){var t=n.getBoundingClientRect(),i=this._boundingRect,u=r(n);return{left:t.left-i.left-u.marginLeft,top:t.top-i.top-u.marginTop,right:i.right-t.right-u.marginRight,bottom:i.bottom-t.bottom-u.marginBottom}},e.prototype.handleEvent=function(n){var t="on"+n.type;this[t]&&this[t](n)},e.prototype.bindResize=function(){this.isResizeBound||(t.bind(n,"resize",this),this.isResizeBound=!0)},e.prototype.unbindResize=function(){this.isResizeBound&&t.unbind(n,"resize",this);this.isResizeBound=!1},e.prototype.onresize=function(){function t(){n.resize();delete n.resizeTimeout}this.resizeTimeout&&clearTimeout(this.resizeTimeout);var n=this;this.resizeTimeout=setTimeout(t,100)},e.prototype.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},e.prototype.needsResizeLayout=function(){var n=r(this.element),t=this.size&&n;return t&&n.innerWidth!==this.size.innerWidth},e.prototype.addItems=function(n){var t=this._itemize(n);return t.length&&(this.items=this.items.concat(t)),t},e.prototype.appended=function(n){var t=this.addItems(n);t.length&&(this.layoutItems(t,!0),this.reveal(t))},e.prototype.prepended=function(n){var t=this._itemize(n),i;t.length&&(i=this.items.slice(0),this.items=t.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems(i))},e.prototype.reveal=function(n){var i,t,r;for(this._emitCompleteOnItems("reveal",n),i=n&&n.length,t=0;i&&i>t;t++)r=n[t],r.reveal()},e.prototype.hide=function(n){var i,t,r;for(this._emitCompleteOnItems("hide",n),i=n&&n.length,t=0;i&&i>t;t++)r=n[t],r.hide()},e.prototype.revealItemElements=function(n){var t=this.getItems(n);this.reveal(t)},e.prototype.hideItemElements=function(n){var t=this.getItems(n);this.hide(t)},e.prototype.getItem=function(n){for(var i,t=0,r=this.items.length;r>t;t++)if(i=this.items[t],i.element===n)return i},e.prototype.getItems=function(n){var f,i;n=u.makeArray(n);for(var r=[],t=0,e=n.length;e>t;t++)f=n[t],i=this.getItem(f),i&&r.push(i);return r},e.prototype.remove=function(n){var t=this.getItems(n),i,f,r;if(this._emitCompleteOnItems("remove",t),t&&t.length)for(i=0,f=t.length;f>i;i++)r=t[i],r.remove(),u.removeFrom(this.items,r)},e.prototype.destroy=function(){var t=this.element.style,n,i,r,u;for(t.height="",t.position="",t.width="",n=0,i=this.items.length;i>n;n++)r=this.items[n],r.destroy();this.unbindResize();u=this.element.outlayerGUID;delete s[u];delete this.element.outlayerGUID;o&&o.removeData(this.element,this.constructor.namespace)},e.data=function(n){n=u.getQueryElement(n);var t=n&&n.outlayerGUID;return t&&s[t]},e.create=function(n,t){function i(){e.apply(this,arguments)}return Object.create?i.prototype=Object.create(e.prototype):u.extend(i.prototype,e.prototype),i.prototype.constructor=i,i.defaults=u.extend({},e.defaults),u.extend(i.defaults,t),i.prototype.settings={},i.namespace=n,i.data=e.data,i.Item=function(){f.apply(this,arguments)},i.Item.prototype=new f,u.htmlInit(i,n),o&&o.bridget&&o.bridget(n,i),i},e.Item=f,e}),function(n,t){"use strict";"function"==typeof define&&define.amd?define("isotope/js/item",["outlayer/outlayer"],t):"object"==typeof exports?module.exports=t(require("outlayer")):(n.Isotope=n.Isotope||{},n.Isotope.Item=t(n.Outlayer))}(window,function(n){"use strict";function t(){n.Item.apply(this,arguments)}t.prototype=new n.Item;t.prototype._create=function(){this.id=this.layout.itemGUID++;n.Item.prototype._create.call(this);this.sortData={}};t.prototype.updateSortData=function(){var t,i,n,r;if(!this.isIgnored){this.sortData.id=this.id;this.sortData["original-order"]=this.id;this.sortData.random=Math.random();t=this.layout.options.getSortData;i=this.layout._sorters;for(n in t)r=i[n],this.sortData[n]=r(this.element,this)}};var i=t.prototype.destroy;return t.prototype.destroy=function(){i.apply(this,arguments);this.css({display:""})},t}),function(n,t){"use strict";"function"==typeof define&&define.amd?define("isotope/js/layout-mode",["get-size/get-size","outlayer/outlayer"],t):"object"==typeof exports?module.exports=t(require("get-size"),require("outlayer")):(n.Isotope=n.Isotope||{},n.Isotope.LayoutMode=t(n.getSize,n.Outlayer))}(window,function(n,t){"use strict";function i(n){this.isotope=n;n&&(this.options=n.options[this.namespace],this.element=n.element,this.items=n.filteredItems,this.size=n.size)}return function(){function f(n){return function(){return t.prototype[n].apply(this.isotope,arguments)}}for(var r,u=["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout"],n=0,e=u.length;e>n;n++)r=u[n],i.prototype[r]=f(r)}(),i.prototype.needsVerticalResizeLayout=function(){var t=n(this.isotope.element),i=this.isotope.size&&t;return i&&t.innerHeight!=this.isotope.size.innerHeight},i.prototype._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},i.prototype.getColumnWidth=function(){this.getSegmentSize("column","Width")},i.prototype.getRowHeight=function(){this.getSegmentSize("row","Height")},i.prototype.getSegmentSize=function(n,t){var i=n+t,u="outer"+t,r;(this._getMeasurement(i,u),this[i])||(r=this.getFirstItemSize(),this[i]=r&&r[u]||this.isotope.size["inner"+t])},i.prototype.getFirstItemSize=function(){var t=this.isotope.filteredItems[0];return t&&t.element&&n(t.element)},i.prototype.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},i.prototype.getSize=function(){this.isotope.getSize();this.size=this.isotope.size},i.modes={},i.create=function(n,t){function r(){i.apply(this,arguments)}return r.prototype=new i,t&&(r.options=t),r.prototype.namespace=n,i.modes[n]=r,r},i}),function(n,t){"use strict";"function"==typeof define&&define.amd?define("masonry/masonry",["outlayer/outlayer","get-size/get-size","fizzy-ui-utils/utils"],t):"object"==typeof exports?module.exports=t(require("outlayer"),require("get-size"),require("fizzy-ui-utils")):n.Masonry=t(n.Outlayer,n.getSize,n.fizzyUIUtils)}(window,function(n,t,i){var r=n.create("masonry");return r.prototype._resetLayout=function(){this.getSize();this._getMeasurement("columnWidth","outerWidth");this._getMeasurement("gutter","outerWidth");this.measureColumns();var n=this.cols;for(this.colYs=[];n--;)this.colYs.push(0);this.maxY=0},r.prototype.measureColumns=function(){var n,i;(this.getContainerWidth(),this.columnWidth)||(n=this.items[0],i=n&&n.element,this.columnWidth=i&&t(i).outerWidth||this.containerWidth);var r=this.columnWidth+=this.gutter,f=this.containerWidth+this.gutter,u=f/r,e=r-f%r,o=e&&1>e?"round":"floor";u=Math[o](u);this.cols=Math.max(u,1)},r.prototype.getContainerWidth=function(){var i=this.options.isFitWidth?this.element.parentNode:this.element,n=t(i);this.containerWidth=n&&n.innerWidth},r.prototype._getItemLayoutPosition=function(n){n.getSize();var e=n.size.outerWidth%this.columnWidth,s=e&&1>e?"round":"ceil",t=Math[s](n.size.outerWidth/this.columnWidth);t=Math.min(t,this.cols);for(var r=this._getColGroup(t),u=Math.min.apply(Math,r),o=i.indexOf(r,u),h={x:this.columnWidth*o,y:u},c=u+n.size.outerHeight,l=this.cols+1-r.length,f=0;l>f;f++)this.colYs[o+f]=c;return h},r.prototype._getColGroup=function(n){var r;if(2>n)return this.colYs;for(var i=[],u=this.cols+1-n,t=0;u>t;t++)r=this.colYs.slice(t,t+n),i[t]=Math.max.apply(Math,r);return i},r.prototype._manageStamp=function(n){var e=t(n),u=this._getElementOffset(n),o=this.options.isOriginLeft?u.left:u.right,s=o+e.outerWidth,f=Math.floor(o/this.columnWidth),i,h,r;for(f=Math.max(0,f),i=Math.floor(s/this.columnWidth),i-=s%this.columnWidth?0:1,i=Math.min(this.cols-1,i),h=(this.options.isOriginTop?u.top:u.bottom)+e.outerHeight,r=f;i>=r;r++)this.colYs[r]=Math.max(h,this.colYs[r])},r.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var n={height:this.maxY};return this.options.isFitWidth&&(n.width=this._getContainerFitWidth()),n},r.prototype._getContainerFitWidth=function(){for(var n=0,t=this.cols;--t&&0===this.colYs[t];)n++;return(this.cols-n)*this.columnWidth-this.gutter},r.prototype.needsResizeLayout=function(){var n=this.containerWidth;return this.getContainerWidth(),n!==this.containerWidth},r}),function(n,t){"use strict";"function"==typeof define&&define.amd?define("isotope/js/layout-modes/masonry",["../layout-mode","masonry/masonry"],t):"object"==typeof exports?module.exports=t(require("../layout-mode"),require("masonry-layout")):t(n.Isotope.LayoutMode,n.Masonry)}(window,function(n,t){"use strict";function f(n,t){for(var i in t)n[i]=t[i];return n}var i=n.create("masonry"),e=i.prototype._getElementOffset,o=i.prototype.layout,s=i.prototype._getMeasurement,r,u;return f(i.prototype,t.prototype),i.prototype._getElementOffset=e,i.prototype.layout=o,i.prototype._getMeasurement=s,r=i.prototype.measureColumns,i.prototype.measureColumns=function(){this.items=this.isotope.filteredItems;r.call(this)},u=i.prototype._manageStamp,i.prototype._manageStamp=function(){this.options.isOriginLeft=this.isotope.options.isOriginLeft;this.options.isOriginTop=this.isotope.options.isOriginTop;u.apply(this,arguments)},i}),function(n,t){"use strict";"function"==typeof define&&define.amd?define("isotope/js/layout-modes/fit-rows",["../layout-mode"],t):"object"==typeof exports?module.exports=t(require("../layout-mode")):t(n.Isotope.LayoutMode)}(window,function(n){"use strict";var t=n.create("fitRows");return t.prototype._resetLayout=function(){this.x=0;this.y=0;this.maxY=0;this._getMeasurement("gutter","outerWidth")},t.prototype._getItemLayoutPosition=function(n){var t,i,r;return n.getSize(),t=n.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter,0!==this.x&&t+this.x>i&&(this.x=0,this.y=this.maxY),r={x:this.x,y:this.y},this.maxY=Math.max(this.maxY,this.y+n.size.outerHeight),this.x+=t,r},t.prototype._getContainerSize=function(){return{height:this.maxY}},t}),function(n,t){"use strict";"function"==typeof define&&define.amd?define("isotope/js/layout-modes/vertical",["../layout-mode"],t):"object"==typeof exports?module.exports=t(require("../layout-mode")):t(n.Isotope.LayoutMode)}(window,function(n){"use strict";var t=n.create("vertical",{horizontalAlignment:0});return t.prototype._resetLayout=function(){this.y=0},t.prototype._getItemLayoutPosition=function(n){n.getSize();var t=(this.isotope.size.innerWidth-n.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=n.size.outerHeight,{x:t,y:i}},t.prototype._getContainerSize=function(){return{height:this.y}},t}),function(n,t){"use strict";"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","matches-selector/matches-selector","fizzy-ui-utils/utils","isotope/js/item","isotope/js/layout-mode","isotope/js/layout-modes/masonry","isotope/js/layout-modes/fit-rows","isotope/js/layout-modes/vertical"],function(i,r,u,f,e,o){return t(n,i,r,u,f,e,o)}):"object"==typeof exports?module.exports=t(n,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("./item"),require("./layout-mode"),require("./layout-modes/masonry"),require("./layout-modes/fit-rows"),require("./layout-modes/vertical")):n.Isotope=t(n,n.Outlayer,n.getSize,n.matchesSelector,n.fizzyUIUtils,n.Isotope.Item,n.Isotope.LayoutMode)}(window,function(n,t,i,r,u,f,e){function l(n,t){return function(i,r){for(var h,c,u=0,s=n.length;s>u;u++){var f=n[u],e=i.sortData[f],o=r.sortData[f];if(e>o||o>e)return h=void 0!==t[f]?t[f]:t,c=h?1:-1,(e>o?1:-1)*c}return 0}}var s=n.jQuery,a=String.prototype.trim?function(n){return n.trim()}:function(n){return n.replace(/^\s+|\s+$/g,"")},v=document.documentElement,y=v.textContent?function(n){return n.textContent}:function(n){return n.innerText},o=t.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0}),h,c;return o.Item=f,o.LayoutMode=e,o.prototype._create=function(){this.itemGUID=0;this._sorters={};this._getSorters();t.prototype._create.call(this);this.modes={};this.filteredItems=this.items;this.sortHistory=["original-order"];for(var n in e.modes)this._initLayoutMode(n)},o.prototype.reloadItems=function(){this.itemGUID=0;t.prototype.reloadItems.call(this)},o.prototype._itemize=function(){for(var r,n=t.prototype._itemize.apply(this,arguments),i=0,u=n.length;u>i;i++)r=n[i],r.id=this.itemGUID++;return this._updateItemsSortData(n),n},o.prototype._initLayoutMode=function(n){var t=e.modes[n],i=this.options[n]||{};this.options[n]=t.options?u.extend(t.options,i):i;this.modes[n]=new t(this)},o.prototype.layout=function(){return!this._isLayoutInited&&this.options.isInitLayout?void this.arrange():void this._layout()},o.prototype._layout=function(){var n=this._getIsInstant();this._resetLayout();this._manageStamps();this.layoutItems(this.filteredItems,n);this._isLayoutInited=!0},o.prototype.arrange=function(n){function r(){i.reveal(t.needReveal);i.hide(t.needHide)}var t,i;this.option(n);this._getIsInstant();t=this._filter(this.items);this.filteredItems=t.matches;i=this;this._bindArrangeComplete();this._isInstant?this._noTransition(r):r();this._sort();this._layout()},o.prototype._init=o.prototype.arrange,o.prototype._getIsInstant=function(){var n=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;return this._isInstant=n,n},o.prototype._bindArrangeComplete=function(){function n(){t&&i&&r&&u.dispatchEvent("arrangeComplete",null,[u.filteredItems])}var t,i,r,u=this;this.once("layoutComplete",function(){t=!0;n()});this.once("hideComplete",function(){i=!0;n()});this.once("revealComplete",function(){r=!0;n()})},o.prototype._filter=function(n){var r=this.options.filter,t,i;r=r||"*";for(var f=[],e=[],o=[],s=this._getFilterTest(r),u=0,h=n.length;h>u;u++)t=n[u],t.isIgnored||(i=s(t),i&&f.push(t),i&&t.isHidden?e.push(t):i||t.isHidden||o.push(t));return{matches:f,needReveal:e,needHide:o}},o.prototype._getFilterTest=function(n){return s&&this.options.isJQueryFiltering?function(t){return s(t.element).is(n)}:"function"==typeof n?function(t){return n(t.element)}:function(t){return r(t.element,n)}},o.prototype.updateSortData=function(n){var t;n?(n=u.makeArray(n),t=this.getItems(n)):t=this.items;this._getSorters();this._updateItemsSortData(t)},o.prototype._getSorters=function(){var t=this.options.getSortData,n,i;for(n in t)i=t[n],this._sorters[n]=h(i)},o.prototype._updateItemsSortData=function(n){for(var r,i=n&&n.length,t=0;i&&i>t;t++)r=n[t],r.updateSortData()},h=function(){function n(n){if("string"!=typeof n)return n;var i=a(n).split(" "),r=i[0],u=r.match(/^\[(.+)\]$/),s=u&&u[1],f=t(s,r),e=o.sortDataParsers[i[1]];return e?function(n){return n&&e(f(n))}:function(n){return n&&f(n)}}function t(n,t){return n?function(t){return t.getAttribute(n)}:function(n){var i=n.querySelector(t);return i&&y(i)}}return n}(),o.sortDataParsers={parseInt:function(n){return parseInt(n,10)},parseFloat:function(n){return parseFloat(n)}},o.prototype._sort=function(){var n=this.options.sortBy,t,i;n&&(t=[].concat.apply(n,this.sortHistory),i=l(t,this.options.sortAscending),this.filteredItems.sort(i),n!=this.sortHistory[0]&&this.sortHistory.unshift(n))},o.prototype._mode=function(){var n=this.options.layoutMode,t=this.modes[n];if(!t)throw new Error("No layout mode: "+n);return t.options=this.options[n],t},o.prototype._resetLayout=function(){t.prototype._resetLayout.call(this);this._mode()._resetLayout()},o.prototype._getItemLayoutPosition=function(n){return this._mode()._getItemLayoutPosition(n)},o.prototype._manageStamp=function(n){this._mode()._manageStamp(n)},o.prototype._getContainerSize=function(){return this._mode()._getContainerSize()},o.prototype.needsResizeLayout=function(){return this._mode().needsResizeLayout()},o.prototype.appended=function(n){var t=this.addItems(n),i;t.length&&(i=this._filterRevealAdded(t),this.filteredItems=this.filteredItems.concat(i))},o.prototype.prepended=function(n){var t=this._itemize(n),i;t.length&&(this._resetLayout(),this._manageStamps(),i=this._filterRevealAdded(t),this.layoutItems(this.filteredItems),this.filteredItems=i.concat(this.filteredItems),this.items=t.concat(this.items))},o.prototype._filterRevealAdded=function(n){var t=this._filter(n);return this.hide(t.needHide),this.reveal(t.matches),this.layoutItems(t.matches,!0),t.matches},o.prototype.insert=function(n){var i=this.addItems(n),t,u,r,f;if(i.length){for(r=i.length,t=0;r>t;t++)u=i[t],this.element.appendChild(u.element);for(f=this._filter(i).matches,t=0;r>t;t++)i[t].isLayoutInstant=!0;for(this.arrange(),t=0;r>t;t++)delete i[t].isLayoutInstant;this.reveal(f)}},c=o.prototype.remove,o.prototype.remove=function(n){var t,r,i,f;if(n=u.makeArray(n),t=this.getItems(n),c.call(this,n),r=t&&t.length,r)for(i=0;r>i;i++)f=t[i],u.removeFrom(this.filteredItems,f)},o.prototype.shuffle=function(){for(var i,n=0,t=this.items.length;t>n;n++)i=this.items[n],i.sortData.random=Math.random();this.options.sortBy="random";this._sort();this._layout()},o.prototype._noTransition=function(n){var i=this.options.transitionDuration,t;return this.options.transitionDuration=0,t=n.call(this),this.options.transitionDuration=i,t},o.prototype.getFilteredItemElements=function(){for(var t=[],n=0,i=this.filteredItems.length;i>n;n++)t.push(this.filteredItems[n].element);return t},o});eval(function(n,t,i,r,u,f){if(u=function(n){return(n<t?"":u(parseInt(n/t)))+((n=n%t)>35?String.fromCharCode(n+29):n.toString(36))},!"".replace(/^/,String)){while(i--)f[u(i)]=r[i]||u(i);r=[function(n){return f[n]}];u=function(){return"\\w+"};i=1}while(i--)r[i]&&(n=n.replace(new RegExp("\\b"+u(i)+"\\b","g"),r[i]));return n}('7(A 3c.3q!=="9"){3c.3q=9(e){9 t(){}t.5S=e;p 5R t}}(9(e,t,n){h r={1N:9(t,n){h r=c;r.$k=e(n);r.6=e.4M({},e.37.2B.6,r.$k.v(),t);r.2A=t;r.4L()},4L:9(){9 r(e){h n,r="";7(A t.6.33==="9"){t.6.33.R(c,[e])}l{1A(n 38 e.d){7(e.d.5M(n)){r+=e.d[n].1K}}t.$k.2y(r)}t.3t()}h t=c,n;7(A t.6.2H==="9"){t.6.2H.R(c,[t.$k])}7(A t.6.2O==="2Y"){n=t.6.2O;e.5K(n,r)}l{t.3t()}},3t:9(){h e=c;e.$k.v("d-4I",e.$k.2x("2w")).v("d-4F",e.$k.2x("H"));e.$k.z({2u:0});e.2t=e.6.q;e.4E();e.5v=0;e.1X=14;e.23()},23:9(){h e=c;7(e.$k.25().N===0){p b}e.1M();e.4C();e.$S=e.$k.25();e.E=e.$S.N;e.4B();e.$G=e.$k.17(".d-1K");e.$K=e.$k.17(".d-1p");e.3u="U";e.13=0;e.26=[0];e.m=0;e.4A();e.4z()},4z:9(){h e=c;e.2V();e.2W();e.4t();e.30();e.4r();e.4q();e.2p();e.4o();7(e.6.2o!==b){e.4n(e.6.2o)}7(e.6.O===j){e.6.O=4Q}e.19();e.$k.17(".d-1p").z("4i","4h");7(!e.$k.2m(":3n")){e.3o()}l{e.$k.z("2u",1)}e.5O=b;e.2l();7(A e.6.3s==="9"){e.6.3s.R(c,[e.$k])}},2l:9(){h e=c;7(e.6.1Z===j){e.1Z()}7(e.6.1B===j){e.1B()}e.4g();7(A e.6.3w==="9"){e.6.3w.R(c,[e.$k])}},3x:9(){h e=c;7(A e.6.3B==="9"){e.6.3B.R(c,[e.$k])}e.3o();e.2V();e.2W();e.4f();e.30();e.2l();7(A e.6.3D==="9"){e.6.3D.R(c,[e.$k])}},3F:9(){h e=c;t.1c(9(){e.3x()},0)},3o:9(){h e=c;7(e.$k.2m(":3n")===b){e.$k.z({2u:0});t.18(e.1C);t.18(e.1X)}l{p b}e.1X=t.4d(9(){7(e.$k.2m(":3n")){e.3F();e.$k.4b({2u:1},2M);t.18(e.1X)}},5x)},4B:9(){h e=c;e.$S.5n(\'<L H="d-1p">\').4a(\'<L H="d-1K"><\/L>\');e.$k.17(".d-1p").4a(\'<L H="d-1p-49">\');e.1H=e.$k.17(".d-1p-49");e.$k.z("4i","4h")},1M:9(){h e=c,t=e.$k.1I(e.6.1M),n=e.$k.1I(e.6.2i);7(!t){e.$k.I(e.6.1M)}7(!n){e.$k.I(e.6.2i)}},2V:9(){h t=c,n,r;7(t.6.2Z===b){p b}7(t.6.48===j){t.6.q=t.2t=1;t.6.1h=b;t.6.1s=b;t.6.1O=b;t.6.22=b;t.6.1Q=b;t.6.1R=b;p b}n=e(t.6.47).1f();7(n>(t.6.1s[0]||t.2t)){t.6.q=t.2t}7(t.6.1h!==b){t.6.1h.5g(9(e,t){p e[0]-t[0]});1A(r=0;r<t.6.1h.N;r+=1){7(t.6.1h[r][0]<=n){t.6.q=t.6.1h[r][1]}}}l{7(n<=t.6.1s[0]&&t.6.1s!==b){t.6.q=t.6.1s[1]}7(n<=t.6.1O[0]&&t.6.1O!==b){t.6.q=t.6.1O[1]}7(n<=t.6.22[0]&&t.6.22!==b){t.6.q=t.6.22[1]}7(n<=t.6.1Q[0]&&t.6.1Q!==b){t.6.q=t.6.1Q[1]}7(n<=t.6.1R[0]&&t.6.1R!==b){t.6.q=t.6.1R[1]}}7(t.6.q>t.E&&t.6.46===j){t.6.q=t.E}},4r:9(){h n=c,r,i;7(n.6.2Z!==j){p b}i=e(t).1f();n.3d=9(){7(e(t).1f()!==i){7(n.6.O!==b){t.18(n.1C)}t.5d(r);r=t.1c(9(){i=e(t).1f();n.3x()},n.6.45)}};e(t).44(n.3d)},4f:9(){h e=c;e.2g(e.m);7(e.6.O!==b){e.3j()}},43:9(){h t=c,n=0,r=t.E-t.6.q;t.$G.2f(9(i){h s=e(c);s.z({1f:t.M}).v("d-1K",3p(i));7(i%t.6.q===0||i===r){7(!(i>r)){n+=1}}s.v("d-24",n)})},42:9(){h e=c,t=e.$G.N*e.M;e.$K.z({1f:t*2,T:0});e.43()},2W:9(){h e=c;e.40();e.42();e.3Z();e.3v()},40:9(){h e=c;e.M=1F.4O(e.$k.1f()/e.6.q)},3v:9(){h e=c,t=(e.E*e.M-e.6.q*e.M)*-1;7(e.6.q>e.E){e.D=0;t=0;e.3z=0}l{e.D=e.E-e.6.q;e.3z=t}p t},3Y:9(){p 0},3Z:9(){h t=c,n=0,r=0,i,s,o;t.J=[0];t.3E=[];1A(i=0;i<t.E;i+=1){r+=t.M;t.J.2D(-r);7(t.6.12===j){s=e(t.$G[i]);o=s.v("d-24");7(o!==n){t.3E[n]=t.J[i];n=o}}}},4t:9(){h t=c;7(t.6.2a===j||t.6.1v===j){t.B=e(\'<L H="d-5A"/>\').5m("5l",!t.F.15).5c(t.$k)}7(t.6.1v===j){t.3T()}7(t.6.2a===j){t.3S()}},3S:9(){h t=c,n=e(\'<L H="d-4U"/>\');t.B.1o(n);t.1u=e("<L/>",{"H":"d-1n",2y:t.6.2U[0]||""});t.1q=e("<L/>",{"H":"d-U",2y:t.6.2U[1]||""});n.1o(t.1u).1o(t.1q);n.w("2X.B 21.B",\'L[H^="d"]\',9(e){e.1l()});n.w("2n.B 28.B",\'L[H^="d"]\',9(n){n.1l();7(e(c).1I("d-U")){t.U()}l{t.1n()}})},3T:9(){h t=c;t.1k=e(\'<L H="d-1v"/>\');t.B.1o(t.1k);t.1k.w("2n.B 28.B",".d-1j",9(n){n.1l();7(3p(e(c).v("d-1j"))!==t.m){t.1g(3p(e(c).v("d-1j")),j)}})},3P:9(){h t=c,n,r,i,s,o,u;7(t.6.1v===b){p b}t.1k.2y("");n=0;r=t.E-t.E%t.6.q;1A(s=0;s<t.E;s+=1){7(s%t.6.q===0){n+=1;7(r===s){i=t.E-t.6.q}o=e("<L/>",{"H":"d-1j"});u=e("<3N><\/3N>",{4R:t.6.39===j?n:"","H":t.6.39===j?"d-59":""});o.1o(u);o.v("d-1j",r===s?i:s);o.v("d-24",n);t.1k.1o(o)}}t.35()},35:9(){h t=c;7(t.6.1v===b){p b}t.1k.17(".d-1j").2f(9(){7(e(c).v("d-24")===e(t.$G[t.m]).v("d-24")){t.1k.17(".d-1j").Z("2d");e(c).I("2d")}})},3e:9(){h e=c;7(e.6.2a===b){p b}7(e.6.2e===b){7(e.m===0&&e.D===0){e.1u.I("1b");e.1q.I("1b")}l 7(e.m===0&&e.D!==0){e.1u.I("1b");e.1q.Z("1b")}l 7(e.m===e.D){e.1u.Z("1b");e.1q.I("1b")}l 7(e.m!==0&&e.m!==e.D){e.1u.Z("1b");e.1q.Z("1b")}}},30:9(){h e=c;e.3P();e.3e();7(e.B){7(e.6.q>=e.E){e.B.3K()}l{e.B.3J()}}},55:9(){h e=c;7(e.B){e.B.3k()}},U:9(e){h t=c;7(t.1E){p b}t.m+=t.6.12===j?t.6.q:1;7(t.m>t.D+(t.6.12===j?t.6.q-1:0)){7(t.6.2e===j){t.m=0;e="2k"}l{t.m=t.D;p b}}t.1g(t.m,e)},1n:9(e){h t=c;7(t.1E){p b}7(t.6.12===j&&t.m>0&&t.m<t.6.q){t.m=0}l{t.m-=t.6.12===j?t.6.q:1}7(t.m<0){7(t.6.2e===j){t.m=t.D;e="2k"}l{t.m=0;p b}}t.1g(t.m,e)},1g:9(e,n,r){h i=c,s;7(i.1E){p b}7(A i.6.1Y==="9"){i.6.1Y.R(c,[i.$k])}7(e>=i.D){e=i.D}l 7(e<=0){e=0}i.m=i.d.m=e;7(i.6.2o!==b&&r!=="4e"&&i.6.q===1&&i.F.1x===j){i.1t(0);7(i.F.1x===j){i.1L(i.J[e])}l{i.1r(i.J[e],1)}i.2r();i.4l();p b}s=i.J[e];7(i.F.1x===j){i.1T=b;7(n===j){i.1t("1w");t.1c(9(){i.1T=j},i.6.1w)}l 7(n==="2k"){i.1t(i.6.2v);t.1c(9(){i.1T=j},i.6.2v)}l{i.1t("1m");t.1c(9(){i.1T=j},i.6.1m)}i.1L(s)}l{7(n===j){i.1r(s,i.6.1w)}l 7(n==="2k"){i.1r(s,i.6.2v)}l{i.1r(s,i.6.1m)}}i.2r()},2g:9(e){h t=c;7(A t.6.1Y==="9"){t.6.1Y.R(c,[t.$k])}7(e>=t.D||e===-1){e=t.D}l 7(e<=0){e=0}t.1t(0);7(t.F.1x===j){t.1L(t.J[e])}l{t.1r(t.J[e],1)}t.m=t.d.m=e;t.2r()},2r:9(){h e=c;e.26.2D(e.m);e.13=e.d.13=e.26[e.26.N-2];e.26.5f(0);7(e.13!==e.m){e.35();e.3e();e.2l();7(e.6.O!==b){e.3j()}}7(A e.6.3y==="9"&&e.13!==e.m){e.6.3y.R(c,[e.$k])}},X:9(){h e=c;e.3A="X";t.18(e.1C)},3j:9(){h e=c;7(e.3A!=="X"){e.19()}},19:9(){h e=c;e.3A="19";7(e.6.O===b){p b}t.18(e.1C);e.1C=t.4d(9(){e.U(j)},e.6.O)},1t:9(e){h t=c;7(e==="1m"){t.$K.z(t.2z(t.6.1m))}l 7(e==="1w"){t.$K.z(t.2z(t.6.1w))}l 7(A e!=="2Y"){t.$K.z(t.2z(e))}},2z:9(e){p{"-1G-1a":"2C "+e+"1z 2s","-1W-1a":"2C "+e+"1z 2s","-o-1a":"2C "+e+"1z 2s",1a:"2C "+e+"1z 2s"}},3H:9(){p{"-1G-1a":"","-1W-1a":"","-o-1a":"",1a:""}},3I:9(e){p{"-1G-P":"1i("+e+"V, C, C)","-1W-P":"1i("+e+"V, C, C)","-o-P":"1i("+e+"V, C, C)","-1z-P":"1i("+e+"V, C, C)",P:"1i("+e+"V, C,C)"}},1L:9(e){h t=c;t.$K.z(t.3I(e))},3L:9(e){h t=c;t.$K.z({T:e})},1r:9(e,t){h n=c;n.29=b;n.$K.X(j,j).4b({T:e},{54:t||n.6.1m,3M:9(){n.29=j}})},4E:9(){h e=c,r="1i(C, C, C)",i=n.56("L"),s,o,u,a;i.2w.3O="  -1W-P:"+r+"; -1z-P:"+r+"; -o-P:"+r+"; -1G-P:"+r+"; P:"+r;s=/1i\\(C, C, C\\)/g;o=i.2w.3O.5i(s);u=o!==14&&o.N===1;a="5z"38 t||t.5Q.4P;e.F={1x:u,15:a}},4q:9(){h e=c;7(e.6.27!==b||e.6.1U!==b){e.3Q();e.3R()}},4C:9(){h e=c,t=["s","e","x"];e.16={};7(e.6.27===j&&e.6.1U===j){t=["2X.d 21.d","2N.d 3U.d","2n.d 3V.d 28.d"]}l 7(e.6.27===b&&e.6.1U===j){t=["2X.d","2N.d","2n.d 3V.d"]}l 7(e.6.27===j&&e.6.1U===b){t=["21.d","3U.d","28.d"]}e.16.3W=t[0];e.16.2K=t[1];e.16.2J=t[2]},3R:9(){h t=c;t.$k.w("5y.d",9(e){e.1l()});t.$k.w("21.3X",9(t){p e(t.1d).2m("5C, 5E, 5F, 5N")})},3Q:9(){9 s(e){7(e.2b!==W){p{x:e.2b[0].2c,y:e.2b[0].41}}7(e.2b===W){7(e.2c!==W){p{x:e.2c,y:e.41}}7(e.2c===W){p{x:e.52,y:e.53}}}}9 o(t){7(t==="w"){e(n).w(r.16.2K,a);e(n).w(r.16.2J,f)}l 7(t==="Q"){e(n).Q(r.16.2K);e(n).Q(r.16.2J)}}9 u(n){h u=n.3h||n||t.3g,a;7(u.5a===3){p b}7(r.E<=r.6.q){p}7(r.29===b&&!r.6.3f){p b}7(r.1T===b&&!r.6.3f){p b}7(r.6.O!==b){t.18(r.1C)}7(r.F.15!==j&&!r.$K.1I("3b")){r.$K.I("3b")}r.11=0;r.Y=0;e(c).z(r.3H());a=e(c).2h();i.2S=a.T;i.2R=s(u).x-a.T;i.2P=s(u).y-a.5o;o("w");i.2j=b;i.2L=u.1d||u.4c}9 a(o){h u=o.3h||o||t.3g,a,f;r.11=s(u).x-i.2R;r.2I=s(u).y-i.2P;r.Y=r.11-i.2S;7(A r.6.2E==="9"&&i.3C!==j&&r.Y!==0){i.3C=j;r.6.2E.R(r,[r.$k])}7((r.Y>8||r.Y<-8)&&r.F.15===j){7(u.1l!==W){u.1l()}l{u.5L=b}i.2j=j}7((r.2I>10||r.2I<-10)&&i.2j===b){e(n).Q("2N.d")}a=9(){p r.Y/5};f=9(){p r.3z+r.Y/5};r.11=1F.3v(1F.3Y(r.11,a()),f());7(r.F.1x===j){r.1L(r.11)}l{r.3L(r.11)}}9 f(n){h s=n.3h||n||t.3g,u,a,f;s.1d=s.1d||s.4c;i.3C=b;7(r.F.15!==j){r.$K.Z("3b")}7(r.Y<0){r.1y=r.d.1y="T"}l{r.1y=r.d.1y="3i"}7(r.Y!==0){u=r.4j();r.1g(u,b,"4e");7(i.2L===s.1d&&r.F.15!==j){e(s.1d).w("3a.4k",9(t){t.4S();t.4T();t.1l();e(t.1d).Q("3a.4k")});a=e.4N(s.1d,"4V").3a;f=a.4W();a.4X(0,0,f)}}o("Q")}h r=c,i={2R:0,2P:0,4Y:0,2S:0,2h:14,4Z:14,50:14,2j:14,51:14,2L:14};r.29=j;r.$k.w(r.16.3W,".d-1p",u)},4j:9(){h e=c,t=e.4m();7(t>e.D){e.m=e.D;t=e.D}l 7(e.11>=0){t=0;e.m=0}p t},4m:9(){h t=c,n=t.6.12===j?t.3E:t.J,r=t.11,i=14;e.2f(n,9(s,o){7(r-t.M/20>n[s+1]&&r-t.M/20<o&&t.34()==="T"){i=o;7(t.6.12===j){t.m=e.4p(i,t.J)}l{t.m=s}}l 7(r+t.M/20<o&&r+t.M/20>(n[s+1]||n[s]-t.M)&&t.34()==="3i"){7(t.6.12===j){i=n[s+1]||n[n.N-1];t.m=e.4p(i,t.J)}l{i=n[s+1];t.m=s+1}}});p t.m},34:9(){h e=c,t;7(e.Y<0){t="3i";e.3u="U"}l{t="T";e.3u="1n"}p t},4A:9(){h e=c;e.$k.w("d.U",9(){e.U()});e.$k.w("d.1n",9(){e.1n()});e.$k.w("d.19",9(t,n){e.6.O=n;e.19();e.32="19"});e.$k.w("d.X",9(){e.X();e.32="X"});e.$k.w("d.1g",9(t,n){e.1g(n)});e.$k.w("d.2g",9(t,n){e.2g(n)})},2p:9(){h e=c;7(e.6.2p===j&&e.F.15!==j&&e.6.O!==b){e.$k.w("57",9(){e.X()});e.$k.w("58",9(){7(e.32!=="X"){e.19()}})}},1Z:9(){h t=c,n,r,i,s,o;7(t.6.1Z===b){p b}1A(n=0;n<t.E;n+=1){r=e(t.$G[n]);7(r.v("d-1e")==="1e"){4s}i=r.v("d-1K");s=r.17(".5b");7(A s.v("1J")!=="2Y"){r.v("d-1e","1e");4s}7(r.v("d-1e")===W){s.3K();r.I("4u").v("d-1e","5e")}7(t.6.4v===j){o=i>=t.m}l{o=j}7(o&&i<t.m+t.6.q&&s.N){t.4w(r,s)}}},4w:9(e,n){9 o(){e.v("d-1e","1e").Z("4u");n.5h("v-1J");7(r.6.4x==="4y"){n.5j(5k)}l{n.3J()}7(A r.6.2T==="9"){r.6.2T.R(c,[r.$k])}}9 u(){i+=1;7(r.2Q(n.3l(0))||s===j){o()}l 7(i<=2q){t.1c(u,2q)}l{o()}}h r=c,i=0,s;7(n.5p("5q")==="5r"){n.z("5s-5t","5u("+n.v("1J")+")");s=j}l{n[0].1J=n.v("1J")}u()},1B:9(){9 s(){h r=e(n.$G[n.m]).2G();n.1H.z("2G",r+"V");7(!n.1H.1I("1B")){t.1c(9(){n.1H.I("1B")},0)}}9 o(){i+=1;7(n.2Q(r.3l(0))){s()}l 7(i<=2q){t.1c(o,2q)}l{n.1H.z("2G","")}}h n=c,r=e(n.$G[n.m]).17("5w"),i;7(r.3l(0)!==W){i=0;o()}l{s()}},2Q:9(e){h t;7(!e.3M){p b}t=A e.4D;7(t!=="W"&&e.4D===0){p b}p j},4g:9(){h t=c,n;7(t.6.2F===j){t.$G.Z("2d")}t.1D=[];1A(n=t.m;n<t.m+t.6.q;n+=1){t.1D.2D(n);7(t.6.2F===j){e(t.$G[n]).I("2d")}}t.d.1D=t.1D},4n:9(e){h t=c;t.4G="d-"+e+"-5B";t.4H="d-"+e+"-38"},4l:9(){9 a(e){p{2h:"5D",T:e+"V"}}h e=c,t=e.4G,n=e.4H,r=e.$G.1S(e.m),i=e.$G.1S(e.13),s=1F.4J(e.J[e.m])+e.J[e.13],o=1F.4J(e.J[e.m])+e.M/2,u="5G 5H 5I 5J";e.1E=j;e.$K.I("d-1P").z({"-1G-P-1P":o+"V","-1W-4K-1P":o+"V","4K-1P":o+"V"});i.z(a(s,10)).I(t).w(u,9(){e.3m=j;i.Q(u);e.31(i,t)});r.I(n).w(u,9(){e.36=j;r.Q(u);e.31(r,n)})},31:9(e,t){h n=c;e.z({2h:"",T:""}).Z(t);7(n.3m&&n.36){n.$K.Z("d-1P");n.3m=b;n.36=b;n.1E=b}},4o:9(){h e=c;e.d={2A:e.2A,5P:e.$k,S:e.$S,G:e.$G,m:e.m,13:e.13,1D:e.1D,15:e.F.15,F:e.F,1y:e.1y}},3G:9(){h r=c;r.$k.Q(".d d 21.3X");e(n).Q(".d d");e(t).Q("44",r.3d)},1V:9(){h e=c;7(e.$k.25().N!==0){e.$K.3r();e.$S.3r().3r();7(e.B){e.B.3k()}}e.3G();e.$k.2x("2w",e.$k.v("d-4I")||"").2x("H",e.$k.v("d-4F"))},5T:9(){h e=c;e.X();t.18(e.1X);e.1V();e.$k.5U()},5V:9(t){h n=c,r=e.4M({},n.2A,t);n.1V();n.1N(r,n.$k)},5W:9(e,t){h n=c,r;7(!e){p b}7(n.$k.25().N===0){n.$k.1o(e);n.23();p b}n.1V();7(t===W||t===-1){r=-1}l{r=t}7(r>=n.$S.N||r===-1){n.$S.1S(-1).5X(e)}l{n.$S.1S(r).5Y(e)}n.23()},5Z:9(e){h t=c,n;7(t.$k.25().N===0){p b}7(e===W||e===-1){n=-1}l{n=e}t.1V();t.$S.1S(n).3k();t.23()}};e.37.2B=9(t){p c.2f(9(){7(e(c).v("d-1N")===j){p b}e(c).v("d-1N",j);h n=3c.3q(r);n.1N(t,c);e.v(c,"2B",n)})};e.37.2B.6={q:5,1h:b,1s:[60,4],1O:[61,3],22:[62,2],1Q:b,1R:[63,1],48:b,46:b,1m:2M,1w:64,2v:65,O:b,2p:b,2a:b,2U:["1n","U"],2e:j,12:b,1v:j,39:b,2Z:j,45:2M,47:t,1M:"d-66",2i:"d-2i",1Z:b,4v:j,4x:"4y",1B:b,2O:b,33:b,3f:j,27:j,1U:j,2F:b,2o:b,3B:b,3D:b,2H:b,3s:b,1Y:b,3y:b,3w:b,2E:b,2T:b}})(67,68,69)',62,382,"||||||options|if||function||false|this|owl||||var||true|elem|else|currentItem|||return|items|||||data|on|||css|typeof|owlControls|0px|maximumItem|itemsAmount|browser|owlItems|class|addClass|positionsInArray|owlWrapper|div|itemWidth|length|autoPlay|transform|off|apply|userItems|left|next|px|undefined|stop|newRelativeX|removeClass||newPosX|scrollPerPage|prevItem|null|isTouch|ev_types|find|clearInterval|play|transition|disabled|setTimeout|target|loaded|width|goTo|itemsCustom|translate3d|page|paginationWrapper|preventDefault|slideSpeed|prev|append|wrapper|buttonNext|css2slide|itemsDesktop|swapSpeed|buttonPrev|pagination|paginationSpeed|support3d|dragDirection|ms|for|autoHeight|autoPlayInterval|visibleItems|isTransition|Math|webkit|wrapperOuter|hasClass|src|item|transition3d|baseClass|init|itemsDesktopSmall|origin|itemsTabletSmall|itemsMobile|eq|isCss3Finish|touchDrag|unWrap|moz|checkVisible|beforeMove|lazyLoad||mousedown|itemsTablet|setVars|roundPages|children|prevArr|mouseDrag|mouseup|isCssFinish|navigation|touches|pageX|active|rewindNav|each|jumpTo|position|theme|sliding|rewind|eachMoveUpdate|is|touchend|transitionStyle|stopOnHover|100|afterGo|ease|orignalItems|opacity|rewindSpeed|style|attr|html|addCssSpeed|userOptions|owlCarousel|all|push|startDragging|addClassActive|height|beforeInit|newPosY|end|move|targetElement|200|touchmove|jsonPath|offsetY|completeImg|offsetX|relativePos|afterLazyLoad|navigationText|updateItems|calculateAll|touchstart|string|responsive|updateControls|clearTransStyle|hoverStatus|jsonSuccess|moveDirection|checkPagination|endCurrent|fn|in|paginationNumbers|click|grabbing|Object|resizer|checkNavigation|dragBeforeAnimFinish|event|originalEvent|right|checkAp|remove|get|endPrev|visible|watchVisibility|Number|create|unwrap|afterInit|logIn|playDirection|max|afterAction|updateVars|afterMove|maximumPixels|apStatus|beforeUpdate|dragging|afterUpdate|pagesInArray|reload|clearEvents|removeTransition|doTranslate|show|hide|css2move|complete|span|cssText|updatePagination|gestures|disabledEvents|buildButtons|buildPagination|mousemove|touchcancel|start|disableTextSelect|min|loops|calculateWidth|pageY|appendWrapperSizes|appendItemsSizes|resize|responsiveRefreshRate|itemsScaleUp|responsiveBaseWidth|singleItem|outer|wrap|animate|srcElement|setInterval|drag|updatePosition|onVisibleItems|block|display|getNewPosition|disable|singleItemTransition|closestItem|transitionTypes|owlStatus|inArray|moveEvents|response|continue|buildControls|loading|lazyFollow|lazyPreload|lazyEffect|fade|onStartup|customEvents|wrapItems|eventTypes|naturalWidth|checkBrowser|originalClasses|outClass|inClass|originalStyles|abs|perspective|loadContent|extend|_data|round|msMaxTouchPoints|5e3|text|stopImmediatePropagation|stopPropagation|buttons|events|pop|splice|baseElWidth|minSwipe|maxSwipe|dargging|clientX|clientY|duration|destroyControls|createElement|mouseover|mouseout|numbers|which|lazyOwl|appendTo|clearTimeout|checked|shift|sort|removeAttr|match|fadeIn|400|clickable|toggleClass|wrapAll|top|prop|tagName|DIV|background|image|url|wrapperWidth|img|500|dragstart|ontouchstart|controls|out|input|relative|textarea|select|webkitAnimationEnd|oAnimationEnd|MSAnimationEnd|animationend|getJSON|returnValue|hasOwnProperty|option|onstartup|baseElement|navigator|new|prototype|destroy|removeData|reinit|addItem|after|before|removeItem|1199|979|768|479|800|1e3|carousel|jQuery|window|document".split("|"),0,{}));!function(){"use strict";function n(r){if(!r)throw new Error("No options passed to Waypoint constructor");if(!r.element)throw new Error("No element option passed to Waypoint constructor");if(!r.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+i;this.options=n.Adapter.extend({},n.defaults,r);this.element=this.options.element;this.adapter=new n.Adapter(this.element);this.callback=r.handler;this.axis=this.options.horizontal?"horizontal":"vertical";this.enabled=this.options.enabled;this.triggerPoint=null;this.group=n.Group.findOrCreate({name:this.options.group,axis:this.axis});this.context=n.Context.findOrCreateByElement(this.options.context);n.offsetAliases[this.options.offset]&&(this.options.offset=n.offsetAliases[this.options.offset]);this.group.add(this);this.context.add(this);t[this.key]=this;i+=1}var i=0,t={};n.prototype.queueTrigger=function(n){this.group.queueTrigger(this,n)};n.prototype.trigger=function(n){this.enabled&&this.callback&&this.callback.apply(this,n)};n.prototype.destroy=function(){this.context.remove(this);this.group.remove(this);delete t[this.key]};n.prototype.disable=function(){return this.enabled=!1,this};n.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this};n.prototype.next=function(){return this.group.next(this)};n.prototype.previous=function(){return this.group.previous(this)};n.invokeAll=function(n){var r=[],u,i,f;for(u in t)r.push(t[u]);for(i=0,f=r.length;f>i;i++)r[i][n]()};n.destroyAll=function(){n.invokeAll("destroy")};n.disableAll=function(){n.invokeAll("disable")};n.enableAll=function(){n.invokeAll("enable")};n.refreshAll=function(){n.Context.refreshAll()};n.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight};n.viewportWidth=function(){return document.documentElement.clientWidth};n.adapters=[];n.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0};n.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}};window.Waypoint=n}(),function(){"use strict";function f(n){window.setTimeout(n,1e3/60)}function n(n){this.element=n;this.Adapter=t.Adapter;this.adapter=new this.Adapter(n);this.key="waypoint-context-"+r;this.didScroll=!1;this.didResize=!1;this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()};this.waypoints={vertical:{},horizontal:{}};n.waypointContextKey=this.key;i[n.waypointContextKey]=this;r+=1;this.createThrottledScrollHandler();this.createThrottledResizeHandler()}var r=0,i={},t=window.Waypoint,u=window.onload;n.prototype.add=function(n){var t=n.options.horizontal?"horizontal":"vertical";this.waypoints[t][n.key]=n;this.refresh()};n.prototype.checkEmpty=function(){var n=this.Adapter.isEmptyObject(this.waypoints.horizontal),t=this.Adapter.isEmptyObject(this.waypoints.vertical);n&&t&&(this.adapter.off(".waypoints"),delete i[this.key])};n.prototype.createThrottledResizeHandler=function(){function i(){n.handleResize();n.didResize=!1}var n=this;this.adapter.on("resize.waypoints",function(){n.didResize||(n.didResize=!0,t.requestAnimationFrame(i))})};n.prototype.createThrottledScrollHandler=function(){function i(){n.handleScroll();n.didScroll=!1}var n=this;this.adapter.on("scroll.waypoints",function(){(!n.didScroll||t.isTouch)&&(n.didScroll=!0,t.requestAnimationFrame(i))})};n.prototype.handleResize=function(){t.Context.refreshAll()};n.prototype.handleScroll=function(){var u={},i={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}},r,f,s;for(r in i){var n=i[r],h=n.newScroll>n.oldScroll,c=h?n.forward:n.backward;for(f in this.waypoints[r]){var t=this.waypoints[r][f],e=n.oldScroll<t.triggerPoint,o=n.newScroll>=t.triggerPoint,l=e&&o,a=!e&&!o;(l||a)&&(t.queueTrigger(c),u[t.group.id]=t.group)}}for(s in u)u[s].flushTriggers();this.oldScroll={x:i.horizontal.newScroll,y:i.vertical.newScroll}};n.prototype.innerHeight=function(){return this.element==this.element.window?t.viewportHeight():this.adapter.innerHeight()};n.prototype.remove=function(n){delete this.waypoints[n.axis][n.key];this.checkEmpty()};n.prototype.innerWidth=function(){return this.element==this.element.window?t.viewportWidth():this.adapter.innerWidth()};n.prototype.destroy=function(){var t=[],i,r,n,u;for(i in this.waypoints)for(r in this.waypoints[i])t.push(this.waypoints[i][r]);for(n=0,u=t.length;u>n;n++)t[n].destroy()};n.prototype.refresh=function(){var e,u=this.element==this.element.window,c=this.adapter.offset(),r={},f,t,l,b;this.handleScroll();e={horizontal:{contextOffset:u?0:c.left,contextScroll:u?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:u?0:c.top,contextScroll:u?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};for(f in e){t=e[f];for(l in this.waypoints[f]){var a,o,s,v,y,n=this.waypoints[f][l],i=n.options.offset,p=n.triggerPoint,w=0,h=null==p;n.element!==n.element.window&&(w=n.adapter.offset()[t.offsetProp]);"function"==typeof i?i=i.apply(n):"string"==typeof i&&(i=parseFloat(i),n.options.offset.indexOf("%")>-1&&(i=Math.ceil(t.contextDimension*i/100)));a=t.contextScroll-t.contextOffset;n.triggerPoint=w+a-i;o=p<t.oldScroll;s=n.triggerPoint>=t.oldScroll;v=o&&s;y=!o&&!s;!h&&v?(n.queueTrigger(t.backward),r[n.group.id]=n.group):!h&&y?(n.queueTrigger(t.forward),r[n.group.id]=n.group):h&&t.oldScroll>=n.triggerPoint&&(n.queueTrigger(t.forward),r[n.group.id]=n.group)}}for(b in r)r[b].flushTriggers();return this};n.findOrCreateByElement=function(t){return n.findByElement(t)||new n(t)};n.refreshAll=function(){for(var n in i)i[n].refresh()};n.findByElement=function(n){return i[n.waypointContextKey]};window.onload=function(){u&&u();n.refreshAll()};t.requestAnimationFrame=function(n){var t=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||f;t.call(window,n)};t.Context=n}(),function(){"use strict";function i(n,t){return n.triggerPoint-t.triggerPoint}function u(n,t){return t.triggerPoint-n.triggerPoint}function n(n){this.name=n.name;this.axis=n.axis;this.id=this.name+"-"+this.axis;this.waypoints=[];this.clearTriggerQueues();r[this.axis][this.name]=this}var r={vertical:{},horizontal:{}},t=window.Waypoint;n.prototype.add=function(n){this.waypoints.push(n)};n.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}};n.prototype.flushTriggers=function(){var n,t,e,r,o,f;for(n in this.triggerQueues)for(t=this.triggerQueues[n],e="up"===n||"left"===n,t.sort(e?u:i),r=0,o=t.length;o>r;r+=1)f=t[r],(f.options.continuous||r===t.length-1)&&f.trigger([n]);this.clearTriggerQueues()};n.prototype.next=function(n){this.waypoints.sort(i);var r=t.Adapter.inArray(n,this.waypoints),u=r===this.waypoints.length-1;return u?null:this.waypoints[r+1]};n.prototype.previous=function(n){this.waypoints.sort(i);var r=t.Adapter.inArray(n,this.waypoints);return r?this.waypoints[r-1]:null};n.prototype.queueTrigger=function(n,t){this.triggerQueues[t].push(n)};n.prototype.remove=function(n){var i=t.Adapter.inArray(n,this.waypoints);i>-1&&this.waypoints.splice(i,1)};n.prototype.first=function(){return this.waypoints[0]};n.prototype.last=function(){return this.waypoints[this.waypoints.length-1]};n.findOrCreate=function(t){return r[t.axis][t.name]||new n(t)};t.Group=n}(),function(){"use strict";function n(n){this.$element=t(n)}var t=window.jQuery,i=window.Waypoint;t.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(t,i){n.prototype[i]=function(){var n=Array.prototype.slice.call(arguments);return this.$element[i].apply(this.$element,n)}});t.each(["extend","inArray","isEmptyObject"],function(i,r){n[r]=t[r]});i.adapters.push({name:"jquery",Adapter:n});i.Adapter=n}(),function(){"use strict";function n(n){return function(){var r=[],i=arguments[0];return n.isFunction(arguments[0])&&(i=n.extend({},arguments[1]),i.handler=arguments[0]),this.each(function(){var u=n.extend({},i,{element:this});"string"==typeof u.context&&(u.context=n(this).closest(u.context)[0]);r.push(new t(u))}),r}}var t=window.Waypoint;window.jQuery&&(window.jQuery.fn.waypoint=n(window.jQuery));window.Zepto&&(window.Zepto.fn.waypoint=n(window.Zepto))}();!function(){"use strict";function t(){}function n(t){this.options=i.Adapter.extend({},n.defaults,t);this.axis=this.options.horizontal?"horizontal":"vertical";this.waypoints=[];this.createWaypoints()}var i=window.Waypoint;n.prototype.createWaypoints=function(){for(var i,t={vertical:[{down:"enter",up:"exited",offset:"100%"},{down:"entered",up:"exit",offset:"bottom-in-view"},{down:"exit",up:"entered",offset:0},{down:"exited",up:"enter",offset:function(){return-this.adapter.outerHeight()}}],horizontal:[{right:"enter",left:"exited",offset:"100%"},{right:"entered",left:"exit",offset:"right-in-view"},{right:"exit",left:"entered",offset:0},{right:"exited",left:"enter",offset:function(){return-this.adapter.outerWidth()}}]},n=0,r=t[this.axis].length;r>n;n++)i=t[this.axis][n],this.createWaypoint(i)};n.prototype.createWaypoint=function(n){var t=this;this.waypoints.push(new i({element:this.options.element,handler:function(n){return function(i){t.options[n[i]].call(this,i)}}(n),offset:n.offset,horizontal:this.options.horizontal}))};n.prototype.destroy=function(){for(var n=0,t=this.waypoints.length;t>n;n++)this.waypoints[n].destroy();this.waypoints=[]};n.defaults={enter:t,entered:t,exit:t,exited:t};i.Inview=n}(),function(n){n.flexslider=function(t,i){var r=n(t);r.vars=n.extend({},n.flexslider.defaults,i);var f=r.vars.namespace,v=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture,y=("ontouchstart"in window||v||window.DocumentTouch&&document instanceof DocumentTouch)&&r.vars.touch,a="click touchend MSPointerUp keyup",s="",p,h=r.vars.direction==="vertical",o=r.vars.reverse,e=r.vars.itemWidth>0,c=r.vars.animation==="fade",l=r.vars.asNavFor!=="",u={},w=!0;n.data(t,"flexslider",r);u={init:function(){r.animating=!1;r.currentSlide=parseInt(r.vars.startAt?r.vars.startAt:0,10);isNaN(r.currentSlide)&&(r.currentSlide=0);r.animatingTo=r.currentSlide;r.atEnd=r.currentSlide===0||r.currentSlide===r.last;r.containerSelector=r.vars.selector.substr(0,r.vars.selector.search(" "));r.slides=n(r.vars.selector,r);r.container=n(r.containerSelector,r);r.count=r.slides.length;r.syncExists=n(r.vars.sync).length>0;r.vars.animation==="slide"&&(r.vars.animation="swing");r.prop=h?"top":"marginLeft";r.args={};r.manualPause=!1;r.stopped=!1;r.started=!1;r.startTimeout=null;r.transitions=!r.vars.video&&!c&&r.vars.useCSS&&function(){var i=document.createElement("div"),n=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"],t;for(t in n)if(i.style[n[t]]!==undefined)return r.pfx=n[t].replace("Perspective","").toLowerCase(),r.prop="-"+r.pfx+"-transform",!0;return!1}();r.ensureAnimationEnd="";r.vars.controlsContainer!==""&&(r.controlsContainer=n(r.vars.controlsContainer).length>0&&n(r.vars.controlsContainer));r.vars.manualControls!==""&&(r.manualControls=n(r.vars.manualControls).length>0&&n(r.vars.manualControls));r.vars.customDirectionNav!==""&&(r.customDirectionNav=n(r.vars.customDirectionNav).length===2&&n(r.vars.customDirectionNav));r.vars.randomize&&(r.slides.sort(function(){return Math.round(Math.random())-.5}),r.container.empty().append(r.slides));r.doMath();r.setup("init");r.vars.controlNav&&u.controlNav.setup();r.vars.directionNav&&u.directionNav.setup();r.vars.keyboard&&(n(r.containerSelector).length===1||r.vars.multipleKeyboard)&&n(document).bind("keyup",function(n){var t=n.keyCode,i;r.animating||t!==39&&t!==37||(i=t===39?r.getTarget("next"):t===37?r.getTarget("prev"):!1,r.flexAnimate(i,r.vars.pauseOnAction))});r.vars.mousewheel&&r.bind("mousewheel",function(n,t){n.preventDefault();var i=t<0?r.getTarget("next"):r.getTarget("prev");r.flexAnimate(i,r.vars.pauseOnAction)});r.vars.pausePlay&&u.pausePlay.setup();r.vars.slideshow&&r.vars.pauseInvisible&&u.pauseInvisible.init();r.vars.slideshow&&(r.vars.pauseOnHover&&r.hover(function(){r.manualPlay||r.manualPause||r.pause()},function(){r.manualPause||r.manualPlay||r.stopped||r.play()}),r.vars.pauseInvisible&&u.pauseInvisible.isHidden()||(r.vars.initDelay>0?r.startTimeout=setTimeout(r.play,r.vars.initDelay):r.play()));l&&u.asNav.setup();y&&r.vars.touch&&u.touch();(!c||c&&r.vars.smoothHeight)&&n(window).bind("resize orientationchange focus",u.resize);r.find("img").attr("draggable","false");setTimeout(function(){r.vars.start(r)},200)},asNav:{setup:function(){if(r.asNav=!0,r.animatingTo=Math.floor(r.currentSlide/r.move),r.currentItem=r.currentSlide,r.slides.removeClass(f+"active-slide").eq(r.currentItem).addClass(f+"active-slide"),v)t._slider=r,r.slides.each(function(){var t=this;t._gesture=new MSGesture;t._gesture.target=t;t.addEventListener("MSPointerDown",function(n){n.preventDefault();n.currentTarget._gesture&&n.currentTarget._gesture.addPointer(n.pointerId)},!1);t.addEventListener("MSGestureTap",function(t){t.preventDefault();var i=n(this),u=i.index();n(r.vars.asNavFor).data("flexslider").animating||i.hasClass("active")||(r.direction=r.currentItem<u?"next":"prev",r.flexAnimate(u,r.vars.pauseOnAction,!1,!0,!0))})});else r.slides.on(a,function(t){t.preventDefault();var i=n(this),u=i.index(),e=i.offset().left-n(r).scrollLeft();e<=0&&i.hasClass(f+"active-slide")?r.flexAnimate(r.getTarget("prev"),!0):n(r.vars.asNavFor).data("flexslider").animating||i.hasClass(f+"active-slide")||(r.direction=r.currentItem<u?"next":"prev",r.flexAnimate(u,r.vars.pauseOnAction,!1,!0,!0))})}},controlNav:{setup:function(){r.manualControls?u.controlNav.setupManual():u.controlNav.setupPaging()},setupPaging:function(){var c=r.vars.controlNav==="thumbnails"?"control-thumbs":"control-paging",h=1,e,o,t,i;if(r.controlNavScaffold=n('<ol class="'+f+"control-nav "+f+c+'"><\/ol>'),r.pagingCount>1)for(t=0;t<r.pagingCount;t++)o=r.slides.eq(t),e=r.vars.controlNav==="thumbnails"?'<img src="'+o.attr("data-thumb")+'"/>':"<a>"+h+"<\/a>","thumbnails"===r.vars.controlNav&&!0===r.vars.thumbCaptions&&(i=o.attr("data-thumbcaption"),""!==i&&undefined!==i&&(e+='<span class="'+f+'caption">'+i+"<\/span>")),r.controlNavScaffold.append("<li>"+e+"<\/li>"),h++;r.controlsContainer?n(r.controlsContainer).append(r.controlNavScaffold):r.append(r.controlNavScaffold);u.controlNav.set();u.controlNav.active();r.controlNavScaffold.delegate("a, img",a,function(t){if(t.preventDefault(),s===""||s===t.type){var i=n(this),e=r.controlNav.index(i);i.hasClass(f+"active")||(r.direction=e>r.currentSlide?"next":"prev",r.flexAnimate(e,r.vars.pauseOnAction))}s===""&&(s=t.type);u.setToClearWatchedEvent()})},setupManual:function(){r.controlNav=r.manualControls;u.controlNav.active();r.controlNav.bind(a,function(t){if(t.preventDefault(),s===""||s===t.type){var i=n(this),e=r.controlNav.index(i);i.hasClass(f+"active")||(r.direction=e>r.currentSlide?"next":"prev",r.flexAnimate(e,r.vars.pauseOnAction))}s===""&&(s=t.type);u.setToClearWatchedEvent()})},set:function(){var t=r.vars.controlNav==="thumbnails"?"img":"a";r.controlNav=n("."+f+"control-nav li "+t,r.controlsContainer?r.controlsContainer:r)},active:function(){r.controlNav.removeClass(f+"active").eq(r.animatingTo).addClass(f+"active")},update:function(t,i){r.pagingCount>1&&t==="add"?r.controlNavScaffold.append(n("<li><a>"+r.count+"<\/a><\/li>")):r.pagingCount===1?r.controlNavScaffold.find("li").remove():r.controlNav.eq(i).closest("li").remove();u.controlNav.set();r.pagingCount>1&&r.pagingCount!==r.controlNav.length?r.update(i,t):u.controlNav.active()}},directionNav:{setup:function(){var t=n('<ul class="'+f+'direction-nav"><li class="'+f+'nav-prev"><a class="'+f+'prev" href="#">'+r.vars.prevText+'<\/a><\/li><li class="'+f+'nav-next"><a class="'+f+'next" href="#">'+r.vars.nextText+"<\/a><\/li><\/ul>");r.customDirectionNav?r.directionNav=r.customDirectionNav:r.controlsContainer?(n(r.controlsContainer).append(t),r.directionNav=n("."+f+"direction-nav li a",r.controlsContainer)):(r.append(t),r.directionNav=n("."+f+"direction-nav li a",r));u.directionNav.update();r.directionNav.bind(a,function(t){t.preventDefault();var i;(s===""||s===t.type)&&(i=n(this).hasClass(f+"next")?r.getTarget("next"):r.getTarget("prev"),r.flexAnimate(i,r.vars.pauseOnAction));s===""&&(s=t.type);u.setToClearWatchedEvent()})},update:function(){var n=f+"disabled";r.pagingCount===1?r.directionNav.addClass(n).attr("tabindex","-1"):r.vars.animationLoop?r.directionNav.removeClass(n).removeAttr("tabindex"):r.animatingTo===0?r.directionNav.removeClass(n).filter("."+f+"prev").addClass(n).attr("tabindex","-1"):r.animatingTo===r.last?r.directionNav.removeClass(n).filter("."+f+"next").addClass(n).attr("tabindex","-1"):r.directionNav.removeClass(n).removeAttr("tabindex")}},pausePlay:{setup:function(){var t=n('<div class="'+f+'pauseplay"><a><\/a><\/div>');r.controlsContainer?(r.controlsContainer.append(t),r.pausePlay=n("."+f+"pauseplay a",r.controlsContainer)):(r.append(t),r.pausePlay=n("."+f+"pauseplay a",r));u.pausePlay.update(r.vars.slideshow?f+"pause":f+"play");r.pausePlay.bind(a,function(t){t.preventDefault();(s===""||s===t.type)&&(n(this).hasClass(f+"pause")?(r.manualPause=!0,r.manualPlay=!1,r.pause()):(r.manualPause=!1,r.manualPlay=!0,r.play()));s===""&&(s=t.type);u.setToClearWatchedEvent()})},update:function(n){n==="play"?r.pausePlay.removeClass(f+"pause").addClass(f+"play").html(r.vars.playText):r.pausePlay.removeClass(f+"play").addClass(f+"pause").html(r.vars.pauseText)}},touch:function(){var p,w,f,u,n,s,d,b,k,l=!1,a=0,y=0,i=0;if(v){t.style.msTouchAction="none";t._gesture=new MSGesture;t._gesture.target=t;t.addEventListener("MSPointerDown",g,!1);t._slider=r;t.addEventListener("MSGestureChange",nt,!1);t.addEventListener("MSGestureEnd",tt,!1);function g(n){n.stopPropagation();r.animating?n.preventDefault():(r.pause(),t._gesture.addPointer(n.pointerId),i=0,u=h?r.h:r.w,s=Number(new Date),f=e&&o&&r.animatingTo===r.last?0:e&&o?r.limit-(r.itemW+r.vars.itemMargin)*r.move*r.animatingTo:e&&r.currentSlide===r.last?r.limit:e?(r.itemW+r.vars.itemMargin)*r.move*r.currentSlide:o?(r.last-r.currentSlide+r.cloneOffset)*u:(r.currentSlide+r.cloneOffset)*u)}function nt(r){var e,o,a;if(r.stopPropagation(),e=r.target._slider,e){if(o=-r.translationX,a=-r.translationY,i=i+(h?a:o),n=i,l=h?Math.abs(i)<Math.abs(-o):Math.abs(i)<Math.abs(-a),r.detail===r.MSGESTURE_FLAG_INERTIA){setImmediate(function(){t._gesture.stop()});return}(!l||Number(new Date)-s>500)&&(r.preventDefault(),!c&&e.transitions&&(e.vars.animationLoop||(n=i/(e.currentSlide===0&&i<0||e.currentSlide===e.last&&i>0?Math.abs(i)/u+2:1)),e.setProps(f+n,"setTouch")))}}function tt(t){var r,e,h;(t.stopPropagation(),r=t.target._slider,r)&&(r.animatingTo!==r.currentSlide||l||n===null||(e=o?-n:n,h=e>0?r.getTarget("next"):r.getTarget("prev"),r.canAdvance(h)&&(Number(new Date)-s<550&&Math.abs(e)>50||Math.abs(e)>u/2)?r.flexAnimate(h,r.vars.pauseOnAction):c||r.flexAnimate(r.currentSlide,r.vars.pauseOnAction,!0)),p=null,w=null,n=null,f=null,i=0)}}else d=function(n){r.animating?n.preventDefault():(window.navigator.msPointerEnabled||n.touches.length===1)&&(r.pause(),u=h?r.h:r.w,s=Number(new Date),a=n.touches[0].pageX,y=n.touches[0].pageY,f=e&&o&&r.animatingTo===r.last?0:e&&o?r.limit-(r.itemW+r.vars.itemMargin)*r.move*r.animatingTo:e&&r.currentSlide===r.last?r.limit:e?(r.itemW+r.vars.itemMargin)*r.move*r.currentSlide:o?(r.last-r.currentSlide+r.cloneOffset)*u:(r.currentSlide+r.cloneOffset)*u,p=h?y:a,w=h?a:y,t.addEventListener("touchmove",b,!1),t.addEventListener("touchend",k,!1))},b=function(t){a=t.touches[0].pageX;y=t.touches[0].pageY;n=h?p-y:p-a;l=h?Math.abs(n)<Math.abs(a-w):Math.abs(n)<Math.abs(y-w);(!l||Number(new Date)-s>500)&&(t.preventDefault(),!c&&r.transitions&&(r.vars.animationLoop||(n=n/(r.currentSlide===0&&n<0||r.currentSlide===r.last&&n>0?Math.abs(n)/u+2:1)),r.setProps(f+n,"setTouch")))},k=function(){if(t.removeEventListener("touchmove",b,!1),r.animatingTo===r.currentSlide&&!l&&!(n===null)){var i=o?-n:n,e=i>0?r.getTarget("next"):r.getTarget("prev");r.canAdvance(e)&&(Number(new Date)-s<550&&Math.abs(i)>50||Math.abs(i)>u/2)?r.flexAnimate(e,r.vars.pauseOnAction):c||r.flexAnimate(r.currentSlide,r.vars.pauseOnAction,!0)}t.removeEventListener("touchend",k,!1);p=null;w=null;n=null;f=null},t.addEventListener("touchstart",d,!1)},resize:function(){!r.animating&&r.is(":visible")&&(e||r.doMath(),c?u.smoothHeight():e?(r.slides.width(r.computedW),r.update(r.pagingCount),r.setProps()):h?(r.viewport.height(r.h),r.setProps(r.h,"setTotal")):(r.vars.smoothHeight&&u.smoothHeight(),r.newSlides.width(r.computedW),r.setProps(r.computedW,"setTotal")))},smoothHeight:function(n){if(!h||c){var t=c?r:r.viewport;n?t.animate({height:r.slides.eq(r.animatingTo).height()},n):t.height(r.slides.eq(r.animatingTo).height())}},sync:function(t){var i=n(r.vars.sync).data("flexslider"),u=r.animatingTo;switch(t){case"animate":i.flexAnimate(u,r.vars.pauseOnAction,!1,!0);break;case"play":i.playing||i.asNav||i.play();break;case"pause":i.pause()}},uniqueID:function(t){return t.filter("[id]").add(t.find("[id]")).each(function(){var t=n(this);t.attr("id",t.attr("id")+"_clone")}),t},pauseInvisible:{visProp:null,init:function(){var n=u.pauseInvisible.getHiddenProp(),t;n&&(t=n.replace(/[H|h]idden/,"")+"visibilitychange",document.addEventListener(t,function(){u.pauseInvisible.isHidden()?r.startTimeout?clearTimeout(r.startTimeout):r.pause():r.started?r.play():r.vars.initDelay>0?setTimeout(r.play,r.vars.initDelay):r.play()}))},isHidden:function(){var n=u.pauseInvisible.getHiddenProp();return n?document[n]:!1},getHiddenProp:function(){var t=["webkit","moz","ms","o"],n;if("hidden"in document)return"hidden";for(n=0;n<t.length;n++)if(t[n]+"Hidden"in document)return t[n]+"Hidden";return null}},setToClearWatchedEvent:function(){clearTimeout(p);p=setTimeout(function(){s=""},3e3)}};r.flexAnimate=function(t,i,s,a,v){var w,p,d,b,k;if(r.vars.animationLoop||t===r.currentSlide||(r.direction=t>r.currentSlide?"next":"prev"),l&&r.pagingCount===1&&(r.direction=r.currentItem<t?"next":"prev"),!r.animating&&(r.canAdvance(t,v)||s)&&r.is(":visible")){if(l&&a)if(w=n(r.vars.asNavFor).data("flexslider"),r.atEnd=t===0||t===r.count-1,w.flexAnimate(t,!0,!1,!0,v),r.direction=r.currentItem<t?"next":"prev",w.direction=r.direction,Math.ceil((t+1)/r.visible)-1!==r.currentSlide&&t!==0)r.currentItem=t,r.slides.removeClass(f+"active-slide").eq(t).addClass(f+"active-slide"),t=Math.floor(t/r.visible);else return r.currentItem=t,r.slides.removeClass(f+"active-slide").eq(t).addClass(f+"active-slide"),!1;r.animating=!0;r.animatingTo=t;i&&r.pause();r.vars.before(r);r.syncExists&&!v&&u.sync("animate");r.vars.controlNav&&u.controlNav.active();e||r.slides.removeClass(f+"active-slide").eq(t).addClass(f+"active-slide");r.atEnd=t===0||t===r.last;r.vars.directionNav&&u.directionNav.update();t===r.last&&(r.vars.end(r),r.vars.animationLoop||r.pause());c?y?(r.slides.eq(r.currentSlide).css({opacity:0,zIndex:1}),r.slides.eq(t).css({opacity:1,zIndex:2}),r.wrapup(p)):(r.slides.eq(r.currentSlide).css({zIndex:1}).animate({opacity:0},r.vars.animationSpeed,r.vars.easing),r.slides.eq(t).css({zIndex:2}).animate({opacity:1},r.vars.animationSpeed,r.vars.easing,r.wrapup)):(p=h?r.slides.filter(":first").height():r.computedW,e?(d=r.vars.itemMargin,k=(r.itemW+d)*r.move*r.animatingTo,b=k>r.limit&&r.visible!==1?r.limit:k):b=r.currentSlide===0&&t===r.count-1&&r.vars.animationLoop&&r.direction!=="next"?o?(r.count+r.cloneOffset)*p:0:r.currentSlide===r.last&&t===0&&r.vars.animationLoop&&r.direction!=="prev"?o?0:(r.count+1)*p:o?(r.count-1-t+r.cloneOffset)*p:(t+r.cloneOffset)*p,r.setProps(b,"",r.vars.animationSpeed),r.transitions?(r.vars.animationLoop&&r.atEnd||(r.animating=!1,r.currentSlide=r.animatingTo),r.container.unbind("webkitTransitionEnd transitionend"),r.container.bind("webkitTransitionEnd transitionend",function(){clearTimeout(r.ensureAnimationEnd);r.wrapup(p)}),clearTimeout(r.ensureAnimationEnd),r.ensureAnimationEnd=setTimeout(function(){r.wrapup(p)},r.vars.animationSpeed+100)):r.container.animate(r.args,r.vars.animationSpeed,r.vars.easing,function(){r.wrapup(p)}));r.vars.smoothHeight&&u.smoothHeight(r.vars.animationSpeed)}};r.wrapup=function(n){c||e||(r.currentSlide===0&&r.animatingTo===r.last&&r.vars.animationLoop?r.setProps(n,"jumpEnd"):r.currentSlide===r.last&&r.animatingTo===0&&r.vars.animationLoop&&r.setProps(n,"jumpStart"));r.animating=!1;r.currentSlide=r.animatingTo;r.vars.after(r)};r.animateSlides=function(){!r.animating&&w&&r.flexAnimate(r.getTarget("next"))};r.pause=function(){clearInterval(r.animatedSlides);r.animatedSlides=null;r.playing=!1;r.vars.pausePlay&&u.pausePlay.update("play");r.syncExists&&u.sync("pause")};r.play=function(){r.playing&&clearInterval(r.animatedSlides);r.animatedSlides=r.animatedSlides||setInterval(r.animateSlides,r.vars.slideshowSpeed);r.started=r.playing=!0;r.vars.pausePlay&&u.pausePlay.update("pause");r.syncExists&&u.sync("play")};r.stop=function(){r.pause();r.stopped=!0};r.canAdvance=function(n,t){var i=l?r.pagingCount-1:r.last;return t?!0:l&&r.currentItem===r.count-1&&n===0&&r.direction==="prev"?!0:l&&r.currentItem===0&&n===r.pagingCount-1&&r.direction!=="next"?!1:n===r.currentSlide&&!l?!1:r.vars.animationLoop?!0:r.atEnd&&r.currentSlide===0&&n===i&&r.direction!=="next"?!1:r.atEnd&&r.currentSlide===i&&n===0&&r.direction==="next"?!1:!0};r.getTarget=function(n){return r.direction=n,n==="next"?r.currentSlide===r.last?0:r.currentSlide+1:r.currentSlide===0?r.last:r.currentSlide-1};r.setProps=function(n,t,i){var u=function(){var i=n?n:(r.itemW+r.vars.itemMargin)*r.move*r.animatingTo,u=function(){if(e)return t==="setTouch"?n:o&&r.animatingTo===r.last?0:o?r.limit-(r.itemW+r.vars.itemMargin)*r.move*r.animatingTo:r.animatingTo===r.last?r.limit:i;switch(t){case"setTotal":return o?(r.count-1-r.currentSlide+r.cloneOffset)*n:(r.currentSlide+r.cloneOffset)*n;case"setTouch":return o?n:n;case"jumpEnd":return o?n:r.count*n;case"jumpStart":return o?r.count*n:n;default:return n}}();return u*-1+"px"}();r.transitions&&(u=h?"translate3d(0,"+u+",0)":"translate3d("+u+",0,0)",i=i!==undefined?i/1e3+"s":"0s",r.container.css("-"+r.pfx+"-transition-duration",i),r.container.css("transition-duration",i));r.args[r.prop]=u;(r.transitions||i===undefined)&&r.container.css(r.args);r.container.css("transform",u)};r.setup=function(t){if(c)r.slides.css({width:"100%",float:"left",marginRight:"-100%",position:"relative"}),t==="init"&&(y?r.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+r.vars.animationSpeed/1e3+"s ease",zIndex:1}).eq(r.currentSlide).css({opacity:1,zIndex:2}):r.vars.fadeFirstSlide==!1?r.slides.css({opacity:0,display:"block",zIndex:1}).eq(r.currentSlide).css({zIndex:2}).css({opacity:1}):r.slides.css({opacity:0,display:"block",zIndex:1}).eq(r.currentSlide).css({zIndex:2}).animate({opacity:1},r.vars.animationSpeed,r.vars.easing)),r.vars.smoothHeight&&u.smoothHeight();else{var i,s;t==="init"&&(r.viewport=n('<div class="'+f+'viewport"><\/div>').css({overflow:"hidden",position:"relative"}).appendTo(r).append(r.container),r.cloneCount=0,r.cloneOffset=0,o&&(s=n.makeArray(r.slides).reverse(),r.slides=n(s),r.container.empty().append(r.slides)));r.vars.animationLoop&&!e&&(r.cloneCount=2,r.cloneOffset=1,t!=="init"&&r.container.find(".clone").remove(),r.container.append(u.uniqueID(r.slides.first().clone().addClass("clone")).attr("aria-hidden","true")).prepend(u.uniqueID(r.slides.last().clone().addClass("clone")).attr("aria-hidden","true")));r.newSlides=n(r.vars.selector,r);i=o?r.count-1-r.currentSlide+r.cloneOffset:r.currentSlide+r.cloneOffset;h&&!e?(r.container.height((r.count+r.cloneCount)*200+"%").css("position","absolute").width("100%"),setTimeout(function(){r.newSlides.css({display:"block"});r.doMath();r.viewport.height(r.h);r.setProps(i*r.h,"init")},t==="init"?100:0)):(r.container.width((r.count+r.cloneCount)*200+"%"),r.setProps(i*r.computedW,"init"),setTimeout(function(){r.doMath();r.newSlides.css({width:r.computedW,float:"left",display:"block"});r.vars.smoothHeight&&u.smoothHeight()},t==="init"?100:0))}e||r.slides.removeClass(f+"active-slide").eq(r.currentSlide).addClass(f+"active-slide");r.vars.init(r)};r.doMath=function(){var u=r.slides.first(),n=r.vars.itemMargin,t=r.vars.minItems,i=r.vars.maxItems;r.w=r.viewport===undefined?r.width():r.viewport.width();r.h=u.height();r.boxPadding=u.outerWidth()-u.width();e?(r.itemT=r.vars.itemWidth+n,r.minW=t?t*r.itemT:r.w,r.maxW=i?i*r.itemT-n:r.w,r.itemW=r.minW>r.w?(r.w-n*(t-1))/t:r.maxW<r.w?(r.w-n*(i-1))/i:r.vars.itemWidth>r.w?r.w:r.vars.itemWidth,r.visible=Math.floor(r.w/r.itemW),r.move=r.vars.move>0&&r.vars.move<r.visible?r.vars.move:r.visible,r.pagingCount=Math.ceil((r.count-r.visible)/r.move+1),r.last=r.pagingCount-1,r.limit=r.pagingCount===1?0:r.vars.itemWidth>r.w?r.itemW*(r.count-1)+n*(r.count-1):(r.itemW+n)*r.count-r.w-n):(r.itemW=r.w,r.pagingCount=r.count,r.last=r.count-1);r.computedW=r.itemW-r.boxPadding};r.update=function(n,t){r.doMath();e||(n<r.currentSlide?r.currentSlide+=1:n<=r.currentSlide&&n!==0&&(r.currentSlide-=1),r.animatingTo=r.currentSlide);r.vars.controlNav&&!r.manualControls&&(t==="add"&&!e||r.pagingCount>r.controlNav.length?u.controlNav.update("add"):(t==="remove"&&!e||r.pagingCount<r.controlNav.length)&&(e&&r.currentSlide>r.last&&(r.currentSlide-=1,r.animatingTo-=1),u.controlNav.update("remove",r.last)));r.vars.directionNav&&u.directionNav.update()};r.addSlide=function(t,i){var u=n(t);r.count+=1;r.last=r.count-1;h&&o?i!==undefined?r.slides.eq(r.count-i).after(u):r.container.prepend(u):i!==undefined?r.slides.eq(i).before(u):r.container.append(u);r.update(i,"add");r.slides=n(r.vars.selector+":not(.clone)",r);r.setup();r.vars.added(r)};r.removeSlide=function(t){var i=isNaN(t)?r.slides.index(n(t)):t;r.count-=1;r.last=r.count-1;isNaN(t)?n(t,r.slides).remove():h&&o?r.slides.eq(r.last).remove():r.slides.eq(t).remove();r.doMath();r.update(i,"remove");r.slides=n(r.vars.selector+":not(.clone)",r);r.setup();r.vars.removed(r)};u.init()};n(window).blur(function(){focused=!1}).focus(function(){focused=!0});n.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:7e3,animationSpeed:600,initDelay:0,randomize:!1,fadeFirstSlide:!0,thumbCaptions:!1,pauseOnAction:!0,pauseOnHover:!1,pauseInvisible:!0,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:"Previous",nextText:"Next",keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",customDirectionNav:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:1,maxItems:0,move:0,allowOneSlide:!0,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){},init:function(){}};n.fn.flexslider=function(t){if(t===undefined&&(t={}),typeof t=="object")return this.each(function(){var i=n(this),u=t.selector?t.selector:".slides > li",r=i.find(u);r.length===1&&t.allowOneSlide===!0||r.length===0?(r.fadeIn(400),t.start&&t.start(i)):i.data("flexslider")===undefined&&new n.flexslider(this,t)});var i=n(this).data("flexslider");switch(t){case"play":i.play();break;case"pause":i.pause();break;case"stop":i.stop();break;case"next":i.flexAnimate(i.getTarget("next"),!0);break;case"prev":case"previous":i.flexAnimate(i.getTarget("prev"),!0);break;default:typeof t=="number"&&i.flexAnimate(t,!0)}}}(jQuery);!function(n){var t={animation:"dissolve",separator:",",speed:2e3};n.fx.step.textShadowBlur=function(t){n(t.elem).prop("textShadowBlur",t.now).css({textShadow:"0 0 "+Math.floor(t.now)+"px black"})};n.fn.textrotator=function(i){var r=n.extend({},t,i);return this.each(function(){var t=n(this),i=[],u;n.each(t.text().split(r.separator),function(n,t){i.push(t)});t.text(i[0]);u=function(){var f,u;switch(r.animation){case"dissolve":t.animate({textShadowBlur:20,opacity:0},500,function(){u=n.inArray(t.text(),i);u+1==i.length&&(u=-1);t.text(i[u+1]).animate({textShadowBlur:0,opacity:1},500)});break;case"flip":t.find(".back").length>0&&t.html(t.find(".back").html());f=t.text();u=n.inArray(f,i);u+1==i.length&&(u=-1);t.html("");n("<span class='front'>"+f+"<\/span>").appendTo(t);n("<span class='back'>"+i[u+1]+"<\/span>").appendTo(t);t.wrapInner("<span class='rotating' />").find(".rotating").hide().addClass("flip").show().css({"-webkit-transform":" rotateY(-180deg)","-moz-transform":" rotateY(-180deg)","-o-transform":" rotateY(-180deg)",transform:" rotateY(-180deg)"});break;case"flipUp":t.find(".back").length>0&&t.html(t.find(".back").html());f=t.text();u=n.inArray(f,i);u+1==i.length&&(u=-1);t.html("");n("<span class='front'>"+f+"<\/span>").appendTo(t);n("<span class='back'>"+i[u+1]+"<\/span>").appendTo(t);t.wrapInner("<span class='rotating' />").find(".rotating").hide().addClass("flip up").show().css({"-webkit-transform":" rotateX(-180deg)","-moz-transform":" rotateX(-180deg)","-o-transform":" rotateX(-180deg)",transform:" rotateX(-180deg)"});break;case"flipCube":t.find(".back").length>0&&t.html(t.find(".back").html());f=t.text();u=n.inArray(f,i);u+1==i.length&&(u=-1);t.html("");n("<span class='front'>"+f+"<\/span>").appendTo(t);n("<span class='back'>"+i[u+1]+"<\/span>").appendTo(t);t.wrapInner("<span class='rotating' />").find(".rotating").hide().addClass("flip cube").show().css({"-webkit-transform":" rotateY(180deg)","-moz-transform":" rotateY(180deg)","-o-transform":" rotateY(180deg)",transform:" rotateY(180deg)"});break;case"flipCubeUp":t.find(".back").length>0&&t.html(t.find(".back").html());f=t.text();u=n.inArray(f,i);u+1==i.length&&(u=-1);t.html("");n("<span class='front'>"+f+"<\/span>").appendTo(t);n("<span class='back'>"+i[u+1]+"<\/span>").appendTo(t);t.wrapInner("<span class='rotating' />").find(".rotating").hide().addClass("flip cube up").show().css({"-webkit-transform":" rotateX(180deg)","-moz-transform":" rotateX(180deg)","-o-transform":" rotateX(180deg)",transform:" rotateX(180deg)"});break;case"spin":t.find(".rotating").length>0&&t.html(t.find(".rotating").html());u=n.inArray(t.text(),i);u+1==i.length&&(u=-1);t.wrapInner("<span class='rotating spin' />").find(".rotating").hide().text(i[u+1]).show().css({"-webkit-transform":" rotate(0) scale(1)","-moz-transform":"rotate(0) scale(1)","-o-transform":"rotate(0) scale(1)",transform:"rotate(0) scale(1)"});break;case"fade":t.fadeOut(r.speed,function(){u=n.inArray(t.text(),i);u+1==i.length&&(u=-1);t.text(i[u+1]).fadeIn(r.speed)})}};setInterval(u,r.speed)})}}(window.jQuery);ytp=ytp||{};getYTPVideoID=function(n){var t,i;return n.indexOf("youtu.be")>0?(t=n.substr(n.lastIndexOf("/")+1,n.length),i=t.indexOf("?list=")>0?t.substr(t.lastIndexOf("="),t.length):null,t=i?t.substr(0,t.lastIndexOf("?")):t):n.indexOf("http")>-1?(t=n.match(/[\\?&]v=([^&#]*)/)[1],i=n.indexOf("list=")>0?n.match(/[\\?&]list=([^&#]*)/)[1]:null):(t=n.length>15?null:n,i=t?null:n),{videoID:t,playlistID:i}};!function(n,t){n.mbYTPlayer={name:"jquery.mb.YTPlayer",version:"2.9.4",build:"{{ build }}",author:"Matteo Bicocchi",apiKey:"",defaults:{containment:"body",ratio:"auto",videoURL:null,playlistURL:null,startAt:0,stopAt:0,autoPlay:!0,vol:50,addRaster:!1,opacity:1,quality:"default",mute:!1,loop:!0,showControls:!0,showAnnotations:!1,showYTLogo:!0,stopMovieOnBlur:!0,realfullscreen:!0,gaTrack:!0,optimizeDisplay:!0,onReady:function(){}},controls:{play:"P",pause:"p",mute:"M",unmute:"A",onlyYT:"O",showSite:"R",ytLogo:"Y"},locationProtocol:"https:",buildPlayer:function(i){return this.each(function(){var YTPlayer=this,$YTPlayer=n(YTPlayer),property,isIframe,playerID,videoID,playlistID,playerVars,playerBox,overlay,isPlayer,wrapper,tag;if(YTPlayer.loop=0,YTPlayer.opt={},YTPlayer.state={},YTPlayer.filtersEnabled=!0,YTPlayer.filters={grayscale:{value:0,unit:"%"},hue_rotate:{value:0,unit:"deg"},invert:{value:0,unit:"%"},opacity:{value:0,unit:"%"},saturate:{value:0,unit:"%"},sepia:{value:0,unit:"%"},brightness:{value:0,unit:"%"},contrast:{value:0,unit:"%"},blur:{value:0,unit:"px"}},$YTPlayer.addClass("mb_YTPlayer"),property=$YTPlayer.data("property")&&"string"==typeof $YTPlayer.data("property")?eval("("+$YTPlayer.data("property")+")"):$YTPlayer.data("property"),"undefined"!=typeof property&&"undefined"!=typeof property.vol&&(property.vol=0===property.vol?property.vol=1:property.vol),n.extend(YTPlayer.opt,n.mbYTPlayer.defaults,i,property),YTPlayer.hasChanged||(YTPlayer.defaultOpt={},n.extend(YTPlayer.defaultOpt,n.mbYTPlayer.defaults,i,property)),YTPlayer.isRetina=window.retina||window.devicePixelRatio>1,isIframe=function(){var n=!1;try{self.location.href!=top.location.href&&(n=!0)}catch(t){n=!0}return n},YTPlayer.canGoFullScreen=!(n.browser.msie||n.browser.opera||isIframe()),YTPlayer.canGoFullScreen||(YTPlayer.opt.realfullscreen=!1),$YTPlayer.attr("id")||$YTPlayer.attr("id","video_"+(new Date).getTime()),playerID="mbYTP_"+YTPlayer.id,YTPlayer.isAlone=!1,YTPlayer.hasFocus=!0,videoID=this.opt.videoURL?getYTPVideoID(this.opt.videoURL).videoID:$YTPlayer.attr("href")?getYTPVideoID($YTPlayer.attr("href")).videoID:!1,playlistID=this.opt.videoURL?getYTPVideoID(this.opt.videoURL).playlistID:$YTPlayer.attr("href")?getYTPVideoID($YTPlayer.attr("href")).playlistID:!1,YTPlayer.videoID=videoID,YTPlayer.playlistID=playlistID,YTPlayer.opt.showAnnotations=YTPlayer.opt.showAnnotations?"0":"3",playerVars={autoplay:0,modestbranding:1,controls:0,showinfo:0,rel:0,enablejsapi:1,version:3,playerapiid:playerID,origin:"*",allowfullscreen:!0,wmode:"transparent",iv_load_policy:YTPlayer.opt.showAnnotations},document.createElement("video").canPlayType&&n.extend(playerVars,{html5:1}),n.browser.msie&&n.browser.version<9&&(this.opt.opacity=1),playerBox=n("<div/>").attr("id",playerID).addClass("playerBox"),overlay=n("<div/>").css({position:"absolute",top:0,left:0,width:"100%",height:"100%"}).addClass("YTPOverlay"),YTPlayer.isSelf="self"==YTPlayer.opt.containment,YTPlayer.defaultOpt.containment=YTPlayer.opt.containment=n("self"==YTPlayer.opt.containment?this:YTPlayer.opt.containment),YTPlayer.isBackground="body"==YTPlayer.opt.containment.get(0).tagName.toLowerCase(),!YTPlayer.isBackground||!t.backgroundIsInited){if(isPlayer=YTPlayer.opt.containment.is(n(this)),YTPlayer.canPlayOnMobile=isPlayer&&0===n(this).children().length,isPlayer?YTPlayer.isPlayer=!0:$YTPlayer.hide(),n.browser.mobile&&!YTPlayer.canPlayOnMobile)return void $YTPlayer.remove();wrapper=n("<div/>").addClass("mbYTP_wrapper").attr("id","wrapper_"+playerID);(wrapper.css({position:"absolute",zIndex:0,minWidth:"100%",minHeight:"100%",left:0,top:0,overflow:"hidden",opacity:0}),playerBox.css({position:"absolute",zIndex:0,width:"100%",height:"100%",top:0,left:0,overflow:"hidden"}),wrapper.append(playerBox),YTPlayer.opt.containment.children().not("script, style").each(function(){"static"==n(this).css("position")&&n(this).css("position","relative")}),YTPlayer.isBackground?(n("body").css({boxSizing:"border-box"}),wrapper.css({position:"fixed",top:0,left:0,zIndex:0}),$YTPlayer.hide()):"static"==YTPlayer.opt.containment.css("position")&&YTPlayer.opt.containment.css({position:"relative"}),YTPlayer.opt.containment.prepend(wrapper),YTPlayer.wrapper=wrapper,playerBox.css({opacity:1}),n.browser.mobile||(playerBox.after(overlay),YTPlayer.overlay=overlay),YTPlayer.isBackground||overlay.on("mouseenter",function(){YTPlayer.controlBar&&YTPlayer.controlBar.addClass("visible")}).on("mouseleave",function(){YTPlayer.controlBar&&YTPlayer.controlBar.removeClass("visible")}),t.YTAPIReady)?setTimeout(function(){n(document).trigger("YTAPIReady")},100):(n("#YTAPI").remove(),tag=n("<script><\/script>").attr({src:n.mbYTPlayer.locationProtocol+"//www.youtube.com/iframe_api?v="+n.mbYTPlayer.version,id:"YTAPI"}),n("head").prepend(tag));n(document).on("YTAPIReady",function(){YTPlayer.isBackground&&t.backgroundIsInited||YTPlayer.isInit||(YTPlayer.isBackground&&(t.backgroundIsInited=!0),YTPlayer.opt.autoPlay="undefined"==typeof YTPlayer.opt.autoPlay?YTPlayer.isBackground?!0:!1:YTPlayer.opt.autoPlay,YTPlayer.opt.vol=YTPlayer.opt.vol?YTPlayer.opt.vol:100,n.mbYTPlayer.getDataFromAPI(YTPlayer),n(YTPlayer).on("YTPChanged",function(){if(!YTPlayer.isInit){if(YTPlayer.isInit=!0,n.browser.mobile&&YTPlayer.canPlayOnMobile){if(YTPlayer.opt.containment.outerWidth()>n(window).width()){YTPlayer.opt.containment.css({maxWidth:"100%"});var t=.6*YTPlayer.opt.containment.outerWidth();YTPlayer.opt.containment.css({maxHeight:t})}return void new YT.Player(playerID,{videoId:YTPlayer.videoID.toString(),height:"100%",width:"100%",events:{onReady:function(n){YTPlayer.player=n.target;playerBox.css({opacity:1});YTPlayer.wrapper.css({opacity:1})}}})}new YT.Player(playerID,{videoId:YTPlayer.videoID.toString(),playerVars:playerVars,events:{onReady:function(t){if(YTPlayer.player=t.target,!YTPlayer.isReady){YTPlayer.isReady=YTPlayer.isPlayer&&!YTPlayer.opt.autoPlay?!1:!0;YTPlayer.playerEl=YTPlayer.player.getIframe();$YTPlayer.optimizeDisplay();YTPlayer.videoID=videoID;n(window).on("resize.YTP",function(){$YTPlayer.optimizeDisplay()});n.mbYTPlayer.checkForState(YTPlayer);var i=n.Event("YTPUnstarted");i.time=YTPlayer.player.time;YTPlayer.canTrigger&&n(YTPlayer).trigger(i)}},onStateChange:function(event){var state,eventType,YTPEvent;if("function"==typeof event.target.getPlayerState&&(state=event.target.getPlayerState(),YTPlayer.state!=state)){YTPlayer.state=state;switch(state){case-1:eventType="YTPUnstarted";break;case 0:eventType="YTPEnd";break;case 1:eventType="YTPStart";YTPlayer.controlBar&&YTPlayer.controlBar.find(".mb_YTPPlaypause").html(n.mbYTPlayer.controls.pause);"undefined"!=typeof _gaq&&eval(YTPlayer.opt.gaTrack)&&_gaq.push(["_trackEvent","YTPlayer","Play",YTPlayer.hasData?YTPlayer.videoData.title:YTPlayer.videoID.toString()]);"undefined"!=typeof ga&&eval(YTPlayer.opt.gaTrack)&&ga("send","event","YTPlayer","play",YTPlayer.hasData?YTPlayer.videoData.title:YTPlayer.videoID.toString());break;case 2:eventType="YTPPause";YTPlayer.controlBar&&YTPlayer.controlBar.find(".mb_YTPPlaypause").html(n.mbYTPlayer.controls.play);break;case 3:YTPlayer.player.setPlaybackQuality(YTPlayer.opt.quality);eventType="YTPBuffering";YTPlayer.controlBar&&YTPlayer.controlBar.find(".mb_YTPPlaypause").html(n.mbYTPlayer.controls.play);break;case 5:eventType="YTPCued"}YTPEvent=n.Event(eventType);YTPEvent.time=YTPlayer.player.time;YTPlayer.canTrigger&&n(YTPlayer).trigger(YTPEvent)}},onPlaybackQualityChange:function(t){var r=t.target.getPlaybackQuality(),i=n.Event("YTPQualityChange");i.quality=r;n(YTPlayer).trigger(i)},onError:function(t){150==t.data&&(console.log("Embedding this video is restricted by Youtube."),YTPlayer.isPlayList&&n(YTPlayer).playNext());2==t.data&&YTPlayer.isPlayList&&n(YTPlayer).playNext();"function"==typeof YTPlayer.opt.onError&&YTPlayer.opt.onError($YTPlayer,t)}}})}}))})}})},getDataFromAPI:function(t){if(t.videoData=n.mbStorage.get("YYTPlayer_data_"+t.videoID),n(t).off("YTPData.YTPlayer").on("YTPData.YTPlayer",function(){if(t.hasData&&t.isPlayer&&!t.opt.autoPlay){var n=t.videoData.thumb_max||t.videoData.thumb_high||t.videoData.thumb_medium;t.opt.containment.css({background:"rgba(0,0,0,0.5) url("+n+") center center",backgroundSize:"cover"});t.opt.backgroundUrl=n}}),t.videoData)setTimeout(function(){var i,r;t.opt.ratio="auto"==t.opt.ratio?"16/9":t.opt.ratio;t.dataReceived=!0;n(t).trigger("YTPChanged");i=n.Event("YTPData");i.prop={};for(r in t.videoData)i.prop[r]=t.videoData[r];n(t).trigger(i)},500),t.hasData=!0;else if(n.mbYTPlayer.apiKey)n.getJSON(n.mbYTPlayer.locationProtocol+"//www.googleapis.com/youtube/v3/videos?id="+t.videoID+"&key="+n.mbYTPlayer.apiKey+"&part=snippet",function(i){function f(i){t.videoData={};t.videoData.id=t.videoID;t.videoData.channelTitle=i.channelTitle;t.videoData.title=i.title;t.videoData.description=i.description.length<400?i.description:i.description.substring(0,400)+" ...";t.videoData.aspectratio="auto"==t.opt.ratio?"16/9":t.opt.ratio;t.opt.ratio=t.videoData.aspectratio;t.videoData.thumb_max=i.thumbnails.maxres?i.thumbnails.maxres.url:null;t.videoData.thumb_high=i.thumbnails.high?i.thumbnails.high.url:null;t.videoData.thumb_medium=i.thumbnails.medium?i.thumbnails.medium.url:null;n.mbStorage.set("YYTPlayer_data_"+t.videoID,t.videoData)}var r,u;t.dataReceived=!0;n(t).trigger("YTPChanged");f(i.items[0].snippet);t.hasData=!0;r=n.Event("YTPData");r.prop={};for(u in t.videoData)r.prop[u]=t.videoData[u];n(t).trigger(r)});else{if(setTimeout(function(){n(t).trigger("YTPChanged")},50),t.isPlayer&&!t.opt.autoPlay){var i=n.mbYTPlayer.locationProtocol+"//i.ytimg.com/vi/"+t.videoID+"/hqdefault.jpg";t.opt.containment.css({background:"rgba(0,0,0,0.5) url("+i+") center center",backgroundSize:"cover"});t.opt.backgroundUrl=i}t.videoData=null;t.opt.ratio="auto"==t.opt.ratio?"16/9":t.opt.ratio}t.isPlayer&&!t.opt.autoPlay&&(t.loading=n("<div/>").addClass("loading").html("Loading").hide(),n(t).append(t.loading),t.loading.fadeIn())},removeStoredData:function(){n.mbStorage.remove()},getVideoData:function(){var n=this.get(0);return n.videoData},getVideoID:function(){var n=this.get(0);return n.videoID||!1},setVideoQuality:function(t){var i=this.get(0);n.browser.chrome||i.player.setPlaybackQuality(t)},playlist:function(t,i,r){var f=this,u=f.get(0);return u.isPlayList=!0,i&&(t=n.shuffle(t)),u.videoID||(u.videos=t,u.videoCounter=0,u.videoLength=t.length,n(u).data("property",t[0]),n(u).mb_YTPlayer()),"function"==typeof r&&n(u).on("YTPChanged",function(){r(u)}),n(u).on("YTPEnd",function(){n(u).playNext()}),f},playNext:function(){var t=this.get(0);return t.videoCounter++,t.videoCounter>=t.videoLength&&(t.videoCounter=0),n(t).changeMovie(t.videos[t.videoCounter]),this},playPrev:function(){var t=this.get(0);return t.videoCounter--,t.videoCounter<0&&(t.videoCounter=t.videoLength-1),n(t).changeMovie(t.videos[t.videoCounter]),this},changeMovie:function(t){var i=this.get(0);i.opt.startAt=0;i.opt.stopAt=0;i.opt.mute=!0;i.hasData=!1;i.hasChanged=!0;t&&n.extend(i.opt,i.defaultOpt,t);i.videoID=getYTPVideoID(i.opt.videoURL).videoID;n(i.playerEl).CSSAnimate({opacity:0},200,function(){return n(i).YTPGetPlayer().cueVideoByUrl(encodeURI(n.mbYTPlayer.locationProtocol+"//www.youtube.com/v/"+i.videoID),1,i.opt.quality),n.mbYTPlayer.checkForState(i),n(i).optimizeDisplay(),n.mbYTPlayer.getDataFromAPI(i),this})},getPlayer:function(){return n(this).get(0).player},playerDestroy:function(){var i=this.get(0),r;return t.YTAPIReady=!1,t.backgroundIsInited=!1,i.isInit=!1,i.videoID=null,r=i.wrapper,r.remove(),n("#controlBar_"+i.id).remove(),clearInterval(i.checkForStartAt),clearInterval(i.getState),this},fullscreen:function(real){function hideMouse(){YTPlayer.overlay.css({cursor:"none"})}function RunPrefixMethod(n,t){for(var i,f,r=["webkit","moz","ms","o",""],u=0;u<r.length&&!n[i];){if(i=t,""==r[u]&&(i=i.substr(0,1).toLowerCase()+i.substr(1)),i=r[u]+i,f=typeof n[i],"undefined"!=f)return r=[r[u]],"function"==f?n[i]():n[i];u++}}function launchFullscreen(n){RunPrefixMethod(n,"RequestFullScreen")}function cancelFullscreen(){(RunPrefixMethod(document,"FullScreen")||RunPrefixMethod(document,"IsFullScreen"))&&RunPrefixMethod(document,"CancelFullScreen")}var YTPlayer=this.get(0),fullscreenchange;"undefined"==typeof real&&(real=YTPlayer.opt.realfullscreen);real=eval(real);var controls=n("#controlBar_"+YTPlayer.id),fullScreenBtn=controls.find(".mb_OnlyYT"),videoWrapper=YTPlayer.isSelf?YTPlayer.opt.containment:YTPlayer.wrapper;if(real){fullscreenchange=n.browser.mozilla?"mozfullscreenchange":n.browser.webkit?"webkitfullscreenchange":"fullscreenchange";n(document).off(fullscreenchange).on(fullscreenchange,function(){var t=RunPrefixMethod(document,"IsFullScreen")||RunPrefixMethod(document,"FullScreen");t?(n(YTPlayer).YTPSetVideoQuality("default"),n(YTPlayer).trigger("YTPFullScreenStart")):(YTPlayer.isAlone=!1,fullScreenBtn.html(n.mbYTPlayer.controls.onlyYT),n(YTPlayer).YTPSetVideoQuality(YTPlayer.opt.quality),videoWrapper.removeClass("fullscreen"),videoWrapper.CSSAnimate({opacity:YTPlayer.opt.opacity},500),videoWrapper.css({zIndex:0}),YTPlayer.isBackground?n("body").after(controls):YTPlayer.wrapper.before(controls),n(window).resize(),n(YTPlayer).trigger("YTPFullScreenEnd"))})}return YTPlayer.isAlone?(n(document).off("mousemove.YTPlayer"),YTPlayer.overlay.css({cursor:"auto"}),real?cancelFullscreen():(videoWrapper.CSSAnimate({opacity:YTPlayer.opt.opacity},500),videoWrapper.css({zIndex:0})),fullScreenBtn.html(n.mbYTPlayer.controls.onlyYT),YTPlayer.isAlone=!1):(n(document).on("mousemove.YTPlayer",function(t){YTPlayer.overlay.css({cursor:"auto"});clearTimeout(YTPlayer.hideCursor);n(t.target).parents().is(".mb_YTPBar")||(YTPlayer.hideCursor=setTimeout(hideMouse,3e3))}),hideMouse(),real?(videoWrapper.css({opacity:0}),videoWrapper.addClass("fullscreen"),launchFullscreen(videoWrapper.get(0)),setTimeout(function(){videoWrapper.CSSAnimate({opacity:1},1e3);YTPlayer.wrapper.append(controls);n(YTPlayer).optimizeDisplay();YTPlayer.player.seekTo(YTPlayer.player.getCurrentTime()+.1,!0)},500)):videoWrapper.css({zIndex:1e4}).CSSAnimate({opacity:1},1e3),fullScreenBtn.html(n.mbYTPlayer.controls.showSite),YTPlayer.isAlone=!0),this},toggleLoops:function(){var t=this.get(0),n=t.opt;return 1==n.loop?n.loop=0:(n.startAt?t.player.seekTo(n.startAt):t.player.playVideo(),n.loop=1),this},play:function(){var t=this.get(0),i,r;if(t.isReady)return i=n("#controlBar_"+t.id),r=i.find(".mb_YTPPlaypause"),r.html(n.mbYTPlayer.controls.pause),t.player.playVideo(),t.wrapper.CSSAnimate({opacity:t.isAlone?1:t.opt.opacity},2e3),n(t.playerEl).CSSAnimate({opacity:1},1e3),n(t).css("background-image","none"),this},togglePlay:function(n){var t=this.get(0);return 1==t.state?this.YTPPause():this.YTPPlay(),"function"==typeof n&&n(t.state),this},stop:function(){var t=this.get(0),i=n("#controlBar_"+t.id),r=i.find(".mb_YTPPlaypause");return r.html(n.mbYTPlayer.controls.play),t.player.stopVideo(),this},pause:function(){var t=this.get(0),i=n("#controlBar_"+t.id),r=i.find(".mb_YTPPlaypause");return r.html(n.mbYTPlayer.controls.play),t.player.pauseVideo(),this},seekTo:function(n){var t=this.get(0);return t.player.seekTo(n,!0),this},setVolume:function(t){var i=this.get(0);return t||i.opt.vol||0!=i.player.getVolume()?!t&&i.player.getVolume()>0||t&&i.opt.vol==t?i.isMute?n(i).YTPUnmute():n(i).YTPMute():(i.opt.vol=t,i.player.setVolume(i.opt.vol),i.volumeBar&&i.volumeBar.length&&i.volumeBar.updateSliderVal(t)):n(i).YTPUnmute(),this},mute:function(){var t=this.get(0),r,u,i;if(!t.isMute)return t.player.mute(),t.isMute=!0,t.player.setVolume(0),t.volumeBar&&t.volumeBar.length&&t.volumeBar.width()>10&&t.volumeBar.updateSliderVal(0),r=n("#controlBar_"+t.id),u=r.find(".mb_YTPMuteUnmute"),u.html(n.mbYTPlayer.controls.unmute),n(t).addClass("isMuted"),t.volumeBar&&t.volumeBar.length&&t.volumeBar.addClass("muted"),i=n.Event("YTPMuted"),i.time=t.player.time,t.canTrigger&&n(t).trigger(i),this},unmute:function(){var t=this.get(0),r,u,i;if(t.isMute)return t.player.unMute(),t.isMute=!1,t.player.setVolume(t.opt.vol),t.volumeBar&&t.volumeBar.length&&t.volumeBar.updateSliderVal(t.opt.vol>10?t.opt.vol:10),r=n("#controlBar_"+t.id),u=r.find(".mb_YTPMuteUnmute"),u.html(n.mbYTPlayer.controls.mute),n(t).removeClass("isMuted"),t.volumeBar&&t.volumeBar.length&&t.volumeBar.removeClass("muted"),i=n.Event("YTPUnmuted"),i.time=t.player.time,t.canTrigger&&n(t).trigger(i),this},applyFilter:function(n,t){var i=this.get(0);return i.filters[n].value=t,i.filtersEnabled&&this.YTPEnableFilters(),this},applyFilters:function(t){var i=this.get(0);return this.on("YTPReady",function(){for(var r in t)i.filters[r].value=t[r],n(i).YTPApplyFilter(r,t[r]);n(i).trigger("YTPFiltersApplied")}),this},toggleFilter:function(t,i){return this.each(function(){var r=this;r.filters[t].value=r.filters[t].value?0:i;r.filtersEnabled&&n(this).YTPEnableFilters()})},toggleFilters:function(t){return this.each(function(){var i=this;i.filtersEnabled?(n(i).trigger("YTPDisableFilters"),n(i).YTPDisableFilters()):(n(i).YTPEnableFilters(),n(i).trigger("YTPEnableFilters"));"function"==typeof t&&t(i.filtersEnabled)})},disableFilters:function(){return this.each(function(){var t=this,i=n(t.playerEl);i.css("-webkit-filter","");i.css("filter","");t.filtersEnabled=!1})},enableFilters:function(){return this.each(function(){var t=this,u=n(t.playerEl),r="",i;for(i in t.filters)t.filters[i].value&&(r+=i.replace("_","-")+"("+t.filters[i].value+t.filters[i].unit+") ");u.css("-webkit-filter",r);u.css("filter",r);t.filtersEnabled=!0})},removeFilter:function(t,i){return this.each(function(){var u,r;if("function"==typeof t&&(i=t,t=null),u=this,t)n(this).YTPApplyFilter(t,0),"function"==typeof i&&i(t);else for(r in u.filters)n(this).YTPApplyFilter(r,0),"function"==typeof i&&i(r)})},manageProgress:function(){var t=this.get(0),i=n("#controlBar_"+t.id),f=i.find(".mb_YTPProgress"),e=i.find(".mb_YTPLoaded"),o=i.find(".mb_YTPseekbar"),s=f.outerWidth(),r=Math.floor(t.player.getCurrentTime()),u=Math.floor(t.player.getDuration()),h=r*s/u,c=100*t.player.getVideoLoadedFraction();return e.css({left:0,width:c+"%"}),o.css({left:0,width:h}),{totalTime:u,currentTime:r}},buildControls:function(YTPlayer){var data=YTPlayer.opt,idx,vURL;if(data.showYTLogo=data.showYTLogo||data.printUrl,!n("#controlBar_"+YTPlayer.id).length){YTPlayer.controlBar=n("<span/>").attr("id","controlBar_"+YTPlayer.id).addClass("mb_YTPBar").css({whiteSpace:"noWrap",position:YTPlayer.isBackground?"fixed":"absolute",zIndex:YTPlayer.isBackground?1e4:1e3}).hide();var buttonBar=n("<div/>").addClass("buttonBar"),playpause=n("<span>"+n.mbYTPlayer.controls.play+"<\/span>").addClass("mb_YTPPlaypause ytpicon").click(function(){1==YTPlayer.player.getPlayerState()?n(YTPlayer).YTPPause():n(YTPlayer).YTPPlay()}),MuteUnmute=n("<span>"+n.mbYTPlayer.controls.mute+"<\/span>").addClass("mb_YTPMuteUnmute ytpicon").click(function(){0==YTPlayer.player.getVolume()?n(YTPlayer).YTPUnmute():n(YTPlayer).YTPMute()}),volumeBar=n("<div/>").addClass("mb_YTPVolumeBar").css({display:"inline-block"});YTPlayer.volumeBar=volumeBar;idx=n("<span/>").addClass("mb_YTPTime");vURL=data.videoURL?data.videoURL:"";vURL.indexOf("http")<0&&(vURL=n.mbYTPlayer.locationProtocol+"//www.youtube.com/watch?v="+data.videoURL);var movieUrl=n("<span/>").html(n.mbYTPlayer.controls.ytLogo).addClass("mb_YTPUrl ytpicon").attr("title","view on YouTube").on("click",function(){window.open(vURL,"viewOnYT")}),onlyVideo=n("<span/>").html(n.mbYTPlayer.controls.onlyYT).addClass("mb_OnlyYT ytpicon").on("click",function(){n(YTPlayer).YTPFullscreen(data.realfullscreen)}),progressBar=n("<div/>").addClass("mb_YTPProgress").css("position","absolute").click(function(n){timeBar.css({width:n.clientX-timeBar.offset().left});YTPlayer.timeW=n.clientX-timeBar.offset().left;YTPlayer.controlBar.find(".mb_YTPLoaded").css({width:0});var t=Math.floor(YTPlayer.player.getDuration());YTPlayer.goto=timeBar.outerWidth()*t/progressBar.outerWidth();YTPlayer.player.seekTo(parseFloat(YTPlayer.goto),!0);YTPlayer.controlBar.find(".mb_YTPLoaded").css({width:0})}),loadedBar=n("<div/>").addClass("mb_YTPLoaded").css("position","absolute"),timeBar=n("<div/>").addClass("mb_YTPseekbar").css("position","absolute");progressBar.append(loadedBar).append(timeBar);buttonBar.append(playpause).append(MuteUnmute).append(volumeBar).append(idx);data.showYTLogo&&buttonBar.append(movieUrl);(YTPlayer.isBackground||eval(YTPlayer.opt.realfullscreen)&&!YTPlayer.isBackground)&&buttonBar.append(onlyVideo);YTPlayer.controlBar.append(buttonBar).append(progressBar);YTPlayer.isBackground?n("body").after(YTPlayer.controlBar):(YTPlayer.controlBar.addClass("inlinePlayer"),YTPlayer.wrapper.before(YTPlayer.controlBar));volumeBar.simpleSlider({initialval:YTPlayer.opt.vol,scale:100,orientation:"h",callback:function(t){0==t.value?n(YTPlayer).YTPMute():n(YTPlayer).YTPUnmute();YTPlayer.player.setVolume(t.value);YTPlayer.isMute||(YTPlayer.opt.vol=t.value)}})}},checkForState:function(t){var i=t.opt.showControls?100:700;return clearInterval(t.getState),n.contains(document,t)?(n.mbYTPlayer.checkForStart(t),void(t.getState=setInterval(function(){var prog=n(t).YTPManageProgress(),$YTPlayer=n(t),data=t.opt,startAt=t.opt.startAt?t.opt.startAt:0,stopAt=t.opt.stopAt>t.opt.startAt?t.opt.stopAt:0,YTPEvent,YTPEnd;if((stopAt=stopAt<t.player.getDuration()?stopAt:0,t.player.time!=prog.currentTime)&&(YTPEvent=n.Event("YTPTime"),YTPEvent.time=t.player.time,n(t).trigger(YTPEvent)),t.player.time=prog.currentTime,0==t.player.getVolume()?$YTPlayer.addClass("isMuted"):$YTPlayer.removeClass("isMuted"),t.opt.showControls&&(prog.totalTime?t.controlBar.find(".mb_YTPTime").html(n.mbYTPlayer.formatTime(prog.currentTime)+" / "+n.mbYTPlayer.formatTime(prog.totalTime)):t.controlBar.find(".mb_YTPTime").html("-- : -- / -- : --")),eval(t.opt.stopMovieOnBlur)&&(document.hasFocus()?document.hasFocus()&&!t.hasFocus&&-1!=t.state&&0!=t.state&&(t.hasFocus=!0,$YTPlayer.YTPPlay()):1==t.state&&(t.hasFocus=!1,$YTPlayer.YTPPause())),t.controlBar&&t.controlBar.outerWidth()<=400&&!t.isCompact?(t.controlBar.addClass("compact"),t.isCompact=!0,!t.isMute&&t.volumeBar&&t.volumeBar.updateSliderVal(t.opt.vol)):t.controlBar&&t.controlBar.outerWidth()>400&&t.isCompact&&(t.controlBar.removeClass("compact"),t.isCompact=!1,!t.isMute&&t.volumeBar&&t.volumeBar.updateSliderVal(t.opt.vol)),1==t.player.getPlayerState()&&(parseFloat(t.player.getDuration()-1.5)<t.player.getCurrentTime()||stopAt>0&&parseFloat(t.player.getCurrentTime())>stopAt)){if(t.isEnded)return;if(t.isEnded=!0,setTimeout(function(){t.isEnded=!1},1e3),t.isPlayList)return clearInterval(t.getState),YTPEnd=n.Event("YTPEnd"),YTPEnd.time=t.player.time,void n(t).trigger(YTPEnd);data.loop?(startAt=startAt||1,t.player.pauseVideo(),t.player.seekTo(startAt,!0),$YTPlayer.YTPPlay()):(t.player.pauseVideo(),t.wrapper.CSSAnimate({opacity:0},1e3,function(){var i=n.Event("YTPEnd");i.time=t.player.time;n(t).trigger(i);t.player.seekTo(startAt,!0);t.isBackground||t.opt.containment.css({background:"rgba(0,0,0,0.5) url("+t.opt.backgroundUrl+") center center",backgroundSize:"cover"})}))}},i))):(n(t).YTPPlayerDestroy(),clearInterval(t.getState),void clearInterval(t.checkForStartAt))},checkForStart:function(t){var r=n(t),i;if(!n.contains(document,t))return void n(t).YTPPlayerDestroy();(n.browser.chrome&&(t.opt.quality="default"),t.player.pauseVideo(),n(t).muteYTPVolume(),n("#controlBar_"+t.id).remove(),t.opt.showControls&&n.mbYTPlayer.buildControls(t),t.opt.addRaster)?(i="dot"==t.opt.addRaster?"raster-dot":"raster",t.overlay.addClass(t.isRetina?i+" retina":i)):t.overlay.removeClass(function(t,i){var u=i.split(" "),r=[];return n.each(u,function(n,t){/raster.*/.test(t)&&r.push(t)}),r.push("retina"),r.join(" ")});t.checkForStartAt=setInterval(function(){var i,u,f;n(t).YTPMute();i=t.opt.startAt?t.opt.startAt:1;u=t.player.getVideoLoadedFraction()>i/t.player.getDuration();t.player.getDuration()>0&&t.player.getCurrentTime()>=i&&u?(clearInterval(t.checkForStartAt),t.isReady=!0,"function"==typeof t.opt.onReady&&t.opt.onReady(t),f=n.Event("YTPReady"),n(t).trigger(f),t.player.pauseVideo(),t.opt.mute||n(t).YTPUnmute(),t.canTrigger=!0,t.opt.autoPlay?(r.YTPPlay(),r.css("background-image","none"),n(t.playerEl).CSSAnimate({opacity:1},1e3),t.wrapper.CSSAnimate({opacity:t.isAlone?1:t.opt.opacity},1e3)):(t.player.pauseVideo(),t.isPlayer||(n(t.playerEl).CSSAnimate({opacity:1},1e3),t.wrapper.CSSAnimate({opacity:t.isAlone?1:t.opt.opacity},1e3))),t.isPlayer&&!t.opt.autoPlay&&(t.loading.html("Ready"),setTimeout(function(){t.loading.fadeOut()},100)),t.controlBar&&t.controlBar.slideDown(1e3)):i>=0&&t.player.seekTo(i,!0)},1e3)},formatTime:function(n){var t=Math.floor(n/60),i=Math.floor(n-60*t);return(9>=t?"0"+t:t)+" : "+(9>=i?"0"+i:i)}};n.fn.toggleVolume=function(){var t=this.get(0);if(t)return t.player.isMuted()?(n(t).YTPUnmute(),!0):(n(t).YTPMute(),!1)};n.fn.optimizeDisplay=function(){var f=this.get(0),e=f.opt,s=n(f.playerEl),i={},o=f.wrapper;i.width=o.outerWidth();i.height=o.outerHeight();var r=24,u=100,t={};e.optimizeDisplay?(t.width=i.width+i.width*r/100,t.height="16/9"==e.ratio?Math.ceil(9*i.width/16):Math.ceil(3*i.width/4),t.marginTop=-((t.height-i.height)/2),t.marginLeft=-(i.width*(r/2)/100),t.height<i.height&&(t.height=i.height+i.height*r/100,t.width="16/9"==e.ratio?Math.floor(16*i.height/9):Math.floor(4*i.height/3),t.marginTop=-(i.height*(r/2)/100),t.marginLeft=-((t.width-i.width)/2)),t.width+=u,t.height+=u,t.marginTop-=u/2,t.marginLeft-=u/2):(t.width="100%",t.height="100%",t.marginTop=0,t.marginLeft=0);s.css({width:t.width,height:t.height,marginTop:t.marginTop,marginLeft:t.marginLeft})};n.shuffle=function(n){for(var r,f,t=n.slice(),u=t.length,i=u;i--;)r=parseInt(Math.random()*u),f=t[i],t[i]=t[r],t[r]=f;return t};n.fn.YTPlayer=n.mbYTPlayer.buildPlayer;n.fn.YTPGetPlayer=n.mbYTPlayer.getPlayer;n.fn.YTPGetVideoID=n.mbYTPlayer.getVideoID;n.fn.YTPChangeMovie=n.mbYTPlayer.changeMovie;n.fn.YTPPlayerDestroy=n.mbYTPlayer.playerDestroy;n.fn.YTPPlay=n.mbYTPlayer.play;n.fn.YTPTogglePlay=n.mbYTPlayer.togglePlay;n.fn.YTPStop=n.mbYTPlayer.stop;n.fn.YTPPause=n.mbYTPlayer.pause;n.fn.YTPSeekTo=n.mbYTPlayer.seekTo;n.fn.YTPlaylist=n.mbYTPlayer.playlist;n.fn.YTPPlayNext=n.mbYTPlayer.playNext;n.fn.YTPPlayPrev=n.mbYTPlayer.playPrev;n.fn.YTPMute=n.mbYTPlayer.mute;n.fn.YTPUnmute=n.mbYTPlayer.unmute;n.fn.YTPToggleVolume=n.mbYTPlayer.toggleVolume;n.fn.YTPSetVolume=n.mbYTPlayer.setVolume;n.fn.YTPGetVideoData=n.mbYTPlayer.getVideoData;n.fn.YTPFullscreen=n.mbYTPlayer.fullscreen;n.fn.YTPToggleLoops=n.mbYTPlayer.toggleLoops;n.fn.YTPSetVideoQuality=n.mbYTPlayer.setVideoQuality;n.fn.YTPManageProgress=n.mbYTPlayer.manageProgress;n.fn.YTPApplyFilter=n.mbYTPlayer.applyFilter;n.fn.YTPApplyFilters=n.mbYTPlayer.applyFilters;n.fn.YTPToggleFilter=n.mbYTPlayer.toggleFilter;n.fn.YTPToggleFilters=n.mbYTPlayer.toggleFilters;n.fn.YTPRemoveFilter=n.mbYTPlayer.removeFilter;n.fn.YTPDisableFilters=n.mbYTPlayer.disableFilters;n.fn.YTPEnableFilters=n.mbYTPlayer.enableFilters;n.fn.mb_YTPlayer=n.mbYTPlayer.buildPlayer;n.fn.playNext=n.mbYTPlayer.playNext;n.fn.playPrev=n.mbYTPlayer.playPrev;n.fn.changeMovie=n.mbYTPlayer.changeMovie;n.fn.getVideoID=n.mbYTPlayer.getVideoID;n.fn.getPlayer=n.mbYTPlayer.getPlayer;n.fn.playerDestroy=n.mbYTPlayer.playerDestroy;n.fn.fullscreen=n.mbYTPlayer.fullscreen;n.fn.buildYTPControls=n.mbYTPlayer.buildControls;n.fn.playYTP=n.mbYTPlayer.play;n.fn.toggleLoops=n.mbYTPlayer.toggleLoops;n.fn.stopYTP=n.mbYTPlayer.stop;n.fn.pauseYTP=n.mbYTPlayer.pause;n.fn.seekToYTP=n.mbYTPlayer.seekTo;n.fn.muteYTPVolume=n.mbYTPlayer.mute;n.fn.unmuteYTPVolume=n.mbYTPlayer.unmute;n.fn.setYTPVolume=n.mbYTPlayer.setVolume;n.fn.setVideoQuality=n.mbYTPlayer.setVideoQuality;n.fn.manageYTPProgress=n.mbYTPlayer.manageProgress;n.fn.YTPGetDataFromFeed=n.mbYTPlayer.getVideoData}(jQuery,ytp);jQuery.support.CSStransition=function(){var t=document.body||document.documentElement,n=t.style;return void 0!==n.transition||void 0!==n.WebkitTransition||void 0!==n.MozTransition||void 0!==n.MsTransition||void 0!==n.OTransition}();jQuery.CSS={name:"mb.CSSAnimate",author:"Matteo Bicocchi",version:"2.0.0",transitionEnd:"transitionEnd",sfx:"",filters:{blur:{min:0,max:100,unit:"px"},brightness:{min:0,max:400,unit:"%"},contrast:{min:0,max:400,unit:"%"},grayscale:{min:0,max:100,unit:"%"},hueRotate:{min:0,max:360,unit:"deg"},invert:{min:0,max:100,unit:"%"},saturate:{min:0,max:400,unit:"%"},sepia:{min:0,max:100,unit:"%"}},normalizeCss:function(n){var t=jQuery.extend(!0,{},n),i,r;jQuery.browser.webkit||jQuery.browser.opera?jQuery.CSS.sfx="-webkit-":jQuery.browser.mozilla?jQuery.CSS.sfx="-moz-":jQuery.browser.msie&&(jQuery.CSS.sfx="-ms-");for(i in t)"transform"===i&&(t[jQuery.CSS.sfx+"transform"]=t[i],delete t[i]),"transform-origin"===i&&(t[jQuery.CSS.sfx+"transform-origin"]=n[i],delete t[i]),"filter"!==i||jQuery.browser.mozilla||(t[jQuery.CSS.sfx+"filter"]=n[i],delete t[i]),"blur"===i&&setFilter(t,"blur",n[i]),"brightness"===i&&setFilter(t,"brightness",n[i]),"contrast"===i&&setFilter(t,"contrast",n[i]),"grayscale"===i&&setFilter(t,"grayscale",n[i]),"hueRotate"===i&&setFilter(t,"hueRotate",n[i]),"invert"===i&&setFilter(t,"invert",n[i]),"saturate"===i&&setFilter(t,"saturate",n[i]),"sepia"===i&&setFilter(t,"sepia",n[i]),r="","x"===i&&(r=jQuery.CSS.sfx+"transform",t[r]=t[r]||"",t[r]+=" translateX("+setUnit(n[i],"px")+")",delete t[i]),"y"===i&&(r=jQuery.CSS.sfx+"transform",t[r]=t[r]||"",t[r]+=" translateY("+setUnit(n[i],"px")+")",delete t[i]),"z"===i&&(r=jQuery.CSS.sfx+"transform",t[r]=t[r]||"",t[r]+=" translateZ("+setUnit(n[i],"px")+")",delete t[i]),"rotate"===i&&(r=jQuery.CSS.sfx+"transform",t[r]=t[r]||"",t[r]+=" rotate("+setUnit(n[i],"deg")+")",delete t[i]),"rotateX"===i&&(r=jQuery.CSS.sfx+"transform",t[r]=t[r]||"",t[r]+=" rotateX("+setUnit(n[i],"deg")+")",delete t[i]),"rotateY"===i&&(r=jQuery.CSS.sfx+"transform",t[r]=t[r]||"",t[r]+=" rotateY("+setUnit(n[i],"deg")+")",delete t[i]),"rotateZ"===i&&(r=jQuery.CSS.sfx+"transform",t[r]=t[r]||"",t[r]+=" rotateZ("+setUnit(n[i],"deg")+")",delete t[i]),"scale"===i&&(r=jQuery.CSS.sfx+"transform",t[r]=t[r]||"",t[r]+=" scale("+setUnit(n[i],"")+")",delete t[i]),"scaleX"===i&&(r=jQuery.CSS.sfx+"transform",t[r]=t[r]||"",t[r]+=" scaleX("+setUnit(n[i],"")+")",delete t[i]),"scaleY"===i&&(r=jQuery.CSS.sfx+"transform",t[r]=t[r]||"",t[r]+=" scaleY("+setUnit(n[i],"")+")",delete t[i]),"scaleZ"===i&&(r=jQuery.CSS.sfx+"transform",t[r]=t[r]||"",t[r]+=" scaleZ("+setUnit(n[i],"")+")",delete t[i]),"skew"===i&&(r=jQuery.CSS.sfx+"transform",t[r]=t[r]||"",t[r]+=" skew("+setUnit(n[i],"deg")+")",delete t[i]),"skewX"===i&&(r=jQuery.CSS.sfx+"transform",t[r]=t[r]||"",t[r]+=" skewX("+setUnit(n[i],"deg")+")",delete t[i]),"skewY"===i&&(r=jQuery.CSS.sfx+"transform",t[r]=t[r]||"",t[r]+=" skewY("+setUnit(n[i],"deg")+")",delete t[i]),"perspective"===i&&(r=jQuery.CSS.sfx+"transform",t[r]=t[r]||"",t[r]+=" perspective("+setUnit(n[i],"px")+")",delete t[i]);return t},getProp:function(n){var t=[],i;for(i in n)t.indexOf(i)<0&&t.push(uncamel(i));return t.join(",")},animate:function(n,t,i,r,u){return this.each(function(){function p(){f.called=!0;f.CSSAIsRunning=!1;o.off(jQuery.CSS.transitionEnd+"."+f.id);clearTimeout(f.timeout);o.css(jQuery.CSS.sfx+"transition","");"function"==typeof u&&u.apply(f);"function"==typeof f.CSSqueue&&(f.CSSqueue(),f.CSSqueue=null)}var f=this,o=jQuery(this),l,a,e,h,c,v,y,s;if(f.id=f.id||"CSSA_"+(new Date).getTime(),l=l||{type:"noEvent"},f.CSSAIsRunning&&f.eventType==l.type&&!jQuery.browser.msie&&jQuery.browser.version<=9)return void(f.CSSqueue=function(){o.CSSAnimate(n,t,i,r,u)});if(f.CSSqueue=null,f.eventType=l.type,0!==o.length&&n){if(n=jQuery.normalizeCss(n),f.CSSAIsRunning=!0,"function"==typeof t&&(u=t,t=jQuery.fx.speeds._default),"function"==typeof i&&(r=i,i=0),"string"==typeof i&&(u=i,i=0),"function"==typeof r&&(u=r,r="cubic-bezier(0.65,0.03,0.36,0.72)"),"string"==typeof t)for(a in jQuery.fx.speeds){if(t==a){t=jQuery.fx.speeds[a];break}t=jQuery.fx.speeds._default}if(t||(t=jQuery.fx.speeds._default),"string"==typeof u&&(r=u,u=null),!jQuery.support.CSStransition){for(e in n)("transform"===e&&delete n[e],"filter"===e&&delete n[e],"transform-origin"===e&&delete n[e],"auto"===n[e]&&delete n[e],"x"===e)&&(h=n[e],c="left",n[c]=h,delete n[e]),"y"===e&&(h=n[e],c="top",n[c]=h,delete n[e]),("-ms-transform"===e||"-ms-filter"===e)&&delete n[e];return void o.delay(i).animate(n,t,u)}v={"default":"ease","in":"ease-in",out:"ease-out","in-out":"ease-in-out",snap:"cubic-bezier(0,1,.5,1)",easeOutCubic:"cubic-bezier(.215,.61,.355,1)",easeInOutCubic:"cubic-bezier(.645,.045,.355,1)",easeInCirc:"cubic-bezier(.6,.04,.98,.335)",easeOutCirc:"cubic-bezier(.075,.82,.165,1)",easeInOutCirc:"cubic-bezier(.785,.135,.15,.86)",easeInExpo:"cubic-bezier(.95,.05,.795,.035)",easeOutExpo:"cubic-bezier(.19,1,.22,1)",easeInOutExpo:"cubic-bezier(1,0,0,1)",easeInQuad:"cubic-bezier(.55,.085,.68,.53)",easeOutQuad:"cubic-bezier(.25,.46,.45,.94)",easeInOutQuad:"cubic-bezier(.455,.03,.515,.955)",easeInQuart:"cubic-bezier(.895,.03,.685,.22)",easeOutQuart:"cubic-bezier(.165,.84,.44,1)",easeInOutQuart:"cubic-bezier(.77,0,.175,1)",easeInQuint:"cubic-bezier(.755,.05,.855,.06)",easeOutQuint:"cubic-bezier(.23,1,.32,1)",easeInOutQuint:"cubic-bezier(.86,0,.07,1)",easeInSine:"cubic-bezier(.47,0,.745,.715)",easeOutSine:"cubic-bezier(.39,.575,.565,1)",easeInOutSine:"cubic-bezier(.445,.05,.55,.95)",easeInBack:"cubic-bezier(.6,-.28,.735,.045)",easeOutBack:"cubic-bezier(.175, .885,.32,1.275)",easeInOutBack:"cubic-bezier(.68,-.55,.265,1.55)"};v[r]&&(r=v[r]);o.off(jQuery.CSS.transitionEnd+"."+f.id);y=jQuery.CSS.getProp(n);s={};jQuery.extend(s,n);s[jQuery.CSS.sfx+"transition-property"]=y;s[jQuery.CSS.sfx+"transition-duration"]=t+"ms";s[jQuery.CSS.sfx+"transition-delay"]=i+"ms";s[jQuery.CSS.sfx+"transition-timing-function"]=r;setTimeout(function(){o.one(jQuery.CSS.transitionEnd+"."+f.id,p);o.css(s)},1);f.timeout=setTimeout(function(){return f.called||!u?(f.called=!1,void(f.CSSAIsRunning=!1)):(o.css(jQuery.CSS.sfx+"transition",""),u.apply(f),f.CSSAIsRunning=!1,void("function"==typeof f.CSSqueue&&(f.CSSqueue(),f.CSSqueue=null)))},t+i+10)}})}};jQuery.fn.CSSAnimate=jQuery.CSS.animate;jQuery.normalizeCss=jQuery.CSS.normalizeCss;jQuery.fn.css3=function(n){return this.each(function(){var t=jQuery(this),i=jQuery.normalizeCss(n);t.css(i)})};nAgt=navigator.userAgent;jQuery.browser||(jQuery.browser={},jQuery.browser.mozilla=!1,jQuery.browser.webkit=!1,jQuery.browser.opera=!1,jQuery.browser.safari=!1,jQuery.browser.chrome=!1,jQuery.browser.msie=!1,jQuery.browser.ua=nAgt,jQuery.browser.name=navigator.appName,jQuery.browser.fullVersion=""+parseFloat(navigator.appVersion),jQuery.browser.majorVersion=parseInt(navigator.appVersion,10),-1!=(verOffset=nAgt.indexOf("Opera"))?(jQuery.browser.opera=!0,jQuery.browser.name="Opera",jQuery.browser.fullVersion=nAgt.substring(verOffset+6),-1!=(verOffset=nAgt.indexOf("Version"))&&(jQuery.browser.fullVersion=nAgt.substring(verOffset+8))):-1!=(verOffset=nAgt.indexOf("OPR"))?(jQuery.browser.opera=!0,jQuery.browser.name="Opera",jQuery.browser.fullVersion=nAgt.substring(verOffset+4)):-1!=(verOffset=nAgt.indexOf("MSIE"))?(jQuery.browser.msie=!0,jQuery.browser.name="Microsoft Internet Explorer",jQuery.browser.fullVersion=nAgt.substring(verOffset+5)):-1!=nAgt.indexOf("Trident")?(jQuery.browser.msie=!0,jQuery.browser.name="Microsoft Internet Explorer",start=nAgt.indexOf("rv:")+3,end=start+4,jQuery.browser.fullVersion=nAgt.substring(start,end)):-1!=(verOffset=nAgt.indexOf("Chrome"))?(jQuery.browser.webkit=!0,jQuery.browser.chrome=!0,jQuery.browser.name="Chrome",jQuery.browser.fullVersion=nAgt.substring(verOffset+7)):-1!=(verOffset=nAgt.indexOf("Safari"))?(jQuery.browser.webkit=!0,jQuery.browser.safari=!0,jQuery.browser.name="Safari",jQuery.browser.fullVersion=nAgt.substring(verOffset+7),-1!=(verOffset=nAgt.indexOf("Version"))&&(jQuery.browser.fullVersion=nAgt.substring(verOffset+8))):-1!=(verOffset=nAgt.indexOf("AppleWebkit"))?(jQuery.browser.webkit=!0,jQuery.browser.name="Safari",jQuery.browser.fullVersion=nAgt.substring(verOffset+7),-1!=(verOffset=nAgt.indexOf("Version"))&&(jQuery.browser.fullVersion=nAgt.substring(verOffset+8))):-1!=(verOffset=nAgt.indexOf("Firefox"))?(jQuery.browser.mozilla=!0,jQuery.browser.name="Firefox",jQuery.browser.fullVersion=nAgt.substring(verOffset+8)):(nameOffset=nAgt.lastIndexOf(" ")+1)<(verOffset=nAgt.lastIndexOf("/"))&&(jQuery.browser.name=nAgt.substring(nameOffset,verOffset),jQuery.browser.fullVersion=nAgt.substring(verOffset+1),jQuery.browser.name.toLowerCase()==jQuery.browser.name.toUpperCase()&&(jQuery.browser.name=navigator.appName)),-1!=(ix=jQuery.browser.fullVersion.indexOf(";"))&&(jQuery.browser.fullVersion=jQuery.browser.fullVersion.substring(0,ix)),-1!=(ix=jQuery.browser.fullVersion.indexOf(" "))&&(jQuery.browser.fullVersion=jQuery.browser.fullVersion.substring(0,ix)),jQuery.browser.majorVersion=parseInt(""+jQuery.browser.fullVersion,10),isNaN(jQuery.browser.majorVersion)&&(jQuery.browser.fullVersion=""+parseFloat(navigator.appVersion),jQuery.browser.majorVersion=parseInt(navigator.appVersion,10)),jQuery.browser.version=jQuery.browser.majorVersion);jQuery.browser.android=/Android/i.test(nAgt);jQuery.browser.blackberry=/BlackBerry|BB|PlayBook/i.test(nAgt);jQuery.browser.ios=/iPhone|iPad|iPod|webOS/i.test(nAgt);jQuery.browser.operaMobile=/Opera Mini/i.test(nAgt);jQuery.browser.windowsMobile=/IEMobile|Windows Phone/i.test(nAgt);jQuery.browser.kindle=/Kindle|Silk/i.test(nAgt);jQuery.browser.mobile=jQuery.browser.android||jQuery.browser.blackberry||jQuery.browser.ios||jQuery.browser.windowsMobile||jQuery.browser.operaMobile||jQuery.browser.kindle;jQuery.isMobile=jQuery.browser.mobile;jQuery.isTablet=jQuery.browser.mobile&&jQuery(window).width()>765;jQuery.isAndroidDefault=jQuery.browser.android&&!/chrome/i.test(nAgt);!function(n){/iphone|ipod|ipad|android|ie|blackberry|fennec/.test(navigator.userAgent.toLowerCase());var t="ontouchstart"in window||window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture||window.DocumentTouch&&document instanceof DocumentTouch||!1;n.simpleSlider={defaults:{initialval:0,scale:100,orientation:"h",readonly:!1,callback:!1},events:{start:t?"touchstart":"mousedown",end:t?"touchend":"mouseup",move:t?"touchmove":"mousemove"},init:function(i){return this.each(function(){var r=this,u=n(r),e,f;u.addClass("simpleSlider");r.opt={};n.extend(r.opt,n.simpleSlider.defaults,i);n.extend(r.opt,u.data());e="h"==r.opt.orientation?"horizontal":"vertical";f=n("<div/>").addClass("level").addClass(e);u.prepend(f);r.level=f;u.css({cursor:"default"});"auto"==r.opt.scale&&(r.opt.scale=n(r).outerWidth());u.updateSliderVal();r.opt.readonly||(u.on(n.simpleSlider.events.start,function(n){t&&(n=n.changedTouches[0]);r.canSlide=!0;u.updateSliderVal(n);u.css({cursor:"col-resize"});n.preventDefault();n.stopPropagation()}),n(document).on(n.simpleSlider.events.move,function(i){t&&(i=i.changedTouches[0]);r.canSlide&&(n(document).css({cursor:"default"}),u.updateSliderVal(i),i.preventDefault(),i.stopPropagation())}).on(n.simpleSlider.events.end,function(){n(document).css({cursor:"auto"});r.canSlide=!1;u.css({cursor:"auto"})}))})},updateSliderVal:function(t){function e(n,t){return Math.floor(100*n/t)}var r=this,i=r.get(0),u,f;i.opt.initialval="number"==typeof i.opt.initialval?i.opt.initialval:i.opt.initialval(i);u=n(i).outerWidth();f=n(i).outerHeight();i.x="object"==typeof t?t.clientX+document.body.scrollLeft-r.offset().left:"number"==typeof t?t*u/i.opt.scale:i.opt.initialval*u/i.opt.scale;i.y="object"==typeof t?t.clientY+document.body.scrollTop-r.offset().top:"number"==typeof t?(i.opt.scale-i.opt.initialval-t)*f/i.opt.scale:i.opt.initialval*f/i.opt.scale;i.y=r.outerHeight()-i.y;i.scaleX=i.x*i.opt.scale/u;i.scaleY=i.y*i.opt.scale/f;i.outOfRangeX=i.scaleX>i.opt.scale?i.scaleX-i.opt.scale:i.scaleX<0?i.scaleX:0;i.outOfRangeY=i.scaleY>i.opt.scale?i.scaleY-i.opt.scale:i.scaleY<0?i.scaleY:0;i.outOfRange="h"==i.opt.orientation?i.outOfRangeX:i.outOfRangeY;i.value="undefined"!=typeof t?"h"==i.opt.orientation?i.x>=r.outerWidth()?i.opt.scale:i.x<=0?0:i.scaleX:i.y>=r.outerHeight()?i.opt.scale:i.y<=0?0:i.scaleY:"h"==i.opt.orientation?i.scaleX:i.scaleY;"h"==i.opt.orientation?i.level.width(e(i.x,u)+"%"):i.level.height(e(i.y,f));"function"==typeof i.opt.callback&&i.opt.callback(i)}};n.fn.simpleSlider=n.simpleSlider.init;n.fn.updateSliderVal=n.simpleSlider.updateSliderVal}(jQuery);!function(n){n.mbCookie={set:function(n,t,i,r){t=JSON.stringify(t);i||(i=7);r=r?"; domain="+r:"";var f,u=new Date;u.setTime(u.getTime()+864e5*i);f="; expires="+u.toGMTString();document.cookie=n+"="+t+f+"; path=/"+r},get:function(n){for(var t,r=n+"=",u=document.cookie.split(";"),i=0;i<u.length;i++){for(t=u[i];" "==t.charAt(0);)t=t.substring(1,t.length);if(0==t.indexOf(r))return JSON.parse(t.substring(r.length,t.length))}return null},remove:function(t){n.mbCookie.set(t,"",-1)}};n.mbStorage={set:function(n,t){t=JSON.stringify(t);localStorage.setItem(n,t)},get:function(n){return localStorage[n]?JSON.parse(localStorage[n]):null},remove:function(n){n?localStorage.removeItem(n):localStorage.clear()}}}(jQuery),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof exports=="object"?n(require("jquery")):n(window.jQuery||window.Zepto)}(function(n){var h="Close",wt="BeforeClose",ii="AfterClose",ri="BeforeAppend",rt="MarkupParse",ut="Open",bt="Change",ft="mfp",u="."+ft,w="mfp-ready",kt="mfp-removing",et="mfp-prevent-close",t,b=function(){},ot=!!window.jQuery,st,f=n(window),c,o,k,l,dt,r=function(n,i){t.ev.on(ft+n+u,i)},e=function(t,i,r,u){var f=document.createElement("div");return f.className="mfp-"+t,r&&(f.innerHTML=r),u?i&&i.appendChild(f):(f=n(f),i&&f.appendTo(i)),f},i=function(i,r){t.ev.triggerHandler(ft+i,r);t.st.callbacks&&(i=i.charAt(0).toLowerCase()+i.slice(1),t.st.callbacks[i]&&t.st.callbacks[i].apply(t,n.isArray(r)?r:[r]))},ht=function(i){return i===dt&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=n(t.st.closeMarkup.replace("%title%",t.st.tClose)),dt=i),t.currTemplate.closeBtn},ct=function(){n.magnificPopup.instance||(t=new b,t.init(),n.magnificPopup.instance=t)},ui=function(){var n=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(n.transition!==undefined)return!0;while(t.length)if(t.pop()+"Transition"in n)return!0;return!1},d,v,g,nt,lt,s,ni,vt,ti,tt,pt,it;b.prototype={constructor:b,init:function(){var i=navigator.appVersion;t.isIE7=i.indexOf("MSIE 7.")!==-1;t.isIE8=i.indexOf("MSIE 8.")!==-1;t.isLowIE=t.isIE7||t.isIE8;t.isAndroid=/android/gi.test(i);t.isIOS=/iphone|ipad|ipod/gi.test(i);t.supportsTransition=ui();t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent);o=n(document);t.popupsCache={}},open:function(s){var h,b,a,k,v,d,y,g,p;if(c||(c=n(document.body)),s.isObj===!1){for(t.items=s.items.toArray(),t.index=0,b=s.items,h=0;h<b.length;h++)if(a=b[h],a.parsed&&(a=a.el[0]),a===s.el[0]){t.index=h;break}}else t.items=n.isArray(s.items)?s.items:[s.items],t.index=s.index||0;if(t.isOpen){t.updateItemHTML();return}for(t.types=[],l="",t.ev=s.mainEl&&s.mainEl.length?s.mainEl.eq(0):o,s.key?(t.popupsCache[s.key]||(t.popupsCache[s.key]={}),t.currTemplate=t.popupsCache[s.key]):t.currTemplate={},t.st=n.extend(!0,{},n.magnificPopup.defaults,s),t.fixedContentPos=t.st.fixedContentPos==="auto"?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=e("bg").on("click"+u,function(){t.close()}),t.wrap=e("wrap").attr("tabindex",-1).on("click"+u,function(n){t._checkIfClose(n.target)&&t.close()}),t.container=e("container",t.wrap)),t.contentContainer=e("content"),t.st.preloader&&(t.preloader=e("preloader",t.container,t.st.tLoading)),k=n.magnificPopup.modules,h=0;h<k.length;h++)v=k[h],v=v.charAt(0).toUpperCase()+v.slice(1),t["init"+v].call(t);if(i("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(r(rt,function(n,t,i,r){i.close_replaceWith=ht(r.type)}),l+=" mfp-close-btn-in"):t.wrap.append(ht())),t.st.alignTop&&(l+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:f.scrollTop(),position:"absolute"}),t.st.fixedBgPos!==!1&&(t.st.fixedBgPos!=="auto"||t.fixedContentPos)||t.bgOverlay.css({height:o.height(),position:"absolute"}),t.st.enableEscapeKey)o.on("keyup"+u,function(n){n.keyCode===27&&t.close()});f.on("resize"+u,function(){t.updateSize()});return t.st.closeOnContentClick||(l+=" mfp-auto-cursor"),l&&t.wrap.addClass(l),d=t.wH=f.height(),y={},t.fixedContentPos&&t._hasScrollBar(d)&&(g=t._getScrollbarSize(),g&&(y.marginRight=g)),t.fixedContentPos&&(t.isIE7?n("body, html").css("overflow","hidden"):y.overflow="hidden"),p=t.st.mainClass,t.isIE7&&(p+=" mfp-ie7"),p&&t._addClassToMFP(p),t.updateItemHTML(),i("BuildControls"),n("html").css(y),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||c),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP(w),t._setFocus()):t.bgOverlay.addClass(w);o.on("focusin"+u,t._onFocusIn)},16),t.isOpen=!0,t.updateSize(d),i(ut),s},close:function(){t.isOpen&&(i(wt),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP(kt),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){var r,f;i(h);r=kt+" "+w+" ";t.bgOverlay.detach();t.wrap.detach();t.container.empty();t.st.mainClass&&(r+=t.st.mainClass+" ");t._removeClassFromMFP(r);t.fixedContentPos&&(f={marginRight:""},t.isIE7?n("body, html").css("overflow",""):f.overflow="",n("html").css(f));o.off("keyup"+u+" focusin"+u);t.ev.off(u);t.wrap.attr("class","mfp-wrap").removeAttr("style");t.bgOverlay.attr("class","mfp-bg");t.container.attr("class","mfp-container");t.st.showCloseBtn&&(!t.st.closeBtnInside||t.currTemplate[t.currItem.type]===!0)&&t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach();t._lastFocusedEl&&n(t._lastFocusedEl).focus();t.currItem=null;t.content=null;t.currTemplate=null;t.prevHeight=0;i(ii)},updateSize:function(n){if(t.isIOS){var u=document.documentElement.clientWidth/window.innerWidth,r=window.innerHeight*u;t.wrap.css("height",r);t.wH=r}else t.wH=n||f.height();t.fixedContentPos||t.wrap.css("height",t.wH);i("Resize")},updateItemHTML:function(){var u=t.items[t.index],r,f,e;t.contentContainer.detach();t.content&&t.content.detach();u.parsed||(u=t.parseEl(t.index));r=u.type;i("BeforeChange",[t.currItem?t.currItem.type:"",r]);t.currItem=u;t.currTemplate[r]||(f=t.st[r]?t.st[r].markup:!1,i("FirstMarkupParse",f),t.currTemplate[r]=f?n(f):!0);k&&k!==u.type&&t.container.removeClass("mfp-"+k+"-holder");e=t["get"+r.charAt(0).toUpperCase()+r.slice(1)](u,t.currTemplate[r]);t.appendContent(e,r);u.preloaded=!0;i(bt,u);k=u.type;t.container.prepend(t.contentContainer);i("AfterChange")},appendContent:function(n,r){t.content=n;n?t.st.showCloseBtn&&t.st.closeBtnInside&&t.currTemplate[r]===!0?t.content.find(".mfp-close").length||t.content.append(ht()):t.content=n:t.content="";i(ri);t.container.addClass("mfp-"+r+"-holder");t.contentContainer.append(t.content)},parseEl:function(r){var u=t.items[r],o,e,f;if(u.tagName?u={el:n(u)}:(o=u.type,u={data:u,src:u.src}),u.el){for(e=t.types,f=0;f<e.length;f++)if(u.el.hasClass("mfp-"+e[f])){o=e[f];break}u.src=u.el.attr("data-mfp-src");u.src||(u.src=u.el.attr("href"))}return u.type=o||t.st.type||"inline",u.index=r,u.parsed=!0,t.items[r]=u,i("ElementParse",u),t.items[r]},addGroup:function(n,i){var u=function(r){r.mfpEl=this;t._openClick(r,n,i)},r;if(i||(i={}),r="click.magnificPopup",i.mainEl=n,i.items){i.isObj=!0;n.off(r).on(r,u)}else if(i.isObj=!1,i.delegate)n.off(r).on(r,i.delegate,u);else{i.items=n;n.off(r).on(r,u)}},_openClick:function(i,r,u){var o=u.midClick!==undefined?u.midClick:n.magnificPopup.defaults.midClick,e;if(o||!(i.which===2||i.ctrlKey||i.metaKey)){if(e=u.disableOn!==undefined?u.disableOn:n.magnificPopup.defaults.disableOn,e)if(n.isFunction(e)){if(!e.call(t))return!0}else if(f.width()<e)return!0;i.type&&(i.preventDefault(),t.isOpen&&i.stopPropagation());u.el=n(i.mfpEl);u.delegate&&(u.items=r.find(u.delegate));t.open(u)}},updateStatus:function(n,r){if(t.preloader){st!==n&&t.container.removeClass("mfp-s-"+st);r||n!=="loading"||(r=t.st.tLoading);var u={status:n,text:r};i("UpdateStatus",u);n=u.status;r=u.text;t.preloader.html(r);t.preloader.find("a").on("click",function(n){n.stopImmediatePropagation()});t.container.addClass("mfp-s-"+n);st=n}},_checkIfClose:function(i){if(!n(i).hasClass(et)){var r=t.st.closeOnContentClick,u=t.st.closeOnBgClick;if(r&&u||!t.content||n(i).hasClass("mfp-close")||t.preloader&&i===t.preloader[0])return!0;if(i===t.content[0]||n.contains(t.content[0],i)){if(r)return!0}else if(u&&n.contains(document,i))return!0;return!1}},_addClassToMFP:function(n){t.bgOverlay.addClass(n);t.wrap.addClass(n)},_removeClassFromMFP:function(n){this.bgOverlay.removeClass(n);t.wrap.removeClass(n)},_hasScrollBar:function(n){return(t.isIE7?o.height():document.body.scrollHeight)>(n||f.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(i){if(i.target!==t.wrap[0]&&!n.contains(t.wrap[0],i.target))return t._setFocus(),!1},_parseMarkup:function(t,r,f){var e;f.data&&(r=n.extend(f.data,r));i(rt,[t,r,f]);n.each(r,function(n,i){var r,f;if(i===undefined||i===!1)return!0;e=n.split("_");e.length>1?(r=t.find(u+"-"+e[0]),r.length>0&&(f=e[1],f==="replaceWith"?r[0]!==i[0]&&r.replaceWith(i):f==="img"?r.is("img")?r.attr("src",i):r.replaceWith('<img src="'+i+'" class="'+r.attr("class")+'" />'):r.attr(e[1],i))):t.find(u+"-"+n).html(i)})},_getScrollbarSize:function(){if(t.scrollbarSize===undefined){var n=document.createElement("div");n.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;";document.body.appendChild(n);t.scrollbarSize=n.offsetWidth-n.clientWidth;document.body.removeChild(n)}return t.scrollbarSize}};n.magnificPopup={instance:null,proto:b.prototype,modules:[],open:function(t,i){return ct(),t=t?n.extend(!0,{},t):{},t.isObj=!0,t.index=i||0,this.instance.open(t)},close:function(){return n.magnificPopup.instance&&n.magnificPopup.instance.close()},registerModule:function(t,i){i.options&&(n.magnificPopup.defaults[t]=i.options);n.extend(this.proto,i.proto);this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&times;<\/button>',tClose:"Close (Esc)",tLoading:"Loading..."}};n.fn.magnificPopup=function(i){var r,u,f,e;return ct(),r=n(this),typeof i=="string"?i==="open"?(f=ot?r.data("magnificPopup"):r[0].magnificPopup,e=parseInt(arguments[1],10)||0,f.items?u=f.items[e]:(u=r,f.delegate&&(u=u.find(f.delegate)),u=u.eq(e)),t._openClick({mfpEl:u},r,f)):t.isOpen&&t[i].apply(t,Array.prototype.slice.call(arguments,1)):(i=n.extend(!0,{},i),ot?r.data("magnificPopup",i):r[0].magnificPopup=i,t.addGroup(r,i)),r};d="inline";lt=function(){nt&&(g.after(nt.addClass(v)).detach(),nt=null)};n.magnificPopup.registerModule(d,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push(d);r(h+"."+d,function(){lt()})},getInline:function(i,r){var f,u,o;return(lt(),i.src)?(f=t.st.inline,u=n(i.src),u.length?(o=u[0].parentNode,o&&o.tagName&&(g||(v=f.hiddenClass,g=e(v),v="mfp-"+v),nt=u.after(g).detach().removeClass(v)),t.updateStatus("ready")):(t.updateStatus("error",f.tNotFound),u=n("<div>")),i.inlineElement=u,u):(t.updateStatus("ready"),t._parseMarkup(r,{},i),r)}}});var y="ajax",p,at=function(){p&&c.removeClass(p)},gt=function(){at();t.req&&t.req.abort()};n.magnificPopup.registerModule(y,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content<\/a> could not be loaded.'},proto:{initAjax:function(){t.types.push(y);p=t.st.ajax.cursor;r(h+"."+y,gt);r("BeforeChange."+y,gt)},getAjax:function(r){p&&c.addClass(p);t.updateStatus("loading");var u=n.extend({url:r.src,success:function(u,f,e){var o={data:u,xhr:e};i("ParseAjax",o);t.appendContent(n(o.data),y);r.finished=!0;at();t._setFocus();setTimeout(function(){t.wrap.addClass(w)},16);t.updateStatus("ready");i("AjaxContentAdded")},error:function(){at();r.finished=r.loadError=!0;t.updateStatus("error",t.st.ajax.tError.replace("%url%",r.src))}},t.st.ajax.settings);return t.req=n.ajax(u),""}}});ni=function(i){if(i.data&&i.data.title!==undefined)return i.data.title;var r=t.st.image.titleSrc;if(r){if(n.isFunction(r))return r.call(t,i);if(i.el)return i.el.attr(r)||""}return""};n.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"><\/div><figure><div class="mfp-img"><\/div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"><\/div><div class="mfp-counter"><\/div><\/div><\/figcaption><\/figure><\/div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image<\/a> could not be loaded.'},proto:{initImage:function(){var n=t.st.image,i=".image";t.types.push("image");r(ut+i,function(){t.currItem.type==="image"&&n.cursor&&c.addClass(n.cursor)});r(h+i,function(){n.cursor&&c.removeClass(n.cursor);f.off("resize"+u)});r("Resize"+i,t.resizeImage);t.isLowIE&&r("AfterChange",t.resizeImage)},resizeImage:function(){var n=t.currItem,i;n&&n.img&&t.st.image.verticalFit&&(i=0,t.isLowIE&&(i=parseInt(n.img.css("padding-top"),10)+parseInt(n.img.css("padding-bottom"),10)),n.img.css("max-height",t.wH-i))},_onImageHasSize:function(n){n.img&&(n.hasSize=!0,s&&clearInterval(s),n.isCheckingImgSize=!1,i("ImageHasSize",n),n.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),n.imgHidden=!1))},findImageSize:function(n){var i=0,u=n.img[0],r=function(f){s&&clearInterval(s);s=setInterval(function(){if(u.naturalWidth>0){t._onImageHasSize(n);return}i>200&&clearInterval(s);i++;i===3?r(10):i===40?r(50):i===100&&r(500)},f)};r(1)},getImage:function(r,u){var e=0,o=function(){r&&(r.img[0].complete?(r.img.off(".mfploader"),r===t.currItem&&(t._onImageHasSize(r),t.updateStatus("ready")),r.hasSize=!0,r.loaded=!0,i("ImageLoadComplete")):(e++,e<200?setTimeout(o,100):h()))},h=function(){r&&(r.img.off(".mfploader"),r===t.currItem&&(t._onImageHasSize(r),t.updateStatus("error",c.tError.replace("%url%",r.src))),r.hasSize=!0,r.loaded=!0,r.loadError=!0)},c=t.st.image,l=u.find(".mfp-img"),f;return(l.length&&(f=document.createElement("img"),f.className="mfp-img",r.el&&r.el.find("img").length&&(f.alt=r.el.find("img").attr("alt")),r.img=n(f).on("load.mfploader",o).on("error.mfploader",h),f.src=r.src,l.is("img")&&(r.img=r.img.clone()),f=r.img[0],f.naturalWidth>0?r.hasSize=!0:f.width||(r.hasSize=!1)),t._parseMarkup(u,{title:ni(r),img_replaceWith:r.img},r),t.resizeImage(),r.hasSize)?(s&&clearInterval(s),r.loadError?(u.addClass("mfp-loading"),t.updateStatus("error",c.tError.replace("%url%",r.src))):(u.removeClass("mfp-loading"),t.updateStatus("ready")),u):(t.updateStatus("loading"),r.loading=!0,r.hasSize||(r.imgHidden=!0,u.addClass("mfp-loading"),t.findImageSize(r)),u)}}});ti=function(){return vt===undefined&&(vt=document.createElement("p").style.MozTransform!==undefined),vt};n.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(n){return n.is("img")?n:n.find("img")}},proto:{initZoom:function(){var f=t.st.zoom,o=".zoom",u;if(f.enabled&&t.supportsTransition){var c=f.duration,l=function(n){var r=n.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),u="all "+f.duration/1e3+"s "+f.easing,t={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},i="transition";return t["-webkit-"+i]=t["-moz-"+i]=t["-o-"+i]=t[i]=u,r.css(t),r},s=function(){t.content.css("visibility","visible")},e,n;r("BuildControls"+o,function(){if(t._allowZoom()){if(clearTimeout(e),t.content.css("visibility","hidden"),u=t._getItemToZoom(),!u){s();return}n=l(u);n.css(t._getOffset());t.wrap.append(n);e=setTimeout(function(){n.css(t._getOffset(!0));e=setTimeout(function(){s();setTimeout(function(){n.remove();u=n=null;i("ZoomAnimationEnded")},16)},c)},16)}});r(wt+o,function(){if(t._allowZoom()){if(clearTimeout(e),t.st.removalDelay=c,!u){if(u=t._getItemToZoom(),!u)return;n=l(u)}n.css(t._getOffset(!0));t.wrap.append(n);t.content.css("visibility","hidden");setTimeout(function(){n.css(t._getOffset())},16)}});r(h+o,function(){t._allowZoom()&&(s(),n&&n.remove(),u=null)})}},_allowZoom:function(){return t.currItem.type==="image"},_getItemToZoom:function(){return t.currItem.hasSize?t.currItem.img:!1},_getOffset:function(i){var r,u;r=i?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem);var f=r.offset(),e=parseInt(r.css("padding-top"),10),o=parseInt(r.css("padding-bottom"),10);return f.top-=n(window).scrollTop()-e,u={width:r.width(),height:(ot?r.innerHeight():r[0].offsetHeight)-o-e},ti()?u["-moz-transform"]=u.transform="translate("+f.left+"px,"+f.top+"px)":(u.left=f.left,u.top=f.top),u}}});var a="iframe",fi="//about:blank",yt=function(n){if(t.currTemplate[a]){var i=t.currTemplate[a].find("iframe");i.length&&(n||(i[0].src=fi),t.isIE8&&i.css("display",n?"block":"none"))}};n.magnificPopup.registerModule(a,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"><\/div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen><\/iframe><\/div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push(a);r("BeforeChange",function(n,t,i){t!==i&&(t===a?yt():i===a&&yt(!0))});r(h+"."+a,function(){yt()})},getIframe:function(i,r){var u=i.src,f=t.st.iframe,e;return n.each(f.patterns,function(){if(u.indexOf(this.index)>-1)return this.id&&(u=typeof this.id=="string"?u.substr(u.lastIndexOf(this.id)+this.id.length,u.length):this.id.call(this,u)),u=this.src.replace("%id%",u),!1}),e={},f.srcAction&&(e[f.srcAction]=u),t._parseMarkup(r,e,i),t.updateStatus("ready"),r}}});tt=function(n){var i=t.items.length;return n>i-1?n-i:n<0?i+n:n};pt=function(n,t,i){return n.replace(/%curr%/gi,t+1).replace(/%total%/gi,i)};n.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"><\/button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var u=t.st.gallery,i=".mfp-gallery",f=Boolean(n.fn.mfpFastClick);if(t.direction=!0,!u||!u.enabled)return!1;l+=" mfp-gallery";r(ut+i,function(){if(u.navigateByImgClick)t.wrap.on("click"+i,".mfp-img",function(){if(t.items.length>1)return t.next(),!1});o.on("keydown"+i,function(n){n.keyCode===37?t.prev():n.keyCode===39&&t.next()})});r("UpdateStatus"+i,function(n,i){i.text&&(i.text=pt(i.text,t.currItem.index,t.items.length))});r(rt+i,function(n,i,r,f){var e=t.items.length;r.counter=e>1?pt(u.tCounter,f.index,e):""});r("BuildControls"+i,function(){if(t.items.length>1&&u.arrows&&!t.arrowLeft){var o=u.arrowMarkup,i=t.arrowLeft=n(o.replace(/%title%/gi,u.tPrev).replace(/%dir%/gi,"left")).addClass(et),r=t.arrowRight=n(o.replace(/%title%/gi,u.tNext).replace(/%dir%/gi,"right")).addClass(et),s=f?"mfpFastClick":"click";i[s](function(){t.prev()});r[s](function(){t.next()});t.isIE7&&(e("b",i[0],!1,!0),e("a",i[0],!1,!0),e("b",r[0],!1,!0),e("a",r[0],!1,!0));t.container.append(i.add(r))}});r(bt+i,function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout);t._preloadTimeout=setTimeout(function(){t.preloadNearbyImages();t._preloadTimeout=null},16)});r(h+i,function(){o.off(i);t.wrap.off("click"+i);t.arrowLeft&&f&&t.arrowLeft.add(t.arrowRight).destroyMfpFastClick();t.arrowRight=t.arrowLeft=null})},next:function(){t.direction=!0;t.index=tt(t.index+1);t.updateItemHTML()},prev:function(){t.direction=!1;t.index=tt(t.index-1);t.updateItemHTML()},goTo:function(n){t.direction=n>=t.index;t.index=n;t.updateItemHTML()},preloadNearbyImages:function(){for(var i=t.st.gallery.preload,r=Math.min(i[0],t.items.length),u=Math.min(i[1],t.items.length),n=1;n<=(t.direction?u:r);n++)t._preloadItem(t.index+n);for(n=1;n<=(t.direction?r:u);n++)t._preloadItem(t.index-n)},_preloadItem:function(r){if(r=tt(r),!t.items[r].preloaded){var u=t.items[r];u.parsed||(u=t.parseEl(r));i("LazyLoad",u);u.type==="image"&&(u.img=n('<img class="mfp-img" />').on("load.mfploader",function(){u.hasSize=!0}).on("error.mfploader",function(){u.hasSize=!0;u.loadError=!0;i("LazyLoadError",u)}).attr("src",u.src));u.preloaded=!0}}}});it="retina";n.magnificPopup.registerModule(it,{options:{replaceSrc:function(n){return n.src.replace(/\.\w+$/,function(n){return"@2x"+n})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var i=t.st.retina,n=i.ratio;n=isNaN(n)?n():n;n>1&&(r("ImageHasSize."+it,function(t,i){i.img.css({"max-width":i.img[0].naturalWidth/n,width:"100%"})}),r("ElementParse."+it,function(t,r){r.src=i.replaceSrc(r,n)}))}}}}),function(){var u=1e3,i="ontouchstart"in window,r=function(){f.off("touchmove"+t+" touchend"+t)},t=".mfpFastClick";n.fn.mfpFastClick=function(e){return n(this).each(function(){var l=n(this),s,a,v,y,h,o,c;if(i)l.on("touchstart"+t,function(n){h=!1;c=1;o=n.originalEvent?n.originalEvent.touches[0]:n.touches[0];v=o.clientX;y=o.clientY;f.on("touchmove"+t,function(n){o=n.originalEvent?n.originalEvent.touches:n.touches;c=o.length;o=o[0];(Math.abs(o.clientX-v)>10||Math.abs(o.clientY-y)>10)&&(h=!0,r())}).on("touchend"+t,function(n){(r(),h||c>1)||(s=!0,n.preventDefault(),clearTimeout(a),a=setTimeout(function(){s=!1},u),e())})});l.on("click"+t,function(){s||e()})})};n.fn.destroyMfpFastClick=function(){n(this).off("touchstart"+t+" click"+t);i&&f.off("touchmove"+t+" touchend"+t)}}();ct()});!function(n){"use strict";var t=function(){};t.prototype.init=function(){};n.SweetAlert=new t;n.SweetAlert.Constructor=t}(window.jQuery),function(n){"use strict";n.SweetAlert.init()}(window.jQuery);$(document).ready(function(){$("#contactForm").submit(function(n){n.preventDefault();var i=$(this).serializeArray(),r=$(this).attr("action"),u=$("#contactFormResponse"),t=$("#cfsubmit"),f=t.text();return t.text("Sending..."),$.ajax({url:r,type:"POST",data:i,success:function(n){u.html(n);t.text(f)},error:function(){alert("Error occurd! Please try again")}}),!1})}),function(){if($("#funfacts").html())var n=new Waypoint.Inview({element:$("#funfacts")[0],enter:function(){$(".count.number").each(function(){$(this).prop("Counter",0).animate({Counter:$(this).text()},{duration:3e3,easing:"swing",step:function(n){$(this).text(Math.ceil(n))}})});this.destroy()}})}();$event=$.event;$special=$event.special.debouncedresize={setup:function(){$(this).on("resize",$special.handler)},teardown:function(){$(this).off("resize",$special.handler)},handler:function(n,t){var r=this,u=arguments,i=function(){n.type="debouncedresize";$event.dispatch.apply(r,u)};resizeTimeout&&clearTimeout(resizeTimeout);t?i():resizeTimeout=setTimeout(i,$special.threshold)},threshold:250};BLANK="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==";$.fn.imagesLoaded=function(n){function s(){var f=$(e),o=$(u);t&&(u.length?t.reject(i,f,o):t.resolve(i));$.isFunction(n)&&n.call(r,i,f,o)}function o(n,r){n.src!==BLANK&&$.inArray(n,f)===-1&&(f.push(n),r?u.push(n):e.push(n),$.data(n,"imagesLoaded",{isBroken:r,src:n.src}),h&&t.notifyWith($(n),[r,i,$(e),$(u)]),i.length===f.length&&(setTimeout(s),i.unbind(".imagesLoaded")))}var r=this,t=$.isFunction($.Deferred)?$.Deferred():0,h=$.isFunction(t.notify),i=r.find("img").add(r.filter("img")),f=[],e=[],u=[];return $.isPlainObject(n)&&$.each(n,function(i,r){i==="callback"?n=r:t&&t[i](r)}),i.length?i.bind("load.imagesLoaded error.imagesLoaded",function(n){o(n.target,n.type==="error")}).each(function(n,t){var r=t.src,i=$.data(t,"imagesLoaded");if(i&&i.src===r){o(t,i.isBroken);return}if(t.complete&&t.naturalWidth!==undefined){o(t,t.naturalWidth===0||t.naturalHeight===0);return}(t.readyState||t.complete)&&(t.src=BLANK,t.src=r)}):s(),t?t.promise(r):r};Grid=function(){function b(t){n=$.extend(!0,{},n,t);l.imagesLoaded(function(){a(!0);y();d()})}function k(n){t=t.add(n);n.each(function(){var n=$(this);n.data({offsetTop:n.offset().top,height:n.height()})});v(n)}function a(n){t.each(function(){var t=$(this);t.data("offsetTop",t.offset().top);n&&t.data("height",t.height())})}function d(){v(t);c.on("debouncedresize",function(){e=0;f=-1;a();y();var n=$.data(this,"preview");typeof n!="undefined"&&s()})}function v(n){n.on("click","span.og-close",function(){return s(),!1}).children("a").on("click",function(){var n=$(this).parent();return r===n.index()?s():g(n),!1})}function y(){i={width:c.width(),height:c.height()}}function g(n){var t=$.data(this,"preview"),i=n.data("offsetTop");if(e=0,typeof t!="undefined")if(f!==i)i>f&&(e=t.height),s();else return t.update(n),!1;f=i;t=$.data(this,"preview",new p(n));t.open()}function s(){r=-1;var n=$.data(this,"preview");n.close();$.removeData(this,"preview")}function p(n){this.$item=n;this.expandedIdx=this.$item.index();this.create();this.update()}var l=$("#og-grid"),t=l.children("li"),r=-1,f=-1,e=0,h=10,c=$(window),i,w=$("html, body"),o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd",transition:"transitionend"}[Modernizr.prefixed("transition")],u=Modernizr.csstransitions,n={minHeight:500,speed:350,easing:"ease"};return p.prototype={create:function(){this.$title=$("<h3><\/h3>");this.$description=$("<p><\/p>");this.$href=$('<a class="btn btn-default" href="#">Visit website<\/a>');this.$details=$('<div class="og-details"><\/div>').append(this.$title,this.$description,this.$href);this.$loading=$('<div class="og-loading"><\/div>');this.$fullimage=$('<div class="og-fullimg"><\/div>').append(this.$loading);this.$closePreview=$('<span class="og-close"><\/span>');this.$previewInner=$('<div class="og-expander-inner"><\/div>').append(this.$closePreview,this.$fullimage,this.$details);this.$previewEl=$('<div class="og-expander"><\/div>').append(this.$previewInner);this.$item.append(this.getEl());u&&this.setTransition()},update:function(n){var e,u,f,i;n&&(this.$item=n);r!==-1&&(e=t.eq(r),e.removeClass("og-expanded"),this.$item.addClass("og-expanded"),this.positionPreview());r=this.$item.index();u=this.$item.children("a");f={href:u.attr("href"),largesrc:u.data("largesrc"),title:u.data("title"),description:u.data("description")};this.$title.html(f.title);this.$description.html(f.description);this.$href.attr("href",f.href);i=this;typeof i.$largeImg!="undefined"&&i.$largeImg.remove();i.$fullimage.is(":visible")&&(this.$loading.show(),$("<img/>").load(function(){var n=$(this);n.attr("src")===i.$item.children("a").data("largesrc")&&(i.$loading.hide(),i.$fullimage.find("img").remove(),i.$largeImg=n.fadeIn(350),i.$fullimage.append(i.$largeImg))}).attr("src",f.largesrc))},open:function(){setTimeout($.proxy(function(){this.setHeights();this.positionPreview()},this),25)},close:function(){var n=this,i=function(){u&&$(this).off(o);n.$item.removeClass("og-expanded").css("height","");n.$previewEl.remove()};return setTimeout($.proxy(function(){typeof this.$largeImg!="undefined"&&this.$largeImg.fadeOut("fast");this.$previewEl.css("height",0);var n=t.eq(this.expandedIdx);n.css("height",n.data("height")).on(o,i);u||i.call()},this),25),!1},calcHeight:function(){var t=i.height-this.$item.data("height")-h,r=i.height;t<n.minHeight&&(t=n.minHeight,r=n.minHeight+this.$item.data("height")+h);this.height=t;this.itemHeight=r},setHeights:function(){var n=this,t=function(){u&&n.$item.off(o);n.$item.addClass("og-expanded")};this.calcHeight();this.$previewEl.css("height",this.height);this.$item.css("height",this.itemHeight).on(o,t);u||t.call()},positionPreview:function(){var r=this.$item.data("offsetTop"),t=this.$previewEl.offset().top-e,u=this.height+this.$item.data("height")+h<=i.height?r:this.height<i.height?t-(i.height-this.height):t;w.animate({scrollTop:u},n.speed)},setTransition:function(){this.$previewEl.css("transition","height "+n.speed+"ms "+n.easing);this.$item.css("transition","height "+n.speed+"ms "+n.easing)},getEl:function(){return this.$previewEl}},{init:b,addItems:k}}(),function(n,t){"use strict";n.HoverDir=function(t,i){this.$el=n(i);this._init(t)};n.HoverDir.defaults={speed:300,easing:"ease",hoverDelay:0,inverse:!1};n.HoverDir.prototype={_init:function(t){this.options=n.extend(!0,{},n.HoverDir.defaults,t);this.transitionProp="all "+this.options.speed+"ms "+this.options.easing;this.support=Modernizr.csstransitions;this._loadEvents()},_loadEvents:function(){var t=this;this.$el.on("mouseenter.hoverdir, mouseleave.hoverdir",function(i){var f=n(this),r=f.find("div"),e=t._getDir(f,{x:i.pageX,y:i.pageY}),u=t._getStyle(e);i.type==="mouseenter"?(r.hide().css(u.from),clearTimeout(t.tmhover),t.tmhover=setTimeout(function(){r.show(0,function(){var i=n(this);t.support&&i.css("transition",t.transitionProp);t._applyAnimation(i,u.to,t.options.speed)})},t.options.hoverDelay)):(t.support&&r.css("transition",t.transitionProp),clearTimeout(t.tmhover),t._applyAnimation(r,u.from,t.options.speed))})},_getDir:function(n,t){var i=n.width(),r=n.height(),u=(t.x-n.offset().left-i/2)*(i>r?r/i:1),f=(t.y-n.offset().top-r/2)*(r>i?i/r:1);return Math.round((Math.atan2(f,u)*(180/Math.PI)+180)/90+3)%4},_getStyle:function(n){var t,i,r={left:"0px",top:"-100%"},u={left:"0px",top:"100%"},f={left:"-100%",top:"0px"},e={left:"100%",top:"0px"},o={top:"0px"},s={left:"0px"};switch(n){case 0:t=this.options.inverse?u:r;i=o;break;case 1:t=this.options.inverse?f:e;i=s;break;case 2:t=this.options.inverse?r:u;i=o;break;case 3:t=this.options.inverse?e:f;i=s}return{from:t,to:i}},_applyAnimation:function(t,i,r){n.fn.applyStyle=this.support?n.fn.css:n.fn.animate;t.stop().applyStyle(i,n.extend(!0,[],{duration:r+"ms"}))}};var i=function(n){t.console&&t.console.error(n)};n.fn.hoverdir=function(t){var r=n.data(this,"hoverdir"),u;return typeof t=="string"?(u=Array.prototype.slice.call(arguments,1),this.each(function(){if(!r){i("cannot call methods on hoverdir prior to initialization; attempted to call method '"+t+"'");return}if(!n.isFunction(r[t])||t.charAt(0)==="_"){i("no such method '"+t+"' for hoverdir instance");return}r[t].apply(r,u)})):this.each(function(){r?r._init():r=n.data(this,"hoverdir",new n.HoverDir(t,this))}),r}}(jQuery,window),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof module=="object"&&module.exports?n(require("jquery")):n(jQuery)}(function(n){function a(t){var i={},r=/^jQuery\d+$/;return n.each(t.attributes,function(n,t){t.specified&&!r.test(t.name)&&(i[t.name]=t.value)}),i}function r(i,r){var f=this,u=n(f);if(f.value===u.attr("placeholder")&&u.hasClass(t.customClass))if(f.value="",u.removeClass(t.customClass),u.data("placeholder-password")){if(u=u.hide().nextAll('input[type="password"]:first').show().attr("id",u.removeAttr("id").data("placeholder-id")),i===!0)return u[0].value=r,r;u.focus()}else f==l()&&f.select()}function o(i){var f,e=this,u=n(e),s=e.id,o;if(i&&i.type==="blur"){if(u.hasClass(t.customClass))return;if(e.type==="password"&&(f=u.prevAll('input[type="text"]:first'),f.length>0&&f.is(":visible")))return}if(e.value===""){if(e.type==="password"){if(!u.data("placeholder-textinput")){try{f=u.clone().prop({type:"text"})}catch(h){f=n("<input>").attr(n.extend(a(this),{type:"text"}))}f.removeAttr("name").data({"placeholder-enabled":!0,"placeholder-password":u,"placeholder-id":s}).bind("focus.placeholder",r);u.data({"placeholder-textinput":f,"placeholder-id":s}).before(f)}e.value="";u=u.removeAttr("id").hide().prevAll('input[type="text"]:first').attr("id",u.data("placeholder-id")).show()}else o=u.data("placeholder-password"),o&&(o[0].value="",u.attr("id",u.data("placeholder-id")).show().nextAll('input[type="password"]:last').hide().removeAttr("id"));u.addClass(t.customClass);u[0].value=u.attr("placeholder")}else u.removeClass(t.customClass)}function l(){try{return document.activeElement}catch(n){}}var s=Object.prototype.toString.call(window.operamini)==="[object OperaMini]",f="placeholder"in document.createElement("input")&&!s,e="placeholder"in document.createElement("textarea")&&!s,h=n.valHooks,c=n.propHooks,u,i,t={};f&&e?(i=n.fn.placeholder=function(){return this},i.input=!0,i.textarea=!0):(i=n.fn.placeholder=function(i){return t=n.extend({},{customClass:"placeholder"},i),this.filter((f?"textarea":":input")+"[placeholder]").not("."+t.customClass).bind({"focus.placeholder":r,"blur.placeholder":o}).data("placeholder-enabled",!0).trigger("blur.placeholder")},i.input=f,i.textarea=e,u={get:function(i){var r=n(i),u=r.data("placeholder-password");return u?u[0].value:r.data("placeholder-enabled")&&r.hasClass(t.customClass)?"":i.value},set:function(i,u){var f=n(i),e,s;return(u!==""&&(e=f.data("placeholder-textinput"),s=f.data("placeholder-password"),e?(r.call(e[0],!0,u)||(i.value=u),e[0].value=u):s&&(r.call(i,!0,u)||(s[0].value=u),i.value=u)),!f.data("placeholder-enabled"))?(i.value=u,f):(u===""?(i.value=u,i!=l()&&o.call(i)):(f.hasClass(t.customClass)&&r.call(i),i.value=u),f)}},f||(h.input=u,c.value=u),e||(h.textarea=u,c.value=u),n(function(){n(document).delegate("form","submit.placeholder",function(){var i=n("."+t.customClass,this).each(function(){r.call(this,!0,"")});setTimeout(function(){i.each(o)},10)})}),n(window).bind("beforeunload.placeholder",function(){n("."+t.customClass).each(function(){this.value=""})}))});$(document).ready(function(){$("#client-carousel").owlCarousel({items:6,itemsDesktopSmall:4,itemsTablet:4,itemsMobile:2,autoPlay:!0})}),function(){function n(){var n=window.navigator.userAgent,i=n.indexOf("MSIE "),u,r,t;return i>0?parseInt(n.substring(i+5,n.indexOf(".",i)),10):(u=n.indexOf("Trident/"),u>0)?(r=n.indexOf("rv:"),parseInt(n.substring(r+3,n.indexOf(".",r)),10)):(t=n.indexOf("Edge/"),t>0)?parseInt(n.substring(t+5,n.indexOf(".",t)),10):!1}n()&&$("body").addClass("ie")}(),function(){function n(n){var t=$("#header"),r,i,u,f;t.length>0&&(r=t.height(),i=$(document).scrollTop(),t.hasClass("home-parallax")&&$(n).scrollTop()<=r&&t.css("top",i*.55),t.hasClass("home-fade")&&$(n).scrollTop()<=r&&(u=$(".intro"),f=$("#header .color-overlay"),f.css("opacity",.3+i/t.height()*1),u.css("opacity",1-i/t.height()*1)))}$(window).scroll(function(t){t.preventDefault();n(this)})}(),function(){function t(){if($(window).scrollTop()>0){n.addClass("navbar-solid");return}n.removeClass("navbar-solid");$(".navbar-nav > li > a").blur()}var n=$("#fixedTopNav");t();$(window).scroll(function(){t()})}();$(document).ready(function(){$(".main-navigation a[href*=#]:not([href=#]), .onPageNav").click(function(){if(location.pathname.replace(/^\//,"")===this.pathname.replace(/^\//,"")&&location.hostname===this.hostname){var n=$(this.hash);if(n=n.length?n:$("[name="+this.hash.slice(1)+"]"),n.length)return $(".navbar-collapse.collapse.in").removeClass("in"),$("html,body").animate({scrollTop:n.offset().top-55},1e3,function(){}),!1}});$("#main-nav-collapse").on("activate.bs.scrollspy",function(){$(".navbar-nav > li[class='active'] > a").focus()})});$(window).load(function(){imagesLoaded("body",function(){$(".page-loader div").fadeOut();$(".page-loader").delay(200).fadeOut("slow");$(".evento").delay(400).fadeIn("slow")})});navbar=$(".main-navigation");width=Math.max($(window).width(),window.innerWidth);/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&(mobileTest=!0);$(document).on("click",".navbar-collapse.in",function(n){$(n.target).is("a")&&$(n.target).attr("class")!="dropdown-toggle"&&$(this).collapse("hide")});navbarSubmenu(width);hoverDropdown(width,mobileTest);$(window).resize(function(){var n=Math.max($(window).width(),window.innerWidth);hoverDropdown(n,mobileTest)});$(window).scroll(function(){var n=$("#totop");$(this).scrollTop()>100?n.fadeIn():n.fadeOut()});$("a[href='#totop']").click(function(){return $("html, body").animate({scrollTop:0},"slow"),!1});$(window).load(function(){$(".flexslider").flexslider({animation:"fade",easing:"swing",controlNav:!1})});$(".rotate").textrotator({animation:"fade",separator:",",speed:2e3}),function(){$(function(){$("#videoBackground").mb_YTPlayer()});$("#video-play").click(function(n){return n.preventDefault(),$(this).hasClass("fa-play")?$("#videoBackground").playYTP():$("#videoBackground").pauseYTP(),$(this).toggleClass("fa-play fa-pause"),!1});$("#video-volume").click(function(n){return n.preventDefault(),$(this).hasClass("fa-volume-off")?$("#videoBackground").YTPUnmute():$("#videoBackground").YTPMute(),$(this).toggleClass("fa-volume-off fa-volume-up"),!1})}(),function(){Grid.init()}(),function(){if($("#disqus_thread").length!=0){var n="reigntemplate";(function(){var t=document.createElement("script");t.type="text/javascript";t.async=!0;t.src="//"+n+".disqus.com/embed.js";(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(t)})()}}();$(window).load(function(){imagesLoaded("body",function(){$(".lightbox-gallery").magnificPopup({delegate:"a",gallery:{enabled:!0},type:"image",zoom:{enabled:!0,duration:300,opener:function(n){return n.find("img")}}})})});$(window).load(function(){var n=$(".isotope").isotope({itemSelector:"li"});$("#filters").on("click","button",function(){var t=$(this).attr("data-filter");n.isotope({filter:t})});$(".button-group").each(function(n,t){var i=$(t);i.on("click","button",function(){i.find(".is-checked").removeClass("is-checked");$(this).addClass("is-checked")})});$(function(){$("#da-thumbs").find("> li").each(function(){$(this).hoverdir({hoverDelay:75})})})}),function(){$(".progressbars").length!=0&&$(".progressbars").each(function(){var n=$(this),t=new Waypoint.Inview({element:n,enter:function(){n.find(".progress-bar").each(function(){$(this).css("width",$(this).attr("aria-valuenow")+"%")})}})})}();var ssc_framerate=150,ssc_animtime=500,ssc_stepsize=150,ssc_pulseAlgorithm=!0,ssc_pulseScale=6,ssc_pulseNormalize=1,ssc_keyboardsupport=!0,ssc_arrowscroll=50,ssc_frame=!1,ssc_direction={x:0,y:0},ssc_initdone=!1,ssc_fixedback=!0,ssc_root=document.documentElement,ssc_activeElement,ssc_key={left:37,up:38,right:39,down:40,spacebar:32,pageup:33,pagedown:34,end:35,home:36},ssc_que=[],ssc_pending=!1,ssc_cache={};setInterval(function(){ssc_cache={}},1e4);ssc_uniqueID=function(){var n=0;return function(t){return t.ssc_uniqueID||(t.ssc_uniqueID=n++)}}();ischrome=/chrome/.test(navigator.userAgent.toLowerCase());ischrome&&(ssc_addEvent("mousedown",ssc_mousedown),ssc_addEvent("mousewheel",ssc_wheel),ssc_addEvent("load",ssc_init));$("#subscription-form").submit(function(n){n.preventDefault();var r=$("#subscription-form"),t=$("#subscribe-button"),i=$("#subscription-response"),u=$("#subscriber-email").val();$.ajax({type:"POST",url:"php/subscribe.php",dataType:"json",data:{email:u},cache:!1,beforeSend:function(){t.val("Joining...")},success:function(n){n.sendstatus==1?(i.html(n.message),r.fadeOut(500)):(i.html(n.message),t.val("Join"))}})}),function(){var n=$("#testimonials-carousel"),t=$(".review"),i=$("#clientFace");n.owlCarousel({singleItem:!0,autoPlay:!0,pagination:!1,autoHeight:!0,beforeMove:function(){var u=n.data("owlCarousel"),r=t[u.currentItem];r=$(r).data("client-image");i.css("background-image","url("+r+")")}});$(".carosel-wrapper .prev").click(function(t){t.preventDefault();n.trigger("owl.prev")});$(".carosel-wrapper .next").click(function(t){t.preventDefault();n.trigger("owl.next")})}();$("#playVideo").click(function(n){n.preventDefault();callPlayer("ytPlayer","playVideo");$("#video").hide();$("#video-container").fadeIn()})