jQuery.webshims.register("dom-extend",function(b,f,k,l,n){var s=f.modules,p=/\s*,\s*/,w={},o={},t={},y={},x={},g=b.fn.val,H=function(d,a,c,e,h){return h?g.call(b(d)):g.call(b(d),c)};b.fn.val=function(d){var a=this[0];arguments.length&&null==d&&(d="");if(!arguments.length)return!a||1!==a.nodeType?g.call(this):b.prop(a,"value",d,"val",!0);if(b.isArray(d))return g.apply(this,arguments);var c=b.isFunction(d);return this.each(function(e){a=this;1===a.nodeType&&(c?(e=d.call(a,e,b.prop(a,"value",n,"val", !0)),null==e&&(e=""),b.prop(a,"value",e,"val")):b.prop(a,"value",d,"val"))})};var D="_webshimsLib"+Math.round(1E3*Math.random()),u=function(d,a,c){d=d.jquery?d[0]:d;if(!d)return c||{};var e=b.data(d,D);c!==n&&(e||(e=b.data(d,D,{})),a&&(e[a]=c));return a?e&&e[a]:e};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(d){b.fn[d.name]=function(){return this.map(function(){var b=u(this, "shadowData");return b&&b[d.prop]||this})}});["removeAttr","prop","attr"].forEach(function(d){w[d]=b[d];b[d]=function(a,c,e,h,f){var i="val"==h,r=!i?w[d]:H;if(!a||!o[c]||1!==a.nodeType||!i&&h&&"attr"==d&&b.attrFn[c])return r(a,c,e,h,f);var E=(a.nodeName||"").toLowerCase(),z=t[E],A="attr"==d&&(!1===e||null===e)?"removeAttr":d,g,j,k;z||(z=t["*"]);z&&(z=z[c]);z&&(g=z[A]);if(g){if("value"==c)j=g.isVal,g.isVal=i;if("removeAttr"===A)return g.value.call(a);if(e===n)return g.get?g.get.call(a):g.value;g.set&& ("attr"==d&&!0===e&&(e=c),k=g.set.call(a,e));if("value"==c)g.isVal=j}else k=r(a,c,e,h,f);if((e!==n||"removeAttr"===A)&&x[E]&&x[E][c]){var l;l="removeAttr"==A?!1:"prop"==A?!!e:!0;x[E][c].forEach(function(b){if(!b.only||(b.only="prop"==d)||"attr"==b.only&&"prop"!=d)b.call(a,e,l,i?"val":A,d)})}return k};y[d]=function(a,c,e){t[a]||(t[a]={});t[a][c]||(t[a][c]={});var h=t[a][c][d],B=function(b,a,E){return a&&a[b]?a[b]:E&&E[b]?E[b]:"prop"==d&&"value"==c?function(b){return e.isVal?H(this,c,b,!1,0===arguments.length): w[d](this,c,b)}:"prop"==d&&"value"==b&&e.value.apply?function(b){var a=w[d](this,c);a&&a.apply&&(a=a.apply(this,arguments));return a}:function(b){return w[d](this,c,b)}};t[a][c][d]=e;if(e.value===n){if(!e.set)e.set=e.writeable?B("set",e,h):f.cfg.useStrict&&"prop"==c?function(){throw c+" is readonly on "+a;}:b.noop;if(!e.get)e.get=B("get",e,h)}["value","get","set"].forEach(function(b){e[b]&&(e["_sup"+b]=B(b,h))})}});var j=!b.browser.msie||8k&&7")[0].readyState;if(!p.track)try{new TextTrackCue(2,3,"")}catch(f){p.track=!0}var g=k.cfg.track,l=function(f){b(f.target).filter("track").each(o)}, o=function(){if(p.track||!g.override&&3==b.prop(this,"readyState"))g.override=!0,k.reTest("track"),document.removeEventListener("error",l,!0),this&&b.nodeName(this,"track")?k.error("track support was overwritten. Please check your vtt including your vtt mime-type"):k.info("track support was overwritten. due to bad browser support")},n=function(){document.addEventListener("error",l,!0);p.track?o():b("track").each(o)};g.override||(k.isReady("track")?n():b(n))}();k.register("mediaelement-core",function(b, g,k,t,u){o=swfobject.hasFlashPlayerVersion("9.0.115");var j=g.mediaelement,q=function(a,c){var a=b(a),d={src:a.attr("src")||"",elem:a,srcProp:a.prop("src")};if(!d.src)return d;var e=a.attr("type");if(e)d.type=e,d.container=b.trim(e.split(";")[0]);else if(c||(c=a[0].nodeName.toLowerCase(),"source"==c&&(c=(a.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),e=j.getTypeForSrc(d.src,c))d.type=e,d.container=e;if(e=a.attr("media"))d.media=e;return d},v=!o&&"postMessage"in k&&l,y= function(){var a;return function(){!a&&v&&(a=!0,g.loader.loadScript("https://www.youtube.com/player_api"),b(function(){g.polyfill("mediaelement-yt")}))}}(),d=function(){o?w():y()};g.addPolyfill("mediaelement-yt",{test:!v,d:["dom-support"]});j.mimeTypes={audio:{"audio/ogg":["ogg","oga","ogm"],'audio/ogg;codecs="opus"':"opus","audio/mpeg":["mp2","mp3","mpga","mpega"],"audio/mp4":"mp4,mpg4,m4r,m4a,m4p,m4b,aac".split(","),"audio/wav":["wav"],"audio/3gpp":["3gp","3gpp"],"audio/webm":["webm"],"audio/fla":["flv", "f4a","fla"],"application/x-mpegURL":["m3u8","m3u"]},video:{"video/ogg":["ogg","ogv","ogm"],"video/mpeg":["mpg","mpeg","mpe"],"video/mp4":["mp4","mpg4","m4v"],"video/quicktime":["mov","qt"],"video/x-msvideo":["avi"],"video/x-ms-asf":["asf","asx"],"video/flv":["flv","f4v"],"video/3gpp":["3gp","3gpp"],"video/webm":["webm"],"application/x-mpegURL":["m3u8","m3u"],"video/MP2T":["ts"]}};j.mimeTypes.source=b.extend({},j.mimeTypes.audio,j.mimeTypes.video);j.getTypeForSrc=function(a,c){if(-1!=a.indexOf("youtube.com/watch?")|| -1!=a.indexOf("youtube.com/v/"))return"video/youtube";var a=a.split("?")[0].split("."),a=a[a.length-1],d;b.each(j.mimeTypes[c],function(b,c){if(-1!==c.indexOf(a))return d=b,!1});return d};j.srces=function(a,c){a=b(a);if(c)a.removeAttr("src").removeAttr("type").find("source").remove(),b.isArray(c)||(c=[c]),c.forEach(function(b){var c=t.createElement("source");"string"==typeof b&&(b={src:b});c.setAttribute("src",b.src);b.type&&c.setAttribute("type",b.type);b.media&&c.setAttribute("media",b.media);a.append(c)}); else{var c=[],d=a[0].nodeName.toLowerCase(),e=q(a,d);e.src?c.push(e):b("source",a).each(function(){e=q(this,d);e.src&&c.push(e)});return c}};b.fn.loadMediaSrc=function(a,c){return this.each(function(){c!==u&&(b(this).removeAttr("poster"),c&&b.attr(this,"poster",c));j.srces(this,a);b(this).mediaLoad()})};j.swfMimeTypes="video/3gpp,video/x-msvideo,video/quicktime,video/x-m4v,video/mp4,video/m4p,video/x-flv,video/flv,audio/mpeg,audio/aac,audio/mp4,audio/x-m4a,audio/m4a,audio/mp3,audio/x-fla,audio/fla,youtube/flv,jwplayer/jwplayer,video/youtube".split(","); j.canThirdPlaySrces=function(a,c){var d="";if(o||v)a=b(a),c=c||j.srces(a),b.each(c,function(b,a){if(a.container&&a.src&&(o&&-1!=j.swfMimeTypes.indexOf(a.container)||v&&"video/youtube"==a.container))return d=a,!1});return d};var a={};j.canNativePlaySrces=function(c,d){var e="";if(l){var c=b(c),f=(c[0].nodeName||"").toLowerCase();if(!a[f])return e;d=d||j.srces(c);b.each(d,function(b,d){if(d.type&&a[f].prop._supvalue.call(c[0],d.type))return e=d,!1})}return e};j.setError=function(a,c){c||(c="can't play sources"); b(a).pause().data("mediaerror",c);g.warn("mediaelementError: "+c);setTimeout(function(){b(a).data("mediaerror")&&b(a).trigger("mediaerror")},1)};var c=function(){var b;return function(a,e,f){g.ready(o?"mediaelement-swf":"mediaelement-yt",function(){j.createSWF?j.createSWF(a,e,f):b||(b=!0,d(),c(a,e,f))});!b&&v&&!j.createSWF&&y()}}(),e=function(b,a,d,f,g){d||!1!==d&&a&&"third"==a.isActive?(d=j.canThirdPlaySrces(b,f))?c(b,d,a):g?j.setError(b,!1):e(b,a,!1,f,!0):(d=j.canNativePlaySrces(b,f))?a&&"third"== a.isActive&&j.setActive(b,"html5",a):g?(j.setError(b,!1),a&&"third"==a.isActive&&j.setActive(b,"html5",a)):e(b,a,!0,f,!0)},h=/^(?:embed|object|datalist)$/i,B=function(a,c){var d=g.data(a,"mediaelementBase")||g.data(a,"mediaelementBase",{}),f=j.srces(a),k=a.parentNode;clearTimeout(d.loadTimer);b.data(a,"mediaerror",!1);if(f.length&&k&&!(1!=k.nodeType||h.test(k.nodeName||"")))c=c||g.data(a,"mediaelement"),e(a,c,s.preferFlash||u,f)};b(t).bind("ended",function(a){var c=g.data(a.target,"mediaelement"); (!n||c&&"html5"!=c.isActive||b.prop(a.target,"loop"))&&setTimeout(function(){!b.prop(a.target,"paused")&&b.prop(a.target,"loop")&&b(a.target).prop("currentTime",0).play()},1)});n||g.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(c){var d=g.defineNodeNameProperty(c,"load",{prop:{value:function(){var b=g.data(this,"mediaelement");B(this,b);l&&(!b||"html5"==b.isActive)&&d.prop._supvalue&&d.prop._supvalue.apply(this,arguments)}}});a[c]=g.defineNodeNameProperty(c, "canPlayType",{prop:{value:function(d){var e="";l&&a[c].prop._supvalue&&(e=a[c].prop._supvalue.call(this,d),"no"==e&&(e=""));!e&&o&&(d=b.trim((d||"").split(";")[0]),-1!=j.swfMimeTypes.indexOf(d)&&(e="maybe"));return e}}})});g.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var b=this,a=g.data(b,"mediaelementBase")||g.data(b,"mediaelementBase",{});clearTimeout(a.loadTimer);a.loadTimer=setTimeout(function(){B(b);b=null},9)}});k=function(){g.addReady(function(a,c){b("video, audio", a).add(c.filter("video, audio")).each(function(){b.browser.msie&&8=a.duration||a.duration===a._lastDuration)a.duration=c}catch(d){}a.duration&& a.duration!=a._lastDuration?(q(a._elem,"durationchange"),("audio"==a._elemNodeName||a._callMeta)&&p.jwEvents.Model.META(b.extend({duration:a.duration},m),a),a._durationCalcs--):a._durationCalcs++}},a=function(b,m){3>b&&clearTimeout(m._canplaythroughTimer);if(3<=b&&3>m.readyState)m.readyState=b,q(m._elem,"canplay"),clearTimeout(m._canplaythroughTimer),m._canplaythroughTimer=setTimeout(function(){a(4,m)},4E3);if(4<=b&&4>m.readyState)m.readyState=b,q(m._elem,"canplaythrough");m.readyState=b};b.extend(b.event.customEvent, {updatemediaelementdimensions:!0,flashblocker:!0,swfstageresize:!0,mediaelementapichange:!0});p.jwEvents={View:{PLAY:function(b){var a=u(b.id);if(a&&!a.stopPlayPause&&(a._ppFlag=!0,a.paused==b.state)){a.paused=!b.state;if(a.ended)a.ended=!1;q(a._elem,b.state?"play":"pause")}}},Model:{BUFFER:function(c){var m=u(c.id);if(m&&"percentage"in c&&m._bufferedEnd!=c.percentage){m.networkState=100==c.percentage?1:2;(isNaN(m.duration)||5c.percentage||100===c.percentage)&&d(m,c);if(m.ended)m.ended= !1;if(m.duration){2c.percentage?a(3,m):20c.percentage)m._bufferedStart=m.currentTime||0;m._bufferedEnd=c.percentage;m.buffered.length=1;if(100==c.percentage)m.networkState=1,a(4,m);b.event.trigger("progress",n,m._elem,!0)}}},META:function(b,c){if(c=c&&c.networkState?c:u(b.id))if("duration"in b){if(!c._metadata||!((!b.height||c.videoHeight==b.height)&&b.duration===c.duration)){c._metadata=!0;var d=c.duration;if(b.duration)c.duration= b.duration;c._lastDuration=c.duration;if(b.height||b.width)c.videoHeight=b.height||0,c.videoWidth=b.width||0;if(!c.networkState)c.networkState=2;1>c.readyState&&a(1,c);c.duration&&d!==c.duration&&q(c._elem,"durationchange");q(c._elem,"loadedmetadata")}}else c._callMeta=!0},TIME:function(b){var c=u(b.id);if(c&&c.currentTime!==b.position){c.currentTime=b.position;c.duration&&c.durationc.readyState&&a(2,c);if(c.ended)c.ended=!1;q(c._elem,"timeupdate")}},STATE:function(b){var c= u(b.id);if(c)switch(b.newstate){case "BUFFERING":if(c.ended)c.ended=!1;a(1,c);q(c._elem,"waiting");break;case "PLAYING":c.paused=!1;c._ppFlag=!0;c.duration||d(c,b);3>c.readyState&&a(3,c);if(c.ended)c.ended=!1;q(c._elem,"playing");break;case "PAUSED":if(!c.paused&&!c.stopPlayPause)c.paused=!0,c._ppFlag=!0,q(c._elem,"pause");break;case "COMPLETED":4>c.readyState&&a(4,c),c.ended=!0,q(c._elem,"ended")}}},Controller:{ERROR:function(b){var a=u(b.id);a&&p.setError(a._elem,b.message)},SEEK:function(b){var a= u(b.id);if(a){if(a.ended)a.ended=!1;if(a.paused)try{a.jwapi.sendEvent("play","false")}catch(c){}if(a.currentTime!=b.position)a.currentTime=b.position,q(a._elem,"timeupdate")}},VOLUME:function(b){var a=u(b.id);if(a&&(b=b.percentage/100,a.volume!=b))a.volume=b,q(a._elem,"volumechange")},MUTE:function(b){if(!b.state){var a=u(b.id);if(a&&a.muted!=b.state)a.muted=b.state,q(a._elem,"volumechange")}}}};var c=function(a){var c=!0;b.each(p.jwEvents,function(d,e){b.each(e,function(b){try{a.jwapi["add"+d+"Listener"](b, "jQuery.webshims.mediaelement.jwEvents."+d+"."+b)}catch(e){return c=!1}})});return c},e=function(b){var a=b.actionQueue.length,c=0,d;if(a&&"third"==b.isActive)for(;b.actionQueue.length&&a>c;)c++,d=b.actionQueue.shift(),b.jwapi[d.fn].apply(b.jwapi,d.args);if(b.actionQueue.length)b.actionQueue=[]},h=function(a){a&&(a._ppFlag===n&&b.prop(a._elem,"autoplay")||!a.paused)&&setTimeout(function(){if("third"==a.isActive&&(a._ppFlag===n||!a.paused))try{b(a._elem).play()}catch(c){}},1)},B=function(a){if(a&& "video"==a._elemNodeName){var c,d,e,f,g,C,h,k,i=function(i,j){if(j&&i&&!(1>j||1>i||"third"!=a.isActive))if(c&&(c.remove(),c=!1),f=i,g=j,clearTimeout(h),d="auto"==a._elem.style.width,e="auto"==a._elem.style.height,d||e){C=C||b(a._elem).getShadowElement();var l;d&&!e?(l=C.height(),i*=l/j,j=l):!d&&e&&(l=C.width(),j*=l/i,i=l);k=!0;setTimeout(function(){k=!1},9);C.css({width:i,height:j})}},j=function(){if(!("third"!=a.isActive||b.prop(a._elem,"readyState")&&b.prop(this,"videoWidth"))){var f=b.prop(a._elem, "poster");if(f&&(d="auto"==a._elem.style.width,e="auto"==a._elem.style.height,d||e))c&&(c.remove(),c=!1),c=b(''),c.bind("load error alreadycomplete",function(){clearTimeout(h);var a=this,d=a.naturalWidth||a.width||a.offsetWidth,e=a.naturalHeight||a.height||a.offsetHeight;e&&d?(i(d,e),a=null):setTimeout(function(){d=a.naturalWidth||a.width||a.offsetWidth;e=a.naturalHeight||a.height||a.offsetHeight; i(d,e);c&&(c.remove(),c=!1);a=null},9);b(this).unbind()}).prop("src",f).appendTo("body").each(function(){this.complete||this.error?b(this).triggerHandler("alreadycomplete"):(clearTimeout(h),h=setTimeout(function(){b(a._elem).triggerHandler("error")},9999))})}};b(a._elem).bind("loadedmetadata",function(){i(b.prop(this,"videoWidth"),b.prop(this,"videoHeight"))}).bind("emptied",j).bind("swfstageresize updatemediaelementdimensions",function(){k||i(f,g)}).bind("emptied",function(){f=void 0;g=void 0}).triggerHandler("swfstageresize"); j();b.prop(a._elem,"readyState")&&i(b.prop(a._elem,"videoWidth"),b.prop(a._elem,"videoHeight"))}};p.playerResize=function(a){a&&(a=l.getElementById(a.replace(D,"")))&&b(a).triggerHandler("swfstageresize")};b(l).bind("emptied",function(b){b=j(b.target);h(b)});var i;p.jwPlayerReady=function(a){var d=u(a.id),I=0,g=function(){if(!(9i||6<=i)&&f.warn("mediaelement-swf is only testet with jwplayer 5.6+")}d.wasSwfReady= !0;d.tryedReframeing=0;e(d);h(d)}else clearTimeout(d.reframeTimer),d.reframeTimer=setTimeout(g,9*I),2d.tryedReframeing&&(d.tryedReframeing++,d.shadowElem.css({overflow:"visible"}),setTimeout(function(){d.shadowElem.css({overflow:"hidden"})},16))};if(d&&d.jwapi){if(!d.tryedReframeing)d.tryedReframeing=0;clearTimeout(i);d.jwData=a;d.shadowElem.removeClass("flashblocker-assumed");b.prop(d._elem,"volume",d.volume);b.prop(d._elem,"muted",d.muted);g()}};var r=b.noop;if(o){var E={play:1,playing:1}, z="play,pause,playing,canplay,progress,waiting,ended,loadedmetadata,durationchange,emptied".split(","),A=z.map(function(b){return b+".webshimspolyfill"}).join(" "),K=function(a){var c=f.data(a.target,"mediaelement");c&&(a.originalEvent&&a.originalEvent.type===a.type)==("third"==c.activating)&&(a.stopImmediatePropagation(),E[a.type]&&c.isActive!=c.activating&&b(a.target).pause())},r=function(a){b(a).unbind(A).bind(A,K);z.forEach(function(b){f.moveToFirstEvent(a,b)})};r(l)}p.setActive=function(a,c, d){d||(d=f.data(a,"mediaelement"));if(d&&d.isActive!=c){"html5"!=c&&"third"!=c&&f.warn("wrong type for mediaelement activating: "+c);var e=f.data(a,"shadowData");d.activating=c;b(a).pause();d.isActive=c;"third"==c?(e.shadowElement=e.shadowFocusElement=d.shadowElem[0],b(a).addClass("swf-api-active nonnative-api-active").hide().getShadowElement().show()):(b(a).removeClass("swf-api-active nonnative-api-active").show().getShadowElement().hide(),e.shadowElement=e.shadowFocusElement=!1);b(a).trigger("mediaelementapichange")}}; var L=function(){var b="_bufferedEnd,_bufferedStart,_metadata,_ppFlag,currentSrc,currentTime,duration,ended,networkState,paused,videoHeight,videoWidth,_callMeta,_durationCalcs".split(","),c=b.length;return function(d){if(d){var e=c,f=d.networkState;for(a(0,d);--e;)delete d[b[e]];d.actionQueue=[];d.buffered.length=0;f&&q(d._elem,"emptied")}}}(),J=function(a,c){var d=a._elem,e=a.shadowElem;b(d)[c?"addClass":"removeClass"]("webshims-controls");"audio"==a._elemNodeName&&!c?e.css({width:0,height:0}):e.css({width:d.style.width|| b(d).width(),height:d.style.height||b(d).height()})};p.createSWF=function(a,c,d){if(t){1>y?y=1:y++;var e=b.extend({},s.jwVars,{image:b.prop(a,"poster")||"",file:c.srcProp}),g=b(a).data("jwvars")||{};d||(d=f.data(a,"mediaelement"));if(d&&d.swfCreated)p.setActive(a,"third",d),L(d),d.currentSrc=c.srcProp,b.extend(e,g),s.changeJW(e,a,c,d,"load"),G(a,"sendEvent",["LOAD",e]);else{var h=b.prop(a,"controls"),C="jwplayer-"+f.getID(a),k=b.extend({},s.jwParams,b(a).data("jwparams")),j=a.nodeName.toLowerCase(), l=b.extend({},s.jwAttrs,{name:C,id:C},b(a).data("jwattrs")),n=b('
').css({position:"relative",overflow:"hidden"}),d=f.data(a,"mediaelement",f.objectCreate(H,{actionQueue:{value:[]},shadowElem:{value:n},_elemNodeName:{value:j},_elem:{value:a},currentSrc:{value:c.srcProp},swfCreated:{value:!0},buffered:{value:{start:function(b){if(b>=d.buffered.length)f.error("buffered index size error");else return 0},end:function(b){if(b>= d.buffered.length)f.error("buffered index size error");else return(d.duration-d._bufferedStart)*d._bufferedEnd/100+d._bufferedStart},length:0}}}));J(d,h);n.insertBefore(a);o&&b.extend(d,{volume:b.prop(a,"volume"),muted:b.prop(a,"muted")});b.extend(e,{id:C,controlbar:h?s.jwVars.controlbar||("video"==j?"over":"bottom"):"video"==j?"none":"bottom",icons:""+(h&&"video"==j)},g,{playerready:"jQuery.webshims.mediaelement.jwPlayerReady"});e.plugins=e.plugins?e.plugins+(","+F):F;f.addShadowDom(a,n);r(a);p.setActive(a, "third",d);s.changeJW(e,a,c,d,"embed");b(a).bind("updatemediaelementdimensions updateshadowdom",function(){J(d,b.prop(a,"controls"))});B(d);w.embedSWF(v,C,"100%","100%","9.0.0",!1,e,k,l,function(c){if(c.success)d.jwapi=c.ref,h||b(c.ref).attr("tabindex","-1").css("outline","none"),setTimeout(function(){if(!c.ref.parentNode&&n[0].parentNode||"none"==c.ref.style.display)n.addClass("flashblocker-assumed"),b(a).trigger("flashblocker"),f.warn("flashblocker assumed");b(c.ref).css({minHeight:"2px",minWidth:"2px", display:"block"})},9),i||(clearTimeout(i),i=setTimeout(function(){var a=b(c.ref);1a[0].offsetWidth||2>a[0].offsetHeight)&&f.warn("JS-SWF connection can't be established on hidden or unconnected flash objects")},8E3))})}}else setTimeout(function(){b(a).mediaLoad()}, 1)};var G=function(b,a,c,d){return(d=d||j(b))?(d.jwapi&&d.jwapi[a]?d.jwapi[a].apply(d.jwapi,c||[]):(d.actionQueue.push({fn:a,args:c}),10a||100f.browserVersion,O={object:1,OBJECT:1};b.cleanData=function(a){var b,c,d;if(a&&(c=a.length)&&y)for(b=0;b