window.matchMedia||(window.matchMedia=function(){var styleMedia=window.styleMedia||window.media;if(!styleMedia){var style=document.createElement("style");var script=document.getElementsByTagName("script")[0];var info=null;style.type="text/css";style.id="matchmediajs-test";script.parentNode.insertBefore(style,script);info="getComputedStyle"in window&&window.getComputedStyle(style,null)||style.currentStyle;styleMedia={matchMedium:function(media){var text="@media "+media+"{ #matchmediajs-test { width: 1px; } }";
if(style.styleSheet)style.styleSheet.cssText=text;else style.textContent=text;return info.width==="1px"}}}return function(media){return{matches:styleMedia.matchMedium(media||"all"),media:media||"all"}}}());
(function(){if(window.matchMedia&&window.matchMedia("all").addListener)return false;var localMatchMedia=window.matchMedia;var hasMediaQueries=localMatchMedia("only all").matches;var isListening=false;var timeoutID=0;var queries=[];var handleChange=function(evt){clearTimeout(timeoutID);timeoutID=setTimeout(function(){var i=0;for(var il=queries.length;i<il;i++){var mql=queries[i].mql;var listeners=queries[i].listeners||[];var matches=localMatchMedia(mql.media).matches;if(matches!==mql.matches){mql.matches=
matches;var j=0;for(var jl=listeners.length;j<jl;j++)listeners[j].call(window,mql)}}},30)};window.matchMedia=function(media){var mql=localMatchMedia(media);var listeners=[];var index=0;mql.addListener=function(listener){if(!hasMediaQueries)return;if(!isListening){isListening=true;window.addEventListener("resize",handleChange,true)}if(index===0)index=queries.push({mql:mql,listeners:listeners});listeners.push(listener)};mql.removeListener=function(listener){var i=0;for(var il=listeners.length;i<il;i++)if(listeners[i]===
listener)listeners.splice(i,1)};return mql}})();
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($){var requestFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(callback){callback()};var SwitchManager=function(elem,settings){var _this=this;this.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"],manualSwitch:false,manualSwitchNesting:[],manualSwitchDuration:2E3},settings);this.circleTimer=null;this.manualSwitching={};this.elem=$(elem);this.effectContents=this.elem.find(this.options.effect);this.effectElements=this.effectContents.find("["+this.options.attrs.join("],[")+"]");this.effectElements.each(function(){var e=$(this);$.each(_this.options.attrs,function(i,attr){if(e.attr(attr))$.each(e.attr(attr).split(","),function(k,n){e.data(attr+"-"+$.trim(n),
true)})})});this.switches=this.elem.find(this.options.switchElem);var startIndexHash=0;this.switches.each(function(){$(this).data("hashElem","#"+startIndexHash++)});this.switches.on("click hover",function(e,automatic){_this.onSwitch($(this),e,automatic)});if(this.options.automaticSwitch){var groups=this.generateGroups(this.options.automaticSwitchNesting);_this.startCircle(_this.options.automaticSwitchNesting,groups,_this.options.automaticSwitchDuration)}if(this.options.manualSwitch)$.each(_this.options.manualSwitchNesting,
function(i,v){var hash=v.e;if(typeof v.e!==typeof"string"){var e=$(v.e).eq(0);if(e.data("hashElem"))hash=e.data("hashElem");else return true}var groups=_this.generateGroups(v.nesting);_this.manualSwitching[hash]={groups:groups,nesting:v.nesting}})};SwitchManager.isScrolling=false;(function(){var scrollTimer=null;$(window).on("scroll",function(){clearTimeout(scrollTimer);SwitchManager.isScrolling=true;scrollTimer=setTimeout(function(){SwitchManager.isScrolling=false},200)})})();$.extend(SwitchManager.prototype,
{getNextInGroup:function(group){var _this=this;var activeIndex=null;var nextIndex=null;var circle=false;$.each(group,function(index,e){if(e.hasClass(_this.options.activeClass)){activeIndex=index;return false}});if(activeIndex==null||activeIndex>=group.length-1){nextIndex=0;if(activeIndex!==null)circle=true}else nextIndex=activeIndex+1;return{circle:circle,elem:group[nextIndex]}},generateGroups:function(nesting){var groups={};this.switches.each(function(){var e=$(this);$.each(nesting,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})});return groups},startCircle:function(nesting,groups,duration){var _this=this;clearTimeout(_this.circleTimer);this.circleTimer=
setTimeout(function(){if(!SwitchManager.isScrolling){var circle=true;$.each(nesting,function(i,groupName){if(groups[groupName]&&circle){var nG=_this.getNextInGroup(groups[groupName]);nG.elem.trigger("click",[true]);circle=nG.circle}else circle=false})}_this.startCircle(nesting,groups,duration)},duration)},onSwitch:function(a,e$$0,automatic){var _this=this;var op=this.options;if(e$$0.type=="hover"||e$$0.type=="mouseleave"||e$$0.type=="mouseenter"){var hasNoHoverState=true;$.each(op.eventHoverForAttr,
function(i,attrName){if(a.attr(attrName)){hasNoHoverState=false;return false}});if(hasNoHoverState)return true}if(e$$0.type=="mouseleave"){clearTimeout(_this.circleTimer);return true}var isSwitchManual=false;if(!automatic){clearTimeout(_this.circleTimer);if(op.manualSwitch)$.each(_this.manualSwitching,function(hash){if(a.attr(hash)||a.data("hashElem")==hash){if(_this.manualSwitching[hash]){isSwitchManual=true;_this.startCircle(_this.manualSwitching[hash].nesting,_this.manualSwitching[hash].groups,
op.manualSwitchDuration)}return false}})}if(a.hasClass(op.activeClass)&&!isSwitchManual)return false;var toShow=[];var toHide=[];var attrSets={};$.each(op.attrs,function(i,attr){if(a.attr(attr))_this.effectContents.attr(attr,a.attr(attr));if(_this.effectContents.attr(attr))attrSets[attr]=_this.effectContents.attr(attr)});$.each(_this.effectElements,function(){var e=$(this);var hide=false;$.each(op.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(op.activeClass);$(toShow).addClass(op.activeClass);a.closest(op.switchGroup).find(op.switchElem+"."+op.activeClass).removeClass(op.activeClass);a.addClass(op.activeClass)});e$$0.stopPropagation();return false}});$.fn.switchManager=
function(settings){return this.each(function(){new SwitchManager(this,settings)})}})(jQuery);
(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($){if(window.uPopUp!==undefined)return;var animatedEndPopUpList="webkitAnimationEnd.uPopUpAnimated "+"mozAnimationEnd.uPopUpAnimated "+"MSAnimationEnd.uPopUpAnimated "+"oanimationend.uPopUpAnimated "+"animationend.uPopUpAnimated "+"webkitTransitionEnd.uPopUpAnimated "+"oTransitionEnd.uPopUpAnimated "+"msTransitionEnd.uPopUpAnimated "+"transitionend.uPopUpAnimated";var PopUpController=function(){var _this=this;this.all=[];this.active=[];this._minZIndex=null;this.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))}();$(window).on("resize",function(e){var $win=$(this);if(!_this.active.length)return;var width=$win.width();var height=$win.height();if(_this._winWidth!==width||!_this.isTouch&&_this._winHeight!==height){_this._winWidth=width;_this._winHeight=height;_this.active.forEach(function(popup){_this.fitControl(popup)})}})};var PopUp=function(e){this.e=e;this.options=$.extend({overlayClose:true},this.e.data("uPopupOptions"));this._init()};PopUp.prototype._isTap=
function(event,prefix){var targetTouches=event.originalEvent.targetTouches[0];if(event.type==="touchstart"){this._targetTouches[prefix]=[[targetTouches.pageX,targetTouches.pageY],[0,0]];return false}else if(event.type==="touchmove"&&this._targetTouches[prefix]&&this._targetTouches[prefix][0]){var move=[targetTouches.pageX,targetTouches.pageY];var start=this._targetTouches[prefix][0];this._targetTouches[prefix][1]=[Math.abs(move[0]-start[0]),Math.abs(move[1]-start[1])];return false}else if(event.type===
"touchend"&&this._targetTouches[prefix]&&this._targetTouches[prefix][1][0]<11&&this._targetTouches[prefix][1][1]<11)return true;return false};PopUp.prototype._init=function(){var _this=this;this.e.addClass("u-popup");this.overlay=this.e;this.window=this.e.find(".u-popup-window");this.wrapper=this.e.find(".u-popup-wrapper");this.content=this.e.find(".u-popup-content");this.close=this.e.find("u-popup-close");if(!this.close.length){this.close=$('\x3ca href\x3d"javascript:void(0)" class\x3d"u-popup-close"\x3e\x3cspan\x3eClose\x3c/span\x3e\x3c/a\x3e');
this.window.prepend(this.close)}this._targetTouches={};this.close.on("click.uPopUp",function(e){_this.down();e.stopPropagation()}).on("touchstart.uPopUp touchmove.uPopUp touchend.uPopUp",function(e){if(_this._isTap(e,"closeButton"))_this.down()});this.window.on("click.uPopUp, touchstart.uPopUp touchmove.uPopUp touchend.uPopUp",function(event){event.stopPropagation()});this.content.on(animatedEndPopUpList,function(event){event.stopPropagation()});if(this.options.overlayClose)this.overlay.on("click.uPopUp touchstart.uPopUp touchmove.uPopUp touchend.uPopUp",
function(event){if(event.type==="click"||_this._isTap(event,"overlay"))_this.down()})};PopUp.prototype.on=function(){this.e.on.apply(this.e,arguments)};PopUp.prototype.off=function(){this.e.off.apply(this.e,arguments)};PopUp.prototype.isOpen=function(){return this.e.hasClass("open")};PopUp.prototype.up=function(){this.e.removeClass("close");this.e.addClass("open");this.e.trigger("open",this);PopUpController.getController().postActionUp(this)};PopUp.prototype.down=function(){var _this=this;_this.e.removeClass("open");
clearTimeout(_this.closeTimeout);_this.e.one(animatedEndPopUpList,function(){_this.e.removeClass("close");clearTimeout(_this.closeTimeout)});_this.e.addClass("close");_this.closeTimeout=setTimeout(function(){if(_this.e.hasClass("close")){_this.e.removeClass("close");_this.e.off(".uPopUpAnimated")}},1E3);_this.e.trigger("close",_this);PopUpController.getController().postActionDown(_this)};PopUpController.prototype.getPopUp=function(elems){var _this=this;var e=$(elems).eq(0);if(!e.length)throw new Error("There is no Element for uPopUp instance");
var instance=e.data("__PopUp__");if(!instance){instance=new PopUp(e);e.data("__PopUp__",instance);_this.all.push(instance)}return instance};PopUpController.prototype.setIndex=function(){var _this=this;if(this._minZIndex===null){if(!this.active.length)throw new Error("Can't get minZIndex from non-open popup");this._minZIndex=parseInt(this.active[0].e.css("z-index"),10)}this.active.forEach(function(popup,index){popup.e.css("z-index",_this._minZIndex+index)})};PopUpController.prototype.concealed=function(popup){if(!popup.e.hasClass("concealed"))popup.e.trigger("disappear",
popup);popup.e.addClass("concealed")};PopUpController.prototype.unconcealed=function(popup){if(popup.e.hasClass("concealed"))popup.e.trigger("appear",popup);popup.e.removeClass("concealed")};PopUpController.prototype.getViewClass=function(str){var viewClassResult=/u-popup-view-[A-Za-z0-9_-]*/ig.exec(str);return viewClassResult?viewClassResult[0]:"u-popup-view-default"};PopUpController.prototype.postActionUp=function(popup){var popupAlreadyActive=false;var html=$("html");var _this=this;_this.active.forEach(function(pop){var isThis=
pop===popup;if(!isThis)_this.concealed(pop);else popupAlreadyActive=true});if(!popupAlreadyActive)_this.active.push(popup);_this.unconcealed(popup);if(this.active.length>1){this.setIndex();html.addClass("u-popup-has-concealed")}html.removeClass(this.getViewClass(html.attr("class")));html.addClass("u-popup-open");html.addClass(this.getViewClass(popup.e.attr("class")));this.fitControl(popup)};PopUpController.prototype.postActionDown=function(popup){this.active=this.active.filter(function(pop){return pop!==
popup});this.unconcealed(popup);popup.e.css("z-index","");var html=$("html");html.removeClass(this.getViewClass(html.attr("class")));html.removeClass("u-popup-has-concealed");if(this.active.length){var lastPopup=this.active[this.active.length-1];this.unconcealed(lastPopup);this.fitControl(lastPopup);html.addClass(this.getViewClass(lastPopup.e.attr("class")));if(this.active.length>1)html.addClass("u-popup-has-concealed")}else html.removeClass("u-popup-open")};PopUpController.prototype.fitControl=function(popup){setTimeout(function(){var winHeight=
$(window).height();var winWidth=$(window).width();var winBorderHeight=parseInt(popup.window.css("border-top-width"),10)+parseInt(popup.window.css("border-bottom-width"),10);var winBorderWidth=parseInt(popup.window.css("border-left-width"),10)+parseInt(popup.window.css("border-right-width"),10);var winPaddingHeight=parseInt(popup.wrapper.css("padding-top"),10)+parseInt(popup.wrapper.css("padding-bottom"),10);var winPaddingWidth=parseInt(popup.wrapper.css("padding-left"),10)+parseInt(popup.wrapper.css("padding-right"),
10);var contentElem=popup.content.get(0);var contentFullScrollHeight=winBorderHeight+winPaddingHeight+contentElem.scrollHeight;var contentFullScrollWidth=winBorderWidth+winPaddingWidth+contentElem.scrollWidth;popup.e.toggleClass("u-popup-content-height-not-fit",contentFullScrollHeight>winHeight);popup.e.toggleClass("u-popup-content-width-not-fit",contentFullScrollWidth>winWidth);["-moz-","-ms-","-webkit-",""].forEach(function(prefix){var property=prefix+"transform";if(popup.window.css(property)){popup.window.css(property,
"");var matrix=popup.window.css(property).replace(/matrix\(|\)| +/ig,"").split(",");matrix[4]=matrix[4]<0?-Math.ceil(-1*matrix[4]):parseInt(matrix[4],10);matrix[5]=matrix[5]<0?-Math.ceil(-1*matrix[5]):parseInt(matrix[5],10);popup.window.css(property,"matrix("+matrix[0]+","+matrix[1]+","+matrix[2]+","+matrix[3]+","+matrix[4]+","+matrix[5]+")")}});setTimeout(function(){popup.e.trigger("resized",popup)},0)},0)};PopUpController.getController=function(){if(!PopUpController._instance)PopUpController._instance=
new PopUpController;return PopUpController._instance};window.uPopUp=function(elems){var ctrl=PopUpController.getController();return ctrl.getPopUp(elems)};$.fn.uPopUp=function(options){var popUp=new window.uPopUp(this);if(options&&options==="getInstance")return popUp;popUp.up();return 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.$);
