var CommerceAdminToolApi=function(){if(CommerceAdminToolApi.prototype._singletonInstance)return CommerceAdminToolApi.prototype._singletonInstance;CommerceAdminToolApi.prototype._singletonInstance=this;this.getStock=function(sku,currencyWrapper){var _this=this;var price="";var countryCode=this.getCommonEuLocale(this.getCountryCode());var locale=this.getLocale();var $defer=new $.Deferred;var response={};if(countryCode&&sku)this.requestToAPI(countryCode,locale).done(function(data){var product=_this.findProductBySKU(data,
sku);$.extend(response,product);if(product&&product.hasOwnProperty("priceWithSymbol")){response.price=_this.wrapCurrency(product.priceWithSymbol,currencyWrapper);$defer.resolve(response)}else $defer.reject()});return $defer};this.wrapCurrency=function(priceWithSymbol,currencyWrapper){if(!currencyWrapper)return priceWithSymbol;var currencySymbol=priceWithSymbol.replace(/[0-9., ]/g,"");return priceWithSymbol.replace(currencySymbol,$(currencyWrapper).text(currencySymbol).prop("outerHTML"))};this.getCountryCode=
function(fullLocale){var locale;var bodyClass=$("body").attr("class").match(/locale-\S+/);if(bodyClass)locale=bodyClass[0].replace("locale-","");else if(typeof fitbit!=="undefined")locale=fitbit.i18n.locale;if(typeof fullLocale==="undefined"||!fullLocale)locale=locale.split("_")[1].toLowerCase();return locale};this.getCommonEuLocale=function(locale){var locales=["eu"];return locales.indexOf(locale)===-1?locale:"pt"};this.getLocale=function(){var lclCookie=this.getCookie("lcl");return lclCookie&&lclCookie.length>=
5?lclCookie:this.getCountryCode(true)};this.getCookie=function(name){var value="; "+document.cookie;var parts=value.split("; "+name+"\x3d");if(parts.length==2)return parts.pop().split(";").shift()};this.formatCurrency=function(price,currencyWrapper){var countryCode=this.getCommonEuLocale(this.getCountryCode());var locale=this.getLocale();var currencyPosition="BEFORE_PRICE";var currencySeparator="";var decimalSeparator=".";var currencySymbol;switch(locale){case "en_DK":case "en_SE":case "sv_SE":case "en_NO":case "no_NO":currencyPosition=
"AFTER_PRICE";currencySeparator=" ";decimalSeparator="$1";break;case "fr_FR":case "de_DE":case "it_IT":case "es_ES":case "en_FI":case "en_BE":case "fr_BE":case "de_AT":case "de_CH":case "fr_CH":case "it_CH":case "en_NL":case "nl_NL":case "en_EU":case "fr_CA":case "en_IE":currencyPosition="AFTER_PRICE";currencySeparator=" ";decimalSeparator=",";break}switch(countryCode){case "us":case "ca":currencySymbol="$";break;case "nz":currencySymbol="NZ$";break;case "au":currencySymbol="A$";break;case "gb":currencySymbol=
"\u00a3";break;case "dk":currencySymbol="DKK";break;case "se":currencySymbol="SEK";break;case "no":currencySymbol="NOK";break;case "fr":case "de":case "it":case "es":case "fi":case "be":case "at":case "ch":case "nl":case "eu":case "pt":case "ie":currencySymbol="\u20ac";break}if(currencySymbol&&currencyWrapper)currencySymbol=$(currencyWrapper).text(currencySymbol).prop("outerHTML");var formattedPrice=price.toString().replace(/(\.|\,)/,decimalSeparator);if(currencyPosition==="BEFORE_PRICE")formattedPrice=
currencySymbol+currencySeparator+formattedPrice;else formattedPrice+=currencySeparator+currencySymbol;return formattedPrice};this.requestToAPI=function(countryCode,locale){if(typeof this._apiRequestCache==="undefined"){countryCode=countryCode?countryCode:this.getCommonEuLocale(this.getCountryCode());locale=locale?locale:this.getLocale();this._apiRequestCache=$.get("/cart/api/store",{id:countryCode,locale:locale})}return this._apiRequestCache};this.findProductBySKU=function(data,sku){if(data.hasOwnProperty("products"))if(data.products.hasOwnProperty(sku))return data.products[sku];
return false}};
window.Modernizr=function(a,b,c){function z(a){j.cssText=a}function A(a,b){return z(m.join(a+";")+(b||""))}function B(a,b){return typeof a===b}function C(a,b){return!!~(""+a).indexOf(b)}function D(a,b){for(var d in a){var e=a[d];if(!C(e,"-")&&j[e]!==c)return b=="pfx"?e:!0}return!1}function E(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:B(f,"function")?f.bind(d||b):f}return!1}function F(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1);var e=(a+" "+o.join(d+" ")+d).split(" ");return B(b,
"string")||B(b,"undefined")?D(e,b):(e=(a+" "+p.join(d+" ")+d).split(" "),E(e,b,c))}var d="2.8.3";var e={};var f=!0;var g=b.documentElement;var h="modernizr";var i=b.createElement(h);var j=i.style;var k;var l={}.toString;var m=" -webkit- -moz- -o- -ms- ".split(" ");var n="Webkit Moz O ms";var o=n.split(" ");var p=n.toLowerCase().split(" ");var q={};var r={};var s={};var t=[];var u=t.slice;var v;var w=function(a,c,d,e){var f;var i;var j;var k;var l=b.createElement("div");var m=b.body;var n=m||b.createElement("body");
if(parseInt(d,10))for(;d--;)j=b.createElement("div"),j.id=e?e[d]:h+(d+1),l.appendChild(j);return f=["\x26#173;",'\x3cstyle id\x3d"s',h,'"\x3e',a,"\x3c/style\x3e"].join(""),l.id=h,(m?l:n).innerHTML+=f,n.appendChild(l),m||(n.style.background="",n.style.overflow="hidden",k=g.style.overflow,g.style.overflow="hidden",g.appendChild(n)),i=c(l,a),m?l.parentNode.removeChild(l):(n.parentNode.removeChild(n),g.style.overflow=k),!!i};var x={}.hasOwnProperty;var y;!B(x,"undefined")&&!B(x.call,"undefined")?y=function(a,
b){return x.call(a,b)}:y=function(a,b){return b in a&&B(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=u.call(arguments,1);var e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a;var g=c.apply(f,d.concat(u.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(u.call(arguments)))};return e}),q.touch=function(){var c;return"ontouchstart"in
a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:w(["@media (",m.join("touch-enabled),("),h,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(a){c=a.offsetTop===9}),c},q.backgroundsize=function(){return F("backgroundSize")},q.cssanimations=function(){return F("animationName")},q.csstransforms=function(){return!!F("transform")},q.csstransforms3d=function(){var a=!!F("perspective");return a&&"webkitPerspective"in g.style&&w("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",
function(b,c){a=b.offsetLeft===9&&b.offsetHeight===3}),a},q.csstransitions=function(){return F("transition")};for(var G in q)y(q,G)&&(v=G.toLowerCase(),e[v]=q[G](),t.push((e[v]?"":"no-")+v));return e.addTest=function(a,b){if(typeof a=="object")for(var d in a)y(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},z(""),i=k=null,function(a$$1,b$$0){function l(a,b){var c=a.createElement("p");
var d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x\x3cstyle\x3e"+b+"\x3c/style\x3e",d.insertBefore(c.lastChild,d.firstChild)}function m(){var a=s.elements;return typeof a=="string"?a.split(" "):a}function n(a){var b=j[a[h]];return b||(b={},i++,a[h]=i,j[i]=b),b}function o(a,c,d){c||(c=b$$0);if(k)return c.createElement(a);d||(d=n(c));var g;return d.cache[a]?g=d.cache[a].cloneNode():f$$0.test(a)?g=(d.cache[a]=d.createElem(a)).cloneNode():g=d.createElem(a),g.canHaveChildren&&
!e$$0.test(a)&&!g.tagUrn?d.frag.appendChild(g):g}function p(a,c){a||(a=b$$0);if(k)return a.createDocumentFragment();c=c||n(a);var d=c.frag.cloneNode();var e=0;var f=m();for(var g=f.length;e<g;e++)d.createElement(f[e]);return d}function q(a$$0,b){b.cache||(b.cache={},b.createElem=a$$0.createElement,b.createFrag=a$$0.createDocumentFragment,b.frag=b.createFrag()),a$$0.createElement=function(c){return s.shivMethods?o(c,a$$0,b):b.createElem(c)},a$$0.createDocumentFragment=Function("h,f","return function(){var n\x3df.cloneNode(),c\x3dn.createElement;h.shivMethods\x26\x26("+
m().join().replace(/[\w\-]+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(s,b.frag)}function r(a){a||(a=b$$0);var c=n(a);return s.shivCSS&&!g$$0&&!c.hasCSS&&(c.hasCSS=!!l(a,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),k||q(a,c),a}var c$$0="3.7.0";var d$$0=a$$1.html5||{};var e$$0=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i;var f$$0=
/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i;var g$$0;var h="_html5shiv";var i=0;var j={};var k;(function(){try{var a$$0=b$$0.createElement("a");a$$0.innerHTML="\x3cxyz\x3e\x3c/xyz\x3e",g$$0="hidden"in a$$0,k=a$$0.childNodes.length==1||function(){b$$0.createElement("a");var a=b$$0.createDocumentFragment();return typeof a.cloneNode=="undefined"||typeof a.createDocumentFragment=="undefined"||typeof a.createElement=="undefined"}()}catch(c){g$$0=
!0,k=!0}})();var s={elements:d$$0.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:c$$0,shivCSS:d$$0.shivCSS!==!1,supportsUnknownElements:k,shivMethods:d$$0.shivMethods!==!1,type:"default",shivDocument:r,createElement:o,createDocumentFragment:p};a$$1.html5=s,r(b$$0)}(this,b),e._version=d,e._prefixes=m,e._domPrefixes=p,e._cssomPrefixes=o,e.testProp=function(a){return D([a])},
e.testAllProps=F,e.testStyles=w,g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+t.join(" "):""),e}(this,this.document),function(a$$3,b$$2,c$$2){function d$$1(a){return"[object Function]"==o$$0.call(a)}function e$$0(a){return"string"==typeof a}function f$$0(){}function g$$1(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h$$1(){var a=p.shift();q=1,a?a.t?m$$0(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h$$1()):q=0}function i$$1(a,
c,d$$0,e,f,i,j){function k(b){if(!o&&g$$1(l.readyState)&&(u.r=o=1,!q&&h$$1(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m$$0(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}j=j||B.errorTimeout;var l=b$$2.createElement(a);var o=0;var r=0;var u={t:d$$0,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||
2===y[c]?(t.insertBefore(l,s?null:n$$0),m$$0(k,j)):y[c].push(l))}function j$$1(a,b,c,d,f){return q=0,b=b||"j",e$$0(a)?i$$1("c"==b?v:u$$0,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h$$1()),this}function k$$0(){var a=B;return a.loader={load:j$$1,i:0},a}var l$$1=b$$2.documentElement;var m$$0=a$$3.setTimeout;var n$$0=b$$2.getElementsByTagName("script")[0];var o$$0={}.toString;var p=[];var q=0;var r$$0="MozAppearance"in l$$1.style;var s=r$$0&&!!b$$2.createRange().compareNode;var t=s?l$$1:
n$$0.parentNode;l$$1=a$$3.opera&&"[object Opera]"==o$$0.call(a$$3.opera);l$$1=!!b$$2.attachEvent&&!l$$1;var u$$0=r$$0?"object":l$$1?"script":"img";var v=l$$1?"script":u$$0;var w=Array.isArray||function(a){return"[object Array]"==o$$0.call(a)};var x=[];var y={};var z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}};var A;var B;B=function(a$$2){function b$$1(a){a=a.split("!");var b=x.length;var c=a.pop();var d=a.length;c={url:c,origUrl:c,prefixes:a};var e;var f;var g;for(f=0;f<d;f++)g=a[f].split("\x3d"),
(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g$$0(a,e,f,g,h){var i=b$$1(a);var j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d$$1(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c$$2,i.noexec,i.attrs,i.timeout),(d$$1(e)||d$$1(j))&&f.load(function(){k$$0(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,
h,g),y[i.url]=2})))}function h$$0(a$$1,b$$0){function c$$1(a$$0,c$$0){if(a$$0)if(e$$0(a$$0))c$$0||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g$$0(a$$0,j,b$$0,0,h);else{if(Object(a$$0)===a$$0)for(n in m=function(){var b=0;for(var c in a$$0)a$$0.hasOwnProperty(c)&&b++;return b}(),a$$0)a$$0.hasOwnProperty(n)&&(!c$$0&&!--m&&(d$$1(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,
b),l()}}(k[n])),g$$0(a$$0[n],j,b$$0,n,h))}else!c$$0&&l()}var h=!!a$$1.test;var i=a$$1.load||a$$1.both;var j=a$$1.callback||f$$0;var k=j;var l=a$$1.complete||f$$0;var m;var n;c$$1(h?a$$1.yep:a$$1.nope,!!i),i&&c$$1(i)}var i$$0;var j$$0;var l$$0=this.yepnope.loader;if(e$$0(a$$2))g$$0(a$$2,0,l$$0,0);else if(w(a$$2))for(i$$0=0;i$$0<a$$2.length;i$$0++)j$$0=a$$2[i$$0],e$$0(j$$0)?g$$0(j$$0,0,l$$0,0):w(j$$0)?B(j$$0):Object(j$$0)===j$$0&&h$$0(j$$0,l$$0);else Object(a$$2)===a$$2&&h$$0(a$$2,l$$0)},B.addPrefix=
function(a,b){z[a]=b},B.addFilter=function(a){x.push(a)},B.errorTimeout=1E4,null==b$$2.readyState&&b$$2.addEventListener&&(b$$2.readyState="loading",b$$2.addEventListener("DOMContentLoaded",A=function(){b$$2.removeEventListener("DOMContentLoaded",A,0),b$$2.readyState="complete"},0)),a$$3.yepnope=k$$0(),a$$3.yepnope.executeStack=h$$1,a$$3.yepnope.injectJs=function(a,c,d,e,i,j){var k=b$$2.createElement("script");var l;var o;e=e||B.errorTimeout;k.src=a;for(o in d)k.setAttribute(o,d[o]);c=j?h$$1:c||f$$0,
k.onreadystatechange=k.onload=function(){!l&&g$$1(k.readyState)&&(l=1,c(),k.onload=k.onreadystatechange=null)},m$$0(function(){l||(l=1,c(1))},e),i?k.onload():n$$0.parentNode.insertBefore(k,n$$0)},a$$3.yepnope.injectCss=function(a,c,d,e,g,i){e=b$$2.createElement("link");var j;c=i?h$$1:c||f$$0;e.href=a,e.rel="stylesheet",e.type="text/css";for(j in d)e.setAttribute(j,d[j]);g||(n$$0.parentNode.insertBefore(e,n$$0),m$$0(c,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,
0))};
jQuery.easing["jswing"]=jQuery.easing["swing"];
jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(x,t,b,c,d){return jQuery.easing[jQuery.easing.def](x,t,b,c,d)},easeInQuad:function(x,t,b,c,d){return c*(t/=d)*t+b},easeOutQuad:function(x,t,b,c,d){return-c*(t/=d)*(t-2)+b},easeInOutQuad:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t+b;return-c/2*(--t*(t-2)-1)+b},easeInCubic:function(x,t,b,c,d){return c*(t/=d)*t*t+b},easeOutCubic:function(x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b},easeInOutCubic:function(x,t,b,c,d){if((t/=d/2)<1)return c/
2*t*t*t+b;return c/2*((t-=2)*t*t+2)+b},easeInQuart:function(x,t,b,c,d){return c*(t/=d)*t*t*t+b},easeOutQuart:function(x,t,b,c,d){return-c*((t=t/d-1)*t*t*t-1)+b},easeInOutQuart:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t+b;return-c/2*((t-=2)*t*t*t-2)+b},easeInQuint:function(x,t,b,c,d){return c*(t/=d)*t*t*t*t+b},easeOutQuint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b},easeInOutQuint:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t*t+b;return c/2*((t-=2)*t*t*t*t+2)+b},easeInSine:function(x,
t,b,c,d){return-c*Math.cos(t/d*(Math.PI/2))+c+b},easeOutSine:function(x,t,b,c,d){return c*Math.sin(t/d*(Math.PI/2))+b},easeInOutSine:function(x,t,b,c,d){return-c/2*(Math.cos(Math.PI*t/d)-1)+b},easeInExpo:function(x,t,b,c,d){return t==0?b:c*Math.pow(2,10*(t/d-1))+b},easeOutExpo:function(x,t,b,c,d){return t==d?b+c:c*(-Math.pow(2,-10*t/d)+1)+b},easeInOutExpo:function(x,t,b,c,d){if(t==0)return b;if(t==d)return b+c;if((t/=d/2)<1)return c/2*Math.pow(2,10*(t-1))+b;return c/2*(-Math.pow(2,-10*--t)+2)+b},
easeInCirc:function(x,t,b,c,d){return-c*(Math.sqrt(1-(t/=d)*t)-1)+b},easeOutCirc:function(x,t,b,c,d){return c*Math.sqrt(1-(t=t/d-1)*t)+b},easeInOutCirc:function(x,t,b,c,d){if((t/=d/2)<1)return-c/2*(Math.sqrt(1-t*t)-1)+b;return c/2*(Math.sqrt(1-(t-=2)*t)+1)+b},easeInElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;s=p/4}else s=p/(2*Math.PI)*Math.asin(c/a);return-(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/
p))+b},easeOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;s=p/4}else s=p/(2*Math.PI)*Math.asin(c/a);return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b},easeInOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d/2)==2)return b+c;if(!p)p=d*(.3*1.5);if(a<Math.abs(c)){a=c;s=p/4}else s=p/(2*Math.PI)*Math.asin(c/a);if(t<1)return-.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*
d-s)*(2*Math.PI)/p))+b;return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*.5+c+b},easeInBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*(t/=d)*t*((s+1)*t-s)+b},easeOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},easeInOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;if((t/=d/2)<1)return c/2*(t*t*(((s*=1.525)+1)*t-s))+b;return c/2*((t-=2)*t*(((s*=1.525)+1)*t+s)+2)+b},easeInBounce:function(x,t,b,c,d){return c-jQuery.easing.easeOutBounce(x,
d-t,0,c,d)+b},easeOutBounce:function(x,t,b,c,d){if((t/=d)<1/2.75)return c*(7.5625*t*t)+b;else if(t<2/2.75)return c*(7.5625*(t-=1.5/2.75)*t+.75)+b;else if(t<2.5/2.75)return c*(7.5625*(t-=2.25/2.75)*t+.9375)+b;else return c*(7.5625*(t-=2.625/2.75)*t+.984375)+b},easeInOutBounce:function(x,t,b,c,d){if(t<d/2)return jQuery.easing.easeInBounce(x,t*2,0,c,d)*.5+b;return jQuery.easing.easeOutBounce(x,t*2-d,0,c,d)*.5+c*.5+b}});
(function($,window){var $window=$(window);$.fn.lazyload=function(options){function update(){var counter=0;elements.each(function(){var $this=$(this);if(settings.skip_invisible&&!$this.is(":visible"))return;if($.abovethetop(this,settings)||$.leftofbegin(this,settings));else if(!$.belowthefold(this,settings)&&!$.rightoffold(this,settings)){$this.trigger("appear");counter=0}else if(++counter>settings.failure_limit)return false})}var elements=this;var $container;var settings={threshold:200,failure_limit:8,
event:"scroll",effect:"show",container:window,data_attribute:"original",skip_invisible:false,appear:null,load:null};if(options){if(undefined!==options.failurelimit){options.failure_limit=options.failurelimit;delete options.failurelimit}if(undefined!==options.effectspeed){options.effect_speed=options.effectspeed;delete options.effectspeed}$.extend(settings,options)}$container=settings.container===undefined||settings.container===window?$window:$(settings.container);if(0===settings.event.indexOf("scroll"))$container.bind(settings.event,
function(event){return update()});this.each(function(){var self=this;var $self=$(self);self.loaded=false;$self.one("appear",function(){if(!this.loaded){if(settings.appear){var elements_left=elements.length;settings.appear.call(self,elements_left,settings)}var loadImgUri;if($self.data("background"))loadImgUri=$self.data("background");else loadImgUri=$self.data(settings.data_attribute);$("\x3cimg /\x3e").bind("load",function(){$self.hide();if($self.data("background")){$self.css("backgroundImage","url("+
$self.data("background")+")");$self.removeClass("not-loaded")}else $self.attr("src",$self.data(settings.data_attribute));$self[settings.effect](settings.effect_speed);$self.css("visibility","visible");self.loaded=true;if($self.hasClass("hidden"))$self.css("display","none");var temp=$.grep(elements,function(element){return!element.loaded});elements=$(temp);if(settings.load){var elements_left=elements.length;settings.load.call(self,elements_left,settings)}}).attr("src",loadImgUri)}});if(0!==settings.event.indexOf("scroll"))$self.bind(settings.event,
function(event){if(!self.loaded)$self.trigger("appear")})});$window.bind("resize",function(event){update()});$(document).ready(function(){update()});return this};$.belowthefold=function(element,settings){var fold;if(settings.container===undefined||settings.container===window)fold=$window.height()+$window.scrollTop();else fold=$(settings.container).offset().top+$(settings.container).height();return fold<=$(element).offset().top-settings.threshold};$.rightoffold=function(element,settings){var fold;
if(settings.container===undefined||settings.container===window)fold=$window.width()+$window.scrollLeft();else fold=$(settings.container).offset().left+$(settings.container).width();return fold<=$(element).offset().left-settings.threshold};$.abovethetop=function(element,settings){var fold;if(settings.container===undefined||settings.container===window)fold=$window.scrollTop();else fold=$(settings.container).offset().top;return fold>=$(element).offset().top+settings.threshold+$(element).height()};$.leftofbegin=
function(element,settings){var fold;if(settings.container===undefined||settings.container===window)fold=$window.scrollLeft();else fold=$(settings.container).offset().left;return fold>=$(element).offset().left+settings.threshold+$(element).width()};$.inviewport=function(element,settings){return!$.rightoffold(element,settings)&&!$.leftofbegin(element,settings)&&!$.belowthefold(element,settings)&&!$.abovethetop(element,settings)};$.extend($.expr[":"],{"below-the-fold":function(a){return $.belowthefold(a,
{threshold:0})},"above-the-top":function(a){return!$.belowthefold(a,{threshold:0})},"right-of-screen":function(a){return $.rightoffold(a,{threshold:0})},"left-of-screen":function(a){return!$.rightoffold(a,{threshold:0})},"in-viewport":function(a){return $.inviewport(a,{threshold:0})},"above-the-fold":function(a){return!$.belowthefold(a,{threshold:0})},"right-of-fold":function(a){return $.rightoffold(a,{threshold:0})},"left-of-fold":function(a){return!$.rightoffold(a,{threshold:0})}})})(jQuery,window);
$(".lazyload").lazyload({effect:"fadeIn"}).css("visibility","hidden");
!function(a){a(jQuery)}(function(a$$2){var b=window.Slick||{};b=function(){function c(c,d){var f;var g;var e=this;if(e.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:a$$2(c),appendDots:a$$2(c),arrows:!0,asNavFor:null,prevArrow:'\x3cbutton type\x3d"button" data-role\x3d"none" class\x3d"slick-prev"\x3ePrevious\x3c/button\x3e',nextArrow:'\x3cbutton type\x3d"button" data-role\x3d"none" class\x3d"slick-next"\x3eNext\x3c/button\x3e',autoplay:!1,autoplaySpeed:3E3,centerMode:!1,centerPadding:"50px",
cssEase:"ease",customPaging:function(a,b){return'\x3cbutton type\x3d"button" data-role\x3d"none"\x3e'+(b+1)+"\x3c/button\x3e"},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",onBeforeChange:null,onAfterChange:null,onInit:null,onReInit:null,onSetPosition:null,pauseOnHover:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rtl:!1,slide:"div",slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,
touchThreshold:5,useCSS:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0},e.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1},a$$2.extend(e,e.initials),e.activeBreakpoint=null,e.animType=null,e.animProp=
null,e.breakpoints=[],e.breakpointSettings=[],e.cssTransitions=!1,e.paused=!1,e.positionProp=null,e.respondTo=null,e.shouldClick=!0,e.$slider=a$$2(c),e.$slidesCache=null,e.transformType=null,e.transitionType=null,e.windowWidth=0,e.windowTimer=null,e.options=a$$2.extend({},e.defaults,d),e.currentSlide=e.options.initialSlide,e.originalSettings=e.options,f=e.options.responsive||null,f&&f.length>-1){e.respondTo=e.options.respondTo||"window";for(g in f)f.hasOwnProperty(g)&&(e.breakpoints.push(f[g].breakpoint),
e.breakpointSettings[f[g].breakpoint]=f[g].settings);e.breakpoints.sort(function(a,b){return b-a})}e.autoPlay=a$$2.proxy(e.autoPlay,e),e.autoPlayClear=a$$2.proxy(e.autoPlayClear,e),e.changeSlide=a$$2.proxy(e.changeSlide,e),e.clickHandler=a$$2.proxy(e.clickHandler,e),e.selectHandler=a$$2.proxy(e.selectHandler,e),e.setPosition=a$$2.proxy(e.setPosition,e),e.swipeHandler=a$$2.proxy(e.swipeHandler,e),e.dragHandler=a$$2.proxy(e.dragHandler,e),e.keyHandler=a$$2.proxy(e.keyHandler,e),e.autoPlayIterator=a$$2.proxy(e.autoPlayIterator,
e),e.instanceUid=b$$0++,e.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,e.init(),e.checkResponsive()}var b$$0=0;return c}(),b.prototype.addSlide=function(b$$0,c$$0,d){var e=this;if("boolean"==typeof c$$0)d=c$$0,c$$0=null;else if(0>c$$0||c$$0>=e.slideCount)return!1;e.unload(),"number"==typeof c$$0?0===c$$0&&0===e.$slides.length?a$$2(b$$0).appendTo(e.$slideTrack):d?a$$2(b$$0).insertBefore(e.$slides.eq(c$$0)):a$$2(b$$0).insertAfter(e.$slides.eq(c$$0)):d===!0?a$$2(b$$0).prependTo(e.$slideTrack):a$$2(b$$0).appendTo(e.$slideTrack),
e.$slides=e.$slideTrack.children(this.options.slide),e.$slideTrack.children(this.options.slide).detach(),e.$slideTrack.append(e.$slides),e.$slides.each(function(b,c){a$$2(c).attr("index",b)}),e.$slidesCache=e.$slides,e.reinit()},b.prototype.animateSlide=function(b,c){var d={};var e=this;if(1===e.options.slidesToShow&&e.options.adaptiveHeight===!0&&e.options.vertical===!1){var f=e.$slides.eq(e.currentSlide).outerHeight(!0);e.$list.animate({height:f},e.options.speed)}e.options.rtl===!0&&e.options.vertical===
!1&&(b=-b),e.transformsEnabled===!1?e.options.vertical===!1?e.$slideTrack.animate({left:b},e.options.speed,e.options.easing,c):e.$slideTrack.animate({top:b},e.options.speed,e.options.easing,c):e.cssTransitions===!1?a$$2({animStart:e.currentLeft}).animate({animStart:b},{duration:e.options.speed,easing:e.options.easing,step:function(a){e.options.vertical===!1?(d[e.animType]="translate("+a+"px, 0px)",e.$slideTrack.css(d)):(d[e.animType]="translate(0px,"+a+"px)",e.$slideTrack.css(d))},complete:function(){c&&
c.call()}}):(e.applyTransition(),d[e.animType]=e.options.vertical===!1?"translate3d("+b+"px, 0px, 0px)":"translate3d(0px,"+b+"px, 0px)",e.$slideTrack.css(d),c&&setTimeout(function(){e.disableTransition(),c.call()},e.options.speed))},b.prototype.asNavFor=function(b){var c=this;var d=null!=c.options.asNavFor?a$$2(c.options.asNavFor).getSlick():null;null!=d&&d.slideHandler(b,!0)},b.prototype.applyTransition=function(a){var b=this;var c={};c[b.transitionType]=b.options.fade===!1?b.transformType+" "+b.options.speed+
"ms "+b.options.cssEase:"opacity "+b.options.speed+"ms "+b.options.cssEase,b.options.fade===!1?b.$slideTrack.css(c):b.$slides.eq(a).css(c)},b.prototype.autoPlay=function(){var a=this;a.autoPlayTimer&&clearInterval(a.autoPlayTimer),a.slideCount>a.options.slidesToShow&&a.paused!==!0&&(a.autoPlayTimer=setInterval(a.autoPlayIterator,a.options.autoplaySpeed))},b.prototype.autoPlayClear=function(){var a=this;a.autoPlayTimer&&clearInterval(a.autoPlayTimer)},b.prototype.autoPlayIterator=function(){var a=
this;a.options.infinite===!1?1===a.direction?(a.currentSlide+1===a.slideCount-1&&(a.direction=0),a.slideHandler(a.currentSlide+a.options.slidesToScroll)):(0===a.currentSlide-1&&(a.direction=1),a.slideHandler(a.currentSlide-a.options.slidesToScroll)):a.slideHandler(a.currentSlide+a.options.slidesToScroll)},b.prototype.buildArrows=function(){var b=this;b.options.arrows===!0&&b.slideCount>b.options.slidesToShow&&(b.$prevArrow=a$$2(b.options.prevArrow),b.$nextArrow=a$$2(b.options.nextArrow),b.htmlExpr.test(b.options.prevArrow)&&
b.$prevArrow.appendTo(b.options.appendArrows),b.htmlExpr.test(b.options.nextArrow)&&b.$nextArrow.appendTo(b.options.appendArrows),b.options.infinite!==!0&&b.$prevArrow.addClass("slick-disabled"))},b.prototype.buildDots=function(){var c;var d;var b=this;if(b.options.dots===!0&&b.slideCount>b.options.slidesToShow){for(d='\x3cul class\x3d"'+b.options.dotsClass+'"\x3e',c=0;c<=b.getDotCount();c+=1)d+="\x3cli\x3e"+b.options.customPaging.call(this,b,c)+"\x3c/li\x3e";d+="\x3c/ul\x3e",b.$dots=a$$2(d).appendTo(b.options.appendDots),
b.$dots.find("li").first().addClass("slick-active")}},b.prototype.buildOut=function(){var b$$0=this;b$$0.$slides=b$$0.$slider.children(b$$0.options.slide+":not(.slick-cloned)").addClass("slick-slide"),b$$0.slideCount=b$$0.$slides.length,b$$0.$slides.each(function(b,c){a$$2(c).attr("index",b)}),b$$0.$slidesCache=b$$0.$slides,b$$0.$slider.addClass("slick-slider"),b$$0.$slideTrack=0===b$$0.slideCount?a$$2('\x3cdiv class\x3d"slick-track"/\x3e').appendTo(b$$0.$slider):b$$0.$slides.wrapAll('\x3cdiv class\x3d"slick-track"/\x3e').parent(),
b$$0.$list=b$$0.$slideTrack.wrap('\x3cdiv class\x3d"slick-list"/\x3e').parent(),b$$0.$slideTrack.css("opacity",0),b$$0.options.centerMode===!0&&(b$$0.options.slidesToScroll=1),a$$2("img[data-lazy]",b$$0.$slider).not("[src]").addClass("slick-loading"),b$$0.setupInfinite(),b$$0.buildArrows(),b$$0.buildDots(),b$$0.updateDots(),b$$0.options.accessibility===!0&&b$$0.$list.prop("tabIndex",0),b$$0.setSlideClasses("number"==typeof this.currentSlide?this.currentSlide:0),b$$0.options.draggable===!0&&b$$0.$list.addClass("draggable")},
b.prototype.checkResponsive=function(){var c;var d;var e;var b=this;var f=b.$slider.width();var g=window.innerWidth||a$$2(window).width();if("window"===b.respondTo?e=g:"slider"===b.respondTo?e=f:"min"===b.respondTo&&(e=Math.min(g,f)),b.originalSettings.responsive&&b.originalSettings.responsive.length>-1&&null!==b.originalSettings.responsive){d=null;for(c in b.breakpoints)b.breakpoints.hasOwnProperty(c)&&e<b.breakpoints[c]&&(d=b.breakpoints[c]);null!==d?null!==b.activeBreakpoint?d!==b.activeBreakpoint&&
(b.activeBreakpoint=d,b.options=a$$2.extend({},b.originalSettings,b.breakpointSettings[d]),b.refresh()):(b.activeBreakpoint=d,b.options=a$$2.extend({},b.originalSettings,b.breakpointSettings[d]),b.refresh()):null!==b.activeBreakpoint&&(b.activeBreakpoint=null,b.options=b.originalSettings,b.refresh())}},b.prototype.changeSlide=function(b,c){var f;var g;var h;var i;var j;var d=this;var e=a$$2(b.target);switch(e.is("a")&&b.preventDefault(),h=0!==d.slideCount%d.options.slidesToScroll,f=h?0:(d.slideCount-
d.currentSlide)%d.options.slidesToScroll,b.data.message){case "previous":g=0===f?d.options.slidesToScroll:d.options.slidesToShow-f,d.slideCount>d.options.slidesToShow&&d.slideHandler(d.currentSlide-g,!1,c);break;case "next":g=0===f?d.options.slidesToScroll:f,d.slideCount>d.options.slidesToShow&&d.slideHandler(d.currentSlide+g,!1,c);break;case "index":var k=0===b.data.index?0:b.data.index||a$$2(b.target).parent().index()*d.options.slidesToScroll;if(i=d.getNavigableIndexes(),j=0,i[k]&&i[k]===k)if(k>
i[i.length-1])k=i[i.length-1];else for(var l in i){if(k<i[l]){k=j;break}j=i[l]}d.slideHandler(k,!1,c);default:return}},b.prototype.clickHandler=function(a){var b=this;b.shouldClick===!1&&(a.stopImmediatePropagation(),a.stopPropagation(),a.preventDefault())},b.prototype.destroy=function(){var b=this;b.autoPlayClear(),b.touchObject={},a$$2(".slick-cloned",b.$slider).remove(),b.$dots&&b.$dots.remove(),b.$prevArrow&&"object"!=typeof b.options.prevArrow&&b.$prevArrow.remove(),b.$nextArrow&&"object"!=typeof b.options.nextArrow&&
b.$nextArrow.remove(),b.$slides.parent().hasClass("slick-track")&&b.$slides.unwrap().unwrap(),b.$slides.removeClass("slick-slide slick-active slick-center slick-visible").removeAttr("index").css({position:"",left:"",top:"",zIndex:"",opacity:"",width:""}),b.$slider.removeClass("slick-slider"),b.$slider.removeClass("slick-initialized"),b.$list.off(".slick"),a$$2(window).off(".slick-"+b.instanceUid),a$$2(document).off(".slick-"+b.instanceUid)},b.prototype.disableTransition=function(a){var b=this;var c=
{};c[b.transitionType]="",b.options.fade===!1?b.$slideTrack.css(c):b.$slides.eq(a).css(c)},b.prototype.fadeSlide=function(a,b,c){var d=this;d.cssTransitions===!1?(d.$slides.eq(b).css({zIndex:1E3}),d.$slides.eq(b).animate({opacity:1},d.options.speed,d.options.easing,c),d.$slides.eq(a).animate({opacity:0},d.options.speed,d.options.easing)):(d.applyTransition(b),d.applyTransition(a),d.$slides.eq(b).css({opacity:1,zIndex:1E3}),d.$slides.eq(a).css({opacity:0}),c&&setTimeout(function(){d.disableTransition(b),
d.disableTransition(a),c.call()},d.options.speed))},b.prototype.filterSlides=function(a){var b=this;null!==a&&(b.unload(),b.$slideTrack.children(this.options.slide).detach(),b.$slidesCache.filter(a).appendTo(b.$slideTrack),b.reinit())},b.prototype.getCurrent=function(){var a=this;return a.currentSlide},b.prototype.getDotCount=function(){var a=this;var b=0;var c=0;var d=0;if(a.options.infinite===!0)d=Math.ceil(a.slideCount/a.options.slidesToScroll);else for(;b<a.slideCount;)++d,b=c+a.options.slidesToShow,
c+=a.options.slidesToScroll<=a.options.slidesToShow?a.options.slidesToScroll:a.options.slidesToShow;return d-1},b.prototype.getLeft=function(a){var c;var d;var g;var b=this;var e=0;return b.slideOffset=0,d=b.$slides.first().outerHeight(),b.options.infinite===!0?(b.slideCount>b.options.slidesToShow&&(b.slideOffset=-1*b.slideWidth*b.options.slidesToShow,e=-1*d*b.options.slidesToShow),0!==b.slideCount%b.options.slidesToScroll&&a+b.options.slidesToScroll>b.slideCount&&b.slideCount>b.options.slidesToShow&&
(a>b.slideCount?(b.slideOffset=-1*(b.options.slidesToShow-(a-b.slideCount))*b.slideWidth,e=-1*(b.options.slidesToShow-(a-b.slideCount))*d):(b.slideOffset=-1*b.slideCount%b.options.slidesToScroll*b.slideWidth,e=-1*b.slideCount%b.options.slidesToScroll*d))):a+b.options.slidesToShow>b.slideCount&&(b.slideOffset=(a+b.options.slidesToShow-b.slideCount)*b.slideWidth,e=(a+b.options.slidesToShow-b.slideCount)*d),b.slideCount<=b.options.slidesToShow&&(b.slideOffset=0,e=0),b.options.centerMode===!0&&b.options.infinite===
!0?b.slideOffset+=b.slideWidth*Math.floor(b.options.slidesToShow/2)-b.slideWidth:b.options.centerMode===!0&&(b.slideOffset=0,b.slideOffset+=b.slideWidth*Math.floor(b.options.slidesToShow/2)),c=b.options.vertical===!1?-1*a*b.slideWidth+b.slideOffset:-1*a*d+e,b.options.variableWidth===!0&&(g=b.slideCount<=b.options.slidesToShow||b.options.infinite===!1?b.$slideTrack.children(".slick-slide").eq(a):b.$slideTrack.children(".slick-slide").eq(a+b.options.slidesToShow),c=g[0]?-1*g[0].offsetLeft:0,b.options.centerMode===
!0&&(g=b.options.infinite===!1?b.$slideTrack.children(".slick-slide").eq(a):b.$slideTrack.children(".slick-slide").eq(a+b.options.slidesToShow+1),c=g[0]?-1*g[0].offsetLeft:0,c+=(b.$list.width()-g.outerWidth())/2)),c},b.prototype.getNavigableIndexes=function(){var a=this;var b=0;var c=0;for(var d=[];b<a.slideCount;)d.push(b),b=c+a.options.slidesToScroll,c+=a.options.slidesToScroll<=a.options.slidesToShow?a.options.slidesToScroll:a.options.slidesToShow;return d},b.prototype.getSlideCount=function(){var c$$0;
var b=this;if(b.options.swipeToSlide===!0){var d=null;return b.$slideTrack.find(".slick-slide").each(function(c,e){return e.offsetLeft+a$$2(e).outerWidth()/2>-1*b.swipeLeft?(d=e,!1):void 0}),c$$0=Math.abs(a$$2(d).attr("index")-b.currentSlide)}return b.options.slidesToScroll},b.prototype.init=function(){var b=this;a$$2(b.$slider).hasClass("slick-initialized")||(a$$2(b.$slider).addClass("slick-initialized"),b.buildOut(),b.setProps(),b.startLoad(),b.loadSlider(),b.initializeEvents(),b.updateArrows(),
b.updateDots()),null!==b.options.onInit&&b.options.onInit.call(this,b)},b.prototype.initArrowEvents=function(){var a=this;a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.on("click.slick",{message:"previous"},a.changeSlide),a.$nextArrow.on("click.slick",{message:"next"},a.changeSlide))},b.prototype.initDotEvents=function(){var b=this;b.options.dots===!0&&b.slideCount>b.options.slidesToShow&&a$$2("li",b.$dots).on("click.slick",{message:"index"},b.changeSlide),b.options.dots===
!0&&b.options.pauseOnDotsHover===!0&&b.options.autoplay===!0&&a$$2("li",b.$dots).on("mouseenter.slick",function(){b.paused=!0,b.autoPlayClear()}).on("mouseleave.slick",function(){b.paused=!1,b.autoPlay()})},b.prototype.initializeEvents=function(){var b=this;b.initArrowEvents(),b.initDotEvents(),b.$list.on("touchstart.slick mousedown.slick",{action:"start"},b.swipeHandler),b.$list.on("touchmove.slick mousemove.slick",{action:"move"},b.swipeHandler),b.$list.on("touchend.slick mouseup.slick",{action:"end"},
b.swipeHandler),b.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},b.swipeHandler),b.$list.on("click.slick",b.clickHandler),b.options.pauseOnHover===!0&&b.options.autoplay===!0&&(b.$list.on("mouseenter.slick",function(){b.paused=!0,b.autoPlayClear()}),b.$list.on("mouseleave.slick",function(){b.paused=!1,b.autoPlay()})),b.options.accessibility===!0&&b.$list.on("keydown.slick",b.keyHandler),b.options.focusOnSelect===!0&&a$$2(b.options.slide,b.$slideTrack).on("click.slick",b.selectHandler),
a$$2(window).on("orientationchange.slick.slick-"+b.instanceUid,function(){b.checkResponsive(),b.setPosition()}),a$$2(window).on("resize.slick.slick-"+b.instanceUid,function(){a$$2(window).width()!==b.windowWidth&&(clearTimeout(b.windowDelay),b.windowDelay=window.setTimeout(function(){b.windowWidth=a$$2(window).width(),b.checkResponsive(),b.setPosition()},50))}),a$$2("*[draggable!\x3dtrue]",b.$slideTrack).on("dragstart",function(a){a.preventDefault()}),a$$2(window).on("load.slick.slick-"+b.instanceUid,
b.setPosition),a$$2(document).on("ready.slick.slick-"+b.instanceUid,b.setPosition)},b.prototype.initUI=function(){var a=this;a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.show(),a.$nextArrow.show()),a.options.dots===!0&&a.slideCount>a.options.slidesToShow&&a.$dots.show(),a.options.autoplay===!0&&a.autoPlay()},b.prototype.keyHandler=function(a){var b=this;37===a.keyCode&&b.options.accessibility===!0?b.changeSlide({data:{message:"previous"}}):39===a.keyCode&&b.options.accessibility===
!0&&b.changeSlide({data:{message:"next"}})},b.prototype.lazyLoad=function(){function g(b$$0){a$$2("img[data-lazy]",b$$0).each(function(){var b=a$$2(this);var c=a$$2(this).attr("data-lazy");b.load(function(){b.animate({opacity:1},200)}).css({opacity:0}).attr("src",c).removeAttr("data-lazy").removeClass("slick-loading")})}var c$$0;var d;var e;var f;var b$$1=this;b$$1.options.centerMode===!0?b$$1.options.infinite===!0?(e=b$$1.currentSlide+(b$$1.options.slidesToShow/2+1),f=e+b$$1.options.slidesToShow+
2):(e=Math.max(0,b$$1.currentSlide-(b$$1.options.slidesToShow/2+1)),f=2+(b$$1.options.slidesToShow/2+1)+b$$1.currentSlide):(e=b$$1.options.infinite?b$$1.options.slidesToShow+b$$1.currentSlide:b$$1.currentSlide,f=e+b$$1.options.slidesToShow,b$$1.options.fade===!0&&(e>0&&e--,f<=b$$1.slideCount&&f++)),c$$0=b$$1.$slider.find(".slick-slide").slice(e,f),g(c$$0),b$$1.slideCount<=b$$1.options.slidesToShow?(d=b$$1.$slider.find(".slick-slide"),g(d)):b$$1.currentSlide>=b$$1.slideCount-b$$1.options.slidesToShow?
(d=b$$1.$slider.find(".slick-cloned").slice(0,b$$1.options.slidesToShow),g(d)):0===b$$1.currentSlide&&(d=b$$1.$slider.find(".slick-cloned").slice(-1*b$$1.options.slidesToShow),g(d))},b.prototype.loadSlider=function(){var a=this;a.setPosition(),a.$slideTrack.css({opacity:1}),a.$slider.removeClass("slick-loading"),a.initUI(),"progressive"===a.options.lazyLoad&&a.progressiveLazyLoad()},b.prototype.postSlide=function(a){var b=this;null!==b.options.onAfterChange&&b.options.onAfterChange.call(this,b,a),
b.animating=!1,b.setPosition(),b.swipeLeft=null,b.options.autoplay===!0&&b.paused===!1&&b.autoPlay()},b.prototype.progressiveLazyLoad=function(){var c;var d;var b=this;c=a$$2("img[data-lazy]",b.$slider).length,c>0&&(d=a$$2("img[data-lazy]",b.$slider).first(),d.attr("src",d.attr("data-lazy")).removeClass("slick-loading").load(function(){d.removeAttr("data-lazy"),b.progressiveLazyLoad()}).error(function(){d.removeAttr("data-lazy"),b.progressiveLazyLoad()}))},b.prototype.refresh=function(){var b=this;
var c=b.currentSlide;b.destroy(),a$$2.extend(b,b.initials),b.init(),b.changeSlide({data:{message:"index",index:c}},!0)},b.prototype.reinit=function(){var b=this;b.$slides=b.$slideTrack.children(b.options.slide).addClass("slick-slide"),b.slideCount=b.$slides.length,b.currentSlide>=b.slideCount&&0!==b.currentSlide&&(b.currentSlide=b.currentSlide-b.options.slidesToScroll),b.slideCount<=b.options.slidesToShow&&(b.currentSlide=0),b.setProps(),b.setupInfinite(),b.buildArrows(),b.updateArrows(),b.initArrowEvents(),
b.buildDots(),b.updateDots(),b.initDotEvents(),b.options.focusOnSelect===!0&&a$$2(b.options.slide,b.$slideTrack).on("click.slick",b.selectHandler),b.setSlideClasses(0),b.setPosition(),null!==b.options.onReInit&&b.options.onReInit.call(this,b)},b.prototype.removeSlide=function(a,b,c){var d=this;return"boolean"==typeof a?(b=a,a=b===!0?0:d.slideCount-1):a=b===!0?--a:a,d.slideCount<1||0>a||a>d.slideCount-1?!1:(d.unload(),c===!0?d.$slideTrack.children().remove():d.$slideTrack.children(this.options.slide).eq(a).remove(),
d.$slides=d.$slideTrack.children(this.options.slide),d.$slideTrack.children(this.options.slide).detach(),d.$slideTrack.append(d.$slides),d.$slidesCache=d.$slides,d.reinit(),void 0)},b.prototype.setCSS=function(a){var d;var e;var b=this;var c={};b.options.rtl===!0&&(a=-a),d="left"==b.positionProp?a+"px":"0px",e="top"==b.positionProp?a+"px":"0px",c[b.positionProp]=a,b.transformsEnabled===!1?b.$slideTrack.css(c):(c={},b.cssTransitions===!1?(c[b.animType]="translate("+d+", "+e+")",b.$slideTrack.css(c)):
(c[b.animType]="translate3d("+d+", "+e+", 0px)",b.$slideTrack.css(c)))},b.prototype.setDimensions=function(){var b=this;if(b.options.vertical===!1?b.options.centerMode===!0&&b.$list.css({padding:"0px "+b.options.centerPadding}):(b.$list.height(b.$slides.first().outerHeight(!0)*b.options.slidesToShow),b.options.centerMode===!0&&b.$list.css({padding:b.options.centerPadding+" 0px"})),b.listWidth=b.$list.width(),b.listHeight=b.$list.height(),b.options.vertical===!1&&b.options.variableWidth===!1)b.slideWidth=
Math.ceil(b.listWidth/b.options.slidesToShow),b.$slideTrack.width(Math.ceil(b.slideWidth*b.$slideTrack.children(".slick-slide").length));else if(b.options.variableWidth===!0){var c=0;b.slideWidth=Math.ceil(b.listWidth/b.options.slidesToShow),b.$slideTrack.children(".slick-slide").each(function(){c+=Math.ceil(a$$2(this).outerWidth(!0))}),b.$slideTrack.width(Math.ceil(c)+1)}else b.slideWidth=Math.ceil(b.listWidth),b.$slideTrack.height(Math.ceil(b.$slides.first().outerHeight(!0)*b.$slideTrack.children(".slick-slide").length));
var d=b.$slides.first().outerWidth(!0)-b.$slides.first().width();b.options.variableWidth===!1&&b.$slideTrack.children(".slick-slide").width(b.slideWidth-d)},b.prototype.setFade=function(){var c;var b=this;b.$slides.each(function(d,e){c=-1*b.slideWidth*d,b.options.rtl===!0?a$$2(e).css({position:"relative",right:c,top:0,zIndex:800,opacity:0}):a$$2(e).css({position:"relative",left:c,top:0,zIndex:800,opacity:0})}),b.$slides.eq(b.currentSlide).css({zIndex:900,opacity:1})},b.prototype.setHeight=function(){var a=
this;if(1===a.options.slidesToShow&&a.options.adaptiveHeight===!0&&a.options.vertical===!1){var b=a.$slides.eq(a.currentSlide).outerHeight(!0);a.$list.css("height",b)}},b.prototype.setPosition=function(){var a=this;a.setDimensions(),a.setHeight(),a.options.fade===!1?a.setCSS(a.getLeft(a.currentSlide)):a.setFade(),null!==a.options.onSetPosition&&a.options.onSetPosition.call(this,a)},b.prototype.setProps=function(){var a=this;var b=document.body.style;a.positionProp=a.options.vertical===!0?"top":"left",
"top"===a.positionProp?a.$slider.addClass("slick-vertical"):a.$slider.removeClass("slick-vertical"),(void 0!==b.WebkitTransition||void 0!==b.MozTransition||void 0!==b.msTransition)&&a.options.useCSS===!0&&(a.cssTransitions=!0),void 0!==b.OTransform&&(a.animType="OTransform",a.transformType="-o-transform",a.transitionType="OTransition",void 0===b.perspectiveProperty&&void 0===b.webkitPerspective&&(a.animType=!1)),void 0!==b.MozTransform&&(a.animType="MozTransform",a.transformType="-moz-transform",
a.transitionType="MozTransition",void 0===b.perspectiveProperty&&void 0===b.MozPerspective&&(a.animType=!1)),void 0!==b.webkitTransform&&(a.animType="webkitTransform",a.transformType="-webkit-transform",a.transitionType="webkitTransition",void 0===b.perspectiveProperty&&void 0===b.webkitPerspective&&(a.animType=!1)),void 0!==b.msTransform&&(a.animType="msTransform",a.transformType="-ms-transform",a.transitionType="msTransition",void 0===b.msTransform&&(a.animType=!1)),void 0!==b.transform&&a.animType!==
!1&&(a.animType="transform",a.transformType="transform",a.transitionType="transition"),a.transformsEnabled=null!==a.animType&&a.animType!==!1},b.prototype.setSlideClasses=function(a){var c;var d;var e;var f;var b=this;b.$slider.find(".slick-slide").removeClass("slick-active").removeClass("slick-center"),d=b.$slider.find(".slick-slide"),b.options.centerMode===!0?(c=Math.floor(b.options.slidesToShow/2),b.options.infinite===!0&&(a>=c&&a<=b.slideCount-1-c?b.$slides.slice(a-c,a+c+1).addClass("slick-active"):
(e=b.options.slidesToShow+a,d.slice(e-c+1,e+c+2).addClass("slick-active")),0===a?d.eq(d.length-1-b.options.slidesToShow).addClass("slick-center"):a===b.slideCount-1&&d.eq(b.options.slidesToShow).addClass("slick-center")),b.$slides.eq(a).addClass("slick-center")):a>=0&&a<=b.slideCount-b.options.slidesToShow?b.$slides.slice(a,a+b.options.slidesToShow).addClass("slick-active"):d.length<=b.options.slidesToShow?d.addClass("slick-active"):(f=b.slideCount%b.options.slidesToShow,e=b.options.infinite===!0?
b.options.slidesToShow+a:a,b.options.slidesToShow==b.options.slidesToScroll&&b.slideCount-a<b.options.slidesToShow?d.slice(e-(b.options.slidesToShow-f),e+f).addClass("slick-active"):d.slice(e,e+b.options.slidesToShow).addClass("slick-active")),"ondemand"===b.options.lazyLoad&&b.lazyLoad()},b.prototype.setupInfinite=function(){var c;var d;var e;var b=this;if(b.options.fade===!0&&(b.options.centerMode=!1),b.options.infinite===!0&&b.options.fade===!1&&(d=null,b.slideCount>b.options.slidesToShow)){for(e=
b.options.centerMode===!0?b.options.slidesToShow+1:b.options.slidesToShow,c=b.slideCount;c>b.slideCount-e;c-=1)d=c-1,a$$2(b.$slides[d]).clone(!0).attr("id","").attr("index",d-b.slideCount).prependTo(b.$slideTrack).addClass("slick-cloned");for(c=0;e>c;c+=1)d=c,a$$2(b.$slides[d]).clone(!0).attr("id","").attr("index",d+b.slideCount).appendTo(b.$slideTrack).addClass("slick-cloned");b.$slideTrack.find(".slick-cloned").find("[id]").each(function(){a$$2(this).attr("id","")})}},b.prototype.selectHandler=
function(b){var c=this;var d=parseInt(a$$2(b.target).parents(".slick-slide").attr("index"));return d||(d=0),c.slideCount<=c.options.slidesToShow?(c.$slider.find(".slick-slide").removeClass("slick-active"),c.$slides.eq(d).addClass("slick-active"),c.options.centerMode===!0&&(c.$slider.find(".slick-slide").removeClass("slick-center"),c.$slides.eq(d).addClass("slick-center")),c.asNavFor(d),void 0):(c.slideHandler(d),void 0)},b.prototype.slideHandler=function(a,b,c){var d;var e;var f;var g;var i=null;
var j=this;return b=b||!1,j.animating===!0&&j.options.waitForAnimate===!0||j.options.fade===!0&&j.currentSlide===a||j.slideCount<=j.options.slidesToShow?void 0:(b===!1&&j.asNavFor(a),d=a,i=j.getLeft(d),g=j.getLeft(j.currentSlide),j.currentLeft=null===j.swipeLeft?g:j.swipeLeft,j.options.infinite===!1&&j.options.centerMode===!1&&(0>a||a>j.getDotCount()*j.options.slidesToScroll)?(j.options.fade===!1&&(d=j.currentSlide,c!==!0?j.animateSlide(g,function(){j.postSlide(d)}):j.postSlide(d)),void 0):j.options.infinite===
!1&&j.options.centerMode===!0&&(0>a||a>j.slideCount-j.options.slidesToScroll)?(j.options.fade===!1&&(d=j.currentSlide,c!==!0?j.animateSlide(g,function(){j.postSlide(d)}):j.postSlide(d)),void 0):(j.options.autoplay===!0&&clearInterval(j.autoPlayTimer),e=0>d?0!==j.slideCount%j.options.slidesToScroll?j.slideCount-j.slideCount%j.options.slidesToScroll:j.slideCount+d:d>=j.slideCount?0!==j.slideCount%j.options.slidesToScroll?0:d-j.slideCount:d,j.animating=!0,null!==j.options.onBeforeChange&&a!==j.currentSlide&&
j.options.onBeforeChange.call(this,j,j.currentSlide,e),f=j.currentSlide,j.currentSlide=e,j.setSlideClasses(j.currentSlide),j.updateDots(),j.updateArrows(),j.options.fade===!0?(c!==!0?j.fadeSlide(f,e,function(){j.postSlide(e)}):j.postSlide(e),void 0):(c!==!0?j.animateSlide(i,function(){j.postSlide(e)}):j.postSlide(e),void 0)))},b.prototype.startLoad=function(){var a=this;a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.hide(),a.$nextArrow.hide()),a.options.dots===!0&&a.slideCount>
a.options.slidesToShow&&a.$dots.hide(),a.$slider.addClass("slick-loading")},b.prototype.swipeDirection=function(){var a;var b;var c;var d;var e=this;return a=e.touchObject.startX-e.touchObject.curX,b=e.touchObject.startY-e.touchObject.curY,c=Math.atan2(b,a),d=Math.round(180*c/Math.PI),0>d&&(d=360-Math.abs(d)),45>=d&&d>=0?e.options.rtl===!1?"left":"right":360>=d&&d>=315?e.options.rtl===!1?"left":"right":d>=135&&225>=d?e.options.rtl===!1?"right":"left":"vertical"},b.prototype.swipeEnd=function(){var b=
this;if(b.dragging=!1,b.shouldClick=b.touchObject.swipeLength>10?!1:!0,void 0===b.touchObject.curX)return!1;if(b.touchObject.swipeLength>=b.touchObject.minSwipe)switch(b.swipeDirection()){case "left":b.slideHandler(b.currentSlide+b.getSlideCount()),b.currentDirection=0,b.touchObject={};break;case "right":b.slideHandler(b.currentSlide-b.getSlideCount()),b.currentDirection=1,b.touchObject={}}else b.touchObject.startX!==b.touchObject.curX&&(b.slideHandler(b.currentSlide),b.touchObject={})},b.prototype.swipeHandler=
function(a){var b=this;if(!(b.options.swipe===!1||"ontouchend"in document&&b.options.swipe===!1||b.options.draggable===!1&&-1!==a.type.indexOf("mouse")))switch(b.touchObject.fingerCount=a.originalEvent&&void 0!==a.originalEvent.touches?a.originalEvent.touches.length:1,b.touchObject.minSwipe=b.listWidth/b.options.touchThreshold,a.data.action){case "start":b.swipeStart(a);break;case "move":b.swipeMove(a);break;case "end":b.swipeEnd(a)}},b.prototype.swipeMove=function(a){var c;var d;var e;var f;var b=
this;return f=void 0!==a.originalEvent?a.originalEvent.touches:null,!b.dragging||f&&1!==f.length?!1:(c=b.getLeft(b.currentSlide),b.touchObject.curX=void 0!==f?f[0].pageX:a.clientX,b.touchObject.curY=void 0!==f?f[0].pageY:a.clientY,b.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(b.touchObject.curX-b.touchObject.startX,2))),d=b.swipeDirection(),"vertical"!==d?(void 0!==a.originalEvent&&b.touchObject.swipeLength>4&&a.preventDefault(),e=(b.options.rtl===!1?1:-1)*(b.touchObject.curX>b.touchObject.startX?
1:-1),b.swipeLeft=b.options.vertical===!1?c+b.touchObject.swipeLength*e:c+b.touchObject.swipeLength*(b.$list.height()/b.listWidth)*e,b.options.fade===!0||b.options.touchMove===!1?!1:b.animating===!0?(b.swipeLeft=null,!1):(b.setCSS(b.swipeLeft),void 0)):void 0)},b.prototype.swipeStart=function(a){var c;var b=this;return 1!==b.touchObject.fingerCount||b.slideCount<=b.options.slidesToShow?(b.touchObject={},!1):(void 0!==a.originalEvent&&void 0!==a.originalEvent.touches&&(c=a.originalEvent.touches[0]),
b.touchObject.startX=b.touchObject.curX=void 0!==c?c.pageX:a.clientX,b.touchObject.startY=b.touchObject.curY=void 0!==c?c.pageY:a.clientY,b.dragging=!0,void 0)},b.prototype.unfilterSlides=function(){var a=this;null!==a.$slidesCache&&(a.unload(),a.$slideTrack.children(this.options.slide).detach(),a.$slidesCache.appendTo(a.$slideTrack),a.reinit())},b.prototype.unload=function(){var b=this;a$$2(".slick-cloned",b.$slider).remove(),b.$dots&&b.$dots.remove(),b.$prevArrow&&"object"!=typeof b.options.prevArrow&&
b.$prevArrow.remove(),b.$nextArrow&&"object"!=typeof b.options.nextArrow&&b.$nextArrow.remove(),b.$slides.removeClass("slick-slide slick-active slick-visible").css("width","")},b.prototype.updateArrows=function(){var b;var a=this;b=Math.floor(a.options.slidesToShow/2),a.options.arrows===!0&&a.options.infinite!==!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.removeClass("slick-disabled"),a.$nextArrow.removeClass("slick-disabled"),0===a.currentSlide?(a.$prevArrow.addClass("slick-disabled"),
a.$nextArrow.removeClass("slick-disabled")):a.currentSlide>=a.slideCount-a.options.slidesToShow&&a.options.centerMode===!1?(a.$nextArrow.addClass("slick-disabled"),a.$prevArrow.removeClass("slick-disabled")):a.currentSlide>a.slideCount-a.options.slidesToShow+b&&a.options.centerMode===!0&&(a.$nextArrow.addClass("slick-disabled"),a.$prevArrow.removeClass("slick-disabled")))},b.prototype.updateDots=function(){var a=this;null!==a.$dots&&(a.$dots.find("li").removeClass("slick-active"),a.$dots.find("li").eq(Math.floor(a.currentSlide/
a.options.slidesToScroll)).addClass("slick-active"))},a$$2.fn.slick=function(a){var c$$0=this;return c$$0.each(function(c,d){d.slick=new b(d,a)})},a$$2.fn.slickAdd=function(a,b,c){var d$$0=this;return d$$0.each(function(d,e){e.slick.addSlide(a,b,c)})},a$$2.fn.slickCurrentSlide=function(){var a=this;return a.get(0).slick.getCurrent()},a$$2.fn.slickFilter=function(a){var b$$0=this;return b$$0.each(function(b,c){c.slick.filterSlides(a)})},a$$2.fn.slickGoTo=function(a,b){var c$$0=this;return c$$0.each(function(c,
d){d.slick.changeSlide({data:{message:"index",index:parseInt(a)}},b)})},a$$2.fn.slickNext=function(){var a$$0=this;return a$$0.each(function(a,b){b.slick.changeSlide({data:{message:"next"}})})},a$$2.fn.slickPause=function(){var a$$0=this;return a$$0.each(function(a,b){b.slick.autoPlayClear(),b.slick.paused=!0})},a$$2.fn.slickPlay=function(){var a$$0=this;return a$$0.each(function(a,b){b.slick.paused=!1,b.slick.autoPlay()})},a$$2.fn.slickPrev=function(){var a$$0=this;return a$$0.each(function(a,b){b.slick.changeSlide({data:{message:"previous"}})})},
a$$2.fn.slickRemove=function(a,b){var c$$0=this;return c$$0.each(function(c,d){d.slick.removeSlide(a,b)})},a$$2.fn.slickRemoveAll=function(){var a$$0=this;return a$$0.each(function(a,b){b.slick.removeSlide(null,null,!0)})},a$$2.fn.slickGetOption=function(a){var b=this;return b.get(0).slick.options[a]},a$$2.fn.slickSetOption=function(a,b,c){var d$$0=this;return d$$0.each(function(d,e){e.slick.options[a]=b,c===!0&&(e.slick.unload(),e.slick.reinit())})},a$$2.fn.slickUnfilter=function(){var a$$0=this;
return a$$0.each(function(a,b){b.slick.unfilterSlides()})},a$$2.fn.unslick=function(){var a$$0=this;return a$$0.each(function(a,b){b.slick&&b.slick.destroy()})},a$$2.fn.getSlick=function(){var a=null;var b$$0=this;return b$$0.each(function(b,c){a=c.slick}),a}});
(function($){var requestFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(callback){callback()};$.fn.switchManager=function(settings){var options=$.extend({attrs:["data-color","data-feature"],eventHoverForAttr:[],effect:".switching-effect",switchElem:"a.switch",switchGroup:".switch-group",activeClass:"active",automaticSwitch:false,automaticSwitchDuration:5E3,automaticSwitchNesting:["data-feature"]},
settings);var switchNextInGroup=function(group){var activeIndex=null;var nextIndex=null;var cycle=false;$.each(group,function(index,e){if(e.hasClass(options.activeClass)){activeIndex=index;return false}});if(activeIndex==null||activeIndex>=group.length-1){nextIndex=0;if(activeIndex!==null)cycle=true}else nextIndex=activeIndex+1;group[nextIndex].trigger("click",true);return cycle};return this.each(function(){var f=$(this);var attrs=options.attrs;var sE=f.find(options.effect);var elements=sE.find("["+
attrs.join("],[")+"]");elements.each(function(){var e=$(this);$.each(attrs,function(i,attr){if(e.attr(attr))$.each(e.attr(attr).split(","),function(k,n){e.data(attr+"-"+$.trim(n),true)})})});var switches=f.find(options.switchElem);switches.on("click hover",function(e$$0,automatic){var a=$(this);if(e$$0.type=="hover"||e$$0.type=="mouseleave"||e$$0.type=="mouseenter"){var hasNoHoverState=true;$.each(options.eventHoverForAttr,function(i,attrName){if(a.attr(attrName)){hasNoHoverState=false;return false}});
if(hasNoHoverState)return true}if(a.hasClass(options.activeClass))return false;if(!automatic&&startCircle)clearTimeout(startCircle.circleTimer);var toShow=[];var toHide=[];var attrSets={};$.each(attrs,function(i,attr){if(a.attr(attr))sE.attr(attr,a.attr(attr));if(sE.attr(attr))attrSets[attr]=sE.attr(attr)});$.each(elements,function(){var e=$(this);var hide=false;$.each(attrs,function(i,attrName){if(attrSets[attrName]){var cacheName=attrName+"-"+attrSets[attrName];if(e.attr(attrName)&&!e.data(cacheName)&&
e.attr(attrName)!=="all"){hide=true;return false}}else if(e.attr(attrName)&&e.attr(attrName)!=="all"){hide=true;return false}});if(hide){if(e.hasClass("active"))toHide.push(e.get(0))}else toShow.push(e.get(0))});requestFrame(function(){$(toHide).removeClass(options.activeClass);$(toShow).addClass(options.activeClass);a.closest(options.switchGroup).find(options.switchElem+"."+options.activeClass).removeClass(options.activeClass);a.addClass(options.activeClass)});e$$0.stopPropagation();return false});
if(options.automaticSwitch){var groups={};switches.each(function(){var e=$(this);$.each(options.automaticSwitchNesting,function(i,attr){if(e.attr(attr)){if(typeof groups[attr]==typeof undef)groups[attr]=[];groups[attr].push(e)}})});$.each(groups,function(n,g){g.sort(function(a,b){var aOrdN=typeof a.attr("data-switch-order")==typeof undef?0:parseInt(a.attr("data-switch-order"),10);var bOrdN=typeof b.attr("data-switch-order")==typeof undef?0:parseInt(b.attr("data-switch-order"),10);if(aOrdN==bOrdN)return 0;
else if(aOrdN>bOrdN)return 1;else return-1})});var startCircle=function(groups,timer){if(window.Scrolling&&!window.Scrolling.isScrolling()||!window.Scrolling){var circle=true;$.each(options.automaticSwitchNesting,function(i,groupName){if(groups[groupName]&&circle)circle=switchNextInGroup(groups[groupName]);else circle=false})}clearTimeout(startCircle.circleTimer);startCircle.circleTimer=setTimeout(function(){startCircle(groups)},options.automaticSwitchDuration)};startCircle(groups)}})}})(jQuery);
(function(window,document,undefined){function Skrollr(options){documentElement=document.documentElement;body=document.body;detectCSSPrefix();_instance=this;options=options||{};_constants=options.constants||{};if(options.easing)for(var e in options.easing)easings[e]=options.easing[e];_edgeStrategy=options.edgeStrategy||"set";_listeners={beforerender:options.beforerender,render:options.render,keyframe:options.keyframe};_forceHeight=options.forceHeight!==false;if(_forceHeight)_scale=options.scale||1;
_mobileDeceleration=options.mobileDeceleration||DEFAULT_MOBILE_DECELERATION;_smoothScrollingEnabled=options.smoothScrolling!==false;_smoothScrollingDuration=options.smoothScrollingDuration||DEFAULT_SMOOTH_SCROLLING_DURATION;_smoothScrolling={targetTop:_instance.getScrollTop()};_isMobile=(options.mobileCheck||function(){return/Android|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent||navigator.vendor||window.opera)})();if(_isMobile){_skrollrBody=document.getElementById("skrollr-body");if(_skrollrBody)_detect3DTransforms();
_initMobile();_updateClass(documentElement,[SKROLLR_CLASS,SKROLLR_MOBILE_CLASS],[NO_SKROLLR_CLASS])}else _updateClass(documentElement,[SKROLLR_CLASS,SKROLLR_DESKTOP_CLASS],[NO_SKROLLR_CLASS]);_instance.refresh();_addEvent(window,"resize orientationchange",function(){var width=documentElement.clientWidth;var height=documentElement.clientHeight;if(height!==_lastViewportHeight||width!==_lastViewportWidth){_lastViewportHeight=height;_lastViewportWidth=width;_requestReflow=true}});var requestAnimFrame=
polyfillRAF();(function animloop(){_render();_animFrame=requestAnimFrame(animloop)})();return _instance}var skrollr={get:function(){return _instance},init:function(options){return _instance||new Skrollr(options)},VERSION:"0.6.26"};var hasProp=Object.prototype.hasOwnProperty;var Math=window.Math;var getStyle=window.getComputedStyle;var documentElement;var body;var EVENT_TOUCHSTART="touchstart";var EVENT_TOUCHMOVE="touchmove";var EVENT_TOUCHCANCEL="touchcancel";var EVENT_TOUCHEND="touchend";var SKROLLABLE_CLASS=
"skrollable";var SKROLLABLE_BEFORE_CLASS=SKROLLABLE_CLASS+"-before";var SKROLLABLE_BETWEEN_CLASS=SKROLLABLE_CLASS+"-between";var SKROLLABLE_AFTER_CLASS=SKROLLABLE_CLASS+"-after";var SKROLLR_CLASS="skrollr";var NO_SKROLLR_CLASS="no-"+SKROLLR_CLASS;var SKROLLR_DESKTOP_CLASS=SKROLLR_CLASS+"-desktop";var SKROLLR_MOBILE_CLASS=SKROLLR_CLASS+"-mobile";var DEFAULT_EASING="linear";var DEFAULT_DURATION=1E3;var DEFAULT_MOBILE_DECELERATION=.004;var DEFAULT_SMOOTH_SCROLLING_DURATION=200;var ANCHOR_START="start";
var ANCHOR_END="end";var ANCHOR_CENTER="center";var ANCHOR_BOTTOM="bottom";var SKROLLABLE_ID_DOM_PROPERTY="___skrollable_id";var rxTouchIgnoreTags=/^(?:input|textarea|button|select)$/i;var rxTrim=/^\s+|\s+$/g;var rxKeyframeAttribute=/^data(?:-(_\w+))?(?:-?(-?\d*\.?\d+p?))?(?:-?(start|end|top|center|bottom))?(?:-?(top|center|bottom))?$/;var rxPropValue=/\s*(@?[\w\-\[\]]+)\s*:\s*(.+?)\s*(?:;|$)/gi;var rxPropEasing=/^(@?[a-z\-]+)\[(\w+)\]$/;var rxCamelCase=/-([a-z0-9_])/g;var rxCamelCaseFn=function(str,
letter){return letter.toUpperCase()};var rxNumericValue=/[\-+]?[\d]*\.?[\d]+/g;var rxInterpolateString=/\{\?\}/g;var rxRGBAIntegerColor=/rgba?\(\s*-?\d+\s*,\s*-?\d+\s*,\s*-?\d+/g;var rxGradient=/[a-z\-]+-gradient/g;var theCSSPrefix="";var theDashedCSSPrefix="";var detectCSSPrefix=function(){var rxPrefixes=/^(?:O|Moz|webkit|ms)|(?:-(?:o|moz|webkit|ms)-)/;if(!getStyle)return;var style=getStyle(body,null);for(var k in style){theCSSPrefix=k.match(rxPrefixes)||+k==k&&style[k].match(rxPrefixes);if(theCSSPrefix)break}if(!theCSSPrefix){theCSSPrefix=
theDashedCSSPrefix="";return}theCSSPrefix=theCSSPrefix[0];if(theCSSPrefix.slice(0,1)==="-"){theDashedCSSPrefix=theCSSPrefix;theCSSPrefix={"-webkit-":"webkit","-moz-":"Moz","-ms-":"ms","-o-":"O"}[theCSSPrefix]}else theDashedCSSPrefix="-"+theCSSPrefix.toLowerCase()+"-"};var polyfillRAF=function(){var requestAnimFrame=window.requestAnimationFrame||window[theCSSPrefix.toLowerCase()+"RequestAnimationFrame"];var lastTime=_now();if(_isMobile||!requestAnimFrame)requestAnimFrame=function(callback){var deltaTime=
_now()-lastTime;var delay=Math.max(0,1E3/60-deltaTime);return window.setTimeout(function(){lastTime=_now();callback()},delay)};return requestAnimFrame};var polyfillCAF=function(){var cancelAnimFrame=window.cancelAnimationFrame||window[theCSSPrefix.toLowerCase()+"CancelAnimationFrame"];if(_isMobile||!cancelAnimFrame)cancelAnimFrame=function(timeout){return window.clearTimeout(timeout)};return cancelAnimFrame};var easings={begin:function(){return 0},end:function(){return 1},linear:function(p){return p},
quadratic:function(p){return p*p},cubic:function(p){return p*p*p},swing:function(p){return-Math.cos(p*Math.PI)/2+.5},sqrt:function(p){return Math.sqrt(p)},outCubic:function(p){return Math.pow(p-1,3)+1},bounce:function(p){var a;if(p<=.5083)a=3;else if(p<=.8489)a=9;else if(p<=.96208)a=27;else if(p<=.99981)a=91;else return 1;return 1-Math.abs(3*Math.cos(p*a*1.028)/a)}};Skrollr.prototype.refresh=function(elements){var elementIndex;var elementsLength;var ignoreID=false;if(elements===undefined){ignoreID=
true;_skrollables=[];_skrollableIdCounter=0;elements=document.getElementsByTagName("*")}else if(elements.length===undefined)elements=[elements];elementIndex=0;for(elementsLength=elements.length;elementIndex<elementsLength;elementIndex++){var el=elements[elementIndex];var anchorTarget=el;var keyFrames=[];var smoothScrollThis=_smoothScrollingEnabled;var edgeStrategy=_edgeStrategy;var emitEvents=false;if(ignoreID&&SKROLLABLE_ID_DOM_PROPERTY in el)delete el[SKROLLABLE_ID_DOM_PROPERTY];if(!el.attributes)continue;
var attributeIndex=0;for(var attributesLength=el.attributes.length;attributeIndex<attributesLength;attributeIndex++){var attr=el.attributes[attributeIndex];if(attr.name==="data-anchor-target"){anchorTarget=document.querySelector(attr.value);if(anchorTarget===null)throw'Unable to find anchor target "'+attr.value+'"';continue}if(attr.name==="data-smooth-scrolling"){smoothScrollThis=attr.value!=="off";continue}if(attr.name==="data-edge-strategy"){edgeStrategy=attr.value;continue}if(attr.name==="data-emit-events"){emitEvents=
true;continue}var match=attr.name.match(rxKeyframeAttribute);if(match===null)continue;var kf={props:attr.value,element:el,eventType:attr.name.replace(rxCamelCase,rxCamelCaseFn)};keyFrames.push(kf);var constant=match[1];if(constant)kf.constant=constant.substr(1);var offset=match[2];if(/p$/.test(offset)){kf.isPercentage=true;kf.offset=(offset.slice(0,-1)|0)/100}else kf.offset=offset|0;var anchor1=match[3];var anchor2=match[4]||anchor1;if(!anchor1||anchor1===ANCHOR_START||anchor1===ANCHOR_END){kf.mode=
"absolute";if(anchor1===ANCHOR_END)kf.isEnd=true;else if(!kf.isPercentage)kf.offset=kf.offset*_scale}else{kf.mode="relative";kf.anchors=[anchor1,anchor2]}}if(!keyFrames.length)continue;var styleAttr;var classAttr;var id;if(!ignoreID&&SKROLLABLE_ID_DOM_PROPERTY in el){id=el[SKROLLABLE_ID_DOM_PROPERTY];styleAttr=_skrollables[id].styleAttr;classAttr=_skrollables[id].classAttr}else{id=el[SKROLLABLE_ID_DOM_PROPERTY]=_skrollableIdCounter++;styleAttr=el.style.cssText;classAttr=_getClass(el)}_skrollables[id]=
{element:el,styleAttr:styleAttr,classAttr:classAttr,anchorTarget:anchorTarget,keyFrames:keyFrames,smoothScrolling:smoothScrollThis,edgeStrategy:edgeStrategy,emitEvents:emitEvents,lastFrameIndex:-1};_updateClass(el,[SKROLLABLE_CLASS],[])}_reflow();elementIndex=0;for(elementsLength=elements.length;elementIndex<elementsLength;elementIndex++){var sk=_skrollables[elements[elementIndex][SKROLLABLE_ID_DOM_PROPERTY]];if(sk===undefined)continue;_parseProps(sk);_fillProps(sk)}return _instance};Skrollr.prototype.relativeToAbsolute=
function(element,viewportAnchor,elementAnchor){var viewportHeight=documentElement.clientHeight;var box=element.getBoundingClientRect();var absolute=box.top;var boxHeight=box.bottom-box.top;if(viewportAnchor===ANCHOR_BOTTOM)absolute-=viewportHeight;else if(viewportAnchor===ANCHOR_CENTER)absolute-=viewportHeight/2;if(elementAnchor===ANCHOR_BOTTOM)absolute+=boxHeight;else if(elementAnchor===ANCHOR_CENTER)absolute+=boxHeight/2;absolute+=_instance.getScrollTop();return absolute+.5|0};Skrollr.prototype.animateTo=
function(top,options){options=options||{};var now=_now();var scrollTop=_instance.getScrollTop();_scrollAnimation={startTop:scrollTop,topDiff:top-scrollTop,targetTop:top,duration:options.duration||DEFAULT_DURATION,startTime:now,endTime:now+(options.duration||DEFAULT_DURATION),easing:easings[options.easing||DEFAULT_EASING],done:options.done};if(!_scrollAnimation.topDiff){if(_scrollAnimation.done)_scrollAnimation.done.call(_instance,false);_scrollAnimation=undefined}return _instance};Skrollr.prototype.stopAnimateTo=
function(){if(_scrollAnimation&&_scrollAnimation.done)_scrollAnimation.done.call(_instance,true);_scrollAnimation=undefined};Skrollr.prototype.isAnimatingTo=function(){return!!_scrollAnimation};Skrollr.prototype.isMobile=function(){return _isMobile};Skrollr.prototype.setScrollTop=function(top,force){_forceRender=force===true;if(_isMobile)_mobileOffset=Math.min(Math.max(top,0),_maxKeyFrame);else window.scrollTo(0,top);return _instance};Skrollr.prototype.getScrollTop=function(){if(_isMobile)return _mobileOffset;
else return window.pageYOffset||documentElement.scrollTop||body.scrollTop||0};Skrollr.prototype.getMaxScrollTop=function(){return _maxKeyFrame};Skrollr.prototype.on=function(name,fn){_listeners[name]=fn;return _instance};Skrollr.prototype.off=function(name){delete _listeners[name];return _instance};Skrollr.prototype.destroy=function(){var cancelAnimFrame=polyfillCAF();cancelAnimFrame(_animFrame);_removeAllEvents();_updateClass(documentElement,[NO_SKROLLR_CLASS],[SKROLLR_CLASS,SKROLLR_DESKTOP_CLASS,
SKROLLR_MOBILE_CLASS]);var skrollableIndex=0;for(var skrollablesLength=_skrollables.length;skrollableIndex<skrollablesLength;skrollableIndex++)_reset(_skrollables[skrollableIndex].element);documentElement.style.overflow=body.style.overflow="";documentElement.style.height=body.style.height="";if(_skrollrBody)skrollr.setStyle(_skrollrBody,"transform","none");_instance=undefined;_skrollrBody=undefined;_listeners=undefined;_forceHeight=undefined;_maxKeyFrame=0;_scale=1;_constants=undefined;_mobileDeceleration=
undefined;_direction="down";_lastTop=-1;_lastViewportWidth=0;_lastViewportHeight=0;_requestReflow=false;_scrollAnimation=undefined;_smoothScrollingEnabled=undefined;_smoothScrollingDuration=undefined;_smoothScrolling=undefined;_forceRender=undefined;_skrollableIdCounter=0;_edgeStrategy=undefined;_isMobile=false;_mobileOffset=0;_translateZ=undefined};var _initMobile=function(){var initialElement;var initialTouchY;var initialTouchX;var currentElement;var currentTouchY;var currentTouchX;var lastTouchY;
var deltaY;var initialTouchTime;var currentTouchTime;var lastTouchTime;var deltaTime;_addEvent(documentElement,[EVENT_TOUCHSTART,EVENT_TOUCHMOVE,EVENT_TOUCHCANCEL,EVENT_TOUCHEND].join(" "),function(e){var touch=e.changedTouches[0];for(currentElement=e.target;currentElement.nodeType===3;)currentElement=currentElement.parentNode;currentTouchY=touch.clientY;currentTouchX=touch.clientX;currentTouchTime=e.timeStamp;if(!rxTouchIgnoreTags.test(currentElement.tagName))e.preventDefault();switch(e.type){case EVENT_TOUCHSTART:if(initialElement)initialElement.blur();
_instance.stopAnimateTo();initialElement=currentElement;initialTouchY=lastTouchY=currentTouchY;initialTouchX=currentTouchX;initialTouchTime=currentTouchTime;break;case EVENT_TOUCHMOVE:if(rxTouchIgnoreTags.test(currentElement.tagName)&&document.activeElement!==currentElement)e.preventDefault();deltaY=currentTouchY-lastTouchY;deltaTime=currentTouchTime-lastTouchTime;_instance.setScrollTop(_mobileOffset-deltaY,true);lastTouchY=currentTouchY;lastTouchTime=currentTouchTime;break;default:case EVENT_TOUCHCANCEL:case EVENT_TOUCHEND:var distanceY=
initialTouchY-currentTouchY;var distanceX=initialTouchX-currentTouchX;var distance2=distanceX*distanceX+distanceY*distanceY;if(distance2<49){if(!rxTouchIgnoreTags.test(initialElement.tagName)){initialElement.focus();var clickEvent=document.createEvent("MouseEvents");clickEvent.initMouseEvent("click",true,true,e.view,1,touch.screenX,touch.screenY,touch.clientX,touch.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,0,null);initialElement.dispatchEvent(clickEvent)}return}initialElement=undefined;var speed=
deltaY/deltaTime;speed=Math.max(Math.min(speed,3),-3);var duration=Math.abs(speed/_mobileDeceleration);var targetOffset=speed*duration+.5*_mobileDeceleration*duration*duration;var targetTop=_instance.getScrollTop()-targetOffset;var targetRatio=0;if(targetTop>_maxKeyFrame){targetRatio=(_maxKeyFrame-targetTop)/targetOffset;targetTop=_maxKeyFrame}else if(targetTop<0){targetRatio=-targetTop/targetOffset;targetTop=0}duration=duration*(1-targetRatio);_instance.animateTo(targetTop+.5|0,{easing:"outCubic",
duration:duration});break}});window.scrollTo(0,0);documentElement.style.overflow=body.style.overflow="hidden"};var _updateDependentKeyFrames=function(){var viewportHeight=documentElement.clientHeight;var processedConstants=_processConstants();var skrollable;var element;var anchorTarget;var keyFrames;var keyFrameIndex;var keyFramesLength;var kf;var skrollableIndex;var skrollablesLength;var offset;var constantValue;skrollableIndex=0;for(skrollablesLength=_skrollables.length;skrollableIndex<skrollablesLength;skrollableIndex++){skrollable=
_skrollables[skrollableIndex];element=skrollable.element;anchorTarget=skrollable.anchorTarget;keyFrames=skrollable.keyFrames;keyFrameIndex=0;for(keyFramesLength=keyFrames.length;keyFrameIndex<keyFramesLength;keyFrameIndex++){kf=keyFrames[keyFrameIndex];offset=kf.offset;constantValue=processedConstants[kf.constant]||0;kf.frame=offset;if(kf.isPercentage){offset=offset*viewportHeight;kf.frame=offset}if(kf.mode==="relative"){_reset(element);kf.frame=_instance.relativeToAbsolute(anchorTarget,kf.anchors[0],
kf.anchors[1])-offset;_reset(element,true)}kf.frame+=constantValue;if(_forceHeight)if(!kf.isEnd&&kf.frame>_maxKeyFrame)_maxKeyFrame=kf.frame}}_maxKeyFrame=Math.max(_maxKeyFrame,_getDocumentHeight());skrollableIndex=0;for(skrollablesLength=_skrollables.length;skrollableIndex<skrollablesLength;skrollableIndex++){skrollable=_skrollables[skrollableIndex];keyFrames=skrollable.keyFrames;keyFrameIndex=0;for(keyFramesLength=keyFrames.length;keyFrameIndex<keyFramesLength;keyFrameIndex++){kf=keyFrames[keyFrameIndex];
constantValue=processedConstants[kf.constant]||0;if(kf.isEnd)kf.frame=_maxKeyFrame-kf.offset+constantValue}skrollable.keyFrames.sort(_keyFrameComparator)}};var _calcSteps=function(fakeFrame,actualFrame){var skrollableIndex=0;for(var skrollablesLength=_skrollables.length;skrollableIndex<skrollablesLength;skrollableIndex++){var skrollable=_skrollables[skrollableIndex];var element=skrollable.element;var frame=skrollable.smoothScrolling?fakeFrame:actualFrame;var frames=skrollable.keyFrames;var framesLength=
frames.length;var firstFrame=frames[0];var lastFrame=frames[frames.length-1];var beforeFirst=frame<firstFrame.frame;var afterLast=frame>lastFrame.frame;var firstOrLastFrame=beforeFirst?firstFrame:lastFrame;var emitEvents=skrollable.emitEvents;var lastFrameIndex=skrollable.lastFrameIndex;var key;var value;if(beforeFirst||afterLast){if(beforeFirst&&skrollable.edge===-1||afterLast&&skrollable.edge===1)continue;if(beforeFirst){_updateClass(element,[SKROLLABLE_BEFORE_CLASS],[SKROLLABLE_AFTER_CLASS,SKROLLABLE_BETWEEN_CLASS]);
if(emitEvents&&lastFrameIndex>-1){_emitEvent(element,firstFrame.eventType,_direction);skrollable.lastFrameIndex=-1}}else{_updateClass(element,[SKROLLABLE_AFTER_CLASS],[SKROLLABLE_BEFORE_CLASS,SKROLLABLE_BETWEEN_CLASS]);if(emitEvents&&lastFrameIndex<framesLength){_emitEvent(element,lastFrame.eventType,_direction);skrollable.lastFrameIndex=framesLength}}skrollable.edge=beforeFirst?-1:1;switch(skrollable.edgeStrategy){case "reset":_reset(element);continue;case "ease":frame=firstOrLastFrame.frame;break;
default:case "set":var props=firstOrLastFrame.props;for(key in props)if(hasProp.call(props,key)){value=_interpolateString(props[key].value);if(key.indexOf("@")===0)element.setAttribute(key.substr(1),value);else skrollr.setStyle(element,key,value)}continue}}else if(skrollable.edge!==0){_updateClass(element,[SKROLLABLE_CLASS,SKROLLABLE_BETWEEN_CLASS],[SKROLLABLE_BEFORE_CLASS,SKROLLABLE_AFTER_CLASS]);skrollable.edge=0}for(var keyFrameIndex=0;keyFrameIndex<framesLength-1;keyFrameIndex++)if(frame>=frames[keyFrameIndex].frame&&
frame<=frames[keyFrameIndex+1].frame){var left=frames[keyFrameIndex];var right=frames[keyFrameIndex+1];for(key in left.props)if(hasProp.call(left.props,key)){var progress=(frame-left.frame)/(right.frame-left.frame);progress=left.props[key].easing(progress);value=_calcInterpolation(left.props[key].value,right.props[key].value,progress);value=_interpolateString(value);if(key.indexOf("@")===0)element.setAttribute(key.substr(1),value);else skrollr.setStyle(element,key,value)}if(emitEvents)if(lastFrameIndex!==
keyFrameIndex){if(_direction==="down")_emitEvent(element,left.eventType,_direction);else _emitEvent(element,right.eventType,_direction);skrollable.lastFrameIndex=keyFrameIndex}break}}};var _render=function(){if(_requestReflow){_requestReflow=false;_reflow()}var renderTop=_instance.getScrollTop();var afterAnimationCallback;var now=_now();var progress;if(_scrollAnimation){if(now>=_scrollAnimation.endTime){renderTop=_scrollAnimation.targetTop;afterAnimationCallback=_scrollAnimation.done;_scrollAnimation=
undefined}else{progress=_scrollAnimation.easing((now-_scrollAnimation.startTime)/_scrollAnimation.duration);renderTop=_scrollAnimation.startTop+progress*_scrollAnimation.topDiff|0}_instance.setScrollTop(renderTop,true)}else if(!_forceRender){var smoothScrollingDiff=_smoothScrolling.targetTop-renderTop;if(smoothScrollingDiff)_smoothScrolling={startTop:_lastTop,topDiff:renderTop-_lastTop,targetTop:renderTop,startTime:_lastRenderCall,endTime:_lastRenderCall+_smoothScrollingDuration};if(now<=_smoothScrolling.endTime){progress=
easings.sqrt((now-_smoothScrolling.startTime)/_smoothScrollingDuration);renderTop=_smoothScrolling.startTop+progress*_smoothScrolling.topDiff|0}}if(_isMobile&&_skrollrBody)skrollr.setStyle(_skrollrBody,"transform","translate(0, "+-_mobileOffset+"px) "+_translateZ);if(_forceRender||_lastTop!==renderTop){_direction=renderTop>_lastTop?"down":renderTop<_lastTop?"up":_direction;_forceRender=false;var listenerParams={curTop:renderTop,lastTop:_lastTop,maxTop:_maxKeyFrame,direction:_direction};var continueRendering=
_listeners.beforerender&&_listeners.beforerender.call(_instance,listenerParams);if(continueRendering!==false){_calcSteps(renderTop,_instance.getScrollTop());_lastTop=renderTop;if(_listeners.render)_listeners.render.call(_instance,listenerParams)}if(afterAnimationCallback)afterAnimationCallback.call(_instance,false)}_lastRenderCall=now};var _parseProps=function(skrollable){var keyFrameIndex=0;for(var keyFramesLength=skrollable.keyFrames.length;keyFrameIndex<keyFramesLength;keyFrameIndex++){var frame=
skrollable.keyFrames[keyFrameIndex];var easing;var value;var prop;var props={};for(var match;(match=rxPropValue.exec(frame.props))!==null;){prop=match[1];value=match[2];easing=prop.match(rxPropEasing);if(easing!==null){prop=easing[1];easing=easing[2]}else easing=DEFAULT_EASING;value=value.indexOf("!")?_parseProp(value):[value.slice(1)];props[prop]={value:value,easing:easings[easing]}}frame.props=props}};var _parseProp=function(val){var numbers=[];rxRGBAIntegerColor.lastIndex=0;val=val.replace(rxRGBAIntegerColor,
function(rgba){return rgba.replace(rxNumericValue,function(n){return n/255*100+"%"})});if(theDashedCSSPrefix){rxGradient.lastIndex=0;val=val.replace(rxGradient,function(s){return theDashedCSSPrefix+s})}val=val.replace(rxNumericValue,function(n){numbers.push(+n);return"{?}"});numbers.unshift(val);return numbers};var _fillProps=function(sk){var propList={};var keyFrameIndex;var keyFramesLength;keyFrameIndex=0;for(keyFramesLength=sk.keyFrames.length;keyFrameIndex<keyFramesLength;keyFrameIndex++)_fillPropForFrame(sk.keyFrames[keyFrameIndex],
propList);propList={};for(keyFrameIndex=sk.keyFrames.length-1;keyFrameIndex>=0;keyFrameIndex--)_fillPropForFrame(sk.keyFrames[keyFrameIndex],propList)};var _fillPropForFrame=function(frame,propList){for(var key in propList)if(!hasProp.call(frame.props,key))frame.props[key]=propList[key];for(key in frame.props)propList[key]=frame.props[key]};var _calcInterpolation=function(val1,val2,progress){var valueIndex;var val1Length=val1.length;if(val1Length!==val2.length)throw"Can't interpolate between \""+
val1[0]+'" and "'+val2[0]+'"';var interpolated=[val1[0]];for(valueIndex=1;valueIndex<val1Length;valueIndex++)interpolated[valueIndex]=val1[valueIndex]+(val2[valueIndex]-val1[valueIndex])*progress;return interpolated};var _interpolateString=function(val){var valueIndex=1;rxInterpolateString.lastIndex=0;return val[0].replace(rxInterpolateString,function(){return val[valueIndex++]})};var _reset=function(elements,undo){elements=[].concat(elements);var skrollable;var element;var elementsIndex=0;for(var elementsLength=
elements.length;elementsIndex<elementsLength;elementsIndex++){element=elements[elementsIndex];skrollable=_skrollables[element[SKROLLABLE_ID_DOM_PROPERTY]];if(!skrollable)continue;if(undo){element.style.cssText=skrollable.dirtyStyleAttr;_updateClass(element,skrollable.dirtyClassAttr)}else{skrollable.dirtyStyleAttr=element.style.cssText;skrollable.dirtyClassAttr=_getClass(element);element.style.cssText=skrollable.styleAttr;_updateClass(element,skrollable.classAttr)}}};var _detect3DTransforms=function(){_translateZ=
"translateZ(0)";skrollr.setStyle(_skrollrBody,"transform",_translateZ);var computedStyle=getStyle(_skrollrBody);var computedTransform=computedStyle.getPropertyValue("transform");var computedTransformWithPrefix=computedStyle.getPropertyValue(theDashedCSSPrefix+"transform");var has3D=computedTransform&&computedTransform!=="none"||computedTransformWithPrefix&&computedTransformWithPrefix!=="none";if(!has3D)_translateZ=""};skrollr.setStyle=function(el,prop,val){var style=el.style;prop=prop.replace(rxCamelCase,
rxCamelCaseFn).replace("-","");if(prop==="zIndex")if(isNaN(val))style[prop]=val;else style[prop]=""+(val|0);else if(prop==="float")style.styleFloat=style.cssFloat=val;else try{if(theCSSPrefix)style[theCSSPrefix+prop.slice(0,1).toUpperCase()+prop.slice(1)]=val;style[prop]=val}catch(ignore){}};var _addEvent=skrollr.addEvent=function(element,names,callback){var intermediate=function(e){e=e||window.event;if(!e.target)e.target=e.srcElement;if(!e.preventDefault)e.preventDefault=function(){e.returnValue=
false;e.defaultPrevented=true};return callback.call(this,e)};names=names.split(" ");var name;var nameCounter=0;for(var namesLength=names.length;nameCounter<namesLength;nameCounter++){name=names[nameCounter];if(element.addEventListener)element.addEventListener(name,callback,false);else element.attachEvent("on"+name,intermediate);_registeredEvents.push({element:element,name:name,listener:callback})}};var _removeEvent=skrollr.removeEvent=function(element,names,callback){names=names.split(" ");var nameCounter=
0;for(var namesLength=names.length;nameCounter<namesLength;nameCounter++)if(element.removeEventListener)element.removeEventListener(names[nameCounter],callback,false);else element.detachEvent("on"+names[nameCounter],callback)};var _removeAllEvents=function(){var eventData;var eventCounter=0;for(var eventsLength=_registeredEvents.length;eventCounter<eventsLength;eventCounter++){eventData=_registeredEvents[eventCounter];_removeEvent(eventData.element,eventData.name,eventData.listener)}_registeredEvents=
[]};var _emitEvent=function(element,name,direction){if(_listeners.keyframe)_listeners.keyframe.call(_instance,element,name,direction)};var _reflow=function(){var pos=_instance.getScrollTop();_maxKeyFrame=0;if(_forceHeight&&!_isMobile)body.style.height="";_updateDependentKeyFrames();if(_forceHeight&&!_isMobile)body.style.height=_maxKeyFrame+documentElement.clientHeight+"px";if(_isMobile)_instance.setScrollTop(Math.min(_instance.getScrollTop(),_maxKeyFrame));else _instance.setScrollTop(pos,true);_forceRender=
true};var _processConstants=function(){var viewportHeight=documentElement.clientHeight;var copy={};var prop;var value;for(prop in _constants){value=_constants[prop];if(typeof value==="function")value=value.call(_instance);else if(/p$/.test(value))value=value.slice(0,-1)/100*viewportHeight;copy[prop]=value}return copy};var _getDocumentHeight=function(){var skrollrBodyHeight=_skrollrBody&&_skrollrBody.offsetHeight||0;var bodyHeight=Math.max(skrollrBodyHeight,body.scrollHeight,body.offsetHeight,documentElement.scrollHeight,
documentElement.offsetHeight,documentElement.clientHeight);return bodyHeight-documentElement.clientHeight};var _getClass=function(element){var prop="className";if(window.SVGElement&&element instanceof window.SVGElement){element=element[prop];prop="baseVal"}return element[prop]};var _updateClass=function(element,add,remove){var prop="className";if(window.SVGElement&&element instanceof window.SVGElement){element=element[prop];prop="baseVal"}if(remove===undefined){element[prop]=add;return}var val=element[prop];
var classRemoveIndex=0;for(var removeLength=remove.length;classRemoveIndex<removeLength;classRemoveIndex++)val=_untrim(val).replace(_untrim(remove[classRemoveIndex])," ");val=_trim(val);var classAddIndex=0;for(var addLength=add.length;classAddIndex<addLength;classAddIndex++)if(_untrim(val).indexOf(_untrim(add[classAddIndex]))===-1)val+=" "+add[classAddIndex];element[prop]=_trim(val)};var _trim=function(a){return a.replace(rxTrim,"")};var _untrim=function(a){return" "+a+" "};var _now=Date.now||function(){return+new Date};
var _keyFrameComparator=function(a,b){return a.frame-b.frame};var _instance;var _skrollables;var _skrollrBody;var _listeners;var _forceHeight;var _maxKeyFrame=0;var _scale=1;var _constants;var _mobileDeceleration;var _direction="down";var _lastTop=-1;var _lastRenderCall=_now();var _lastViewportWidth=0;var _lastViewportHeight=0;var _requestReflow=false;var _scrollAnimation;var _smoothScrollingEnabled;var _smoothScrollingDuration;var _smoothScrolling;var _forceRender;var _skrollableIdCounter=0;var _edgeStrategy;
var _isMobile=false;var _mobileOffset=0;var _translateZ;var _registeredEvents=[];var _animFrame;window.skrollr=skrollr})(window,document);
(function($){var animate=false;var animateScroll=false;var scrollEndTimeOut=null;var nativeScrolling=false;var lastScrollTop=null;var events={};var mousewheel=false;var keypressed=false;window.Scrolling=function(options){this.options=$.extend({bySpeed:false,duration:1E3,pixelsPerDuration:1E3,easing:"swing",minScrollByDuration:10,minDurationBySpeed:50},options)};$(window).bind("mousewheel DOMMouseScroll",function(event){mousewheel=true});$(window).on("keydown",function(e){keypressed=e.keyCode});$(window).on("scroll resize orientationchange",
function(e){var _this=this;if(e.type=="scroll"){var scrollTop=Scrolling.getScrollTop();clearTimeout(scrollEndTimeOut);var direction=0;if(lastScrollTop!==null)direction=lastScrollTop-scrollTop>0?1:-1;if(!animateScroll)nativeScrolling=true;var nativeScrollingScrollEnd=nativeScrolling&&mousewheel?true:false;scrollEndTimeOut=setTimeout(function(){if(events["scrollend"]){var nE=jQuery.Event("scrollend",{direction:direction,nat:nativeScrollingScrollEnd,bykey:keypressed});$.each(events["scrollend"],function(i,
s){if(s&&s.func)s.func.call(_this,nE)})}lastScrollTop=Scrolling.getScrollTop();mousewheel=false;keypressed=false;if(!animate)animateScroll=false;nativeScrolling=false},350);if(!animate)animateScroll=false;lastScrollTop=scrollTop}if(events[e.type])$.each(events[e.type],function(i,s){if(s&&s.func)s.func.call(_this,e)})});Scrolling.getScrollTop=function(){return $("html").scrollTop()||$("body").scrollTop()||$(window).scrollTop()};Scrolling.on=function(listEvents,func,opt){$.each(listEvents.split(" "),
function(i,event){var options=$.extend({weight:0},opt);event=$.trim(event);if(typeof events[event]==typeof undef)events[event]=[];if(typeof func==typeof function(){})events[event].push({func:func,opt:options});events[event].sort(function(a,b){if(a.opt.weight==b.opt.weight)return 0;else if(a.opt.weight>b.opt.weight)return 1;else return-1})})};Scrolling.off=function(listEvents,func){var remove=false;$.each(listEvents.split(" "),function(i$$0,event){event=$.trim(event);if(typeof events[event]==typeof undef)return false;
$.each(events[event],function(i,s){if(s.func===func){events[event].splice(i,1);remove=true;return false}})});return remove};Scrolling.isScrolling=function(){return animate||nativeScrolling};Scrolling.isAnimated=function(){return animate};Scrolling.getViewerSize=function(){return{w:$(window).width(),h:$(window).height()}};Scrolling.prototype.on=function(listEvents,func,opt){Scrolling.on(listEvents,func,opt)};Scrolling.prototype.off=function(listEvents,func){return Scrolling.off(listEvents,func)};Scrolling.prototype.isScrolling=
function(){return Scrolling.isScrolling()};Scrolling.prototype.isAnimated=function(){return Scrolling.isAnimated()};Scrolling.prototype.getScrollTop=function(){return Scrolling.getScrollTop()};Scrolling.prototype.animateTo=function(top,options,complete){if(navigator.userAgent.match(/nokia/i)){this.scrollTo(top,options,complete);return}options=$.extend({},this.options,options);$("html, body").stop(true,false);animate=true;animateScroll=true;var duration=options.duration;var bySpeed=options.bySpeed;
if(Math.abs(this.getScrollTop()-top)<options.minScrollByDuration)bySpeed=true;if(bySpeed)duration=Math.max(Math.round(Math.abs(this.getScrollTop()-top)/(options.pixelsPerDuration/options.duration)),options.minDurationBySpeed);var onlyOneAnimate=true;$("html, body").animate({scrollTop:top},{queue:false,easing:this.options.easing,duration:duration,complete:function(){if(onlyOneAnimate){onlyOneAnimate=false;animate=false;if(typeof complete==typeof function(){})complete()}}})};Scrolling.prototype.scrollTo=
function(top,options,complete){$("html, body").stop(true,false);$("html, body").scrollTop(top);animate=false;if(typeof complete==typeof function(){})complete()};Scrolling.prototype.scrollToElem=function(elem,options,complete){if(elem.length){this.scrollTo(elem.offset().top,options,complete);return true}return false};Scrolling.prototype.animateToElem=function(elem,options,complete){if(elem.length){this.animateTo(elem.offset().top,options,complete);return true}return false};Scrolling.prototype.getViewerSize=
function(){return Scrolling.getViewerSize()};lastScrollTop=Scrolling.getScrollTop()})(jQuery);
(function($){var requestFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(callback){callback()};window.Navigation=function(links,options){this.options=$.extend({anchorGroup:".nav-group",locationReplace:false,locationReversReplace:false,activeClass:"active",attrLockMouseWheel:"data-nav-lock-mousewheel",attrNavBox:"data-nav-box",slideGroup:".slide-group",onScrollComplete:null},
options);this._mouseWheel=/firefox/i.test(navigator.userAgent)?"DOMMouseScroll":"mousewheel";this.links=links.filter("a");this.scrolling=new Scrolling(options)};Navigation.prototype._determineDependentNodesByHash=function(){var _this=this;var match=this.getMatchDependentNodeByHash();var activeClass=this.options.activeClass;_this.links.removeClass(activeClass);var anchorGroup=match.link.closest(_this.options.anchorGroup);if(_this.currGroupActiveClass)anchorGroup.removeClass(_this.currGroupActiveClass);
_this.currGroupActiveClass=null;if(this._isBoxVisibleInWindow(match.box)){if(match.link.attr("class")){anchorGroup.addClass(match.link.attr("class"));_this.currGroupActiveClass=match.link.attr("class")}match.link.addClass(activeClass);$.each(this.links,function(){var box=$(this.hash);if(box.attr(_this.options.attrNavBox))box=box.closest(box.attr(_this.options.attrNavBox));box.removeClass(activeClass)});match.box.addClass(activeClass);if(this.options.locationReplace&&this.options.locationReversReplace&&
history.replaceState)history.replaceState(null,null,match.link.get(0).hash)}else if(this.options.locationReplace&&this.options.locationReversReplace&&history.replaceState)history.replaceState(null,null,location.href.split("#")[0])};Navigation.prototype._isBoxVisibleInWindow=function(box){var scrollTop=this.scrolling.getScrollTop();if(scrollTop+this.scrolling.getViewerSize().h>box.offset().top&&scrollTop<box.offset().top+box.height())return true;return false};Navigation.prototype._scrollingByLink=
function(l,options){var _this=this;var hash=l.get(0).hash;var goTo=$(l.get(0).hash);var box=goTo;if(box.attr(_this.options.attrNavBox))box=box.closest(box.attr(_this.options.attrNavBox));_this.currentMatch={link:l,box:box};return _this.scrolling.animateToElem(goTo,options,function(){if(_this.options.locationReplace)if(history.replaceState)history.replaceState(null,null,hash);else location.hash=hash.replace("#","");if(_this.options.onScrollComplete&&typeof _this.options.onScrollComplete==typeof function(){})_this.options.onScrollComplete({link:l,
box:box})})};Navigation.prototype.getMatchDependentNodeByHash=function(){var _this=this;var m={h:null,link:null};_this.links.each(function(){var $this=$(this);var box=$(this.hash);if(box.attr(_this.options.attrNavBox))box=box.closest(box.attr(_this.options.attrNavBox));if(box.length&&box.is(":visible")){var h=0;var hT=box.offset().top-_this.scrolling.getScrollTop();if(hT<=0){h=box.height()+hT;if(h>_this.scrolling.getViewerSize().h)h=_this.scrolling.getViewerSize().h}else{h=_this.scrolling.getViewerSize().h-
hT;if(h>box.height())h=box.height()}h=h/box.height();if(m.h===null||h>m.h){m.h=h;m.box=box;m.link=$this}}});return{link:m.link,box:m.box}};Navigation.prototype.activateNavToHash=function(){var _this=this;if(!_this._navToHashFN){this._navToHashFN=function(){return!_this._scrollingByLink($(this))};this.links.each(function(){$(this).on("click",_this._navToHashFN)})}return _this};Navigation.prototype.activateDependentNodesByHash=function(){var _this=this;if(!_this._nodesByHashFN){_this._determineDependentNodesByHash();
_this._nodesByHashFN=function(){requestFrame(function(){_this._determineDependentNodesByHash()})};this.scrolling.on("scroll resize",_this._nodesByHashFN)}return _this};Navigation.prototype.destroy=function(){var _this=this;if(this._nodesByHashFN){this.scrolling.off("scroll resize",this._nodesByHashFN);this._nodesByHashFN=null}if(this._navToHashFN){this.links.each(function(){$(this).off("click",_this._navToHashFN)});this._navToHashFN=null}return _this};$.fn.navigation=function(settings){var navigation;
this.each(function(index,element){if(element.navigation){navigation=element.navigation;return false}});if(!navigation){navigation=new Navigation($(this),settings);this.each(function(index,element){element.navigation=navigation})}if(settings&&typeof settings==typeof{}){var returnFN=false;var returnValue;$.each(settings,function(name,val){if((name.indexOf("set")==0||name.indexOf("get")==0||name.indexOf("activate")==0)&&navigation[name]&&typeof navigation[name]==typeof function(){}){returnValue=navigation[name](val);
returnFN=true;return false}});if(returnFN)return returnValue}return this};$.fn.navigationDestroy=function(){var navigation;this.each(function(index,element){if(element.navigation){if(!navigation)navigation=element.navigation;delete element.navigation}});if(navigation){navigation.destroy();navigation=null}return this}})(jQuery);
(function($){var requestFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(callback){callback()};var slideID=0;window.Sliding=function(slides,options){var _this=this;this.options=$.extend({attrLockMouseWheel:"data-nav-lock-mousewheel",slideGroup:".slide-group",attrNavClass:"data-nav-class",attrNavBox:"data-nav-box",navGroupClass:"nav-group mobile-hide",useSnap:false,useReach:true,
onSlideMatch:null,onSlidesInit:null},options);this._mouseWheel=/firefox/i.test(navigator.userAgent)?"DOMMouseScroll":"mousewheel";this._eventListAutomaticNav=_this._mouseWheel+" "+"keydown";this.group=null;this.slides=[];this.lastLink=null;this.listeners={fullOnWindow:null,controlNavGroup:null,nav:null};slides.each(function(){var slide=$(this);var groupElem=slide.closest(_this.options.slideGroup);if(!groupElem.length)return;if(_this.group===null){_this.group=groupElem;_this.ul=$("\x3cul /\x3e")}if(groupElem.get(0)!==
_this.group.get(0))return;var id=slide.attr("id");if(!id){++slideID;id="slide-"+slideID}var li=$('\x3cli\x3e\x3ca href\x3d"#'+id+'"\x3e\x3cspan\x3e'+id+"\x3c/span\x3e\x3c/a\x3e\x3c/li\x3e");if(slide.attr(_this.options.attrNavClass))li.find("a").addClass(slide.attr(_this.options.attrNavClass));_this.ul.append(li);slide.attr("id",id);var slideBox=slide;if(slide.attr(_this.options.attrNavBox))slideBox=slide.closest(slide.attr(_this.options.attrNavBox));_this.slides.push(slideBox.get(0))});this.slides=
$(this.slides);this.nav=$("\x3cnav /\x3e");this.nav.addClass(_this.options.navGroupClass);this.nav.append(this.ul);this.group.append(this.nav);this.links=this.nav.find("a");this.navigation=new Navigation(this.links,$.extend({},_this.options,{onScrollComplete:function(match){_this.onSlideMatch(match)}}));this.activate()};Sliding.prototype.activate=function(){var _this=this;this.onSlidesInit(this.slides);this.navigation.activateNavToHash();this.navigation.activateDependentNodesByHash();if(!this.listeners.fullOnWindow){this.listeners.fullOnWindow=
function(){if(_this._isBoxVisibleInFullScreen(_this.group))_this.group.addClass("full-on-window");else _this.group.removeClass("full-on-window")};this.listeners.fullOnWindow();Scrolling.on("scroll resize",this.listeners.fullOnWindow)}if(!this.listeners.controlNavGroup){this.listeners.controlNavGroup=function(){var scrollTop=Scrolling.getScrollTop();if(_this.group.offset().top<=scrollTop&&_this.group.offset().top+_this.group.height()>=scrollTop+Scrolling.getViewerSize().h*.9)_this.nav.removeClass("outside");
else _this.nav.addClass("outside")};this.listeners.controlNavGroup();Scrolling.on("scroll resize",this.listeners.controlNavGroup)}if(!this.listeners.nav){this.listeners.nav=function(e){return _this._onNav(e)};if(this.options.useSnap)$(window).on(_this._eventListAutomaticNav,this.listeners.nav);if(this.options.useReach)Scrolling.on("scrollend",this.listeners.nav)}return _this};Sliding.prototype.onSlideMatch=function(match){this.lastLink=match.link;if(typeof this.options.onSlideMatch==typeof function(){})this.options.onSlideMatch(match)};
Sliding.prototype.onSlidesInit=function(slides){if(typeof this.options.onSlidesInit==typeof function(){})this.options.onSlidesInit(slides)};Sliding.prototype._isBoxVisibleInFullScreen=function(box){var scrollTop=Scrolling.getScrollTop();if(box.offset().top<=scrollTop&&box.offset().top+box.outerHeight()>scrollTop+Scrolling.getViewerSize().h)return true;return false};Sliding.prototype._isBoxVisibleInWindow=function(box){var scrollTop=Scrolling.getScrollTop();if(scrollTop>=box.offset().top&&scrollTop+
Scrolling.getViewerSize().h<=box.offset().top+box.height())return true;return false};Sliding.prototype._onNav=function(e){var _this=this;var match=this.navigation.getMatchDependentNodeByHash();var scrollTop=Scrolling.getScrollTop();var returnFN=function(){if(Scrolling.isAnimated()){e.stopPropagation();e.preventDefault();return false}else return true};if(this._isBoxVisibleInWindow(_this.group)){if(e.type=="scrollend"&&!e.bykey)return returnFN();if(match.box.attr(_this.options.attrLockMouseWheel)&&
match.box.attr(_this.options.attrLockMouseWheel).toLowerCase()=="true")return returnFN();var index=null;_this.links.each(function(i){if($(this).get(0).hash===match.link.get(0).hash){index=i;return false}});var direction=0;var e_type=e.bykey?"keydown":e.type;switch(e_type){case "scrollend":direction=e.direction;break;case _this._mouseWheel:direction=Math.max(-1,Math.min(1,e.originalEvent.wheelDelta||-e.originalEvent.detail));break;case "keydown":if(e.bykey==40)direction=-1;else if(e.bykey==38)direction=
1;else return returnFN();break}var optionsScroll={bySpeed:true,pixelsPerDuration:800};if(!Scrolling.isAnimated()&&direction!=0)if(direction>0){if(_this.links[index-1]){_this.navigation._scrollingByLink($(_this.links[index-1]),optionsScroll);_this.lastLink=$(_this.links[index-1])}}else if(_this.links[index+1]){_this.navigation._scrollingByLink($(_this.links[index+1]),optionsScroll);_this.lastLink=$(_this.links[index+1])}return returnFN()}else _this.lastLink=null};Sliding.prototype.clear=function(){var _this=
this;if(this.options.useSnap)$(window).off(_this._eventListAutomaticNav,this.listeners.nav);if(this.options.useReach)Scrolling.off("scrollend",this.listeners.nav);this.listeners.nav=null;Scrolling.off("scroll resize",this.listeners.fullOnWindow);this.listeners.fullOnWindow=null;Scrolling.off("scroll resize",this.listeners.controlNavGroup);this.listeners.controlNavGroup=null;this.navigation.destroy();return _this}})(jQuery);
(function($){function isTap(event,elem){if(event.type==="touchstart"){touchCoords.start=[event.originalEvent.targetTouches[0].pageX,event.originalEvent.targetTouches[0].pageY];touchCoords.offset=[0,0];return false}else if(event.type==="touchmove"&&touchCoords.start){touchCoords.move=[event.originalEvent.targetTouches[0].pageX,event.originalEvent.targetTouches[0].pageY];touchCoords.offset=[Math.abs(touchCoords.move[0]-touchCoords.start[0]),Math.abs(touchCoords.move[1]-touchCoords.start[1])];return false}else if(event.type===
"touchend"&&touchCoords.offset[0]<11&&touchCoords.offset[1]<11)return true}var PopUp=function(e,options){this.options=$.extend({onclose:null},options);this.e=e;this._init();this.timerClose=null};PopUp.all={};PopUp.prototype._init=function(){var _this=this;this.e.addClass("popup");this.overlay=$('\x3cdiv class\x3d"popup-overlay" /\x3e');this.e.prepend(this.overlay);var close=$('\x3ca href\x3d"javascript:void(0)" class\x3d"popup-close close"\x3e\x3cspan\x3eClose PopUp\x3c/span\x3e\x3c/a\x3e');this.e.prepend(close);
$(window).on("resize orientationchange",$.proxy(this.align,this));close.on("click",function(e){_this.down();e.stopPropagation()}).on("touchstart touchmove touchend",function(e){if(isTap(e,this))_this.down()});this.overlay.on("click",function(){_this.down()})};PopUp.prototype.down=function(){var _this=this;if(typeof this.options.onclose==typeof function(){})this.options.onclose();this.e.removeClass("active");this.e.addClass("close");clearTimeout(this.timerClose);this.timerClose=setTimeout(function(){_this.e.removeClass("close")},
400)};PopUp.prototype.align=function(){var _this=this;this.e.css({"margin-left":-(this.e.outerWidth()/2)+"px","margin-top":-(this.e.outerHeight()/2)+"px"})};PopUp.prototype.isActive=function(){return this.e.hasClass("active")};PopUp.prototype.up=function(){clearTimeout(this.timerClose);this.e.removeClass("close");var _this=this;$.each(PopUp.all,function(id,p){if(id!=_this.e.attr("id"))p.down()});this.align();this.e.addClass("active");this.align()};$.fn.popUp=function(settings){var popUps=[];this.each(function(){var e=
$(this);var id=e.attr("id");if(!id)return;if(!PopUp.all[id]){PopUp.all[id]=new PopUp(e,settings);e.data("popUp",PopUp.all[id])}popUps.push(PopUp.all[id]);PopUp.all[id].up()});if(typeof settings==typeof{}&&settings.getInstance)return popUps;popUps=null;return this};var touchCoords={}})(jQuery);
(function($){var rxCamelCase=/-([a-z0-9_])/g;var rxCamelCaseFn=function(str,letter){return letter.toUpperCase()};var CSSPrefix="";var dashedCSSPrefix="";var getComputedStyle=window.getComputedStyle;(function(){var rxPrefixes=/^(?:O|Moz|webkit|ms)|(?:-(?:o|moz|webkit|ms)-)/;if(!getComputedStyle)return;var style=getComputedStyle(document.body,null);for(var k in style){CSSPrefix=k.match(rxPrefixes)||+k==k&&style[k].match(rxPrefixes);if(CSSPrefix)break}if(!CSSPrefix){CSSPrefix=dashedCSSPrefix="";return}CSSPrefix=
CSSPrefix[0];if(CSSPrefix.slice(0,1)==="-"){dashedCSSPrefix=CSSPrefix;CSSPrefix={"-webkit-":"webkit","-moz-":"Moz","-ms-":"ms","-o-":"O"}[CSSPrefix]}else dashedCSSPrefix="-"+CSSPrefix.toLowerCase()+"-"})();window.Animator=function(settings){var _this=this;_this.options=$.extend({animAttrDelay:"data-animate-delay",animAttrDuration:"data-animate-duration",animAttrName:"data-animate-name",animClassNameInit:"animate-init",animClassNameDo:"animate-do",animClassNameEnd:"animate-end"},settings)};Animator.prototype._getAnimateElements=
function(elems){var _this=this;var templateSearch="["+_this.options.animAttrName+"]";return $(elems).filter(templateSearch).add($(elems).find(templateSearch))};Animator.prototype._setStyle=function(el,prop,val){var style=el.style;prop=prop.replace(rxCamelCase,rxCamelCaseFn).replace("-","");if(prop==="zIndex")if(isNaN(val))style[prop]=val;else style[prop]=""+(val|0);else if(prop==="float")style.styleFloat=style.cssFloat=val;else try{if(CSSPrefix)style[CSSPrefix+prop.slice(0,1).toUpperCase()+prop.slice(1)]=
val;style[prop]=val}catch(ignore){}};Animator.prototype._init=function(elem){var _this=this;if(elem.hasClass(_this.options.animClassNameInit))return;if(elem.attr(_this.options.animAttrDuration))_this._setStyle(elem.get(0),"animation-duration",elem.attr(_this.options.animAttrDuration));if(elem.attr(_this.options.animAttrDelay))_this._setStyle(elem.get(0),"animation-delay",elem.attr(_this.options.animAttrDelay));elem.addClass(_this.options.animClassNameInit)};Animator.prototype._clear=function(elem){var _this=
this;var animName=elem.attr(_this.options.animAttrName);if(animName)elem.removeClass(animName).removeClass(_this.options.animClassNameDo).removeClass(_this.options.animClassNameEnd)};Animator.prototype._destroy=function(elem){var _this=this;_this._clear(elem);elem.removeClass(_this.options.animClassNameInit)};Animator.prototype.init=function(elems){var _this=this;_this._getAnimateElements(elems).each(function(){_this._init($(this))})};Animator.prototype.start=function(elems){var _this=this;_this._getAnimateElements(elems).each(function(){_this._init($(this));
var animName=$(this).attr(_this.options.animAttrName);if(animName){_this._clear($(this));$(this).addClass(animName).addClass(_this.options.animClassNameDo);$(this).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){$(this).removeClass(animName).removeClass(_this.options.animClassNameDo).addClass(_this.options.animClassNameEnd)})}})};Animator.prototype.clear=function(elems){var _this=this;_this._getAnimateElements(elems).each(function(){_this._clear($(this))})};
Animator.prototype.destroy=function(elems){var _this=this;_this._getAnimateElements(elems).each(function(){_this._destroy($(this))})}})(jQuery);
var mejs=mejs||{};mejs.version="2.15.1";mejs.meIndex=0;
mejs.plugins={silverlight:[{version:[3,0],types:["video/mp4","video/m4v","video/mov","video/wmv","audio/wma","audio/m4a","audio/mp3","audio/wav","audio/mpeg"]}],flash:[{version:[9,0,124],types:["video/mp4","video/m4v","video/mov","video/flv","video/rtmp","video/x-flv","audio/flv","audio/x-flv","audio/mp3","audio/m4a","audio/mpeg","video/youtube","video/x-youtube","application/x-mpegURL"]}],youtube:[{version:null,types:["video/youtube","video/x-youtube","audio/youtube","audio/x-youtube"]}],vimeo:[{version:null,
types:["video/vimeo","video/x-vimeo"]}]};
mejs.Utility={encodeUrl:function(url){return encodeURIComponent(url)},escapeHTML:function(s){return s.toString().split("\x26").join("\x26amp;").split("\x3c").join("\x26lt;").split('"').join("\x26quot;")},absolutizeUrl:function(url){var el=document.createElement("div");el.innerHTML='\x3ca href\x3d"'+this.escapeHTML(url)+'"\x3ex\x3c/a\x3e';return el.firstChild.href},getScriptPath:function(scriptNames){var i=0;var j;var codePath="";var testname="";var slashPos;var filenamePos;var scriptUrl;var scriptPath;
var scriptFilename;var scripts=document.getElementsByTagName("script");var il=scripts.length;for(var jl=scriptNames.length;i<il;i++){scriptUrl=scripts[i].src;slashPos=scriptUrl.lastIndexOf("/");if(slashPos>-1){scriptFilename=scriptUrl.substring(slashPos+1);scriptPath=scriptUrl.substring(0,slashPos+1)}else{scriptFilename=scriptUrl;scriptPath=""}for(j=0;j<jl;j++){testname=scriptNames[j];filenamePos=scriptFilename.indexOf(testname);if(filenamePos>-1){codePath=scriptPath;break}}if(codePath!=="")break}return codePath},
secondsToTimeCode:function(time,forceHours,showFrameCount,fps){if(typeof showFrameCount=="undefined")showFrameCount=false;else if(typeof fps=="undefined")fps=25;var hours=Math.floor(time/3600)%24;var minutes=Math.floor(time/60)%60;var seconds=Math.floor(time%60);var frames=Math.floor((time%1*fps).toFixed(3));var result=(forceHours||hours>0?(hours<10?"0"+hours:hours)+":":"")+(minutes<10?"0"+minutes:minutes)+":"+(seconds<10?"0"+seconds:seconds)+(showFrameCount?":"+(frames<10?"0"+frames:frames):"");
return result},timeCodeToSeconds:function(hh_mm_ss_ff,forceHours,showFrameCount,fps){if(typeof showFrameCount=="undefined")showFrameCount=false;else if(typeof fps=="undefined")fps=25;var tc_array=hh_mm_ss_ff.split(":");var tc_hh=parseInt(tc_array[0],10);var tc_mm=parseInt(tc_array[1],10);var tc_ss=parseInt(tc_array[2],10);var tc_ff=0;var tc_in_seconds=0;if(showFrameCount)tc_ff=parseInt(tc_array[3])/fps;tc_in_seconds=tc_hh*3600+tc_mm*60+tc_ss+tc_ff;return tc_in_seconds},convertSMPTEtoSeconds:function(SMPTE){if(typeof SMPTE!=
"string")return false;SMPTE=SMPTE.replace(",",".");var secs=0;var decimalLen=SMPTE.indexOf(".")!=-1?SMPTE.split(".")[1].length:0;var multiplier=1;SMPTE=SMPTE.split(":").reverse();for(var i=0;i<SMPTE.length;i++){multiplier=1;if(i>0)multiplier=Math.pow(60,i);secs+=Number(SMPTE[i])*multiplier}return Number(secs.toFixed(decimalLen))},removeSwf:function(id){var obj=document.getElementById(id);if(obj&&/object|embed/i.test(obj.nodeName))if(mejs.MediaFeatures.isIE){obj.style.display="none";(function(){if(obj.readyState==
4)mejs.Utility.removeObjectInIE(id);else setTimeout(arguments.callee,10)})()}else obj.parentNode.removeChild(obj)},removeObjectInIE:function(id){var obj=document.getElementById(id);if(obj){for(var i in obj)if(typeof obj[i]=="function")obj[i]=null;obj.parentNode.removeChild(obj)}}};
mejs.PluginDetector={hasPluginVersion:function(plugin,v){var pv=this.plugins[plugin];v[1]=v[1]||0;v[2]=v[2]||0;return pv[0]>v[0]||pv[0]==v[0]&&pv[1]>v[1]||pv[0]==v[0]&&pv[1]==v[1]&&pv[2]>=v[2]?true:false},nav:window.navigator,ua:window.navigator.userAgent.toLowerCase(),plugins:[],addPlugin:function(p,pluginName,mimeType,activeX,axDetect){this.plugins[p]=this.detectPlugin(pluginName,mimeType,activeX,axDetect)},detectPlugin:function(pluginName,mimeType,activeX,axDetect){var version=[0,0,0];var description;
var i;var ax;if(typeof this.nav.plugins!="undefined"&&typeof this.nav.plugins[pluginName]=="object"){description=this.nav.plugins[pluginName].description;if(description&&!(typeof this.nav.mimeTypes!="undefined"&&this.nav.mimeTypes[mimeType]&&!this.nav.mimeTypes[mimeType].enabledPlugin)){version=description.replace(pluginName,"").replace(/^\s+/,"").replace(/\sr/gi,".").split(".");for(i=0;i<version.length;i++)version[i]=parseInt(version[i].match(/\d+/),10)}}else if(typeof window.ActiveXObject!="undefined")try{ax=
new ActiveXObject(activeX);if(ax)version=axDetect(ax)}catch(e){}return version}};mejs.PluginDetector.addPlugin("flash","Shockwave Flash","application/x-shockwave-flash","ShockwaveFlash.ShockwaveFlash",function(ax){var version=[];var d=ax.GetVariable("$version");if(d){d=d.split(" ")[1].split(",");version=[parseInt(d[0],10),parseInt(d[1],10),parseInt(d[2],10)]}return version});
mejs.PluginDetector.addPlugin("silverlight","Silverlight Plug-In","application/x-silverlight-2","AgControl.AgControl",function(ax$$0){var v$$0=[0,0,0,0];var loopMatch=function(ax,v,i,n){for(;ax.isVersionSupported(v[0]+"."+v[1]+"."+v[2]+"."+v[3]);)v[i]+=n;v[i]-=n};loopMatch(ax$$0,v$$0,0,1);loopMatch(ax$$0,v$$0,1,1);loopMatch(ax$$0,v$$0,2,1E4);loopMatch(ax$$0,v$$0,2,1E3);loopMatch(ax$$0,v$$0,2,100);loopMatch(ax$$0,v$$0,2,10);loopMatch(ax$$0,v$$0,2,1);loopMatch(ax$$0,v$$0,3,1);return v$$0});
mejs.MediaFeatures={init:function(){var t=this;var d=document;var nav=mejs.PluginDetector.nav;var ua=mejs.PluginDetector.ua.toLowerCase();var i;var v;var html5Elements=["source","track","audio","video"];t.isiPad=ua.match(/ipad/i)!==null;t.isiPhone=ua.match(/iphone/i)!==null;t.isiOS=t.isiPhone||t.isiPad;t.isAndroid=ua.match(/android/i)!==null;t.isBustedAndroid=ua.match(/android 2\.[12]/)!==null;t.isBustedNativeHTTPS=location.protocol==="https:"&&(ua.match(/android [12]\./)!==null||ua.match(/macintosh.* version.* safari/)!==
null);t.isIE=nav.appName.toLowerCase().indexOf("microsoft")!=-1||nav.appName.toLowerCase().match(/trident/gi)!==null;t.isChrome=ua.match(/chrome/gi)!==null;t.isChromium=ua.match(/chromium/gi)!==null;t.isFirefox=ua.match(/firefox/gi)!==null;t.isWebkit=ua.match(/webkit/gi)!==null;t.isGecko=ua.match(/gecko/gi)!==null&&!t.isWebkit&&!t.isIE;t.isOpera=ua.match(/opera/gi)!==null;t.hasTouch="ontouchstart"in window;t.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect;
for(i=0;i<html5Elements.length;i++)v=document.createElement(html5Elements[i]);t.supportsMediaTag=typeof v.canPlayType!=="undefined"||t.isBustedAndroid;try{v.canPlayType("video/mp4")}catch(e){t.supportsMediaTag=false}t.hasSemiNativeFullScreen=typeof v.webkitEnterFullscreen!=="undefined";t.hasNativeFullscreen=typeof v.requestFullscreen!=="undefined";t.hasWebkitNativeFullScreen=typeof v.webkitRequestFullScreen!=="undefined";t.hasMozNativeFullScreen=typeof v.mozRequestFullScreen!=="undefined";t.hasMsNativeFullScreen=
typeof v.msRequestFullscreen!=="undefined";t.hasTrueNativeFullScreen=t.hasWebkitNativeFullScreen||t.hasMozNativeFullScreen||t.hasMsNativeFullScreen;t.nativeFullScreenEnabled=t.hasTrueNativeFullScreen;if(t.hasMozNativeFullScreen)t.nativeFullScreenEnabled=document.mozFullScreenEnabled;else if(t.hasMsNativeFullScreen)t.nativeFullScreenEnabled=document.msFullscreenEnabled;if(t.isChrome)t.hasSemiNativeFullScreen=false;if(t.hasTrueNativeFullScreen){t.fullScreenEventName="";if(t.hasWebkitNativeFullScreen)t.fullScreenEventName=
"webkitfullscreenchange";else if(t.hasMozNativeFullScreen)t.fullScreenEventName="mozfullscreenchange";else if(t.hasMsNativeFullScreen)t.fullScreenEventName="MSFullscreenChange";t.isFullScreen=function(){if(t.hasMozNativeFullScreen)return d.mozFullScreen;else if(t.hasWebkitNativeFullScreen)return d.webkitIsFullScreen;else if(t.hasMsNativeFullScreen)return d.msFullscreenElement!==null};t.requestFullScreen=function(el){if(t.hasWebkitNativeFullScreen)el.webkitRequestFullScreen();else if(t.hasMozNativeFullScreen)el.mozRequestFullScreen();
else if(t.hasMsNativeFullScreen)el.msRequestFullscreen()};t.cancelFullScreen=function(){if(t.hasWebkitNativeFullScreen)document.webkitCancelFullScreen();else if(t.hasMozNativeFullScreen)document.mozCancelFullScreen();else if(t.hasMsNativeFullScreen)document.msExitFullscreen()}}if(t.hasSemiNativeFullScreen&&ua.match(/mac os x 10_5/i)){t.hasNativeFullScreen=false;t.hasSemiNativeFullScreen=false}}};mejs.MediaFeatures.init();
mejs.HtmlMediaElement={pluginType:"native",isFullScreen:false,setCurrentTime:function(time){this.currentTime=time},setMuted:function(muted){this.muted=muted},setVolume:function(volume){this.volume=volume},stop:function(){this.pause()},setSrc:function(url){for(var existingSources=this.getElementsByTagName("source");existingSources.length>0;)this.removeChild(existingSources[0]);if(typeof url=="string")this.src=url;else{var i;var media;for(i=0;i<url.length;i++){media=url[i];if(this.canPlayType(media.type)){this.src=
media.src;break}}}},setVideoSize:function(width,height){this.width=width;this.height=height}};mejs.PluginMediaElement=function(pluginid,pluginType,mediaUrl){this.id=pluginid;this.pluginType=pluginType;this.src=mediaUrl;this.events={};this.attributes={}};
mejs.PluginMediaElement.prototype={pluginElement:null,pluginType:"",isFullScreen:false,playbackRate:-1,defaultPlaybackRate:-1,seekable:[],played:[],paused:true,ended:false,seeking:false,duration:0,error:null,tagName:"",muted:false,volume:1,currentTime:0,play:function(){if(this.pluginApi!=null){if(this.pluginType=="youtube"||this.pluginType=="vimeo")this.pluginApi.playVideo();else this.pluginApi.playMedia();this.paused=false}},load:function(){if(this.pluginApi!=null){if(this.pluginType=="youtube"||
this.pluginType=="vimeo");else this.pluginApi.loadMedia();this.paused=false}},pause:function(){if(this.pluginApi!=null){if(this.pluginType=="youtube"||this.pluginType=="vimeo")this.pluginApi.pauseVideo();else this.pluginApi.pauseMedia();this.paused=true}},stop:function(){if(this.pluginApi!=null){if(this.pluginType=="youtube"||this.pluginType=="vimeo")this.pluginApi.stopVideo();else this.pluginApi.stopMedia();this.paused=true}},canPlayType:function(type){var i;var j;var pluginInfo;var pluginVersions=
mejs.plugins[this.pluginType];for(i=0;i<pluginVersions.length;i++){pluginInfo=pluginVersions[i];if(mejs.PluginDetector.hasPluginVersion(this.pluginType,pluginInfo.version))for(j=0;j<pluginInfo.types.length;j++)if(type==pluginInfo.types[j])return"probably"}return""},positionFullscreenButton:function(x,y,visibleAndAbove){if(this.pluginApi!=null&&this.pluginApi.positionFullscreenButton)this.pluginApi.positionFullscreenButton(Math.floor(x),Math.floor(y),visibleAndAbove)},hideFullscreenButton:function(){if(this.pluginApi!=
null&&this.pluginApi.hideFullscreenButton)this.pluginApi.hideFullscreenButton()},setSrc:function(url){if(typeof url=="string"){this.pluginApi.setSrc(mejs.Utility.absolutizeUrl(url));this.src=mejs.Utility.absolutizeUrl(url)}else{var i;var media;for(i=0;i<url.length;i++){media=url[i];if(this.canPlayType(media.type)){this.pluginApi.setSrc(mejs.Utility.absolutizeUrl(media.src));this.src=mejs.Utility.absolutizeUrl(url);break}}}},setCurrentTime:function(time){if(this.pluginApi!=null){if(this.pluginType==
"youtube"||this.pluginType=="vimeo")this.pluginApi.seekTo(time);else this.pluginApi.setCurrentTime(time);this.currentTime=time}},setVolume:function(volume){if(this.pluginApi!=null){if(this.pluginType=="youtube")this.pluginApi.setVolume(volume*100);else this.pluginApi.setVolume(volume);this.volume=volume}},setMuted:function(muted){if(this.pluginApi!=null){if(this.pluginType=="youtube"){if(muted)this.pluginApi.mute();else this.pluginApi.unMute();this.muted=muted;this.dispatchEvent("volumechange")}else this.pluginApi.setMuted(muted);
this.muted=muted}},setVideoSize:function(width,height){if(this.pluginElement&&this.pluginElement.style){this.pluginElement.style.width=width+"px";this.pluginElement.style.height=height+"px"}if(this.pluginApi!=null&&this.pluginApi.setVideoSize)this.pluginApi.setVideoSize(width,height)},setFullscreen:function(fullscreen){if(this.pluginApi!=null&&this.pluginApi.setFullscreen)this.pluginApi.setFullscreen(fullscreen)},enterFullScreen:function(){if(this.pluginApi!=null&&this.pluginApi.setFullscreen)this.setFullscreen(true)},
exitFullScreen:function(){if(this.pluginApi!=null&&this.pluginApi.setFullscreen)this.setFullscreen(false)},addEventListener:function(eventName,callback,bubble){this.events[eventName]=this.events[eventName]||[];this.events[eventName].push(callback)},removeEventListener:function(eventName,callback){if(!eventName){this.events={};return true}var callbacks=this.events[eventName];if(!callbacks)return true;if(!callback){this.events[eventName]=[];return true}for(var i=0;i<callbacks.length;i++)if(callbacks[i]===
callback){this.events[eventName].splice(i,1);return true}return false},dispatchEvent:function(eventName){var i;var args;var callbacks=this.events[eventName];if(callbacks){args=Array.prototype.slice.call(arguments,1);for(i=0;i<callbacks.length;i++)callbacks[i].apply(null,args)}},hasAttribute:function(name){return name in this.attributes},removeAttribute:function(name){delete this.attributes[name]},getAttribute:function(name){if(this.hasAttribute(name))return this.attributes[name];return""},setAttribute:function(name,
value){this.attributes[name]=value},remove:function(){mejs.Utility.removeSwf(this.pluginElement.id);mejs.MediaPluginBridge.unregisterPluginElement(this.pluginElement.id)}};
mejs.MediaPluginBridge={pluginMediaElements:{},htmlMediaElements:{},registerPluginElement:function(id,pluginMediaElement,htmlMediaElement){this.pluginMediaElements[id]=pluginMediaElement;this.htmlMediaElements[id]=htmlMediaElement},unregisterPluginElement:function(id){delete this.pluginMediaElements[id];delete this.htmlMediaElements[id]},initPlugin:function(id){var pluginMediaElement=this.pluginMediaElements[id];var htmlMediaElement=this.htmlMediaElements[id];if(pluginMediaElement){switch(pluginMediaElement.pluginType){case "flash":pluginMediaElement.pluginElement=
pluginMediaElement.pluginApi=document.getElementById(id);break;case "silverlight":pluginMediaElement.pluginElement=document.getElementById(pluginMediaElement.id);pluginMediaElement.pluginApi=pluginMediaElement.pluginElement.Content.MediaElementJS;break}if(pluginMediaElement.pluginApi!=null&&pluginMediaElement.success)pluginMediaElement.success(pluginMediaElement,htmlMediaElement)}},fireEvent:function(id,eventName,values){var e;var i;var bufferedTime;var pluginMediaElement=this.pluginMediaElements[id];
if(!pluginMediaElement)return;e={type:eventName,target:pluginMediaElement};for(i in values){pluginMediaElement[i]=values[i];e[i]=values[i]}bufferedTime=values.bufferedTime||0;e.target.buffered=e.buffered={start:function(index){return 0},end:function(index){return bufferedTime},length:1};pluginMediaElement.dispatchEvent(e.type,e)}};
mejs.MediaElementDefaults={mode:"auto",plugins:["flash","silverlight","youtube","vimeo"],enablePluginDebug:false,httpsBasicAuthSite:false,type:"",pluginPath:mejs.Utility.getScriptPath(["mediaelement.js","mediaelement.min.js","mediaelement-and-player.js","mediaelement-and-player.min.js"]),flashName:"flashmediaelement.swf",flashStreamer:"",enablePluginSmoothing:false,enablePseudoStreaming:false,pseudoStreamingStartQueryParam:"start",silverlightName:"silverlightmediaelement.xap",defaultVideoWidth:480,
defaultVideoHeight:270,pluginWidth:-1,pluginHeight:-1,pluginVars:[],timerRate:250,startVolume:.8,success:function(){},error:function(){}};mejs.MediaElement=function(el,o){return mejs.HtmlMediaElementShim.create(el,o)};
mejs.HtmlMediaElementShim={create:function(el,o){var options=mejs.MediaElementDefaults;var htmlMediaElement=typeof el=="string"?document.getElementById(el):el;var tagName=htmlMediaElement.tagName.toLowerCase();var isMediaTag=tagName==="audio"||tagName==="video";var src=isMediaTag?htmlMediaElement.getAttribute("src"):htmlMediaElement.getAttribute("href");var poster=htmlMediaElement.getAttribute("poster");var autoplay=htmlMediaElement.getAttribute("autoplay");var preload=htmlMediaElement.getAttribute("preload");
var controls=htmlMediaElement.getAttribute("controls");var playback;for(var prop in o)options[prop]=o[prop];src=typeof src=="undefined"||src===null||src==""?null:src;poster=typeof poster=="undefined"||poster===null?"":poster;preload=typeof preload=="undefined"||preload===null||preload==="false"?"none":preload;autoplay=!(typeof autoplay=="undefined"||autoplay===null||autoplay==="false");controls=!(typeof controls=="undefined"||controls===null||controls==="false");playback=this.determinePlayback(htmlMediaElement,
options,mejs.MediaFeatures.supportsMediaTag,isMediaTag,src);playback.url=playback.url!==null?mejs.Utility.absolutizeUrl(playback.url):"";if(playback.method=="native"){if(mejs.MediaFeatures.isBustedAndroid){htmlMediaElement.src=playback.url;htmlMediaElement.addEventListener("click",function(){htmlMediaElement.play()},false)}return this.updateNative(playback,options,autoplay,preload)}else if(playback.method!=="")return this.createPlugin(playback,options,poster,autoplay,preload,controls);else{this.createErrorMessage(playback,
options,poster);return this}},determinePlayback:function(htmlMediaElement,options,supportsMediaTag,isMediaTag,src){var mediaFiles=[];var i;var j;var k;var l;var n;var type$$0;var result={method:"",url:"",htmlMediaElement:htmlMediaElement,isVideo:htmlMediaElement.tagName.toLowerCase()!="audio"};var pluginName;var pluginVersions;var pluginInfo;var dummy;var media;if(typeof options.type!="undefined"&&options.type!=="")if(typeof options.type=="string")mediaFiles.push({type:options.type,url:src});else for(i=
0;i<options.type.length;i++)mediaFiles.push({type:options.type[i],url:src});else if(src!==null){type$$0=this.formatType(src,htmlMediaElement.getAttribute("type"));mediaFiles.push({type:type$$0,url:src})}else for(i=0;i<htmlMediaElement.childNodes.length;i++){n=htmlMediaElement.childNodes[i];if(n.nodeType==1&&n.tagName.toLowerCase()=="source"){src=n.getAttribute("src");type$$0=this.formatType(src,n.getAttribute("type"));media=n.getAttribute("media");if(!media||!window.matchMedia||window.matchMedia&&
window.matchMedia(media).matches)mediaFiles.push({type:type$$0,url:src})}}if(!isMediaTag&&mediaFiles.length>0&&mediaFiles[0].url!==null&&this.getTypeFromFile(mediaFiles[0].url).indexOf("audio")>-1)result.isVideo=false;if(mejs.MediaFeatures.isBustedAndroid)htmlMediaElement.canPlayType=function(type){return type.match(/video\/(mp4|m4v)/gi)!==null?"maybe":""};if(mejs.MediaFeatures.isChromium)htmlMediaElement.canPlayType=function(type){return type.match(/video\/(webm|ogv|ogg)/gi)!==null?"maybe":""};if(supportsMediaTag&&
(options.mode==="auto"||options.mode==="auto_plugin"||options.mode==="native")&&!(mejs.MediaFeatures.isBustedNativeHTTPS&&options.httpsBasicAuthSite===true)){if(!isMediaTag){dummy=document.createElement(result.isVideo?"video":"audio");htmlMediaElement.parentNode.insertBefore(dummy,htmlMediaElement);htmlMediaElement.style.display="none";result.htmlMediaElement=htmlMediaElement=dummy}for(i=0;i<mediaFiles.length;i++)if(mediaFiles[i].type=="video/m3u8"||htmlMediaElement.canPlayType(mediaFiles[i].type).replace(/no/,
"")!==""||htmlMediaElement.canPlayType(mediaFiles[i].type.replace(/mp3/,"mpeg")).replace(/no/,"")!==""||htmlMediaElement.canPlayType(mediaFiles[i].type.replace(/m4a/,"mp4")).replace(/no/,"")!==""){result.method="native";result.url=mediaFiles[i].url;break}if(result.method==="native"){if(result.url!==null)htmlMediaElement.src=result.url;if(options.mode!=="auto_plugin")return result}}if(options.mode==="auto"||options.mode==="auto_plugin"||options.mode==="shim")for(i=0;i<mediaFiles.length;i++){type$$0=
mediaFiles[i].type;for(j=0;j<options.plugins.length;j++){pluginName=options.plugins[j];pluginVersions=mejs.plugins[pluginName];for(k=0;k<pluginVersions.length;k++){pluginInfo=pluginVersions[k];if(pluginInfo.version==null||mejs.PluginDetector.hasPluginVersion(pluginName,pluginInfo.version))for(l=0;l<pluginInfo.types.length;l++)if(type$$0==pluginInfo.types[l]){result.method=pluginName;result.url=mediaFiles[i].url;return result}}}}if(options.mode==="auto_plugin"&&result.method==="native")return result;
if(result.method===""&&mediaFiles.length>0)result.url=mediaFiles[0].url;return result},formatType:function(url,type){var ext;if(url&&!type)return this.getTypeFromFile(url);else if(type&&~type.indexOf(";"))return type.substr(0,type.indexOf(";"));else return type},getTypeFromFile:function(url){url=url.split("?")[0];var ext=url.substring(url.lastIndexOf(".")+1).toLowerCase();return(/(mp4|m4v|ogg|ogv|m3u8|webm|webmv|flv|wmv|mpeg|mov)/gi.test(ext)?"video":"audio")+"/"+this.getTypeFromExtension(ext)},getTypeFromExtension:function(ext){switch(ext){case "mp4":case "m4v":case "m4a":return"mp4";
case "webm":case "webma":case "webmv":return"webm";case "ogg":case "oga":case "ogv":return"ogg";default:return ext}},createErrorMessage:function(playback,options,poster){var htmlMediaElement=playback.htmlMediaElement;var errorContainer=document.createElement("div");errorContainer.className="me-cannotplay";try{errorContainer.style.width=htmlMediaElement.width+"px";errorContainer.style.height=htmlMediaElement.height+"px"}catch(e){}if(options.customError)errorContainer.innerHTML=options.customError;
else errorContainer.innerHTML=poster!==""?'\x3ca href\x3d"'+playback.url+'"\x3e\x3cimg src\x3d"'+poster+'" width\x3d"100%" height\x3d"100%" /\x3e\x3c/a\x3e':'\x3ca href\x3d"'+playback.url+'"\x3e\x3cspan\x3e'+mejs.i18n.t("Download File")+"\x3c/span\x3e\x3c/a\x3e";htmlMediaElement.parentNode.insertBefore(errorContainer,htmlMediaElement);htmlMediaElement.style.display="none";options.error(htmlMediaElement)},createPlugin:function(playback,options,poster,autoplay,preload,controls){var htmlMediaElement=
playback.htmlMediaElement;var width=1;var height=1;var pluginid="me_"+playback.method+"_"+mejs.meIndex++;var pluginMediaElement$$0=new mejs.PluginMediaElement(pluginid,playback.method,playback.url);var container=document.createElement("div");var specialIEContainer;var node;var initVars;pluginMediaElement$$0.tagName=htmlMediaElement.tagName;for(var i=0;i<htmlMediaElement.attributes.length;i++){var attribute=htmlMediaElement.attributes[i];if(attribute.specified==true)pluginMediaElement$$0.setAttribute(attribute.name,
attribute.value)}for(node=htmlMediaElement.parentNode;node!==null&&node.tagName.toLowerCase()!=="body"&&node.parentNode!=null;){if(node.parentNode.tagName.toLowerCase()==="p"){node.parentNode.parentNode.insertBefore(node,node.parentNode);break}node=node.parentNode}if(playback.isVideo){width=options.pluginWidth>0?options.pluginWidth:options.videoWidth>0?options.videoWidth:htmlMediaElement.getAttribute("width")!==null?htmlMediaElement.getAttribute("width"):options.defaultVideoWidth;height=options.pluginHeight>
0?options.pluginHeight:options.videoHeight>0?options.videoHeight:htmlMediaElement.getAttribute("height")!==null?htmlMediaElement.getAttribute("height"):options.defaultVideoHeight;width=mejs.Utility.encodeUrl(width);height=mejs.Utility.encodeUrl(height)}else if(options.enablePluginDebug){width=320;height=240}pluginMediaElement$$0.success=options.success;mejs.MediaPluginBridge.registerPluginElement(pluginid,pluginMediaElement$$0,htmlMediaElement);container.className="me-plugin";container.id=pluginid+
"_container";if(playback.isVideo)htmlMediaElement.parentNode.insertBefore(container,htmlMediaElement);else document.body.insertBefore(container,document.body.childNodes[0]);initVars=["id\x3d"+pluginid,"isvideo\x3d"+(playback.isVideo?"true":"false"),"autoplay\x3d"+(autoplay?"true":"false"),"preload\x3d"+preload,"width\x3d"+width,"startvolume\x3d"+options.startVolume,"timerrate\x3d"+options.timerRate,"flashstreamer\x3d"+options.flashStreamer,"height\x3d"+height,"pseudostreamstart\x3d"+options.pseudoStreamingStartQueryParam];
if(playback.url!==null)if(playback.method=="flash")initVars.push("file\x3d"+mejs.Utility.encodeUrl(playback.url));else initVars.push("file\x3d"+playback.url);if(options.enablePluginDebug)initVars.push("debug\x3dtrue");if(options.enablePluginSmoothing)initVars.push("smoothing\x3dtrue");if(options.enablePseudoStreaming)initVars.push("pseudostreaming\x3dtrue");if(controls)initVars.push("controls\x3dtrue");if(options.pluginVars)initVars=initVars.concat(options.pluginVars);switch(playback.method){case "silverlight":container.innerHTML=
'\x3cobject data\x3d"data:application/x-silverlight-2," type\x3d"application/x-silverlight-2" id\x3d"'+pluginid+'" name\x3d"'+pluginid+'" width\x3d"'+width+'" height\x3d"'+height+'" class\x3d"mejs-shim"\x3e'+'\x3cparam name\x3d"initParams" value\x3d"'+initVars.join(",")+'" /\x3e'+'\x3cparam name\x3d"windowless" value\x3d"true" /\x3e'+'\x3cparam name\x3d"background" value\x3d"black" /\x3e'+'\x3cparam name\x3d"minRuntimeVersion" value\x3d"3.0.0.0" /\x3e'+'\x3cparam name\x3d"autoUpgrade" value\x3d"true" /\x3e'+
'\x3cparam name\x3d"source" value\x3d"'+options.pluginPath+options.silverlightName+'" /\x3e'+"\x3c/object\x3e";break;case "flash":if(mejs.MediaFeatures.isIE){specialIEContainer=document.createElement("div");container.appendChild(specialIEContainer);specialIEContainer.outerHTML='\x3cobject classid\x3d"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase\x3d"//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" '+'id\x3d"'+pluginid+'" width\x3d"'+width+'" height\x3d"'+height+'" class\x3d"mejs-shim"\x3e'+
'\x3cparam name\x3d"movie" value\x3d"'+options.pluginPath+options.flashName+"?x\x3d"+new Date+'" /\x3e'+'\x3cparam name\x3d"flashvars" value\x3d"'+initVars.join("\x26amp;")+'" /\x3e'+'\x3cparam name\x3d"quality" value\x3d"high" /\x3e'+'\x3cparam name\x3d"bgcolor" value\x3d"#000000" /\x3e'+'\x3cparam name\x3d"wmode" value\x3d"transparent" /\x3e'+'\x3cparam name\x3d"allowScriptAccess" value\x3d"always" /\x3e'+'\x3cparam name\x3d"allowFullScreen" value\x3d"true" /\x3e'+'\x3cparam name\x3d"scale" value\x3d"default" /\x3e'+
"\x3c/object\x3e"}else container.innerHTML='\x3cembed id\x3d"'+pluginid+'" name\x3d"'+pluginid+'" '+'play\x3d"true" '+'loop\x3d"false" '+'quality\x3d"high" '+'bgcolor\x3d"#000000" '+'wmode\x3d"transparent" '+'allowScriptAccess\x3d"always" '+'allowFullScreen\x3d"true" '+'type\x3d"application/x-shockwave-flash" pluginspage\x3d"//www.macromedia.com/go/getflashplayer" '+'src\x3d"'+options.pluginPath+options.flashName+'" '+'flashvars\x3d"'+initVars.join("\x26")+'" '+'width\x3d"'+width+'" '+'height\x3d"'+
height+'" '+'scale\x3d"default"'+'class\x3d"mejs-shim"\x3e\x3c/embed\x3e';break;case "youtube":var videoId;if(playback.url.lastIndexOf("youtu.be")!=-1){videoId=playback.url.substr(playback.url.lastIndexOf("/")+1);if(videoId.indexOf("?")!=-1)videoId=videoId.substr(0,videoId.indexOf("?"))}else videoId=playback.url.substr(playback.url.lastIndexOf("\x3d")+1);youtubeSettings={container:container,containerId:container.id,pluginMediaElement:pluginMediaElement$$0,pluginId:pluginid,videoId:videoId,height:height,
width:width};if(mejs.PluginDetector.hasPluginVersion("flash",[10,0,0]))mejs.YouTubeApi.createFlash(youtubeSettings);else mejs.YouTubeApi.enqueueIframe(youtubeSettings);break;case "vimeo":var player_id=pluginid+"_player";pluginMediaElement$$0.vimeoid=playback.url.substr(playback.url.lastIndexOf("/")+1);container.innerHTML='\x3ciframe src\x3d"//player.vimeo.com/video/'+pluginMediaElement$$0.vimeoid+"?api\x3d1\x26portrait\x3d0\x26byline\x3d0\x26title\x3d0\x26player_id\x3d"+player_id+'" width\x3d"'+width+
'" height\x3d"'+height+'" frameborder\x3d"0" class\x3d"mejs-shim" id\x3d"'+player_id+'"\x3e\x3c/iframe\x3e';if(typeof $f=="function"){var player=$f(container.childNodes[0]);player.addEvent("ready",function(){function createEvent(player,pluginMediaElement,eventName,e){var obj={type:eventName,target:pluginMediaElement};if(eventName=="timeupdate"){pluginMediaElement.currentTime=obj.currentTime=e.seconds;pluginMediaElement.duration=obj.duration=e.duration}pluginMediaElement.dispatchEvent(obj.type,obj)}
$.extend(player,{playVideo:function(){player.api("play")},stopVideo:function(){player.api("unload")},pauseVideo:function(){player.api("pause")},seekTo:function(seconds){player.api("seekTo",seconds)},setVolume:function(volume){player.api("setVolume",volume)},setMuted:function(muted){if(muted){player.lastVolume=player.api("getVolume");player.api("setVolume",0)}else{player.api("setVolume",player.lastVolume);delete player.lastVolume}}});player.addEvent("play",function(){createEvent(player,pluginMediaElement$$0,
"play");createEvent(player,pluginMediaElement$$0,"playing")});player.addEvent("pause",function(){createEvent(player,pluginMediaElement$$0,"pause")});player.addEvent("finish",function(){createEvent(player,pluginMediaElement$$0,"ended")});player.addEvent("playProgress",function(e){createEvent(player,pluginMediaElement$$0,"timeupdate",e)});pluginMediaElement$$0.pluginElement=container;pluginMediaElement$$0.pluginApi=player;mejs.MediaPluginBridge.initPlugin(pluginid)})}else console.warn("You need to include froogaloop for vimeo to work");
break}htmlMediaElement.style.display="none";htmlMediaElement.removeAttribute("autoplay");return pluginMediaElement$$0},updateNative:function(playback,options,autoplay,preload){var htmlMediaElement=playback.htmlMediaElement;for(var m in mejs.HtmlMediaElement)htmlMediaElement[m]=mejs.HtmlMediaElement[m];options.success(htmlMediaElement,htmlMediaElement);return htmlMediaElement}};
mejs.YouTubeApi={isIframeStarted:false,isIframeLoaded:false,loadIframeApi:function(){if(!this.isIframeStarted){var tag=document.createElement("script");tag.src="//www.youtube.com/player_api";var firstScriptTag=document.getElementsByTagName("script")[0];firstScriptTag.parentNode.insertBefore(tag,firstScriptTag);this.isIframeStarted=true}},iframeQueue:[],enqueueIframe:function(yt){if(this.isLoaded)this.createIframe(yt);else{this.loadIframeApi();this.iframeQueue.push(yt)}},createIframe:function(settings){var pluginMediaElement=
settings.pluginMediaElement;var player=new YT.Player(settings.containerId,{height:settings.height,width:settings.width,videoId:settings.videoId,playerVars:{controls:0},events:{"onReady":function(){settings.pluginMediaElement.pluginApi=player;mejs.MediaPluginBridge.initPlugin(settings.pluginId);setInterval(function(){mejs.YouTubeApi.createEvent(player,pluginMediaElement,"timeupdate")},250)},"onStateChange":function(e){mejs.YouTubeApi.handleStateChange(e.data,player,pluginMediaElement)}}})},createEvent:function(player,
pluginMediaElement,eventName){var obj={type:eventName,target:pluginMediaElement};if(player&&player.getDuration){pluginMediaElement.currentTime=obj.currentTime=player.getCurrentTime();pluginMediaElement.duration=obj.duration=player.getDuration();obj.paused=pluginMediaElement.paused;obj.ended=pluginMediaElement.ended;obj.muted=player.isMuted();obj.volume=player.getVolume()/100;obj.bytesTotal=player.getVideoBytesTotal();obj.bufferedBytes=player.getVideoBytesLoaded();var bufferedTime=obj.bufferedBytes/
obj.bytesTotal*obj.duration;obj.target.buffered=obj.buffered={start:function(index){return 0},end:function(index){return bufferedTime},length:1}}pluginMediaElement.dispatchEvent(obj.type,obj)},iFrameReady:function(){this.isLoaded=true;for(this.isIframeLoaded=true;this.iframeQueue.length>0;){var settings=this.iframeQueue.pop();this.createIframe(settings)}},flashPlayers:{},createFlash:function(settings){this.flashPlayers[settings.pluginId]=settings;var specialIEContainer;var youtubeUrl="//www.youtube.com/apiplayer?enablejsapi\x3d1\x26amp;playerapiid\x3d"+
settings.pluginId+"\x26amp;version\x3d3\x26amp;autoplay\x3d0\x26amp;controls\x3d0\x26amp;modestbranding\x3d1\x26loop\x3d0";if(mejs.MediaFeatures.isIE){specialIEContainer=document.createElement("div");settings.container.appendChild(specialIEContainer);specialIEContainer.outerHTML='\x3cobject classid\x3d"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase\x3d"//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" '+'id\x3d"'+settings.pluginId+'" width\x3d"'+settings.width+'" height\x3d"'+
settings.height+'" class\x3d"mejs-shim"\x3e'+'\x3cparam name\x3d"movie" value\x3d"'+youtubeUrl+'" /\x3e'+'\x3cparam name\x3d"wmode" value\x3d"transparent" /\x3e'+'\x3cparam name\x3d"allowScriptAccess" value\x3d"always" /\x3e'+'\x3cparam name\x3d"allowFullScreen" value\x3d"true" /\x3e'+"\x3c/object\x3e"}else settings.container.innerHTML='\x3cobject type\x3d"application/x-shockwave-flash" id\x3d"'+settings.pluginId+'" data\x3d"'+youtubeUrl+'" '+'width\x3d"'+settings.width+'" height\x3d"'+settings.height+
'" style\x3d"visibility: visible; " class\x3d"mejs-shim"\x3e'+'\x3cparam name\x3d"allowScriptAccess" value\x3d"always"\x3e'+'\x3cparam name\x3d"wmode" value\x3d"transparent"\x3e'+"\x3c/object\x3e"},flashReady:function(id){var settings=this.flashPlayers[id];var player=document.getElementById(id);var pluginMediaElement=settings.pluginMediaElement;pluginMediaElement.pluginApi=pluginMediaElement.pluginElement=player;mejs.MediaPluginBridge.initPlugin(id);player.cueVideoById(settings.videoId);var callbackName=
settings.containerId+"_callback";window[callbackName]=function(e){mejs.YouTubeApi.handleStateChange(e,player,pluginMediaElement)};player.addEventListener("onStateChange",callbackName);setInterval(function(){mejs.YouTubeApi.createEvent(player,pluginMediaElement,"timeupdate")},250);mejs.YouTubeApi.createEvent(player,pluginMediaElement,"canplay")},handleStateChange:function(youTubeState,player,pluginMediaElement){switch(youTubeState){case -1:pluginMediaElement.paused=true;pluginMediaElement.ended=true;
mejs.YouTubeApi.createEvent(player,pluginMediaElement,"loadedmetadata");break;case 0:pluginMediaElement.paused=false;pluginMediaElement.ended=true;mejs.YouTubeApi.createEvent(player,pluginMediaElement,"ended");break;case 1:pluginMediaElement.paused=false;pluginMediaElement.ended=false;mejs.YouTubeApi.createEvent(player,pluginMediaElement,"play");mejs.YouTubeApi.createEvent(player,pluginMediaElement,"playing");break;case 2:pluginMediaElement.paused=true;pluginMediaElement.ended=false;mejs.YouTubeApi.createEvent(player,
pluginMediaElement,"pause");break;case 3:mejs.YouTubeApi.createEvent(player,pluginMediaElement,"progress");break;case 5:break}}};function onYouTubePlayerAPIReady(){mejs.YouTubeApi.iFrameReady()}function onYouTubePlayerReady(id){mejs.YouTubeApi.flashReady(id)}window.mejs=mejs;window.MediaElement=mejs.MediaElement;
(function(context,exports,undefined){var i18n={"locale":{"language":"","strings":{}},"methods":{}};i18n.getLanguage=function(){var language=i18n.locale.language||window.navigator.userLanguage||window.navigator.language;return language.substr(0,2).toLowerCase()};if(typeof mejsL10n!="undefined")i18n.locale.language=mejsL10n.language;i18n.methods.checkPlain=function(str){var character;var regex;var replace={"\x26":"\x26amp;",'"':"\x26quot;","\x3c":"\x26lt;","\x3e":"\x26gt;"};str=String(str);for(character in replace)if(replace.hasOwnProperty(character)){regex=
new RegExp(character,"g");str=str.replace(regex,replace[character])}return str};i18n.methods.t=function(str,options){if(i18n.locale.strings&&i18n.locale.strings[options.context]&&i18n.locale.strings[options.context][str])str=i18n.locale.strings[options.context][str];return i18n.methods.checkPlain(str)};i18n.t=function(str,options){if(typeof str==="string"&&str.length>0){var language=i18n.getLanguage();options=options||{"context":language};return i18n.methods.t(str,options)}else throw{"name":"InvalidArgumentException",
"message":"First argument is either not a string or empty."};};exports.i18n=i18n})(document,mejs);(function(exports,undefined){if(typeof mejsL10n!="undefined")exports[mejsL10n.language]=mejsL10n.strings})(mejs.i18n.locale.strings);(function(exports,undefined){if(typeof exports.de==="undefined")exports.de={"Fullscreen":"Vollbild","Go Fullscreen":"Vollbild an","Turn off Fullscreen":"Vollbild aus","Close":"Schlie\u00c3\u009fen"}})(mejs.i18n.locale.strings);
(function(exports,undefined){if(typeof exports.zh==="undefined")exports.zh={"Fullscreen":"\u00e5\u0085\u00a8\u00e8\u009e\u00a2\u00e5\u00b9\u0095","Go Fullscreen":"\u00e5\u0085\u00a8\u00e5\u00b1\u008f\u00e6\u00a8\u00a1\u00e5\u00bc\u008f","Turn off Fullscreen":"\u00e9\u0080\u0080\u00e5\u0087\u00ba\u00e5\u0085\u00a8\u00e5\u00b1\u008f\u00e6\u00a8\u00a1\u00e5\u00bc\u008f","Close":"\u00e9\u0097\u009c\u00e9\u0096\u0089"}})(mejs.i18n.locale.strings);
if(typeof jQuery!="undefined")mejs.$=jQuery;else if(typeof ender!="undefined")mejs.$=ender;
(function($){mejs.MepDefaults={poster:"",showPosterWhenEnded:false,defaultVideoWidth:480,defaultVideoHeight:270,videoWidth:-1,videoHeight:-1,defaultAudioWidth:400,defaultAudioHeight:30,defaultSeekBackwardInterval:function(media){return media.duration*.05},defaultSeekForwardInterval:function(media){return media.duration*.05},setDimensions:true,audioWidth:-1,audioHeight:-1,startVolume:.8,loop:false,autoRewind:true,enableAutosize:true,alwaysShowHours:false,showTimecodeFrameCount:false,framesPerSecond:25,
autosizeProgress:true,alwaysShowControls:false,hideVideoControlsOnLoad:false,clickToPlayPause:true,iPadUseNativeControls:false,iPhoneUseNativeControls:false,AndroidUseNativeControls:false,features:["playpause","current","progress","duration","tracks","volume","fullscreen"],isVideo:true,enableKeyboard:true,pauseOtherPlayers:true,keyActions:[{keys:[32,179],action:function(player,media){if(media.paused||media.ended)player.play();else player.pause()}},{keys:[38],action:function(player,media){player.container.find(".mejs-volume-slider").css("display",
"block");if(player.isVideo){player.showControls();player.startControlsTimer()}var newVolume=Math.min(media.volume+.1,1);media.setVolume(newVolume)}},{keys:[40],action:function(player,media){player.container.find(".mejs-volume-slider").css("display","block");if(player.isVideo){player.showControls();player.startControlsTimer()}var newVolume=Math.max(media.volume-.1,0);media.setVolume(newVolume)}},{keys:[37,227],action:function(player,media){if(!isNaN(media.duration)&&media.duration>0){if(player.isVideo){player.showControls();
player.startControlsTimer()}var newTime=Math.max(media.currentTime-player.options.defaultSeekBackwardInterval(media),0);media.setCurrentTime(newTime)}}},{keys:[39,228],action:function(player,media){if(!isNaN(media.duration)&&media.duration>0){if(player.isVideo){player.showControls();player.startControlsTimer()}var newTime=Math.min(media.currentTime+player.options.defaultSeekForwardInterval(media),media.duration);media.setCurrentTime(newTime)}}},{keys:[70],action:function(player,media){if(typeof player.enterFullScreen!=
"undefined")if(player.isFullScreen)player.exitFullScreen();else player.enterFullScreen()}},{keys:[77],action:function(player,media){player.container.find(".mejs-volume-slider").css("display","block");if(player.isVideo){player.showControls();player.startControlsTimer()}if(player.media.muted)player.setMuted(false);else player.setMuted(true)}}]};mejs.mepIndex=0;mejs.players={};mejs.MediaElementPlayer=function(node,o){if(!(this instanceof mejs.MediaElementPlayer))return new mejs.MediaElementPlayer(node,
o);var t=this;t.$media=t.$node=$(node);t.node=t.media=t.$media[0];if(typeof t.node.player!="undefined")return t.node.player;else t.node.player=t;if(typeof o=="undefined")o=t.$node.data("mejsoptions");t.options=$.extend({},mejs.MepDefaults,o);t.id="mep_"+mejs.mepIndex++;mejs.players[t.id]=t;t.init();return t};mejs.MediaElementPlayer.prototype={hasFocus:false,controlsAreVisible:true,init:function(){var t=this;var mf=mejs.MediaFeatures;var meOptions=$.extend(true,{},t.options,{success:function(media,
domNode){t.meReady(media,domNode)},error:function(e){t.handleError(e)}});var tagName=t.media.tagName.toLowerCase();t.isDynamic=tagName!=="audio"&&tagName!=="video";if(t.isDynamic)t.isVideo=t.options.isVideo;else t.isVideo=tagName!=="audio"&&t.options.isVideo;if(mf.isiPad&&t.options.iPadUseNativeControls||mf.isiPhone&&t.options.iPhoneUseNativeControls){t.$media.attr("controls","controls");if(mf.isiPad&&t.media.getAttribute("autoplay")!==null)t.play()}else if(mf.isAndroid&&t.options.AndroidUseNativeControls);
else{t.$media.removeAttr("controls");t.container=$('\x3cdiv id\x3d"'+t.id+'" class\x3d"mejs-container '+(mejs.MediaFeatures.svg?"svg":"no-svg")+'"\x3e'+'\x3cdiv class\x3d"mejs-inner"\x3e'+'\x3cdiv class\x3d"mejs-mediaelement"\x3e\x3c/div\x3e'+'\x3cdiv class\x3d"mejs-layers"\x3e\x3c/div\x3e'+'\x3cdiv class\x3d"mejs-controls"\x3e\x3c/div\x3e'+'\x3cdiv class\x3d"mejs-clear"\x3e\x3c/div\x3e'+"\x3c/div\x3e"+"\x3c/div\x3e").addClass(t.$media[0].className).insertBefore(t.$media);t.container.addClass((mf.isAndroid?
"mejs-android ":"")+(mf.isiOS?"mejs-ios ":"")+(mf.isiPad?"mejs-ipad ":"")+(mf.isiPhone?"mejs-iphone ":"")+(t.isVideo?"mejs-video ":"mejs-audio "));if(mf.isiOS){var $newMedia=t.$media.clone();t.container.find(".mejs-mediaelement").append($newMedia);t.$media.remove();t.$node=t.$media=$newMedia;t.node=t.media=$newMedia[0]}else t.container.find(".mejs-mediaelement").append(t.$media);t.controls=t.container.find(".mejs-controls");t.layers=t.container.find(".mejs-layers");var tagType=t.isVideo?"video":"audio";
var capsTagName=tagType.substring(0,1).toUpperCase()+tagType.substring(1);if(t.options[tagType+"Width"]>0||t.options[tagType+"Width"].toString().indexOf("%")>-1)t.width=t.options[tagType+"Width"];else if(t.media.style.width!==""&&t.media.style.width!==null)t.width=t.media.style.width;else if(t.media.getAttribute("width")!==null)t.width=t.$media.attr("width");else t.width=t.options["default"+capsTagName+"Width"];if(t.options[tagType+"Height"]>0||t.options[tagType+"Height"].toString().indexOf("%")>
-1)t.height=t.options[tagType+"Height"];else if(t.media.style.height!==""&&t.media.style.height!==null)t.height=t.media.style.height;else if(t.$media[0].getAttribute("height")!==null)t.height=t.$media.attr("height");else t.height=t.options["default"+capsTagName+"Height"];t.setPlayerSize(t.width,t.height);meOptions.pluginWidth=t.width;meOptions.pluginHeight=t.height}mejs.MediaElement(t.$media[0],meOptions);if(typeof t.container!="undefined"&&t.controlsAreVisible)t.container.trigger("controlsshown")},
showControls:function(doAnimation){var t=this;doAnimation=typeof doAnimation=="undefined"||doAnimation;if(t.controlsAreVisible)return;if(doAnimation){t.controls.css("visibility","visible").stop(true,true).fadeIn(200,function(){t.controlsAreVisible=true;t.container.trigger("controlsshown")});t.container.find(".mejs-control").css("visibility","visible").stop(true,true).fadeIn(200,function(){t.controlsAreVisible=true})}else{t.controls.css("visibility","visible").css("display","block");t.container.find(".mejs-control").css("visibility",
"visible").css("display","block");t.controlsAreVisible=true;t.container.trigger("controlsshown")}t.setControlsSize()},hideControls:function(doAnimation){var t=this;doAnimation=typeof doAnimation=="undefined"||doAnimation;if(!t.controlsAreVisible||t.options.alwaysShowControls)return;if(doAnimation){t.controls.stop(true,true).fadeOut(200,function(){$(this).css("visibility","hidden").css("display","block");t.controlsAreVisible=false;t.container.trigger("controlshidden")});t.container.find(".mejs-control").stop(true,
true).fadeOut(200,function(){$(this).css("visibility","hidden").css("display","block")})}else{t.controls.css("visibility","hidden").css("display","block");t.container.find(".mejs-control").css("visibility","hidden").css("display","block");t.controlsAreVisible=false;t.container.trigger("controlshidden")}},controlsTimer:null,startControlsTimer:function(timeout){var t=this;timeout=typeof timeout!="undefined"?timeout:1500;t.killControlsTimer("start");t.controlsTimer=setTimeout(function(){t.hideControls();
t.killControlsTimer("hide")},timeout)},killControlsTimer:function(src){var t=this;if(t.controlsTimer!==null){clearTimeout(t.controlsTimer);delete t.controlsTimer;t.controlsTimer=null}},controlsEnabled:true,disableControls:function(){var t=this;t.killControlsTimer();t.hideControls(false);this.controlsEnabled=false},enableControls:function(){var t=this;t.showControls(false);t.controlsEnabled=true},meReady:function(media,domNode){var t=this;var mf=mejs.MediaFeatures;var autoplayAttr=domNode.getAttribute("autoplay");
var autoplay=!(typeof autoplayAttr=="undefined"||autoplayAttr===null||autoplayAttr==="false");var featureIndex;var feature;if(t.created)return;else t.created=true;t.media=media;t.domNode=domNode;if(!(mf.isAndroid&&t.options.AndroidUseNativeControls)&&!(mf.isiPad&&t.options.iPadUseNativeControls)&&!(mf.isiPhone&&t.options.iPhoneUseNativeControls)){t.buildposter(t,t.controls,t.layers,t.media);t.buildkeyboard(t,t.controls,t.layers,t.media);t.buildoverlays(t,t.controls,t.layers,t.media);t.findTracks();
for(featureIndex in t.options.features){feature=t.options.features[featureIndex];if(t["build"+feature])try{t["build"+feature](t,t.controls,t.layers,t.media)}catch(e$$0){}}t.container.trigger("controlsready");t.setPlayerSize(t.width,t.height);t.setControlsSize();if(t.isVideo){if(mejs.MediaFeatures.hasTouch)t.$media.bind("touchstart",function(){if(t.controlsAreVisible)t.hideControls(false);else if(t.controlsEnabled)t.showControls(false)});else{t.clickToPlayPauseCallback=function(){if(t.options.clickToPlayPause)if(t.media.paused)t.play();
else t.pause()};t.media.addEventListener("click",t.clickToPlayPauseCallback,false);t.container.bind("mouseenter mouseover",function(){if(t.controlsEnabled)if(!t.options.alwaysShowControls){t.killControlsTimer("enter");t.showControls();t.startControlsTimer(2500)}}).bind("mousemove",function(){if(t.controlsEnabled){if(!t.controlsAreVisible)t.showControls();if(!t.options.alwaysShowControls)t.startControlsTimer(2500)}}).bind("mouseleave",function(){if(t.controlsEnabled)if(!t.media.paused&&!t.options.alwaysShowControls)t.startControlsTimer(1E3)})}if(t.options.hideVideoControlsOnLoad)t.hideControls(false);
if(autoplay&&!t.options.alwaysShowControls)t.hideControls();if(t.options.enableAutosize)t.media.addEventListener("loadedmetadata",function(e){if(t.options.videoHeight<=0&&t.domNode.getAttribute("height")===null&&!isNaN(e.target.videoHeight)){t.setPlayerSize(e.target.videoWidth,e.target.videoHeight);t.setControlsSize();t.media.setVideoSize(e.target.videoWidth,e.target.videoHeight)}},false)}media.addEventListener("play",function(){for(var playerIndex in mejs.players){var p=mejs.players[playerIndex];
if(p.id!=t.id&&t.options.pauseOtherPlayers&&!p.paused&&!p.ended)p.pause();p.hasFocus=false}t.hasFocus=true},false);t.media.addEventListener("ended",function(e){if(t.options.autoRewind)try{t.media.setCurrentTime(0)}catch(exp){}t.media.pause();if(t.setProgressRail)t.setProgressRail();if(t.setCurrentRail)t.setCurrentRail();if(t.options.loop)t.play();else if(!t.options.alwaysShowControls&&t.controlsEnabled)t.showControls()},false);t.media.addEventListener("loadedmetadata",function(e){if(t.updateDuration)t.updateDuration();
if(t.updateCurrent)t.updateCurrent();if(!t.isFullScreen){t.setPlayerSize(t.width,t.height);t.setControlsSize()}},false);setTimeout(function(){t.setPlayerSize(t.width,t.height);t.setControlsSize()},50);t.globalBind("resize",function(){if(!(t.isFullScreen||mejs.MediaFeatures.hasTrueNativeFullScreen&&document.webkitIsFullScreen))t.setPlayerSize(t.width,t.height);t.setControlsSize()});if(t.media.pluginType=="youtube"&&t.options.autoplay)t.container.find(".mejs-overlay-play").hide()}if(autoplay&&media.pluginType==
"native")t.play();if(t.options.success)if(typeof t.options.success=="string")window[t.options.success](t.media,t.domNode,t);else t.options.success(t.media,t.domNode,t)},handleError:function(e){var t=this;t.controls.hide();if(t.options.error)t.options.error(e)},setPlayerSize:function(width,height){var t=this;if(!t.options.setDimensions)return false;if(typeof width!="undefined")t.width=width;if(typeof height!="undefined")t.height=height;if(t.height.toString().indexOf("%")>0||t.$node.css("max-width")===
"100%"||t.$node[0].currentStyle&&t.$node[0].currentStyle.maxWidth==="100%"){var nativeWidth=function(){if(t.isVideo)if(t.media.videoWidth&&t.media.videoWidth>0)return t.media.videoWidth;else if(t.media.getAttribute("width")!==null)return t.media.getAttribute("width");else return t.options.defaultVideoWidth;else return t.options.defaultAudioWidth}();var nativeHeight=function(){if(t.isVideo)if(t.media.videoHeight&&t.media.videoHeight>0)return t.media.videoHeight;else if(t.media.getAttribute("height")!==
null)return t.media.getAttribute("height");else return t.options.defaultVideoHeight;else return t.options.defaultAudioHeight}();var parentWidth=t.container.parent().closest(":visible").width();var parentHeight=t.container.parent().closest(":visible").height();var newHeight=t.isVideo||!t.options.autosizeProgress?parseInt(parentWidth*nativeHeight/nativeWidth,10):nativeHeight;if(isNaN(newHeight)||parentHeight!=0&&newHeight>parentHeight)newHeight=parentHeight;if(t.container.parent()[0].tagName.toLowerCase()===
"body"){parentWidth=$(window).width();newHeight=$(window).height()}if(newHeight!=0&&parentWidth!=0){t.container.width(parentWidth).height(newHeight);t.$media.add(t.container.find(".mejs-shim")).width("100%").height("100%");if(t.isVideo)if(t.media.setVideoSize)t.media.setVideoSize(parentWidth,newHeight);t.layers.children(".mejs-layer").width("100%").height("100%")}}else{t.container.width(t.width).height(t.height);t.layers.children(".mejs-layer").width(t.width).height(t.height)}var playLayer=t.layers.find(".mejs-overlay-play");
var playButton=playLayer.find(".mejs-overlay-button");playLayer.height(t.container.height()-t.controls.height());playButton.css("margin-top","-"+(playButton.height()/2-t.controls.height()/2).toString()+"px")},setControlsSize:function(){var t=this;var usedWidth=0;var railWidth=0;var rail=t.controls.find(".mejs-time-rail");var total=t.controls.find(".mejs-time-total");var current=t.controls.find(".mejs-time-current");var loaded=t.controls.find(".mejs-time-loaded");var others=rail.siblings();var lastControl=
others.last();var lastControlPosition=null;if(!t.container.is(":visible")||!rail.length||!rail.is(":visible"))return;if(t.options&&!t.options.autosizeProgress)railWidth=parseInt(rail.css("width"));if(railWidth===0||!railWidth){others.each(function(){var $this=$(this);if($this.css("position")!="absolute"&&$this.is(":visible"))usedWidth+=$(this).outerWidth(true)});railWidth=t.controls.width()-usedWidth-(rail.outerWidth(true)-rail.width())}do{rail.width(railWidth);total.width(railWidth-(total.outerWidth(true)-
total.width()));if(lastControl.css("position")!="absolute"){lastControlPosition=lastControl.position();railWidth--}}while(lastControlPosition!=null&&lastControlPosition.top>0&&railWidth>0);if(t.setProgressRail)t.setProgressRail();if(t.setCurrentRail)t.setCurrentRail()},buildposter:function(player,controls,layers,media){var t=this;var poster=$('\x3cdiv class\x3d"mejs-poster mejs-layer"\x3e'+"\x3c/div\x3e").appendTo(layers);var posterUrl=player.$media.attr("poster");if(player.options.poster!=="")posterUrl=
player.options.poster;if(posterUrl!==""&&posterUrl!=null)t.setPoster(posterUrl);else poster.hide();media.addEventListener("play",function(){poster.hide()},false);if(player.options.showPosterWhenEnded&&player.options.autoRewind)media.addEventListener("ended",function(){poster.show()},false)},setPoster:function(url){var t=this;var posterDiv=t.container.find(".mejs-poster");var posterImg=posterDiv.find("img");if(posterImg.length==0)posterImg=$('\x3cimg width\x3d"100%" height\x3d"100%" /\x3e').appendTo(posterDiv);
posterImg.attr("src",url);posterDiv.css({"background-image":"url("+url+")"})},buildoverlays:function(player,controls,layers,media){var t=this;if(!player.isVideo)return;var loading=$('\x3cdiv class\x3d"mejs-overlay mejs-layer"\x3e'+'\x3cdiv class\x3d"mejs-overlay-loading"\x3e\x3cspan\x3e\x3c/span\x3e\x3c/div\x3e'+"\x3c/div\x3e").hide().appendTo(layers);var error=$('\x3cdiv class\x3d"mejs-overlay mejs-layer"\x3e'+'\x3cdiv class\x3d"mejs-overlay-error"\x3e\x3c/div\x3e'+"\x3c/div\x3e").hide().appendTo(layers);
var bigPlay=$('\x3cdiv class\x3d"mejs-overlay mejs-layer mejs-overlay-play"\x3e'+'\x3cdiv class\x3d"mejs-overlay-button"\x3e\x3c/div\x3e'+"\x3c/div\x3e").appendTo(layers).bind("click",function(){if(t.options.clickToPlayPause)if(media.paused)media.play()});media.addEventListener("play",function(){bigPlay.hide();loading.hide();controls.find(".mejs-time-buffering").hide();error.hide()},false);media.addEventListener("playing",function(){bigPlay.hide();loading.hide();controls.find(".mejs-time-buffering").hide();
error.hide()},false);media.addEventListener("seeking",function(){loading.show();controls.find(".mejs-time-buffering").show()},false);media.addEventListener("seeked",function(){loading.hide();controls.find(".mejs-time-buffering").hide()},false);media.addEventListener("pause",function(){if(!mejs.MediaFeatures.isiPhone)bigPlay.show()},false);media.addEventListener("waiting",function(){loading.show();controls.find(".mejs-time-buffering").show()},false);media.addEventListener("loadeddata",function(){loading.show();
controls.find(".mejs-time-buffering").show()},false);media.addEventListener("canplay",function(){loading.hide();controls.find(".mejs-time-buffering").hide()},false);media.addEventListener("error",function(){loading.hide();controls.find(".mejs-time-buffering").hide();error.show();error.find("mejs-overlay-error").html("Error loading this resource")},false);media.addEventListener("keydown",function(e){t.onkeydown(player,media,e)},false)},buildkeyboard:function(player,controls,layers,media){var t=this;
t.globalBind("keydown",function(e){return t.onkeydown(player,media,e)});t.globalBind("click",function(event){player.hasFocus=$(event.target).closest(".mejs-container").length!=0})},onkeydown:function(player,media,e){if(player.hasFocus&&player.options.enableKeyboard){var i=0;for(var il=player.options.keyActions.length;i<il;i++){var keyAction=player.options.keyActions[i];var j=0;for(var jl=keyAction.keys.length;j<jl;j++)if(e.keyCode==keyAction.keys[j]){if(typeof e.preventDefault=="function")e.preventDefault();
keyAction.action(player,media,e.keyCode);return false}}}return true},findTracks:function(){var t=this;var tracktags=t.$media.find("track");t.tracks=[];tracktags.each(function(index,track){track=$(track);t.tracks.push({srclang:track.attr("srclang")?track.attr("srclang").toLowerCase():"",src:track.attr("src"),kind:track.attr("kind"),label:track.attr("label")||"",entries:[],isLoaded:false})})},changeSkin:function(className){this.container[0].className="mejs-container "+className;this.setPlayerSize(this.width,
this.height);this.setControlsSize()},play:function(){this.load();this.media.play()},pause:function(){try{this.media.pause()}catch(e){}},load:function(){if(!this.isLoaded)this.media.load();this.isLoaded=true},setMuted:function(muted){this.media.setMuted(muted)},setCurrentTime:function(time){this.media.setCurrentTime(time)},getCurrentTime:function(){return this.media.currentTime},setVolume:function(volume){this.media.setVolume(volume)},getVolume:function(){return this.media.volume},setSrc:function(src){this.media.setSrc(src)},
remove:function(){var t=this;var featureIndex;var feature;for(featureIndex in t.options.features){feature=t.options.features[featureIndex];if(t["clean"+feature])try{t["clean"+feature](t)}catch(e){}}if(!t.isDynamic){t.$media.prop("controls",true);t.$node.clone().insertBefore(t.container).show();t.$node.remove()}else t.$node.insertBefore(t.container);if(t.media.pluginType!=="native")t.media.remove();delete mejs.players[t.id];if(typeof t.container=="object")t.container.remove();t.globalUnbind();delete t.node.player}};
(function(){function splitEvents(events,id){var ret={d:[],w:[]};$.each((events||"").split(" "),function(k,v){var eventname=v+"."+id;if(eventname.indexOf(".")===0){ret.d.push(eventname);ret.w.push(eventname)}else ret[rwindow.test(v)?"w":"d"].push(eventname)});ret.d=ret.d.join(" ");ret.w=ret.w.join(" ");return ret}var rwindow=/^((after|before)print|(before)?unload|hashchange|message|o(ff|n)line|page(hide|show)|popstate|resize|storage)\b/;mejs.MediaElementPlayer.prototype.globalBind=function(events,
data,callback){var t=this;events=splitEvents(events,t.id);if(events.d)$(document).bind(events.d,data,callback);if(events.w)$(window).bind(events.w,data,callback)};mejs.MediaElementPlayer.prototype.globalUnbind=function(events,callback){var t=this;events=splitEvents(events,t.id);if(events.d)$(document).unbind(events.d,callback);if(events.w)$(window).unbind(events.w,callback)}})();if(typeof $!="undefined"){$.fn.mediaelementplayer=function(options){if(options===false)this.each(function(){var player=
$(this).data("mediaelementplayer");if(player)player.remove();$(this).removeData("mediaelementplayer")});else this.each(function(){$(this).data("mediaelementplayer",new mejs.MediaElementPlayer(this,options))});return this};$(document).ready(function(){$(".mejs-player").mediaelementplayer()})}window.MediaElementPlayer=mejs.MediaElementPlayer})(mejs.$);
(function($){$.extend(mejs.MepDefaults,{playpauseText:mejs.i18n.t("Play/Pause")});$.extend(MediaElementPlayer.prototype,{buildplaypause:function(player,controls,layers,media){var t=this;var play=$('\x3cdiv class\x3d"mejs-button mejs-playpause-button mejs-play" \x3e'+'\x3cbutton type\x3d"button" aria-controls\x3d"'+t.id+'" title\x3d"'+t.options.playpauseText+'" aria-label\x3d"'+t.options.playpauseText+'"\x3e\x3c/button\x3e'+"\x3c/div\x3e").appendTo(controls).click(function(e){e.preventDefault();if(media.paused)media.play();
else media.pause();return false});media.addEventListener("play",function(){play.removeClass("mejs-play").addClass("mejs-pause")},false);media.addEventListener("playing",function(){play.removeClass("mejs-play").addClass("mejs-pause")},false);media.addEventListener("pause",function(){play.removeClass("mejs-pause").addClass("mejs-play")},false);media.addEventListener("paused",function(){play.removeClass("mejs-pause").addClass("mejs-play")},false)}})})(mejs.$);
(function($){$.extend(mejs.MepDefaults,{stopText:"Stop"});$.extend(MediaElementPlayer.prototype,{buildstop:function(player,controls,layers,media){var t=this;var stop=$('\x3cdiv class\x3d"mejs-button mejs-stop-button mejs-stop"\x3e'+'\x3cbutton type\x3d"button" aria-controls\x3d"'+t.id+'" title\x3d"'+t.options.stopText+'" aria-label\x3d"'+t.options.stopText+'"\x3e\x3c/button\x3e'+"\x3c/div\x3e").appendTo(controls).click(function(){if(!media.paused)media.pause();if(media.currentTime>0){media.setCurrentTime(0);
media.pause();controls.find(".mejs-time-current").width("0px");controls.find(".mejs-time-handle").css("left","0px");controls.find(".mejs-time-float-current").html(mejs.Utility.secondsToTimeCode(0));controls.find(".mejs-currenttime").html(mejs.Utility.secondsToTimeCode(0));layers.find(".mejs-poster").show()}})}})})(mejs.$);
(function($){$.extend(MediaElementPlayer.prototype,{buildprogress:function(player,controls,layers,media){$('\x3cdiv class\x3d"mejs-time-rail"\x3e'+'\x3cspan class\x3d"mejs-time-total"\x3e'+'\x3cspan class\x3d"mejs-time-buffering"\x3e\x3c/span\x3e'+'\x3cspan class\x3d"mejs-time-loaded"\x3e\x3c/span\x3e'+'\x3cspan class\x3d"mejs-time-current"\x3e\x3c/span\x3e'+'\x3cspan class\x3d"mejs-time-handle"\x3e\x3c/span\x3e'+'\x3cspan class\x3d"mejs-time-float"\x3e'+'\x3cspan class\x3d"mejs-time-float-current"\x3e00:00\x3c/span\x3e'+
'\x3cspan class\x3d"mejs-time-float-corner"\x3e\x3c/span\x3e'+"\x3c/span\x3e"+"\x3c/span\x3e"+"\x3c/div\x3e").appendTo(controls);controls.find(".mejs-time-buffering").hide();var t=this;var total=controls.find(".mejs-time-total");var loaded=controls.find(".mejs-time-loaded");var current=controls.find(".mejs-time-current");var handle=controls.find(".mejs-time-handle");var timefloat=controls.find(".mejs-time-float");var timefloatcurrent=controls.find(".mejs-time-float-current");var handleMouseMove=function(e){if(e.originalEvent.changedTouches)var x=
e.originalEvent.changedTouches[0].pageX;else x=e.pageX;var offset=total.offset();var width=total.outerWidth(true);var percentage=0;var newTime=0;var pos=0;if(media.duration){if(x<offset.left)x=offset.left;else if(x>width+offset.left)x=width+offset.left;pos=x-offset.left;percentage=pos/width;newTime=percentage<=.02?0:percentage*media.duration;if(mouseIsDown&&newTime!==media.currentTime)media.setCurrentTime(newTime);if(!mejs.MediaFeatures.hasTouch){timefloat.css("left",pos);timefloatcurrent.html(mejs.Utility.secondsToTimeCode(newTime));
timefloat.show()}}};var mouseIsDown=false;var mouseIsOver=false;total.bind("mousedown touchstart",function(e$$0){if(e$$0.which===1||e$$0.which===0){mouseIsDown=true;handleMouseMove(e$$0);t.globalBind("mousemove.dur touchmove.dur",function(e){handleMouseMove(e)});t.globalBind("mouseup.dur touchend.dur",function(e){mouseIsDown=false;timefloat.hide();t.globalUnbind(".dur")});return false}}).bind("mouseenter",function(e$$0){mouseIsOver=true;t.globalBind("mousemove.dur",function(e){handleMouseMove(e)});
if(!mejs.MediaFeatures.hasTouch)timefloat.show()}).bind("mouseleave",function(e){mouseIsOver=false;if(!mouseIsDown){t.globalUnbind(".dur");timefloat.hide()}});media.addEventListener("progress",function(e){player.setProgressRail(e);player.setCurrentRail(e)},false);media.addEventListener("timeupdate",function(e){player.setProgressRail(e);player.setCurrentRail(e)},false);t.loaded=loaded;t.total=total;t.current=current;t.handle=handle},setProgressRail:function(e){var t=this;var target=e!=undefined?e.target:
t.media;var percent=null;if(target&&target.buffered&&target.buffered.length>0&&target.buffered.end&&target.duration)percent=target.buffered.end(0)/target.duration;else if(target&&target.bytesTotal!=undefined&&target.bytesTotal>0&&target.bufferedBytes!=undefined)percent=target.bufferedBytes/target.bytesTotal;else if(e&&e.lengthComputable&&e.total!=0)percent=e.loaded/e.total;if(percent!==null){percent=Math.min(1,Math.max(0,percent));if(t.loaded&&t.total)t.loaded.width(t.total.width()*percent)}},setCurrentRail:function(){var t=
this;if(t.media.currentTime!=undefined&&t.media.duration)if(t.total&&t.handle){var newWidth=Math.round(t.total.width()*t.media.currentTime/t.media.duration);var handlePos=newWidth-Math.round(t.handle.outerWidth(true)/2);t.current.width(newWidth);t.handle.css("left",handlePos)}}})})(mejs.$);
(function($){$.extend(mejs.MepDefaults,{duration:-1,timeAndDurationSeparator:"\x3cspan\x3e | \x3c/span\x3e"});$.extend(MediaElementPlayer.prototype,{buildcurrent:function(player,controls,layers,media){var t=this;$('\x3cdiv class\x3d"mejs-time"\x3e'+'\x3cspan class\x3d"mejs-currenttime"\x3e'+(player.options.alwaysShowHours?"00:":"")+(player.options.showTimecodeFrameCount?"00:00:00":"00:00")+"\x3c/span\x3e"+"\x3c/div\x3e").appendTo(controls);t.currenttime=t.controls.find(".mejs-currenttime");media.addEventListener("timeupdate",
function(){player.updateCurrent()},false)},buildduration:function(player,controls,layers,media){var t=this;if(controls.children().last().find(".mejs-currenttime").length>0)$(t.options.timeAndDurationSeparator+'\x3cspan class\x3d"mejs-duration"\x3e'+(t.options.duration>0?mejs.Utility.secondsToTimeCode(t.options.duration,t.options.alwaysShowHours||t.media.duration>3600,t.options.showTimecodeFrameCount,t.options.framesPerSecond||25):(player.options.alwaysShowHours?"00:":"")+(player.options.showTimecodeFrameCount?
"00:00:00":"00:00"))+"\x3c/span\x3e").appendTo(controls.find(".mejs-time"));else{controls.find(".mejs-currenttime").parent().addClass("mejs-currenttime-container");$('\x3cdiv class\x3d"mejs-time mejs-duration-container"\x3e'+'\x3cspan class\x3d"mejs-duration"\x3e'+(t.options.duration>0?mejs.Utility.secondsToTimeCode(t.options.duration,t.options.alwaysShowHours||t.media.duration>3600,t.options.showTimecodeFrameCount,t.options.framesPerSecond||25):(player.options.alwaysShowHours?"00:":"")+(player.options.showTimecodeFrameCount?
"00:00:00":"00:00"))+"\x3c/span\x3e"+"\x3c/div\x3e").appendTo(controls)}t.durationD=t.controls.find(".mejs-duration");media.addEventListener("timeupdate",function(){player.updateDuration()},false)},updateCurrent:function(){var t=this;if(t.currenttime)t.currenttime.html(mejs.Utility.secondsToTimeCode(t.media.currentTime,t.options.alwaysShowHours||t.media.duration>3600,t.options.showTimecodeFrameCount,t.options.framesPerSecond||25))},updateDuration:function(){var t=this;t.container.toggleClass("mejs-long-video",
t.media.duration>3600);if(t.durationD&&(t.options.duration>0||t.media.duration))t.durationD.html(mejs.Utility.secondsToTimeCode(t.options.duration>0?t.options.duration:t.media.duration,t.options.alwaysShowHours,t.options.showTimecodeFrameCount,t.options.framesPerSecond||25))}})})(mejs.$);
(function($){$.extend(mejs.MepDefaults,{muteText:mejs.i18n.t("Mute Toggle"),hideVolumeOnTouchDevices:true,audioVolume:"horizontal",videoVolume:"vertical"});$.extend(MediaElementPlayer.prototype,{buildvolume:function(player,controls,layers,media){if((mejs.MediaFeatures.isAndroid||mejs.MediaFeatures.isiOS)&&this.options.hideVolumeOnTouchDevices)return;var t=this;var mode=t.isVideo?t.options.videoVolume:t.options.audioVolume;var mute=mode=="horizontal"?$('\x3cdiv class\x3d"mejs-button mejs-volume-button mejs-mute"\x3e'+
'\x3cbutton type\x3d"button" aria-controls\x3d"'+t.id+'" title\x3d"'+t.options.muteText+'" aria-label\x3d"'+t.options.muteText+'"\x3e\x3c/button\x3e'+"\x3c/div\x3e"+'\x3cdiv class\x3d"mejs-horizontal-volume-slider"\x3e'+'\x3cdiv class\x3d"mejs-horizontal-volume-total"\x3e\x3c/div\x3e'+'\x3cdiv class\x3d"mejs-horizontal-volume-current"\x3e\x3c/div\x3e'+'\x3cdiv class\x3d"mejs-horizontal-volume-handle"\x3e\x3c/div\x3e'+"\x3c/div\x3e").appendTo(controls):$('\x3cdiv class\x3d"mejs-button mejs-volume-button mejs-mute"\x3e'+
'\x3cbutton type\x3d"button" aria-controls\x3d"'+t.id+'" title\x3d"'+t.options.muteText+'" aria-label\x3d"'+t.options.muteText+'"\x3e\x3c/button\x3e'+'\x3cdiv class\x3d"mejs-volume-slider"\x3e'+'\x3cdiv class\x3d"mejs-volume-total"\x3e\x3c/div\x3e'+'\x3cdiv class\x3d"mejs-volume-current"\x3e\x3c/div\x3e'+'\x3cdiv class\x3d"mejs-volume-handle"\x3e\x3c/div\x3e'+"\x3c/div\x3e"+"\x3c/div\x3e").appendTo(controls);var volumeSlider=t.container.find(".mejs-volume-slider, .mejs-horizontal-volume-slider");
var volumeTotal=t.container.find(".mejs-volume-total, .mejs-horizontal-volume-total");var volumeCurrent=t.container.find(".mejs-volume-current, .mejs-horizontal-volume-current");var volumeHandle=t.container.find(".mejs-volume-handle, .mejs-horizontal-volume-handle");var positionVolumeHandle=function(volume,secondTry){if(!volumeSlider.is(":visible")&&typeof secondTry=="undefined"){volumeSlider.show();positionVolumeHandle(volume,true);volumeSlider.hide();return}volume=Math.max(0,volume);volume=Math.min(volume,
1);if(volume==0)mute.removeClass("mejs-mute").addClass("mejs-unmute");else mute.removeClass("mejs-unmute").addClass("mejs-mute");if(mode=="vertical"){var totalHeight=volumeTotal.height();var totalPosition=volumeTotal.position();var newTop=totalHeight-totalHeight*volume;volumeHandle.css("top",Math.round(totalPosition.top+newTop-volumeHandle.height()/2));volumeCurrent.height(totalHeight-newTop);volumeCurrent.css("top",totalPosition.top+newTop)}else{var totalWidth=volumeTotal.width();totalPosition=volumeTotal.position();
var newLeft=totalWidth*volume;volumeHandle.css("left",Math.round(totalPosition.left+newLeft-volumeHandle.width()/2));volumeCurrent.width(Math.round(newLeft))}};var handleVolumeMove=function(e){var volume=null;var totalOffset=volumeTotal.offset();if(mode=="vertical"){var railHeight=volumeTotal.height();var totalTop=parseInt(volumeTotal.css("top").replace(/px/,""),10);var newY=e.pageY-totalOffset.top;volume=(railHeight-newY)/railHeight;if(totalOffset.top==0||totalOffset.left==0)return}else{var railWidth=
volumeTotal.width();var newX=e.pageX-totalOffset.left;volume=newX/railWidth}volume=Math.max(0,volume);volume=Math.min(volume,1);positionVolumeHandle(volume);if(volume==0)media.setMuted(true);else media.setMuted(false);media.setVolume(volume)};var mouseIsDown=false;var mouseIsOver=false;mute.hover(function(){volumeSlider.show();mouseIsOver=true},function(){mouseIsOver=false;if(!mouseIsDown&&mode=="vertical")volumeSlider.hide()});volumeSlider.bind("mouseover",function(){mouseIsOver=true}).bind("mousedown",
function(e$$0){handleVolumeMove(e$$0);t.globalBind("mousemove.vol",function(e){handleVolumeMove(e)});t.globalBind("mouseup.vol",function(){mouseIsDown=false;t.globalUnbind(".vol");if(!mouseIsOver&&mode=="vertical")volumeSlider.hide()});mouseIsDown=true;return false});mute.find("button").click(function(){media.setMuted(!media.muted)});media.addEventListener("volumechange",function(e){if(!mouseIsDown)if(media.muted){positionVolumeHandle(0);mute.removeClass("mejs-mute").addClass("mejs-unmute")}else{positionVolumeHandle(media.volume);
mute.removeClass("mejs-unmute").addClass("mejs-mute")}},false);if(t.container.is(":visible")){positionVolumeHandle(player.options.startVolume);if(player.options.startVolume===0)media.setMuted(true);if(media.pluginType==="native")media.setVolume(player.options.startVolume)}}})})(mejs.$);
(function($){$.extend(mejs.MepDefaults,{usePluginFullScreen:true,newWindowCallback:function(){return""},fullscreenText:mejs.i18n.t("Fullscreen")});$.extend(MediaElementPlayer.prototype,{isFullScreen:false,isNativeFullScreen:false,isInIframe:false,buildfullscreen:function(player,controls,layers,media){if(!player.isVideo)return;player.isInIframe=window.location!=window.parent.location;if(mejs.MediaFeatures.hasTrueNativeFullScreen){var func=function(e){if(player.isFullScreen)if(mejs.MediaFeatures.isFullScreen()){player.isNativeFullScreen=
true;player.setControlsSize()}else{player.isNativeFullScreen=false;player.exitFullScreen()}};player.globalBind(mejs.MediaFeatures.fullScreenEventName,func)}var t=this;var normalHeight=0;var normalWidth=0;var container=player.container;var fullscreenBtn=$('\x3cdiv class\x3d"mejs-button mejs-fullscreen-button"\x3e'+'\x3cbutton type\x3d"button" aria-controls\x3d"'+t.id+'" title\x3d"'+t.options.fullscreenText+'" aria-label\x3d"'+t.options.fullscreenText+'"\x3e\x3c/button\x3e'+"\x3c/div\x3e").appendTo(controls);
if(t.media.pluginType==="native"||!t.options.usePluginFullScreen&&!mejs.MediaFeatures.isFirefox)fullscreenBtn.click(function(){var isFullScreen=mejs.MediaFeatures.hasTrueNativeFullScreen&&mejs.MediaFeatures.isFullScreen()||player.isFullScreen;if(isFullScreen)player.exitFullScreen();else player.enterFullScreen()});else{var hideTimeout=null;var supportsPointerEvents=function(){var element=document.createElement("x");var documentElement=document.documentElement;var getComputedStyle=window.getComputedStyle;
var supports;if(!("pointerEvents"in element.style))return false;element.style.pointerEvents="auto";element.style.pointerEvents="x";documentElement.appendChild(element);supports=getComputedStyle&&getComputedStyle(element,"").pointerEvents==="auto";documentElement.removeChild(element);return!!supports}();if(supportsPointerEvents&&!mejs.MediaFeatures.isOpera){var fullscreenIsDisabled=false;var restoreControls=function(){if(fullscreenIsDisabled){for(var i in hoverDivs)hoverDivs[i].hide();fullscreenBtn.css("pointer-events",
"");t.controls.css("pointer-events","");t.media.removeEventListener("click",t.clickToPlayPauseCallback);fullscreenIsDisabled=false}};var hoverDivs={};var hoverDivNames=["top","left","right","bottom"];var i$$0;var len;var positionHoverDivs=function(){var fullScreenBtnOffsetLeft=fullscreenBtn.offset().left-t.container.offset().left;var fullScreenBtnOffsetTop=fullscreenBtn.offset().top-t.container.offset().top;var fullScreenBtnWidth=fullscreenBtn.outerWidth(true);var fullScreenBtnHeight=fullscreenBtn.outerHeight(true);
var containerWidth=t.container.width();var containerHeight=t.container.height();for(i$$0 in hoverDivs)hoverDivs[i$$0].css({position:"absolute",top:0,left:0});hoverDivs["top"].width(containerWidth).height(fullScreenBtnOffsetTop);hoverDivs["left"].width(fullScreenBtnOffsetLeft).height(fullScreenBtnHeight).css({top:fullScreenBtnOffsetTop});hoverDivs["right"].width(containerWidth-fullScreenBtnOffsetLeft-fullScreenBtnWidth).height(fullScreenBtnHeight).css({top:fullScreenBtnOffsetTop,left:fullScreenBtnOffsetLeft+
fullScreenBtnWidth});hoverDivs["bottom"].width(containerWidth).height(containerHeight-fullScreenBtnHeight-fullScreenBtnOffsetTop).css({top:fullScreenBtnOffsetTop+fullScreenBtnHeight})};t.globalBind("resize",function(){positionHoverDivs()});for(i$$0=0,len=hoverDivNames.length;i$$0<len;i$$0++)hoverDivs[hoverDivNames[i$$0]]=$('\x3cdiv class\x3d"mejs-fullscreen-hover" /\x3e').appendTo(t.container).mouseover(restoreControls).hide();fullscreenBtn.on("mouseover",function(){if(!t.isFullScreen){var buttonPos=
fullscreenBtn.offset();var containerPos=player.container.offset();media.positionFullscreenButton(buttonPos.left-containerPos.left,buttonPos.top-containerPos.top,false);fullscreenBtn.css("pointer-events","none");t.controls.css("pointer-events","none");t.media.addEventListener("click",t.clickToPlayPauseCallback);for(i$$0 in hoverDivs)hoverDivs[i$$0].show();positionHoverDivs();fullscreenIsDisabled=true}});media.addEventListener("fullscreenchange",function(e){t.isFullScreen=!t.isFullScreen;if(t.isFullScreen)t.media.removeEventListener("click",
t.clickToPlayPauseCallback);else t.media.addEventListener("click",t.clickToPlayPauseCallback);restoreControls()});t.globalBind("mousemove",function(e){if(fullscreenIsDisabled){var fullscreenBtnPos=fullscreenBtn.offset();if(e.pageY<fullscreenBtnPos.top||e.pageY>fullscreenBtnPos.top+fullscreenBtn.outerHeight(true)||e.pageX<fullscreenBtnPos.left||e.pageX>fullscreenBtnPos.left+fullscreenBtn.outerWidth(true)){fullscreenBtn.css("pointer-events","");t.controls.css("pointer-events","");fullscreenIsDisabled=
false}}})}else fullscreenBtn.on("mouseover",function(){if(hideTimeout!==null){clearTimeout(hideTimeout);delete hideTimeout}var buttonPos=fullscreenBtn.offset();var containerPos=player.container.offset();media.positionFullscreenButton(buttonPos.left-containerPos.left,buttonPos.top-containerPos.top,true)}).on("mouseout",function(){if(hideTimeout!==null){clearTimeout(hideTimeout);delete hideTimeout}hideTimeout=setTimeout(function(){media.hideFullscreenButton()},1500)})}player.fullscreenBtn=fullscreenBtn;
t.globalBind("keydown",function(e){if((mejs.MediaFeatures.hasTrueNativeFullScreen&&mejs.MediaFeatures.isFullScreen()||t.isFullScreen)&&e.keyCode==27)player.exitFullScreen()})},cleanfullscreen:function(player){player.exitFullScreen()},containerSizeTimeout:null,enterFullScreen:function(){var t=this;if(t.media.pluginType!=="native"&&(mejs.MediaFeatures.isFirefox||t.options.usePluginFullScreen))return;$(document.documentElement).addClass("mejs-fullscreen");normalHeight=t.container.height();normalWidth=
t.container.width();if(t.media.pluginType==="native")if(mejs.MediaFeatures.hasTrueNativeFullScreen){mejs.MediaFeatures.requestFullScreen(t.container[0]);if(t.isInIframe)setTimeout(function checkFullscreen(){if(t.isNativeFullScreen){var zoomMultiplier=window["devicePixelRatio"]||1;var percentErrorMargin=.002;var windowWidth=zoomMultiplier*$(window).width();var screenWidth=screen.width;var absDiff=Math.abs(screenWidth-windowWidth);var marginError=screenWidth*percentErrorMargin;if(absDiff>marginError)t.exitFullScreen();
else setTimeout(checkFullscreen,500)}},500)}else if(mejs.MediaFeatures.hasSemiNativeFullScreen){t.media.webkitEnterFullscreen();return}if(t.isInIframe){var url=t.options.newWindowCallback(this);if(url!=="")if(!mejs.MediaFeatures.hasTrueNativeFullScreen){t.pause();window.open(url,t.id,"top\x3d0,left\x3d0,width\x3d"+screen.availWidth+",height\x3d"+screen.availHeight+",resizable\x3dyes,scrollbars\x3dno,status\x3dno,toolbar\x3dno");return}else setTimeout(function(){if(!t.isNativeFullScreen){t.pause();
window.open(url,t.id,"top\x3d0,left\x3d0,width\x3d"+screen.availWidth+",height\x3d"+screen.availHeight+",resizable\x3dyes,scrollbars\x3dno,status\x3dno,toolbar\x3dno")}},250)}t.container.addClass("mejs-container-fullscreen").width("100%").height("100%");t.containerSizeTimeout=setTimeout(function(){t.container.css({width:"100%",height:"100%"});t.setControlsSize()},500);if(t.media.pluginType==="native")t.$media.width("100%").height("100%");else{t.container.find(".mejs-shim").width("100%").height("100%");
t.media.setVideoSize($(window).width(),$(window).height())}t.layers.children("div").width("100%").height("100%");if(t.fullscreenBtn)t.fullscreenBtn.removeClass("mejs-fullscreen").addClass("mejs-unfullscreen");t.setControlsSize();t.isFullScreen=true;t.container.find(".mejs-captions-text").css("font-size",screen.width/t.width*1*100+"%");t.container.find(".mejs-captions-position").css("bottom","45px")},exitFullScreen:function(){var t=this;clearTimeout(t.containerSizeTimeout);if(t.media.pluginType!==
"native"&&mejs.MediaFeatures.isFirefox){t.media.setFullscreen(false);return}if(mejs.MediaFeatures.hasTrueNativeFullScreen&&(mejs.MediaFeatures.isFullScreen()||t.isFullScreen))mejs.MediaFeatures.cancelFullScreen();$(document.documentElement).removeClass("mejs-fullscreen");t.container.removeClass("mejs-container-fullscreen").width(normalWidth).height(normalHeight);if(t.media.pluginType==="native")t.$media.width(normalWidth).height(normalHeight);else{t.container.find(".mejs-shim").width(normalWidth).height(normalHeight);
t.media.setVideoSize(normalWidth,normalHeight)}t.layers.children("div").width(normalWidth).height(normalHeight);t.fullscreenBtn.removeClass("mejs-unfullscreen").addClass("mejs-fullscreen");t.setControlsSize();t.isFullScreen=false;t.container.find(".mejs-captions-text").css("font-size","");t.container.find(".mejs-captions-position").css("bottom","")}})})(mejs.$);
(function($){$.extend(mejs.MepDefaults,{speeds:["1.50","1.25","1.00","0.75"],defaultSpeed:"1.00"});$.extend(MediaElementPlayer.prototype,{buildspeed:function(player,controls,layers,media){var t=this;if(t.media.pluginType=="native"){var s='\x3cdiv class\x3d"mejs-button mejs-speed-button"\x3e\x3cbutton type\x3d"button"\x3e'+t.options.defaultSpeed+'x\x3c/button\x3e\x3cdiv class\x3d"mejs-speed-selector"\x3e\x3cul\x3e';var i;var ss;if($.inArray(t.options.defaultSpeed,t.options.speeds)===-1)t.options.speeds.push(t.options.defaultSpeed);
t.options.speeds.sort(function(a,b){return parseFloat(b)-parseFloat(a)});for(i=0;i<t.options.speeds.length;i++){s+='\x3cli\x3e\x3cinput type\x3d"radio" name\x3d"speed" value\x3d"'+t.options.speeds[i]+'" id\x3d"'+t.options.speeds[i]+'" ';if(t.options.speeds[i]==t.options.defaultSpeed){s+="checked\x3dtrue ";s+='/\x3e\x3clabel for\x3d"'+t.options.speeds[i]+'" class\x3d"mejs-speed-selected"\x3e'+t.options.speeds[i]+"x\x3c/label\x3e\x3c/li\x3e"}else s+='/\x3e\x3clabel for\x3d"'+t.options.speeds[i]+'"\x3e'+
t.options.speeds[i]+"x\x3c/label\x3e\x3c/li\x3e"}s+="\x3c/ul\x3e\x3c/div\x3e\x3c/div\x3e";player.speedButton=$(s).appendTo(controls);player.playbackspeed=t.options.defaultSpeed;player.speedButton.on("click","input[type\x3dradio]",function(){player.playbackspeed=$(this).attr("value");media.playbackRate=parseFloat(player.playbackspeed);player.speedButton.find("button").text(player.playbackspeed+"x");player.speedButton.find(".mejs-speed-selected").removeClass("mejs-speed-selected");player.speedButton.find("input[type\x3dradio]:checked").next().addClass("mejs-speed-selected")});
ss=player.speedButton.find(".mejs-speed-selector");ss.height(this.speedButton.find(".mejs-speed-selector ul").outerHeight(true)+player.speedButton.find(".mejs-speed-translations").outerHeight(true));ss.css("top",-1*ss.height()+"px")}}})})(mejs.$);
(function($){$.extend(mejs.MepDefaults,{startLanguage:"",tracksText:mejs.i18n.t("Captions/Subtitles"),hideCaptionsButtonWhenEmpty:true,toggleCaptionsButtonWhenOnlyOne:false,slidesSelector:""});$.extend(MediaElementPlayer.prototype,{hasChapters:false,buildtracks:function(player,controls,layers,media){if(player.tracks.length===0)return;var t=this;var i;var options="";if(t.domNode.textTracks)for(i=t.domNode.textTracks.length-1;i>=0;i--)t.domNode.textTracks[i].mode="hidden";player.chapters=$('\x3cdiv class\x3d"mejs-chapters mejs-layer"\x3e\x3c/div\x3e').prependTo(layers).hide();
player.captions=$('\x3cdiv class\x3d"mejs-captions-layer mejs-layer"\x3e\x3cdiv class\x3d"mejs-captions-position mejs-captions-position-hover"\x3e\x3cspan class\x3d"mejs-captions-text"\x3e\x3c/span\x3e\x3c/div\x3e\x3c/div\x3e').prependTo(layers).hide();player.captionsText=player.captions.find(".mejs-captions-text");player.captionsButton=$('\x3cdiv class\x3d"mejs-button mejs-captions-button"\x3e'+'\x3cbutton type\x3d"button" aria-controls\x3d"'+t.id+'" title\x3d"'+t.options.tracksText+'" aria-label\x3d"'+
t.options.tracksText+'"\x3e\x3c/button\x3e'+'\x3cdiv class\x3d"mejs-captions-selector"\x3e'+"\x3cul\x3e"+"\x3cli\x3e"+'\x3cinput type\x3d"radio" name\x3d"'+player.id+'_captions" id\x3d"'+player.id+'_captions_none" value\x3d"none" checked\x3d"checked" /\x3e'+'\x3clabel for\x3d"'+player.id+'_captions_none"\x3e'+mejs.i18n.t("None")+"\x3c/label\x3e"+"\x3c/li\x3e"+"\x3c/ul\x3e"+"\x3c/div\x3e"+"\x3c/div\x3e").appendTo(controls);var subtitleCount=0;for(i=0;i<player.tracks.length;i++)if(player.tracks[i].kind==
"subtitles")subtitleCount++;if(t.options.toggleCaptionsButtonWhenOnlyOne&&subtitleCount==1)player.captionsButton.on("click",function(){if(player.selectedTrack===null)lang=player.tracks[0].srclang;else lang="none";player.setTrack(lang)});else{player.captionsButton.on("mouseenter focusin",function(){$(this).find(".mejs-captions-selector").css("visibility","visible")}).on("click","input[type\x3dradio]",function(){lang=this.value;player.setTrack(lang)});player.captionsButton.on("mouseleave focusout",
function(){$(this).find(".mejs-captions-selector").css("visibility","hidden")})}if(!player.options.alwaysShowControls)player.container.bind("controlsshown",function(){player.container.find(".mejs-captions-position").addClass("mejs-captions-position-hover")}).bind("controlshidden",function(){if(!media.paused)player.container.find(".mejs-captions-position").removeClass("mejs-captions-position-hover")});else player.container.find(".mejs-captions-position").addClass("mejs-captions-position-hover");player.trackToLoad=
-1;player.selectedTrack=null;player.isLoadingTrack=false;for(i=0;i<player.tracks.length;i++)if(player.tracks[i].kind=="subtitles")player.addTrackButton(player.tracks[i].srclang,player.tracks[i].label);player.loadNextTrack();media.addEventListener("timeupdate",function(e){player.displayCaptions()},false);if(player.options.slidesSelector!==""){player.slidesContainer=$(player.options.slidesSelector);media.addEventListener("timeupdate",function(e){player.displaySlides()},false)}media.addEventListener("loadedmetadata",
function(e){player.displayChapters()},false);player.container.hover(function(){if(player.hasChapters){player.chapters.css("visibility","visible");player.chapters.fadeIn(200).height(player.chapters.find(".mejs-chapter").outerHeight())}},function(){if(player.hasChapters&&!media.paused)player.chapters.fadeOut(200,function(){$(this).css("visibility","hidden");$(this).css("display","block")})});if(player.node.getAttribute("autoplay")!==null)player.chapters.css("visibility","hidden")},setTrack:function(lang){var t=
this;var i;if(lang=="none"){t.selectedTrack=null;t.captionsButton.removeClass("mejs-captions-enabled")}else for(i=0;i<t.tracks.length;i++)if(t.tracks[i].srclang==lang){if(t.selectedTrack===null)t.captionsButton.addClass("mejs-captions-enabled");t.selectedTrack=t.tracks[i];t.captions.attr("lang",t.selectedTrack.srclang);t.displayCaptions();break}},loadNextTrack:function(){var t=this;t.trackToLoad++;if(t.trackToLoad<t.tracks.length){t.isLoadingTrack=true;t.loadTrack(t.trackToLoad)}else{t.isLoadingTrack=
false;t.checkForTracks()}},loadTrack:function(index){var t=this;var track=t.tracks[index];var after=function(){track.isLoaded=true;t.enableTrackButton(track.srclang,track.label);t.loadNextTrack()};$.ajax({url:track.src,dataType:"text",success:function(d){if(typeof d=="string"&&/<tt\s+xml/ig.exec(d))track.entries=mejs.TrackFormatParser.dfxp.parse(d);else track.entries=mejs.TrackFormatParser.webvtt.parse(d);after();if(track.kind=="chapters")t.media.addEventListener("play",function(e){if(t.media.duration>
0)t.displayChapters(track)},false);if(track.kind=="slides")t.setupSlides(track)},error:function(){t.loadNextTrack()}})},enableTrackButton:function(lang,label){var t=this;if(label==="")label=mejs.language.codes[lang]||lang;t.captionsButton.find("input[value\x3d"+lang+"]").prop("disabled",false).siblings("label").html(label);if(t.options.startLanguage==lang)$("#"+t.id+"_captions_"+lang).prop("checked",true).trigger("click");t.adjustLanguageBox()},addTrackButton:function(lang,label){var t=this;if(label===
"")label=mejs.language.codes[lang]||lang;t.captionsButton.find("ul").append($("\x3cli\x3e"+'\x3cinput type\x3d"radio" name\x3d"'+t.id+'_captions" id\x3d"'+t.id+"_captions_"+lang+'" value\x3d"'+lang+'" disabled\x3d"disabled" /\x3e'+'\x3clabel for\x3d"'+t.id+"_captions_"+lang+'"\x3e'+label+" (loading)"+"\x3c/label\x3e"+"\x3c/li\x3e"));t.adjustLanguageBox();t.container.find(".mejs-captions-translations option[value\x3d"+lang+"]").remove()},adjustLanguageBox:function(){var t=this;t.captionsButton.find(".mejs-captions-selector").height(t.captionsButton.find(".mejs-captions-selector ul").outerHeight(true)+
t.captionsButton.find(".mejs-captions-translations").outerHeight(true))},checkForTracks:function(){var t=this;var hasSubtitles=false;if(t.options.hideCaptionsButtonWhenEmpty){for(i=0;i<t.tracks.length;i++)if(t.tracks[i].kind=="subtitles"){hasSubtitles=true;break}if(!hasSubtitles){t.captionsButton.hide();t.setControlsSize()}}},displayCaptions:function(){if(typeof this.tracks=="undefined")return;var t=this;var i;var track=t.selectedTrack;if(track!==null&&track.isLoaded){for(i=0;i<track.entries.times.length;i++)if(t.media.currentTime>=
track.entries.times[i].start&&t.media.currentTime<=track.entries.times[i].stop){t.captionsText.html(track.entries.text[i]).attr("class","mejs-captions-text "+(track.entries.times[i].identifier||""));t.captions.show().height(0);return}t.captions.hide()}else t.captions.hide()},setupSlides:function(track){var t=this;t.slides=track;t.slides.entries.imgs=[t.slides.entries.text.length];t.showSlide(0)},showSlide:function(index){if(typeof this.tracks=="undefined"||typeof this.slidesContainer=="undefined")return;
var t=this;var url=t.slides.entries.text[index];var img=t.slides.entries.imgs[index];if(typeof img=="undefined"||typeof img.fadeIn=="undefined")t.slides.entries.imgs[index]=img=$('\x3cimg src\x3d"'+url+'"\x3e').on("load",function(){img.appendTo(t.slidesContainer).hide().fadeIn().siblings(":visible").fadeOut()});else if(!img.is(":visible")&&!img.is(":animated"))img.fadeIn().siblings(":visible").fadeOut()},displaySlides:function(){if(typeof this.slides=="undefined")return;var t=this;var slides=t.slides;
var i;for(i=0;i<slides.entries.times.length;i++)if(t.media.currentTime>=slides.entries.times[i].start&&t.media.currentTime<=slides.entries.times[i].stop){t.showSlide(i);return}},displayChapters:function(){var t=this;var i;for(i=0;i<t.tracks.length;i++)if(t.tracks[i].kind=="chapters"&&t.tracks[i].isLoaded){t.drawChapters(t.tracks[i]);t.hasChapters=true;break}},drawChapters:function(chapters){var t=this;var i;var dur;var percent=0;var usedPercent=0;t.chapters.empty();for(i=0;i<chapters.entries.times.length;i++){dur=
chapters.entries.times[i].stop-chapters.entries.times[i].start;percent=Math.floor(dur/t.media.duration*100);if(percent+usedPercent>100||i==chapters.entries.times.length-1&&percent+usedPercent<100)percent=100-usedPercent;t.chapters.append($('\x3cdiv class\x3d"mejs-chapter" rel\x3d"'+chapters.entries.times[i].start+'" style\x3d"left: '+usedPercent.toString()+"%;width: "+percent.toString()+'%;"\x3e'+'\x3cdiv class\x3d"mejs-chapter-block'+(i==chapters.entries.times.length-1?" mejs-chapter-block-last":
"")+'"\x3e'+'\x3cspan class\x3d"ch-title"\x3e'+chapters.entries.text[i]+"\x3c/span\x3e"+'\x3cspan class\x3d"ch-time"\x3e'+mejs.Utility.secondsToTimeCode(chapters.entries.times[i].start)+"\x26ndash;"+mejs.Utility.secondsToTimeCode(chapters.entries.times[i].stop)+"\x3c/span\x3e"+"\x3c/div\x3e"+"\x3c/div\x3e"));usedPercent+=percent}t.chapters.find("div.mejs-chapter").click(function(){t.media.setCurrentTime(parseFloat($(this).attr("rel")));if(t.media.paused)t.media.play()});t.chapters.show()}});mejs.language=
{codes:{af:"Afrikaans",sq:"Albanian",ar:"Arabic",be:"Belarusian",bg:"Bulgarian",ca:"Catalan",zh:"Chinese","zh-cn":"Chinese Simplified","zh-tw":"Chinese Traditional",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch",en:"English",et:"Estonian",fl:"Filipino",fi:"Finnish",fr:"French",gl:"Galician",de:"German",el:"Greek",ht:"Haitian Creole",iw:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",ga:"Irish",it:"Italian",ja:"Japanese",ko:"Korean",lv:"Latvian",lt:"Lithuanian",mk:"Macedonian",ms:"Malay",
mt:"Maltese",no:"Norwegian",fa:"Persian",pl:"Polish",pt:"Portuguese",ro:"Romanian",ru:"Russian",sr:"Serbian",sk:"Slovak",sl:"Slovenian",es:"Spanish",sw:"Swahili",sv:"Swedish",tl:"Tagalog",th:"Thai",tr:"Turkish",uk:"Ukrainian",vi:"Vietnamese",cy:"Welsh",yi:"Yiddish"}};mejs.TrackFormatParser={webvtt:{pattern_timecode:/^((?:[0-9]{1,2}:)?[0-9]{2}:[0-9]{2}([,.][0-9]{1,3})?) --\> ((?:[0-9]{1,2}:)?[0-9]{2}:[0-9]{2}([,.][0-9]{3})?)(.*)$/,parse:function(trackText){var i=0;var lines=mejs.TrackFormatParser.split2(trackText,
/\r?\n/);var entries={text:[],times:[]};var timecode;var text;for(var identifier;i<lines.length;i++){timecode=this.pattern_timecode.exec(lines[i]);if(timecode&&i<lines.length){if(i-1>=0&&lines[i-1]!=="")identifier=lines[i-1];i++;text=lines[i];for(i++;lines[i]!==""&&i<lines.length;){text=text+"\n"+lines[i];i++}text=$.trim(text).replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig,"\x3ca href\x3d'$1' target\x3d'_blank'\x3e$1\x3c/a\x3e");entries.text.push(text);entries.times.push({identifier:identifier,
start:mejs.Utility.convertSMPTEtoSeconds(timecode[1])===0?.2:mejs.Utility.convertSMPTEtoSeconds(timecode[1]),stop:mejs.Utility.convertSMPTEtoSeconds(timecode[3]),settings:timecode[5]})}identifier=""}return entries}},dfxp:{parse:function(trackText){trackText=$(trackText).filter("tt");var i=0;var container=trackText.children("div").eq(0);var lines=container.find("p");var styleNode=trackText.find("#"+container.attr("style"));var styles;var begin;var end;var text;var entries={text:[],times:[]};if(styleNode.length){var attributes=
styleNode.removeAttr("id").get(0).attributes;if(attributes.length){styles={};for(i=0;i<attributes.length;i++)styles[attributes[i].name.split(":")[1]]=attributes[i].value}}for(i=0;i<lines.length;i++){var style;var _temp_times={start:null,stop:null,style:null};if(lines.eq(i).attr("begin"))_temp_times.start=mejs.Utility.convertSMPTEtoSeconds(lines.eq(i).attr("begin"));if(!_temp_times.start&&lines.eq(i-1).attr("end"))_temp_times.start=mejs.Utility.convertSMPTEtoSeconds(lines.eq(i-1).attr("end"));if(lines.eq(i).attr("end"))_temp_times.stop=
mejs.Utility.convertSMPTEtoSeconds(lines.eq(i).attr("end"));if(!_temp_times.stop&&lines.eq(i+1).attr("begin"))_temp_times.stop=mejs.Utility.convertSMPTEtoSeconds(lines.eq(i+1).attr("begin"));if(styles){style="";for(var _style in styles)style+=_style+":"+styles[_style]+";"}if(style)_temp_times.style=style;if(_temp_times.start===0)_temp_times.start=.2;entries.times.push(_temp_times);text=$.trim(lines.eq(i).html()).replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig,
"\x3ca href\x3d'$1' target\x3d'_blank'\x3e$1\x3c/a\x3e");entries.text.push(text);if(entries.times.start===0)entries.times.start=2}return entries}},split2:function(text,regex){return text.split(regex)}};if("x\n\ny".split(/\n/gi).length!=3)mejs.TrackFormatParser.split2=function(text,regex){var parts=[];var chunk="";var i;for(i=0;i<text.length;i++){chunk+=text.substring(i,i+1);if(regex.test(chunk)){parts.push(chunk.replace(regex,""));chunk=""}}parts.push(chunk);return parts}})(mejs.$);
(function($){$.extend(mejs.MepDefaults,{"contextMenuItems":[{render:function(player){if(typeof player.enterFullScreen=="undefined")return null;if(player.isFullScreen)return mejs.i18n.t("Turn off Fullscreen");else return mejs.i18n.t("Go Fullscreen")},click:function(player){if(player.isFullScreen)player.exitFullScreen();else player.enterFullScreen()}},{render:function(player){if(player.media.muted)return mejs.i18n.t("Unmute");else return mejs.i18n.t("Mute")},click:function(player){if(player.media.muted)player.setMuted(false);
else player.setMuted(true)}},{isSeparator:true},{render:function(player){return mejs.i18n.t("Download Video")},click:function(player){window.location.href=player.media.currentSrc}}]});$.extend(MediaElementPlayer.prototype,{buildcontextmenu:function(player,controls,layers,media){player.contextMenu=$('\x3cdiv class\x3d"mejs-contextmenu"\x3e\x3c/div\x3e').appendTo($("body")).hide();player.container.bind("contextmenu",function(e){if(player.isContextMenuEnabled){e.preventDefault();player.renderContextMenu(e.clientX-
1,e.clientY-1);return false}});player.container.bind("click",function(){player.contextMenu.hide()});player.contextMenu.bind("mouseleave",function(){player.startContextMenuTimer()})},cleancontextmenu:function(player){player.contextMenu.remove()},isContextMenuEnabled:true,enableContextMenu:function(){this.isContextMenuEnabled=true},disableContextMenu:function(){this.isContextMenuEnabled=false},contextMenuTimeout:null,startContextMenuTimer:function(){var t=this;t.killContextMenuTimer();t.contextMenuTimer=
setTimeout(function(){t.hideContextMenu();t.killContextMenuTimer()},750)},killContextMenuTimer:function(){var timer=this.contextMenuTimer;if(timer!=null){clearTimeout(timer);delete timer;timer=null}},hideContextMenu:function(){this.contextMenu.hide()},renderContextMenu:function(x,y){var t=this;var html="";var items=t.options.contextMenuItems;var i=0;for(var il=items.length;i<il;i++)if(items[i].isSeparator)html+='\x3cdiv class\x3d"mejs-contextmenu-separator"\x3e\x3c/div\x3e';else{var rendered=items[i].render(t);
if(rendered!=null)html+='\x3cdiv class\x3d"mejs-contextmenu-item" data-itemindex\x3d"'+i+'" id\x3d"element-'+Math.random()*1E6+'"\x3e'+rendered+"\x3c/div\x3e"}t.contextMenu.empty().append($(html)).css({top:y,left:x}).show();t.contextMenu.find(".mejs-contextmenu-item").each(function(){var $dom=$(this);var itemIndex=parseInt($dom.data("itemindex"),10);var item=t.options.contextMenuItems[itemIndex];if(typeof item.show!="undefined")item.show($dom,t);$dom.click(function(){if(typeof item.click!="undefined")item.click(t);
t.contextMenu.hide()})});setTimeout(function(){t.killControlsTimer("rev3")},100)}})})(mejs.$);
(function($){$.extend(mejs.MepDefaults,{postrollCloseText:mejs.i18n.t("Close")});$.extend(MediaElementPlayer.prototype,{buildpostroll:function(player,controls,layers,media){var t=this;var postrollLink=t.container.find('link[rel\x3d"postroll"]').attr("href");if(typeof postrollLink!=="undefined"){player.postroll=$('\x3cdiv class\x3d"mejs-postroll-layer mejs-layer"\x3e\x3ca class\x3d"mejs-postroll-close" onclick\x3d"$(this).parent().hide();return false;"\x3e'+t.options.postrollCloseText+'\x3c/a\x3e\x3cdiv class\x3d"mejs-postroll-layer-content"\x3e\x3c/div\x3e\x3c/div\x3e').prependTo(layers).hide();
t.media.addEventListener("ended",function(e){$.ajax({dataType:"html",url:postrollLink,success:function(data,textStatus){layers.find(".mejs-postroll-layer-content").html(data)}});player.postroll.show()},false)}}})})(mejs.$);
(function($){var isTouch=function(){return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i.test(navigator.userAgent||navigator.vendor||window.opera)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test((navigator.userAgent||
navigator.vendor||window.opera).substr(0,4))}();var BgStretch=function(el){this.el=el;this.img=el.find("\x3e div \x3e img");this.canvas=el.find(".canvas");this.img.on("load",$.proxy(this.update,this,true));this.update();BgStretch.ALL.push(this)};BgStretch.prototype.getRation=function(reload){if(this._ratio&&!reload)return this._ratio;var img=this.img;if(img.get(0).complete){var imgWidth=img.width();var imgHeight=img.height();if(imgWidth>0&&imgHeight>0)this._ratio=imgWidth/imgHeight}else if(this.el.data("ration"))this._ratio=
parseFloat(this.el.data("ration"));return this._ratio};BgStretch.prototype.update=function(reload){var el=this.el;var ratio=this.getRation(reload);if(ratio){el.addClass("init");var currRatio=(el.width()+parseFloat(el.css("padding-left"))+parseFloat(el.css("padding-right")))/(el.height()+parseFloat(el.css("padding-top"))+parseFloat(el.css("padding-bottom")));this._updateView(currRatio);this._updateCanvas(currRatio)}};BgStretch.prototype._updateView=function(currRatio){var el=this.el;var ratio=this.getRation();
el.find("\x3e *").height("");if(currRatio>=ratio)el.addClass("w");else{el.removeClass("w");if(isTouch)el.find("\x3e *").height(el.height())}};BgStretch.prototype._updateCanvas=function(currRatio){var canvas=this.canvas;var ratio=this.getRation();var img=this.img;if(canvas.length&&img.get(0).complete){this.el.addClass("canvas-visible");if(currRatio>=ratio){canvas.height(img.height());canvas.width("")}else{canvas.width(img.width());canvas.height("")}}};BgStretch.ALL=[];BgStretch.resizeTimeout=null;
BgStretch.winWidth=null;BgStretch.winHeight=null;var $win=$(window);$win.on("resize",function(){clearTimeout(BgStretch.resizeTimeout);BgStretch.resizeTimeout=setTimeout(function(){var width=$win.width();var height=$win.height();if(BgStretch.winWidth!==width||BgStretch.winHeight!==height){BgStretch.winWidth=width;BgStretch.winHeight=height;$.each(BgStretch.ALL,function(i,bgS){bgS.update()})}},200)});$.fn.bgStretch=function(){return this.each(function(){var el=$(this);var bgs=el.data("bgs");if(el.find("\x3e div \x3e img").length&&
!bgs)el.data("bgs",new BgStretch(el));else if(bgs)bgs.update()})};$(".bgs").bgStretch();$(function(){$(".bgs").bgStretch()})})(jQuery);
(function(d,s,id){var js;var fjs=d.getElementsByTagName(s)[0];if(d.getElementById(id))return;js=d.createElement(s);js.id=id;js.src="//connect.facebook.net/en_US/sdk.js";fjs.parentNode.insertBefore(js,fjs)})(document,"script","facebook-jssdk");var fbShare=function(){};
window.fbAsyncInit=function(){FB.init({appId:"106920676011663",xfbml:true,version:"v2.8"});fbShare=function(linkEncode,imageUrlEncode){FB.ui({method:"feed",name:$(".app-gallery .photo-slider").attr("data-fbcaption"),description:$(".app-gallery .photo-slider").attr("data-fbdescription"),link:linkEncode,picture:imageUrlEncode},function(response){});return false}};
(function($){var l1=location.href.split("#")[0];var l=l1.split("?")[0];var link=encodeURIComponent(l);var twitter_text=$(".app-gallery .photo-slider").attr("data-twtext");$(".app-gallery .links").each(function(){var i=$(this).siblings().data("default");var pic=encodeURIComponent(i);var fb=$(this).find("a.fa-facebook");var tw=$(this).find("a.fa-twitter");var g=$(this).find("a.fa-google-plus");var p=$(this).find("a.fa-pinterest");fb.attr("onclick","javascript:fbShare('"+l+"','"+i+"'); return false;");
fb.attr("href","#");tw.attr("onclick","javascript:window.open(this.href, '', 'menubar\x3dno,toolbar\x3dno,resizable\x3dyes,scrollbars\x3dyes,height\x3d600,width\x3d600'); return false;");tw.attr("href","https://twitter.com/share?url\x3d"+link+"\x26text\x3d"+encodeURIComponent(twitter_text));g.attr("onclick","javascript:window.open(this.href, '', 'menubar\x3dno,toolbar\x3dno,resizable\x3dyes,scrollbars\x3dyes,height\x3d600,width\x3d600'); return false;");g.attr("href","https://plus.google.com/share?url\x3d"+
link);p.attr("onclick","javascript:window.open(this.href, '', 'menubar\x3dno,toolbar\x3dno,resizable\x3dyes,scrollbars\x3dyes,height\x3d600,width\x3d600'); return false;");p.attr("href","http://www.pinterest.com/pin/create/button/?url\x3d"+link+"\x26media\x3d"+pic)})})(jQuery);
var DeviceDetection;
(function(DeviceDetection){function detectMobileViaWindowWidth(){return window.innerWidth<=767}function detectTabletViaWindowWidth(){return window.innerWidth>767&&window.innerWidth<=1199}function detectSmallTabletViaWindowWidth(){return window.innerWidth>767&&window.innerWidth<=1024}function addDetectionElements(){if(!viewElementsAdded){$("body").append(mobileViewElement).append(tabletViewElement);viewElementsAdded=true}}function detectMobileViaElement(){if(!viewElementsAdded)addDetectionElements();return mobileViewElement.is(":visible")}
function detectTabletViaElement(){if(!viewElementsAdded)addDetectionElements();return tabletViewElement.is(":visible")}function detectMobileViaUserAgent(){return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)||
/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,
4))}function detectMobileViaUserAgentSimple(){return/Android|iPhone|iPad|iPod|BlackBerry|Windows Phone/i.test(navigator.userAgent||navigator.vendor||window.opera)}function detectMobileViaUserAgentSimpleForLegal(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}function detectWindowsPhoneOrIeMobileViaUserAgent(){return/WPDesktop|Windows Phone|iemobile/i.test(navigator.userAgent)}function detectIeMobileViaUserAgent(){return/iemobile/i.test(navigator.userAgent)}
function detectIeViaUserAgent(){return navigator.userAgent.indexOf("MSIE")!==-1||navigator.appVersion.indexOf("Trident/")>0}function detectIOS6ViaUserAgent(){return/iphone os 6|/i.test(navigator.userAgent)&&/version\/6\./i.test(navigator.userAgent)}function detectTouchViaUserAgent(){return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i.test(navigator.userAgent||
navigator.vendor||window.opera)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test((navigator.userAgent||
navigator.vendor||window.opera).substr(0,4))}function detectTouchViaHtmlClass(){return!$("html").hasClass("no-touch")}function detectNativeAndroidViaUserAgent(){return/android/i.test(navigator.userAgent||navigator.vendor)&&/534\.30/i.test(navigator.userAgent||navigator.vendor)}function detectGeckoViaUserAgent(){var isGecko=/gecko/i.test(navigator.userAgent||navigator.vendor);if(isGecko&&/like\s*gecko/i.test(navigator.userAgent||navigator.vendor))isGecko=false;return isGecko}function detectNokiaViaUserAgent(){return/nokia/i.test(navigator.userAgent)}
function getMobileMatchMedia(){return window.matchMedia("(max-width: 767px), (max-device-width: 767px)")}function getTabletMatchMedia(){return window.matchMedia("(min-width: 768px) and (max-width: 1199px), (min-device-width: 767px) and (max-device-width: 1199px)")}function getDesktopMatchMedia(){return window.matchMedia("(min-width: 1200px) and (min-device-width: 1200px)")}function getTabletAndDesktopMatchMedia(){return window.matchMedia("(min-width: 768px)")}function detectViewViaWindowWidth(){var windowWidth=
window.innerWidth;if(windowWidth<=767)return DeviceDetection.ViewType.MOBILE;if(windowWidth>767&&windowWidth<1200)return DeviceDetection.ViewType.TABLET;return DeviceDetection.ViewType.DESKTOP}function detectViewViaMatchMedia(){var mobileView=window.matchMedia("(max-width: 767px), (max-device-width: 767px)");var tabletView=window.matchMedia("(min-width: 768px) and (max-width: 1199px), (min-device-width: 767px) and (max-device-width: 1199px)");if(mobileView.matches)return DeviceDetection.ViewType.MOBILE;
if(tabletView.matches)return DeviceDetection.ViewType.TABLET;return DeviceDetection.ViewType.DESKTOP}function detectViewViaMatchMediaWithWidthFallback(){if(typeof window.matchMedia!=="undefined")return DeviceDetection.detectViewViaMatchMedia();else return DeviceDetection.detectViewViaWindowWidth()}DeviceDetection.detectMobileViaWindowWidth=detectMobileViaWindowWidth;DeviceDetection.detectTabletViaWindowWidth=detectTabletViaWindowWidth;DeviceDetection.detectSmallTabletViaWindowWidth=detectSmallTabletViaWindowWidth;
var mobileViewElement=$('\x3cdiv class\x3d"mobile-detect mobile-visible"\x3eDetect view\x3c/div\x3e');var tabletViewElement=$('\x3cdiv class\x3d"mobile-detect tablet-visible"\x3eDetect view\x3c/div\x3e');var viewElementsAdded=false;DeviceDetection.addDetectionElements=addDetectionElements;DeviceDetection.detectMobileViaElement=detectMobileViaElement;DeviceDetection.detectTabletViaElement=detectTabletViaElement;DeviceDetection.detectMobileViaUserAgent=detectMobileViaUserAgent;DeviceDetection.detectMobileViaUserAgentSimple=
detectMobileViaUserAgentSimple;DeviceDetection.detectMobileViaUserAgentSimpleForLegal=detectMobileViaUserAgentSimpleForLegal;DeviceDetection.detectWindowsPhoneOrIeMobileViaUserAgent=detectWindowsPhoneOrIeMobileViaUserAgent;DeviceDetection.detectIeMobileViaUserAgent=detectIeMobileViaUserAgent;DeviceDetection.detectIeViaUserAgent=detectIeViaUserAgent;DeviceDetection.detectIOS6ViaUserAgent=detectIOS6ViaUserAgent;DeviceDetection.detectTouchViaUserAgent=detectTouchViaUserAgent;DeviceDetection.detectTouchViaHtmlClass=
detectTouchViaHtmlClass;DeviceDetection.detectNativeAndroidViaUserAgent=detectNativeAndroidViaUserAgent;DeviceDetection.detectGeckoViaUserAgent=detectGeckoViaUserAgent;DeviceDetection.detectNokiaViaUserAgent=detectNokiaViaUserAgent;DeviceDetection.getMobileMatchMedia=getMobileMatchMedia;DeviceDetection.getTabletMatchMedia=getTabletMatchMedia;DeviceDetection.getDesktopMatchMedia=getDesktopMatchMedia;DeviceDetection.getTabletAndDesktopMatchMedia=getTabletAndDesktopMatchMedia;DeviceDetection.detectViewViaWindowWidth=
detectViewViaWindowWidth;DeviceDetection.detectViewViaMatchMedia=detectViewViaMatchMedia;DeviceDetection.detectViewViaMatchMediaWithWidthFallback=detectViewViaMatchMediaWithWidthFallback;(function(ViewType){ViewType[ViewType["MOBILE"]=0]="MOBILE";ViewType[ViewType["TABLET"]=1]="TABLET";ViewType[ViewType["DESKTOP"]=2]="DESKTOP"})(DeviceDetection.ViewType||(DeviceDetection.ViewType={}));var ViewType=DeviceDetection.ViewType;var mobileByDeviceType;(function(mobileByDeviceType){function isWindows(){return/IEMobile/i.test(navigator.userAgent)}
function isAndroid(){return/Android/i.test(navigator.userAgent)}function isBlackBerry(){return/BlackBerry/i.test(navigator.userAgent)}function isIOS(){return/iPhone|iPad|iPod/i.test(navigator.userAgent)}function isAny(){return DeviceDetection.mobileByDeviceType.isAndroid()||DeviceDetection.mobileByDeviceType.isBlackBerry()||DeviceDetection.mobileByDeviceType.isIOS()||DeviceDetection.mobileByDeviceType.isWindows()}mobileByDeviceType.isWindows=isWindows;mobileByDeviceType.isAndroid=isAndroid;mobileByDeviceType.isBlackBerry=
isBlackBerry;mobileByDeviceType.isIOS=isIOS;mobileByDeviceType.isAny=isAny})(mobileByDeviceType=DeviceDetection.mobileByDeviceType||(DeviceDetection.mobileByDeviceType={}))})(DeviceDetection||(DeviceDetection={}));
(function($){function loadLayoutImages(){var $images=$(".js-load-img");$images.each(function(i,e){var $this=$(e);var type=isMobileView()?"mobile":isTabletView()?"tablet":"default";if($this.data(type)!==false)e.src=$this.data(type)||$this.data("default")})}function resizeFeaturesItems(){var features=$("#features-group").find(".clearfix.switch-group.features \x3e ul").children("li");$(features).each(function(index,value){$(value).css("min-height","")});if(!(isMobileView()||isTabletView())){var maxItemHeight=
0;$(features).each(function(index,value){var itemHeight=$(value).height();if(maxItemHeight<itemHeight)maxItemHeight=itemHeight});$(features).each(function(index,value){$(value).css("min-height",maxItemHeight+"px")})}else $(features).each(function(index,value){$(value).css("min-height","")})}function startProductVideoByParams(){if(urlParameters.videoStart==="true"){$(".product-info .video-start").trigger("click");return true}return false}var pageLang=$("html").attr("lang");var requestFrame=window.requestAnimationFrame||
window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(callback){callback()};var isTouch=function(){return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i.test(navigator.userAgent||
navigator.vendor||window.opera)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test((navigator.userAgent||
navigator.vendor||window.opera).substr(0,4))}();if(/trident\/7/i.test(navigator.userAgent)){$.browser.msie=true;$.browser.version=11}if(/android/i.test(navigator.userAgent||navigator.vendor)&&/534\.30/i.test(navigator.userAgent||navigator.vendor))$("html").addClass("native-android-browser");var isGecko;if((isGecko=/gecko/i.test(navigator.userAgent||navigator.vendor))&&/like\s*gecko/i.test(navigator.userAgent||navigator.vendor))isGecko=false;var isMobileView;var isTabletView;var $win=$(window);var winWidth=
$win.width();var windowResizeHandlers=[];var checkWinResize=function(callback){var width=$win.width();if(winWidth!==width){winWidth=width;if(typeof callback==="function")callback()}};(function(){function detectMTviewFN(){var isMobile=isMobileView();var isTablet=isTabletView();$("html").toggleClass("mobile-view",isMobile).toggleClass("tablet-view",isTablet).toggleClass("desktop-view",!isMobile&&!isTablet)}var mobileViewDetectElem=$('\x3cdiv class\x3d"mobile-detect mobile-visible"\x3eDetect view\x3c/div\x3e');
var tabletViewDetectElem=$('\x3cdiv class\x3d"mobile-detect tablet-visible"\x3eDetect view\x3c/div\x3e');$("body").append(mobileViewDetectElem).append(tabletViewDetectElem);isMobileView=function(){return mobileViewDetectElem.is(":visible")};isTabletView=function(){return tabletViewDetectElem.is(":visible")};detectMTviewFN();windowResizeHandlers.push(detectMTviewFN)})();$(function(){var commerceApi=new CommerceAdminToolApi;$("[data-fitbit-cart-api-id]").each(function(){var $this=$(this);var sku=$this.data("fitbitCartApiId");
commerceApi.getStock(sku).done(function(data){$this.text(data.price);setTimeout(function(){var temp=$this.parent()[0].offsetHeight},0)});if(typeof holidayPrices!=="undefined")if(holidayPrices.hasOwnProperty(sku))if(!$this.prev(".holiday-price--old").length){var price=holidayPrices[sku];var $link=$this.parent("a");var linkClass=$link.is(".bg")?"btn--holiday-price":"link--holiday-price";price=commerceApi.formatCurrency(price);$link.addClass(linkClass).contents()[0].textContent="";$this.addClass("holiday-price").before($("\x3cspan\x3e\x3c/span\x3e").addClass("holiday-price--old").html(price))}})});
loadLayoutImages();var loadLayoutImagesTimeout=null;windowResizeHandlers.push(function(){window.clearTimeout(loadLayoutImagesTimeout);loadLayoutImagesTimeout=window.setTimeout(function(){loadLayoutImages()},1E3)});$(".switch-manager").switchManager({automaticSwitch:true});$(".switch-manager-features").switchManager({automaticSwitch:true,eventHoverForAttr:["data-feature"]});$(".switch-manager-color").switchManager({attrs:["href"]});if(!isMobileView())$(".switch-manager-dashboard").switchManager({automaticSwitch:true,
eventHoverForAttr:["data-feature"]});else $(".switch-manager-dashboard").switchManager({automaticSwitch:false,eventHoverForAttr:["data-feature"]});(function(){var startButton=$(".product-info .video-start");var notFirstClick=false;startButton.on("click",function(){var productVideoElement=$("#video-product");var $popupYoutubePlayer=productVideoElement.find("iframe")[0];if(notFirstClick||!$("html").hasClass("touch"))$popupYoutubePlayer.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',
"*");var onClose=function(){$popupYoutubePlayer.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")};if(productVideoElement.uPopUp&&productVideoElement.hasClass("u-popup")){if(!notFirstClick)productVideoElement.on("close.videoStart",onClose);productVideoElement.uPopUp()}else if(productVideoElement.popUp)productVideoElement.popUp({onclose:onClose});notFirstClick=true})})();(function(){var lis=[];var ul=$(".product-features .features ul");if(ul.length>1)return;ul.find(" \x3e li").each(function(){var li=
$(this);li.data("twoOrder",li.index());li.data("singleOrder",li.find("a.switch").data("switchOrder"));lis.push(li.get(0))});var orderLi=function(){var sortNameAttr="twoOrder";if(isTabletView()||isMobileView())sortNameAttr="singleOrder";lis.sort(function(a,b){var aO=$(a).data(sortNameAttr);var bO=$(b).data(sortNameAttr);if(aO>bO)return 1;else if(aO<bO)return-1;return 0});ul.append($(lis))};windowResizeHandlers.push(orderLi);orderLi()})();(function(){function setSectionScrollHeight(){var height=Scrolling.getViewerSize().h;
var headerIndent=$header.outerHeight();var indentNav=0;var heightIndent=0;$indentNav.each(function(){indentNav=parseInt($(this).css("padding-top"),10);if(indentNav>0)return false});if(isTabletView())height=682;else height=Math.max(800,height);if(!isMobileView()){heightIndent=height-headerIndent-indentNav;$(".max-height:not(.header-indent)").css("min-height",height+"px");$(".max-height.header-indent").css("min-height",heightIndent+"px");if(isGecko)$(".max-height.tb").each(function(){var mhEl=$(this);
mhEl.css("height",mhEl.css("display")==="table"?"1px":"")})}else $(".max-height").css("height","").css("min-height","")}function resizingParalax(){if(skrollrInstance&&skrollrInstance.destroy)skrollrInstance.destroy();setSectionScrollHeight();if(skrollrInstance&&!isMobileView()&&!isTabletView())setTimeout(function(){skrollrInstance=skrollr.init({smoothScrolling:false})},10)}var $indentNav=$(".indent-nav");var $header=$("header");setSectionScrollHeight();var skrollrInstance;if(!isTouch)$(function(){if(!isMobileView()&&
!isTabletView())skrollrInstance=skrollr.init({smoothScrolling:false});else skrollrInstance=true});resizingParalax();windowResizeHandlers.push(resizingParalax);Scrolling.on("resize","",{weight:-100})})();(function(){var displayUse=false;var displayUseTimer=null;$(window).on("scroll",function(){displayUse=true;clearTimeout(displayUseTimer);displayUseTimer=setTimeout(function(){displayUse=false},500)});$(".app-gallery .articles").each(function(){var human=false;var articles=$(this);articles.find(" \x3e a").each(function(){var a=
$(this);a.wrap("\x3ch2 /\x3e");if(a.find(" \x3e q").length){a.find(" \x3e q").contents().wrapAll("\x3cspan /\x3e");a.addClass("has-quotation")}var h=a.closest("h2");var aSwitch=$('\x3ca href\x3d"javascript:void(0)" class\x3d"switch" data-media\x3d"'+a.data("media")+'"\x3e\x3c/a\x3e');a.removeAttr("data-media");a.attr("href","/buzz");a.removeAttr("target");aSwitch.insertBefore(articles.find("\x3e h2:eq(0)"));aSwitch.on("click",function(e,automatic){if(!automatic)human=true;articles.find(".active").removeClass("active");
aSwitch.addClass("active");h.addClass("active");e.stopPropagation();return false})});var artLength=articles.find("a.switch").length;if(artLength>=2)articles.find("a.switch:eq("+(artLength-2)+"), a.switch:eq("+(artLength-1)+")").wrapAll("\x3cnobr /\x3e");$(function(){var aSwitches=articles.find("a.switch");var aCurrIndex=0;(function switcher(){if(human)return;if(!displayUse){aSwitches.eq(aCurrIndex).trigger("click",[true]);++aCurrIndex;if(aCurrIndex>=aSwitches.length)aCurrIndex=0}setTimeout(switcher,
3E3)})()})})})();(function(){var $photoSlider=$(".photo-slider");var $photoThumbs=$("#thumbnails");var _notSlide=true;var _tabletVar=$("html").hasClass("tablet-view")?0:1;$photoSlider.slick({slidesToShow:1,slidesToScroll:1,arrows:false,infinite:true,fade:false,accessibility:false,swipe:true,touchMove:true,onBeforeChange:function(slick,currentSlide,nextSlide){var $nextSlide=$photoThumbs.find('.photo-thumb[index\x3d"'+nextSlide+'"]');var _goToIndex=null;if(!$nextSlide.hasClass("slick-active")){_goToIndex=
nextSlide>slick.slideCount/2?nextSlide-(4+_tabletVar):nextSlide;$photoThumbs.slickGoTo(_goToIndex)}$photoThumbs.find('.photo-thumb[index\x3d"'+nextSlide+'"]').trigger("click")},responsive:[{breakpoint:767,settings:{arrows:true}}]}).on("touchstart",function(e){$(this).addClass("active");e.stopPropagation()});$photoThumbs.slick({slide:".photo-thumb",slidesToShow:6,slidesToScroll:1,infinite:false,centerMode:false,focusOnSelect:false,accessibility:false,swipe:true,touchMove:true,onInit:function(){$photoThumbs.find(".slick-track").prepend($(".photo-thumb-border"));
$photoSlider.addClass("active")},responsive:[{breakpoint:1199,settings:{slidesToShow:5}}]});$photoThumbs.find(".photo-thumb").off().on("click",function(e){var $this=$(this);var _leftPosition=$this.position().left;if(_notSlide){if(e.which)$photoSlider.slickGoTo($this.attr("index"));$(".photo-thumb-border").css("left",_leftPosition);_notSlide=false}setTimeout(function(){_notSlide=true},500)});$(".photo-thumbs").on("click",".slick-disabled",function(){var $this=$(this);var _slideIndex=0;var _slidesMaxIndex=
$photoThumbs.find(".photo-thumb").length-1;if(!$this.hasClass("slick-disabled"))return false;if($this.hasClass("slick-next"))$photoThumbs.slickGoTo(_slideIndex);else{_slideIndex=_slidesMaxIndex-(4+_tabletVar);$photoThumbs.slickGoTo(_slideIndex)}});$(".photo-item").on("mousedown mouseup",function(e){if(e.type==="mousedown")$(this).addClass("dragging");else $(this).removeClass("dragging")});$("html").on("touchstart",function(){$photoSlider.removeClass("active")})})();$(function(){$(".awards \x3e div").each(function(){function getSlidesToShow(){return isTabletView()||
isMobileView()?3:4}var slider=$(this);slider.slick({slide:"article",infinite:true,slidesToShow:getSlidesToShow(),slidesToScroll:getSlidesToShow()});windowResizeHandlers.push(function(){var slick=slider.getSlick();slick.options.slidesToShow=slick.options.slidesToScroll=getSlidesToShow();slick.refresh()})})});var subMenuFixed=function(){var $headerWrap=$("header.wrapper-header");$(".product-sub-nav").each(function(){var menu=$(this);var scrollTop=$win.scrollTop();if(scrollTop>=menu.offset().top){menu.addClass("fixed");
if($headerWrap.css("position")==="fixed")menu.find("\x3e *").css("top",$headerWrap.outerHeight()+"px");else menu.find("\x3e *").css("top","0px")}else{menu.removeClass("fixed");menu.find("\x3e *").css("top","0px")}})};subMenuFixed();$win.on("scroll",function(){requestFrame(function(){subMenuFixed()})});windowResizeHandlers.push(function(){requestFrame(function(){subMenuFixed()})});(function(){var dashboardControl=function(){$(".app-dashboard").each(function(){var dashboard=$(this);var sideGroup=dashboard.find(".switch-group ul");
if(isMobileView())if(!sideGroup.getSlick())sideGroup.slick({infinite:true,slide:"li",dots:false,onAfterChange:function(slick,curIndex){$(slick.$slides[curIndex]).find("a").trigger("click")},onInit:function(slick,curIndex){$(slick.$slides[curIndex]).find("a").trigger("click")}});else sideGroup.getSlick().refresh();else if(sideGroup.getSlick())sideGroup.unslick()})};dashboardControl();windowResizeHandlers.push(dashboardControl)})();(function(){var subMenuScroll=new Navigation($('.product-sub-nav ul li a[href^\x3d"#"]'),
{locationReplace:true,locationReversReplace:false,easing:"easeOutQuad",bySpeed:true,duration:500});subMenuScroll.activateNavToHash();(new Navigation($('.product-sub-nav .logo a[href^\x3d"#"], .product-sub-nav-mobile a[href^\x3d"#"]'),{easing:"easeOutQuad",bySpeed:true,duration:500})).activateNavToHash();var anchorScroll=new Navigation($('a.arrow-nav[href^\x3d"#"]'),{easing:"easeOutQuad",duration:500,bySpeed:true});anchorScroll.activateNavToHash();subMenuScroll.activateDependentNodesByHash()})();if(!isTouch)(function(){function toFixed(elem){var elemFrom=
elem;var elemTo=elem.closest(".at-fixed-unit").next(".at-fixed-unit").find('.to-fixed[data-fixed-class\x3d"'+elemFrom.attr("data-fixed-class")+'"]');if(!elemTo.length)return;var scrollTop=Scrolling.getScrollTop();var top=elemFrom.data("top-fixed");if(top===null)top=elemFrom.offset().top-elem.closest(".at-fixed-unit").offset().top;if(!isMobileView()&&!isTabletView()&&(scrollTop>=elemFrom.closest(".at-fixed-unit").offset().top&&scrollTop<elemTo.closest(".at-fixed-unit").offset().top+elemTo.closest(".at-fixed-unit").height()/
2)&&elemTo.offset().top-scrollTop>top)requestFrame(function(){elemFrom.closest(".at-fixed-unit").addClass("fixed-class-"+elemFrom.attr("data-fixed-class"));elemFrom.addClass("fixed");elemFrom.css("top",top);if(elemFrom.parent().height()<elemFrom.outerHeight())elemFrom.parent().height(elemFrom.outerHeight());elemFrom.data("top-fixed",top);elemTo.css("visibility","hidden")});else requestFrame(function(){elemFrom.removeClass("fixed");elemFrom.closest(".at-fixed-unit").removeClass("fixed-class-"+elemFrom.attr("data-fixed-class"));
elemFrom.css("top",0);elemFrom.parent().height("");elemFrom.data("top-fixed",null);elemTo.css("visibility","visible")})}$(".to-fixed").each(function(){var elem=$(this);toFixed(elem);var toFixedHandler=function(){requestFrame(function(){toFixed(elem)})};windowResizeHandlers.push(toFixedHandler);$(window).scroll(toFixedHandler)})})();(function(){function transformSlider(){var sideSlick=sideGroup.getSlick();if(isMobileView()){if(sliding)sliding.clear();if(!sideSlick)sideGroup.slick({infinite:true,dots:true,
slide:"div",customPaging:function(slider,i){return'\x3cbutton type\x3d"button" data-role\x3d"none"\x3e\x3cb\x3e'+(i+1)+"\x3c/b\x3e\x3c/button\x3e"}});else sideSlick.refresh();if($.browser.msie)sideGroup.find(".bgs").height(sideGroup.height()+4)}else{if($.browser.msie)sideGroup.find(".bgs").height("");if(sideSlick)sideGroup.unslick();if(!sliding)sliding=new Sliding($(".slide"),{locationReplace:false,easing:"easeInOutQuad",duration:800,useReach:!isTouch,bySpeed:true});else sliding.activate()}}var sliding=
null;var sideGroup=$(".slide-group");transformSlider();windowResizeHandlers.push(transformSlider)})();$("form.notify").on("submit",function(){var form=$(this);var inputVal=$.trim($(this).find('input[type\x3d"email"]').val());if(!inputVal||!/^[_a-z0-9-]+(.[_a-z0-9-]+)*@[a-z0-9-]+(.[a-z0-9-]+)*(.[a-z]{2,3})$/.test(inputVal))$(this).addClass("error e-1");else{form.removeClass("error e-1");$.post(form.attr("action"),form.serialize()).always(function(){form.removeClass("step-1");form.addClass("step-2")})}return false});
$("form.notify a.submit").on("click",function(){$(this).closest("form").trigger("submit")});$("form.notify a.keep-exploring").on("click",function(){$(this).closest(".popup").popUp({getInstance:true})[0].down()});$(document.body).on("touchstart click",".expand \x3e a",function(){$(this).parent().toggleClass("expanded");return false});$win.on("resize",function(){checkWinResize(function(){$.each(windowResizeHandlers,function(i,f){if(typeof f==="function")f()})})});if(pageLang==="en"){windowResizeHandlers.push(resizeFeaturesItems);
resizeFeaturesItems()}var urlParameters;(window.onpopstate=function(){var match;var pl=/\+/g;var search=/([^&=]+)=?([^&]*)/g;var decode=function(s){return decodeURIComponent(s.replace(pl," "))};var query=window.location.search.substring(1);urlParameters={};for(match=search.exec(query);match;){urlParameters[decode(match[1])]=decode(match[2]);match=search.exec(query)}})();$(window).load(function(){startProductVideoByParams()})})(jQuery);
function showAriaFeatureDetailsPopup(){$(".feature-details.weight .bgs").addClass("visible");$(".weight-more-popup").addClass("show");$(".feature-details.weight .cont").css("display","none")}function hideAriaFeatureDetailsPopup(){$(".feature-details.weight .bgs").removeClass("visible");$(".weight-more-popup").removeClass("show");$(".feature-details.weight .cont").css("display","")};
(function($){var $firstSection=$("#feature-details");var animateFirstSlide=function(){var offsetFirstSection=$firstSection.offset().top;var offsetScroll=$(window).scrollTop();if($("html").hasClass("desktop-view"))if(offsetScroll>=offsetFirstSection-5){var $gps=$(".feature-details.gps .bgs .canvas");$gps.find(".note").addClass("surgeNoteZoomInLeft");$gps.find(".note img").addClass("bounceIn");$gps.find(".grow-line \x3e div").addClass("growInLeft");$(window).off("scroll resize",animateFirstSlide)}};
$(window).on("scroll resize",animateFirstSlide);animateFirstSlide()})(jQuery);
