vendor/assets/javascripts/webshims/minified/shims/combos/9.js in webshims-rails-0.4.2 vs vendor/assets/javascripts/webshims/minified/shims/combos/9.js in webshims-rails-0.4.3

- old
+ new

@@ -1,68 +1,68 @@ -jQuery.webshims.register("dom-extend",function(a,f,j,k,n){var t=f.modules,p=/\s*,\s*/,x={},o={},u={},y={},i={},g=a.fn.val,H=function(d,b,c,e,r){return r?g.call(a(d)):g.call(a(d),c)};a.fn.val=function(d){var b=this[0];arguments.length&&null==d&&(d="");if(!arguments.length)return!b||1!==b.nodeType?g.call(this):a.prop(b,"value",d,"val",!0);if(a.isArray(d))return g.apply(this,arguments);var c=a.isFunction(d);return this.each(function(e){b=this;1===b.nodeType&&(c?(e=d.call(b,e,a.prop(b,"value",n,"val", -!0)),null==e&&(e=""),a.prop(b,"value",e,"val")):a.prop(b,"value",d,"val"))})};var D="_webshimsLib"+Math.round(1E3*Math.random()),v=function(d,b,c){d=d.jquery?d[0]:d;if(!d)return c||{};var e=a.data(d,D);c!==n&&(e||(e=a.data(d,D,{})),b&&(e[b]=c));return b?e&&e[b]:e};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(d){a.fn[d.name]=function(){return this.map(function(){var a=v(this, -"shadowData");return a&&a[d.prop]||this})}});["removeAttr","prop","attr"].forEach(function(d){x[d]=a[d];a[d]=function(b,c,e,r,f){var l="val"==r,s=!l?x[d]:H;if(!b||!o[c]||1!==b.nodeType||!l&&r&&"attr"==d&&a.attrFn[c])return s(b,c,e,r,f);var E=(b.nodeName||"").toLowerCase(),z=u[E],A="attr"==d&&(!1===e||null===e)?"removeAttr":d,g,h,j;z||(z=u["*"]);z&&(z=z[c]);z&&(g=z[A]);if(g){if("value"==c)h=g.isVal,g.isVal=l;if("removeAttr"===A)return g.value.call(b);if(e===n)return g.get?g.get.call(b):g.value;g.set&& -("attr"==d&&!0===e&&(e=c),j=g.set.call(b,e));if("value"==c)g.isVal=h}else j=s(b,c,e,r,f);if((e!==n||"removeAttr"===A)&&i[E]&&i[E][c]){var k;k="removeAttr"==A?!1:"prop"==A?!!e:!0;i[E][c].forEach(function(a){if(!a.only||(a.only="prop"==d)||"attr"==a.only&&"prop"!=d)a.call(b,e,k,l?"val":A,d)})}return j};y[d]=function(b,c,e){u[b]||(u[b]={});u[b][c]||(u[b][c]={});var r=u[b][c][d],B=function(a,b,E){return b&&b[a]?b[a]:E&&E[a]?E[a]:"prop"==d&&"value"==c?function(a){return e.isVal?H(this,c,a,!1,0===arguments.length): -x[d](this,c,a)}:"prop"==d&&"value"==a&&e.value.apply?function(a){var b=x[d](this,c);b&&b.apply&&(b=b.apply(this,arguments));return b}:function(a){return x[d](this,c,a)}};u[b][c][d]=e;if(e.value===n){if(!e.set)e.set=e.writeable?B("set",e,r):f.cfg.useStrict&&"prop"==c?function(){throw c+" is readonly on "+b;}:a.noop;if(!e.get)e.get=B("get",e,r)}["value","get","set"].forEach(function(a){e[a]&&(e["_sup"+a]=B(a,r))})}});var h=!a.browser.msie||8<parseInt(a.browser.version,10),q=function(){var a=f.getPrototypeOf(k.createElement("foobar")), -b=Object.prototype.hasOwnProperty;return function(c,e,r){var B=k.createElement(c),l=f.getPrototypeOf(B);if(h&&l&&a!==l&&(!B[e]||!b.call(B,e))){var s=B[e];r._supvalue=function(){return s&&s.apply?s.apply(this,arguments):s};l[e]=r.value}else r._supvalue=function(){var a=v(this,"propValue");return a&&a[e]&&a[e].apply?a[e].apply(this,arguments):a&&a[e]},w.extendValue(c,e,r.value);r.value._supvalue=r._supvalue}}(),w=function(){var d={};f.addReady(function(b,c){var l={},s=function(d){l[d]||(l[d]=a(b.getElementsByTagName(d)), -c[0]&&a.nodeName(c[0],d)&&(l[d]=l[d].add(c)))};a.each(d,function(a,b){s(a);!b||!b.forEach?f.warn("Error: with "+a+"-property. methods: "+b):b.forEach(function(b){l[a].each(b)})});l=null});var b,c=a([]),e=function(c,e){d[c]?d[c].push(e):d[c]=[e];a.isDOMReady&&(b||a(k.getElementsByTagName(c))).each(e)};return{createTmpCache:function(d){a.isDOMReady&&(b=b||a(k.getElementsByTagName(d)));return b||c},flushTmpCache:function(){b=null},content:function(b,d){e(b,function(){var b=a.attr(this,d);null!=b&&a.attr(this, -d,b)})},createElement:function(a,b){e(a,b)},extendValue:function(b,d,c){e(b,function(){a(this).each(function(){v(this,"propValue",{})[d]=this[d];this[d]=c})})}}}(),F=function(a,b){if(a.defaultValue===n)a.defaultValue="";if(!a.removeAttr)a.removeAttr={value:function(){a[b||"prop"].set.call(this,a.defaultValue);a.removeAttr._supvalue.call(this)}};if(!a.attr)a.attr={}};a.extend(f,{getID:function(){var d=(new Date).getTime();return function(b){var b=a(b),c=b.attr("id");c||(d++,c="ID-"+d,b.attr("id",c)); -return c}}(),extendUNDEFProp:function(d,b){a.each(b,function(a,b){a in d||(d[a]=b)})},createPropDefault:F,data:v,moveToFirstEvent:function(){var d=a._data?"_data":"data";return function(b,c,e){if((b=(a[d](b,"events")||{})[c])&&1<b.length)c=b.pop(),e||(e="bind"),"bind"==e&&b.delegateCount?b.splice(b.delegateCount,0,c):b.unshift(c)}}(),addShadowDom:function(){var d,b,c,e,f={init:!1,start:function(){if(!this.init)this.init=!0,this.height=a(k).height(),this.width=a(k).width(),setInterval(function(){var b= -a(k).height(),d=a(k).width();if(b!=f.height||d!=f.width)f.height=b,f.width=d,e({type:"docresize"})},400)}};e=function(e){clearTimeout(d);d=setTimeout(function(){if("resize"==e.type){var d=a(j).width(),s=a(j).width();if(s==b&&d==c)return;b=s;c=d;f.height=a(k).height();f.width=a(k).width()}a.event.trigger("updateshadowdom")},40)};a(j).bind("resize",e);a.event.customEvent.updateshadowdom=!0;return function(b,d,c){c=c||{};b.jquery&&(b=b[0]);d.jquery&&(d=d[0]);var e=a.data(b,D)||a.data(b,D,{}),z=a.data(d, -D)||a.data(d,D,{}),A={};if(c.shadowFocusElement){if(c.shadowFocusElement){if(c.shadowFocusElement.jquery)c.shadowFocusElement=c.shadowFocusElement[0];A=a.data(c.shadowFocusElement,D)||a.data(c.shadowFocusElement,D,A)}}else c.shadowFocusElement=d;e.hasShadow=d;A.nativeElement=z.nativeElement=b;A.shadowData=z.shadowData=e.shadowData={nativeElement:b,shadowElement:d,shadowFocusElement:c.shadowFocusElement};c.shadowChilds&&c.shadowChilds.each(function(){v(this,"shadowData",z.shadowData)});if(c.data)A.shadowData.data= -z.shadowData.data=e.shadowData.data=c.data;c=null;f.start()}}(),propTypes:{standard:function(a){F(a);if(!a.prop)a.prop={set:function(b){a.attr.set.call(this,""+b)},get:function(){return a.attr.get.call(this)||a.defaultValue}}},"boolean":function(a){F(a);if(!a.prop)a.prop={set:function(b){b?a.attr.set.call(this,""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}},src:function(){var d=k.createElement("a");d.style.display="none";return function(b,c){F(b);if(!b.prop)b.prop= -{set:function(a){b.attr.set.call(this,a)},get:function(){var b=this.getAttribute(c),f;if(null==b)return"";d.setAttribute("href",b+"");if(!a.support.hrefNormalized){try{a(d).insertAfter(this),f=d.getAttribute("href",4)}catch(i){f=d.getAttribute("href",4)}a(d).detach()}return f||d.href}}}}(),enumarated:function(a){F(a);if(!a.prop)a.prop={set:function(b){a.attr.set.call(this,b)},get:function(){var b=(a.attr.get.call(this)||"").toLowerCase();if(!b||-1==a.limitedTo.indexOf(b))b=a.defaultValue;return b}}}}, -reflectProperties:function(d,b){"string"==typeof b&&(b=b.split(p));b.forEach(function(b){f.defineNodeNamesProperty(d,b,{prop:{set:function(d){a.attr(this,b,d)},get:function(){return a.attr(this,b)||""}}})})},defineNodeNameProperty:function(d,b,c){o[b]=!0;if(c.reflect)f.propTypes[c.propType||"standard"](c,b);["prop","attr","removeAttr"].forEach(function(e){var i=c[e];i&&(i="prop"===e?a.extend({writeable:!0},i):a.extend({},i,{writeable:!0}),y[e](d,b,i),"*"!=d&&f.cfg.extendNative&&"prop"==e&&i.value&& -a.isFunction(i.value)&&q(d,b,i),c[e]=i)});c.initAttr&&w.content(d,b);return c},defineNodeNameProperties:function(a,b,c,e){for(var i in b)!e&&b[i].initAttr&&w.createTmpCache(a),c&&(b[i][c]?f.log("override: "+a+"["+i+"] for "+c):(b[i][c]={},["value","set","get"].forEach(function(a){a in b[i]&&(b[i][c][a]=b[i][a],delete b[i][a])}))),b[i]=f.defineNodeNameProperty(a,i,b[i]);e||w.flushTmpCache();return b},createElement:function(d,b,c){var e;a.isFunction(b)&&(b={after:b});w.createTmpCache(d);b.before&&w.createElement(d, -b.before);c&&(e=f.defineNodeNameProperties(d,c,!1,!0));b.after&&w.createElement(d,b.after);w.flushTmpCache();return e},onNodeNamesPropertyModify:function(d,b,c,e){"string"==typeof d&&(d=d.split(p));a.isFunction(c)&&(c={set:c});d.forEach(function(a){i[a]||(i[a]={});"string"==typeof b&&(b=b.split(p));c.initAttr&&w.createTmpCache(a);b.forEach(function(b){i[a][b]||(i[a][b]=[],o[b]=!0);if(c.set){if(e)c.set.only=e;i[a][b].push(c.set)}c.initAttr&&w.content(a,b)});w.flushTmpCache()})},defineNodeNamesBooleanProperty:function(d, -b,c){c||(c={});if(a.isFunction(c))c.set=c;f.defineNodeNamesProperty(d,b,{attr:{set:function(a){this.setAttribute(b,a);c.set&&c.set.call(this,!0)},get:function(){return null==this.getAttribute(b)?n:b}},removeAttr:{value:function(){this.removeAttribute(b);c.set&&c.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:c.initAttr||!1})},contentAttr:function(a,b,c){if(a.nodeName){if(c===n)return a=a.attributes[b]||{},c=a.specified?a.value:null,null==c?n:c;"boolean"==typeof c?c?a.setAttribute(b,b): -a.removeAttribute(b):a.setAttribute(b,c)}},activeLang:function(){var d=[],b={},c,e,i=/:\/\/|^\.*\//,g=function(b,c,d){return c&&d&&-1!==a.inArray(c,d.availabeLangs||[])?(b.loading=!0,d=d.langSrc,i.test(d)||(d=f.cfg.basePath+d),f.loader.loadScript(d+c+".js",function(){b.langObj[c]?(b.loading=!1,s(b,!0)):a(function(){b.langObj[c]&&s(b,!0);b.loading=!1})}),!0):!1},l=function(a){b[a]&&b[a].forEach(function(a){a.callback()})},s=function(a,b){if(a.activeLang!=c&&a.activeLang!==e){var d=t[a.module].options; -if(a.langObj[c]||e&&a.langObj[e])a.activeLang=c,a.callback(a.langObj[c]||a.langObj[e],c),l(a.module);else if(!b&&!g(a,c,d)&&!g(a,e,d)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],c),l(a.module)}};return function(l){if("string"==typeof l&&l!==c)c=l,e=c.split("-")[0],c==e&&(e=!1),a.each(d,function(a,b){s(b)});else if("object"==typeof l)if(l.register)b[l.register]||(b[l.register]=[]),b[l.register].push(l),l.callback();else{if(!l.activeLang)l.activeLang="";d.push(l);s(l)}return c}}()}); -a.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,b){f[a]=function(a,d,i,g){"string"==typeof a&&(a=a.split(p));var l={};a.forEach(function(a){l[a]=f[b](a,d,i,g)});return l}});f.isReady("webshimLocalization",!0)}); -(function(a,f){var j=a.webshims.browserVersion;if(!(a.browser.mozilla&&5<j)&&(!a.browser.msie||12>j&&7<j)){var k={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},n=function(a,f){a.getAttribute("role")||a.setAttribute("role",f)};a.webshims.addReady(function(j,p){a.each(k,function(f,i){for(var g=a(f,j).add(p.filter(f)),k=0,o=g.length;k<o;k++)n(g[k],i)});if(j===f){var x=f.getElementsByTagName("header")[0],o=f.getElementsByTagName("footer"),u=o.length; -x&&!a(x).closest("section, article")[0]&&n(x,"banner");u&&(x=o[u-1],a(x).closest("section, article")[0]||n(x,"contentinfo"))}})}})(jQuery,document); -(function(a,f,j){var k=f.audio&&f.video,n=!1,t=j.cfg.mediaelement,p=j.bugs,x=function(){j.ready("mediaelement-swf",function(){if(!j.mediaelement.createSWF)j.modules["mediaelement-swf"].test=a.noop,j.reTest(["mediaelement-swf"],k)})},o;if(k){var u=document.createElement("video");f.videoBuffered="buffered"in u;n="loop"in u;j.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(","));f.videoBuffered||(j.addPolyfill("mediaelement-native-fix",{f:"mediaelement", -test:f.videoBuffered,d:["dom-support"]}),j.reTest("mediaelement-native-fix"))}if(k&&!t.preferFlash){var y=function(f){var g=f.target.parentNode;!t.preferFlash&&(a(f.target).is("audio, video")||g&&a("source:last",g)[0]==f.target)&&j.ready("DOM mediaelement",function(){o&&x();j.ready("WINDOWLOAD mediaelement-swf",function(){setTimeout(function(){o&&!t.preferFlash&&j.mediaelement.createSWF&&!a(f.target).closest("audio, video").is(".nonnative-api-active")?(t.preferFlash=!0,document.removeEventListener("error", -y,!0),a("audio, video").mediaLoad(),j.info("switching mediaelements option to 'preferFlash', due to an error with native player: "+f.target.src)):o||document.removeEventListener("error",y,!0)},20)})})};document.addEventListener("error",y,!0);a("audio, video").each(function(){this.error&&y({target:this})})}p.track=!1;f.track&&function(){if(!p.track)p.track="number"!=typeof a("<track />")[0].readyState;if(!p.track)try{new TextTrackCue(2,3,"")}catch(f){p.track=!0}var g=j.cfg.track,k=function(f){a(f.target).filter("track").each(o)}, -o=function(){if(p.track||!g.override&&3==a.prop(this,"readyState"))g.override=!0,j.reTest("track"),document.removeEventListener("error",k,!0),this&&a.nodeName(this,"track")?j.error("track support was overwritten. Please check your vtt including your vtt mime-type"):j.info("track support was overwritten. due to bad browser support")},n=function(){document.addEventListener("error",k,!0);p.track?o():a("track").each(o)};g.override||(j.isReady("track")?n():a(n))}();j.register("mediaelement-core",function(a, -g,j,u,v){o=swfobject.hasFlashPlayerVersion("9.0.115");var h=g.mediaelement,q=function(b,c){var b=a(b),d={src:b.attr("src")||"",elem:b,srcProp:b.prop("src")};if(!d.src)return d;var e=b.attr("type");if(e)d.type=e,d.container=a.trim(e.split(";")[0]);else if(c||(c=b[0].nodeName.toLowerCase(),"source"==c&&(c=(b.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),e=h.getTypeForSrc(d.src,c))d.type=e,d.container=e;if(e=b.attr("media"))d.media=e;return d},w=!o&&"postMessage"in j&&k,y= -function(){var b;return function(){!b&&w&&(b=!0,g.loader.loadScript("https://www.youtube.com/player_api"),a(function(){g.polyfill("mediaelement-yt")}))}}(),d=function(){o?x():y()};g.addPolyfill("mediaelement-yt",{test:!w,d:["dom-support"]});h.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"]}};h.mimeTypes.source=a.extend({},h.mimeTypes.audio,h.mimeTypes.video);h.getTypeForSrc=function(b,c){if(-1!=b.indexOf("youtube.com/watch?")|| --1!=b.indexOf("youtube.com/v/"))return"video/youtube";var b=b.split("?")[0].split("."),b=b[b.length-1],d;a.each(h.mimeTypes[c],function(a,c){if(-1!==c.indexOf(b))return d=a,!1});return d};h.srces=function(b,c){b=a(b);if(c)b.removeAttr("src").removeAttr("type").find("source").remove(),a.isArray(c)||(c=[c]),c.forEach(function(a){var c=u.createElement("source");"string"==typeof a&&(a={src:a});c.setAttribute("src",a.src);a.type&&c.setAttribute("type",a.type);a.media&&c.setAttribute("media",a.media);b.append(c)}); -else{var c=[],d=b[0].nodeName.toLowerCase(),e=q(b,d);e.src?c.push(e):a("source",b).each(function(){e=q(this,d);e.src&&c.push(e)});return c}};a.fn.loadMediaSrc=function(b,c){return this.each(function(){c!==v&&(a(this).removeAttr("poster"),c&&a.attr(this,"poster",c));h.srces(this,b);a(this).mediaLoad()})};h.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(","); -h.canThirdPlaySrces=function(b,c){var d="";if(o||w)b=a(b),c=c||h.srces(b),a.each(c,function(a,b){if(b.container&&b.src&&(o&&-1!=h.swfMimeTypes.indexOf(b.container)||w&&"video/youtube"==b.container))return d=b,!1});return d};var b={};h.canNativePlaySrces=function(c,d){var e="";if(k){var c=a(c),f=(c[0].nodeName||"").toLowerCase();if(!b[f])return e;d=d||h.srces(c);a.each(d,function(a,d){if(d.type&&b[f].prop._supvalue.call(c[0],d.type))return e=d,!1})}return e};h.setError=function(b,c){c||(c="can't play sources"); -a(b).pause().data("mediaerror",c);g.warn("mediaelementError: "+c);setTimeout(function(){a(b).data("mediaerror")&&a(b).trigger("mediaerror")},1)};var c=function(){var a;return function(b,e,f){g.ready(o?"mediaelement-swf":"mediaelement-yt",function(){h.createSWF?h.createSWF(b,e,f):a||(a=!0,d(),c(b,e,f))});!a&&w&&!h.createSWF&&y()}}(),e=function(a,b,d,f,g){d||!1!==d&&b&&"third"==b.isActive?(d=h.canThirdPlaySrces(a,f))?c(a,d,b):g?h.setError(a,!1):e(a,b,!1,f,!0):(d=h.canNativePlaySrces(a,f))?b&&"third"== -b.isActive&&h.setActive(a,"html5",b):g?(h.setError(a,!1),b&&"third"==b.isActive&&h.setActive(a,"html5",b)):e(a,b,!0,f,!0)},r=/^(?:embed|object|datalist)$/i,B=function(b,c){var d=g.data(b,"mediaelementBase")||g.data(b,"mediaelementBase",{}),f=h.srces(b),j=b.parentNode;clearTimeout(d.loadTimer);a.data(b,"mediaerror",!1);if(f.length&&j&&!(1!=j.nodeType||r.test(j.nodeName||"")))c=c||g.data(b,"mediaelement"),e(b,c,t.preferFlash||v,f)};a(u).bind("ended",function(b){var c=g.data(b.target,"mediaelement"); -(!n||c&&"html5"!=c.isActive||a.prop(b.target,"loop"))&&setTimeout(function(){!a.prop(b.target,"paused")&&a.prop(b.target,"loop")&&a(b.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 a=g.data(this,"mediaelement");B(this,a);k&&(!a||"html5"==a.isActive)&&d.prop._supvalue&&d.prop._supvalue.apply(this,arguments)}}});b[c]=g.defineNodeNameProperty(c, -"canPlayType",{prop:{value:function(d){var e="";k&&b[c].prop._supvalue&&(e=b[c].prop._supvalue.call(this,d),"no"==e&&(e=""));!e&&o&&(d=a.trim((d||"").split(";")[0]),-1!=h.swfMimeTypes.indexOf(d)&&(e="maybe"));return e}}})});g.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=this,b=g.data(a,"mediaelementBase")||g.data(a,"mediaelementBase",{});clearTimeout(b.loadTimer);b.loadTimer=setTimeout(function(){B(a);a=null},9)}});j=function(){g.addReady(function(b,c){a("video, audio", -b).add(c.filter("video, audio")).each(function(){a.browser.msie&&8<g.browserVersion&&a.prop(this,"paused")&&!a.prop(this,"readyState")&&a(this).is('audio[preload="none"][controls]:not([autoplay])')?a(this).prop("preload","metadata").mediaLoad():B(this);if(k){var b,c,d=this,e=function(){var b=a.prop(d,"buffered");if(b){for(var c="",e=0,f=b.length;e<f;e++)c+=b.end(e);return c}},f=function(){var b=e();b!=c&&(c=b,a(d).triggerHandler("progress"))};a(this).bind("play loadstart progress",function(a){"progress"== -a.type&&(c=e());clearTimeout(b);b=setTimeout(f,999)}).bind("emptied stalled mediaerror abort suspend",function(a){"emptied"==a.type&&(c=!1);clearTimeout(b)})}})})};f.track&&!p.track&&g.defineProperty(TextTrack.prototype,"shimActiveCues",{get:function(){return this._shimActiveCues||this.activeCues}});k?(g.isReady("mediaelement-core",!0),j(),g.ready("WINDOWLOAD mediaelement",d)):g.ready("mediaelement-swf",j);a(function(){g.loader.loadList(["track-ui"])})})})(jQuery,Modernizr,jQuery.webshims); -jQuery.webshims.register("mediaelement-swf",function(a,f,j,k,n,t){var p=f.mediaelement,x=j.swfobject,o=Modernizr.audio&&Modernizr.video,u=x.hasFlashPlayerVersion("9.0.115"),y=0,j={paused:!0,ended:!1,currentSrc:"",duration:j.NaN,readyState:0,networkState:0,videoHeight:0,videoWidth:0,error:null,buffered:{start:function(a){if(a)f.error("buffered index size error");else return 0},end:function(a){if(a)f.error("buffered index size error");else return 0},length:0}},i=Object.keys(j),g={currentTime:0,volume:1, -muted:!1};Object.keys(g);var H=a.extend({isActive:"html5",activating:"html5",wasSwfReady:!1,_bufferedEnd:0,_bufferedStart:0,_metadata:!1,_durationCalcs:-1,_callMeta:!1,currentTime:0,_ppFlag:n},j,g),D=/^jwplayer-/,v=function(a){if(a=k.getElementById(a.replace(D,"")))return a=f.data(a,"mediaelement"),"third"==a.isActive?a:null},h=function(a){return(a=f.data(a,"mediaelement"))&&"third"==a.isActive?a:null},q=function(b,m){m=a.Event(m);m.preventDefault();a.event.trigger(m,n,b)},w=t.playerPath||f.cfg.basePath+ -"jwplayer/"+(t.playerName||"player.swf"),F=t.pluginPath||f.cfg.basePath+"swf/jwwebshims.swf";f.extendUNDEFProp(t.jwParams,{allowscriptaccess:"always",allowfullscreen:"true",wmode:"transparent"});f.extendUNDEFProp(t.jwVars,{screencolor:"ffffffff"});f.extendUNDEFProp(t.jwAttrs,{bgcolor:"#000000"});var d=function(b,m){var c=b.duration;if(!(c&&0<b._durationCalcs)){try{if(b.duration=b.jwapi.getPlaylist()[0].duration,!b.duration||0>=b.duration||b.duration===b._lastDuration)b.duration=c}catch(d){}b.duration&& -b.duration!=b._lastDuration?(q(b._elem,"durationchange"),("audio"==b._elemNodeName||b._callMeta)&&p.jwEvents.Model.META(a.extend({duration:b.duration},m),b),b._durationCalcs--):b._durationCalcs++}},b=function(a,m){3>a&&clearTimeout(m._canplaythroughTimer);if(3<=a&&3>m.readyState)m.readyState=a,q(m._elem,"canplay"),clearTimeout(m._canplaythroughTimer),m._canplaythroughTimer=setTimeout(function(){b(4,m)},4E3);if(4<=a&&4>m.readyState)m.readyState=a,q(m._elem,"canplaythrough");m.readyState=a};a.extend(a.event.customEvent, -{updatemediaelementdimensions:!0,flashblocker:!0,swfstageresize:!0,mediaelementapichange:!0});p.jwEvents={View:{PLAY:function(a){var b=v(a.id);if(b&&!b.stopPlayPause&&(b._ppFlag=!0,b.paused==a.state)){b.paused=!a.state;if(b.ended)b.ended=!1;q(b._elem,a.state?"play":"pause")}}},Model:{BUFFER:function(c){var m=v(c.id);if(m&&"percentage"in c&&m._bufferedEnd!=c.percentage){m.networkState=100==c.percentage?1:2;(isNaN(m.duration)||5<c.percentage&&25>c.percentage||100===c.percentage)&&d(m,c);if(m.ended)m.ended= -!1;if(m.duration){2<c.percentage&&20>c.percentage?b(3,m):20<c.percentage&&b(4,m);if(m._bufferedEnd&&m._bufferedEnd>c.percentage)m._bufferedStart=m.currentTime||0;m._bufferedEnd=c.percentage;m.buffered.length=1;if(100==c.percentage)m.networkState=1,b(4,m);a.event.trigger("progress",n,m._elem,!0)}}},META:function(a,c){if(c=c&&c.networkState?c:v(a.id))if("duration"in a){if(!c._metadata||!((!a.height||c.videoHeight==a.height)&&a.duration===c.duration)){c._metadata=!0;var d=c.duration;if(a.duration)c.duration= -a.duration;c._lastDuration=c.duration;if(a.height||a.width)c.videoHeight=a.height||0,c.videoWidth=a.width||0;if(!c.networkState)c.networkState=2;1>c.readyState&&b(1,c);c.duration&&d!==c.duration&&q(c._elem,"durationchange");q(c._elem,"loadedmetadata")}}else c._callMeta=!0},TIME:function(a){var c=v(a.id);if(c&&c.currentTime!==a.position){c.currentTime=a.position;c.duration&&c.duration<c.currentTime&&d(c,a);2>c.readyState&&b(2,c);if(c.ended)c.ended=!1;q(c._elem,"timeupdate")}},STATE:function(a){var c= -v(a.id);if(c)switch(a.newstate){case "BUFFERING":if(c.ended)c.ended=!1;b(1,c);q(c._elem,"waiting");break;case "PLAYING":c.paused=!1;c._ppFlag=!0;c.duration||d(c,a);3>c.readyState&&b(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&&b(4,c),c.ended=!0,q(c._elem,"ended")}}},Controller:{ERROR:function(a){var b=v(a.id);b&&p.setError(b._elem,a.message)},SEEK:function(a){var b= -v(a.id);if(b){if(b.ended)b.ended=!1;if(b.paused)try{b.jwapi.sendEvent("play","false")}catch(c){}if(b.currentTime!=a.position)b.currentTime=a.position,q(b._elem,"timeupdate")}},VOLUME:function(a){var b=v(a.id);if(b&&(a=a.percentage/100,b.volume!=a))b.volume=a,q(b._elem,"volumechange")},MUTE:function(a){if(!a.state){var b=v(a.id);if(b&&b.muted!=a.state)b.muted=a.state,q(b._elem,"volumechange")}}}};var c=function(b){var c=!0;a.each(p.jwEvents,function(d,e){a.each(e,function(a){try{b.jwapi["add"+d+"Listener"](a, -"jQuery.webshims.mediaelement.jwEvents."+d+"."+a)}catch(e){return c=!1}})});return c},e=function(a){var b=a.actionQueue.length,c=0,d;if(b&&"third"==a.isActive)for(;a.actionQueue.length&&b>c;)c++,d=a.actionQueue.shift(),a.jwapi[d.fn].apply(a.jwapi,d.args);if(a.actionQueue.length)a.actionQueue=[]},r=function(b){b&&(b._ppFlag===n&&a.prop(b._elem,"autoplay")||!b.paused)&&setTimeout(function(){if("third"==b.isActive&&(b._ppFlag===n||!b.paused))try{a(b._elem).play()}catch(c){}},1)},B=function(b){if(b&& -"video"==b._elemNodeName){var c,d,e,f,g,C,j,l,h=function(h,i){if(i&&h&&!(1>i||1>h||"third"!=b.isActive))if(c&&(c.remove(),c=!1),f=h,g=i,clearTimeout(j),d="auto"==b._elem.style.width,e="auto"==b._elem.style.height,d||e){C=C||a(b._elem).getShadowElement();var k;d&&!e?(k=C.height(),h*=k/i,i=k):!d&&e&&(k=C.width(),i*=k/h,h=k);l=!0;setTimeout(function(){l=!1},9);C.css({width:h,height:i})}},i=function(){if(!("third"!=b.isActive||a.prop(b._elem,"readyState")&&a.prop(this,"videoWidth"))){var f=a.prop(b._elem, -"poster");if(f&&(d="auto"==b._elem.style.width,e="auto"==b._elem.style.height,d||e))c&&(c.remove(),c=!1),c=a('<img style="position: absolute; height: auto; width: auto; top: 0px; left: 0px; visibility: hidden;" />'),c.bind("load error alreadycomplete",function(){clearTimeout(j);var b=this,d=b.naturalWidth||b.width||b.offsetWidth,e=b.naturalHeight||b.height||b.offsetHeight;e&&d?(h(d,e),b=null):setTimeout(function(){d=b.naturalWidth||b.width||b.offsetWidth;e=b.naturalHeight||b.height||b.offsetHeight; -h(d,e);c&&(c.remove(),c=!1);b=null},9);a(this).unbind()}).prop("src",f).appendTo("body").each(function(){this.complete||this.error?a(this).triggerHandler("alreadycomplete"):(clearTimeout(j),j=setTimeout(function(){a(b._elem).triggerHandler("error")},9999))})}};a(b._elem).bind("loadedmetadata",function(){h(a.prop(this,"videoWidth"),a.prop(this,"videoHeight"))}).bind("emptied",i).bind("swfstageresize updatemediaelementdimensions",function(){l||h(f,g)}).bind("emptied",function(){f=void 0;g=void 0}).triggerHandler("swfstageresize"); -i();a.prop(b._elem,"readyState")&&h(a.prop(b._elem,"videoWidth"),a.prop(b._elem,"videoHeight"))}};p.playerResize=function(b){b&&(b=k.getElementById(b.replace(D,"")))&&a(b).triggerHandler("swfstageresize")};a(k).bind("emptied",function(a){a=h(a.target);r(a)});var l;p.jwPlayerReady=function(b){var d=v(b.id),I=0,g=function(){if(!(9<I))if(I++,c(d)){if(d.wasSwfReady)a(d._elem).mediaLoad();else{var h=parseFloat(b.version,10);(5.1>h||6<=h)&&f.warn("mediaelement-swf is only testet with jwplayer 5.6+")}d.wasSwfReady= -!0;d.tryedReframeing=0;e(d);r(d)}else clearTimeout(d.reframeTimer),d.reframeTimer=setTimeout(g,9*I),2<I&&9>d.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(l);d.jwData=b;d.shadowElem.removeClass("flashblocker-assumed");a.prop(d._elem,"volume",d.volume);a.prop(d._elem,"muted",d.muted);g()}};var s=a.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(a){return a+".webshimspolyfill"}).join(" "),K=function(b){var c=f.data(b.target,"mediaelement");c&&(b.originalEvent&&b.originalEvent.type===b.type)==("third"==c.activating)&&(b.stopImmediatePropagation(),E[b.type]&&c.isActive!=c.activating&&a(b.target).pause())},s=function(b){a(b).unbind(A).bind(A,K);z.forEach(function(a){f.moveToFirstEvent(b,a)})};s(k)}p.setActive=function(b,c, -d){d||(d=f.data(b,"mediaelement"));if(d&&d.isActive!=c){"html5"!=c&&"third"!=c&&f.warn("wrong type for mediaelement activating: "+c);var e=f.data(b,"shadowData");d.activating=c;a(b).pause();d.isActive=c;"third"==c?(e.shadowElement=e.shadowFocusElement=d.shadowElem[0],a(b).addClass("swf-api-active nonnative-api-active").hide().getShadowElement().show()):(a(b).removeClass("swf-api-active nonnative-api-active").show().getShadowElement().hide(),e.shadowElement=e.shadowFocusElement=!1);a(b).trigger("mediaelementapichange")}}; -var L=function(){var a="_bufferedEnd,_bufferedStart,_metadata,_ppFlag,currentSrc,currentTime,duration,ended,networkState,paused,videoHeight,videoWidth,_callMeta,_durationCalcs".split(","),c=a.length;return function(d){if(d){var e=c,f=d.networkState;for(b(0,d);--e;)delete d[a[e]];d.actionQueue=[];d.buffered.length=0;f&&q(d._elem,"emptied")}}}(),J=function(b,c){var d=b._elem,e=b.shadowElem;a(d)[c?"addClass":"removeClass"]("webshims-controls");"audio"==b._elemNodeName&&!c?e.css({width:0,height:0}):e.css({width:d.style.width|| -a(d).width(),height:d.style.height||a(d).height()})};p.createSWF=function(b,c,d){if(u){1>y?y=1:y++;var e=a.extend({},t.jwVars,{image:a.prop(b,"poster")||"",file:c.srcProp}),g=a(b).data("jwvars")||{};d||(d=f.data(b,"mediaelement"));if(d&&d.swfCreated)p.setActive(b,"third",d),L(d),d.currentSrc=c.srcProp,a.extend(e,g),t.changeJW(e,b,c,d,"load"),G(b,"sendEvent",["LOAD",e]);else{var h=a.prop(b,"controls"),C="jwplayer-"+f.getID(b),j=a.extend({},t.jwParams,a(b).data("jwparams")),i=b.nodeName.toLowerCase(), -k=a.extend({},t.jwAttrs,{name:C,id:C},a(b).data("jwattrs")),n=a('<div class="polyfill-'+i+' polyfill-mediaelement" id="wrapper-'+C+'"><div id="'+C+'"></div>').css({position:"relative",overflow:"hidden"}),d=f.data(b,"mediaelement",f.objectCreate(H,{actionQueue:{value:[]},shadowElem:{value:n},_elemNodeName:{value:i},_elem:{value:b},currentSrc:{value:c.srcProp},swfCreated:{value:!0},buffered:{value:{start:function(a){if(a>=d.buffered.length)f.error("buffered index size error");else return 0},end:function(a){if(a>= -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(b);o&&a.extend(d,{volume:a.prop(b,"volume"),muted:a.prop(b,"muted")});a.extend(e,{id:C,controlbar:h?t.jwVars.controlbar||("video"==i?"over":"bottom"):"video"==i?"none":"bottom",icons:""+(h&&"video"==i)},g,{playerready:"jQuery.webshims.mediaelement.jwPlayerReady"});e.plugins=e.plugins?e.plugins+(","+F):F;f.addShadowDom(b,n);s(b);p.setActive(b, -"third",d);t.changeJW(e,b,c,d,"embed");a(b).bind("updatemediaelementdimensions updateshadowdom",function(){J(d,a.prop(b,"controls"))});B(d);x.embedSWF(w,C,"100%","100%","9.0.0",!1,e,j,k,function(c){if(c.success)d.jwapi=c.ref,h||a(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"),a(b).trigger("flashblocker"),f.warn("flashblocker assumed");a(c.ref).css({minHeight:"2px",minWidth:"2px", -display:"block"})},9),l||(clearTimeout(l),l=setTimeout(function(){var b=a(c.ref);1<b[0].offsetWidth&&1<b[0].offsetHeight&&0===location.protocol.indexOf("file:")?f.error("Add your local development-directory to the local-trusted security sandbox: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html"):(2>b[0].offsetWidth||2>b[0].offsetHeight)&&f.info("JS-SWF connection can't be established on hidden or unconnected flash objects")},8E3))})}}else setTimeout(function(){a(b).mediaLoad()}, -1)};var G=function(a,b,c,d){return(d=d||h(a))?(d.jwapi&&d.jwapi[b]?d.jwapi[b].apply(d.jwapi,c||[]):(d.actionQueue.push({fn:b,args:c}),10<d.actionQueue.length&&setTimeout(function(){5<d.actionQueue.length&&d.actionQueue.shift()},99)),d):!1};["audio","video"].forEach(function(b){var c={},d,e=function(a){"audio"==b&&("videoHeight"==a||"videoWidth"==a)||(c[a]={get:function(){var b=h(this);return b?b[a]:o&&d[a].prop._supget?d[a].prop._supget.apply(this):H[a]},writeable:!1})},g=function(b,a){e(b);delete c[b].writeable; -c[b].set=a};g("volume",function(b){var a=h(this);if(a){if(b*=100,!isNaN(b)){var c=a.muted;(0>b||100<b)&&f.error("volume greater or less than allowed "+b/100);G(this,"sendEvent",["VOLUME",b],a);if(c)try{a.jwapi.sendEvent("mute","true")}catch(e){}b/=100;if(!(a.volume==b||"third"!=a.isActive))a.volume=b,q(a._elem,"volumechange")}}else if(d.volume.prop._supset)return d.volume.prop._supset.apply(this,arguments)});g("muted",function(b){var a=h(this);if(a){if(b=!!b,G(this,"sendEvent",["mute",""+b],a),!(a.muted== -b||"third"!=a.isActive))a.muted=b,q(a._elem,"volumechange")}else if(d.muted.prop._supset)return d.muted.prop._supset.apply(this,arguments)});g("currentTime",function(b){var a=h(this);if(a){if(b*=1,!isNaN(b)){if(a.paused)clearTimeout(a.stopPlayPause),a.stopPlayPause=setTimeout(function(){a.paused=!0;a.stopPlayPause=!1},50);G(this,"sendEvent",["SEEK",""+b],a);if(a.paused){if(0<a.readyState)a.currentTime=b,q(a._elem,"timeupdate");try{a.jwapi.sendEvent("play","false")}catch(c){}}}}else if(d.currentTime.prop._supset)return d.currentTime.prop._supset.apply(this, -arguments)});["play","pause"].forEach(function(a){c[a]={value:function(){var b=h(this);if(b)b.stopPlayPause&&clearTimeout(b.stopPlayPause),G(this,"sendEvent",["play","play"==a],b),setTimeout(function(){if("third"==b.isActive&&(b._ppFlag=!0,b.paused!=("play"!=a)))b.paused="play"!=a,q(b._elem,a)},1);else if(d[a].prop._supvalue)return d[a].prop._supvalue.apply(this,arguments)}}});i.forEach(e);f.onNodeNamesPropertyModify(b,"controls",function(c,d){var e=h(this);a(this)[d?"addClass":"removeClass"]("webshims-controls"); -if(e){try{G(this,d?"showControls":"hideControls",[b],e)}catch(g){f.warn("you need to generate a crossdomain.xml")}"audio"==b&&J(e,d);a(e.jwapi).attr("tabindex",d?"0":"-1")}});d=f.defineNodeNameProperties(b,c,"prop")});if(u){var M=a.cleanData,N=a.browser.msie&&9>f.browserVersion,O={object:1,OBJECT:1};a.cleanData=function(b){var a,c,d;if(b&&(c=b.length)&&y)for(a=0;a<c;a++)if(O[b[a].nodeName]){if("sendEvent"in b[a]){y--;try{b[a].sendEvent("play",!1)}catch(e){}}if(N)try{for(d in b[a])"function"==typeof b[a][d]&& -(b[a][d]=null)}catch(f){}}return M.apply(this,arguments)}}o||(["poster","src"].forEach(function(a){f.defineNodeNamesProperty("src"==a?["audio","video","source"]:["video"],a,{reflect:!0,propType:"src"})}),["autoplay","controls"].forEach(function(a){f.defineNodeNamesBooleanProperty(["audio","video"],a)}),f.defineNodeNamesProperties(["audio","video"],{HAVE_CURRENT_DATA:{value:2},HAVE_ENOUGH_DATA:{value:4},HAVE_FUTURE_DATA:{value:3},HAVE_METADATA:{value:1},HAVE_NOTHING:{value:0},NETWORK_EMPTY:{value:0}, +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||8<parseInt(b.browser.version,10),q=function(){var b=f.getPrototypeOf(l.createElement("foobar")), +a=Object.prototype.hasOwnProperty;return function(c,e,h){var B=l.createElement(c),i=f.getPrototypeOf(B);if(j&&i&&b!==i&&(!B[e]||!a.call(B,e))){var r=B[e];h._supvalue=function(){return r&&r.apply?r.apply(this,arguments):r};i[e]=h.value}else h._supvalue=function(){var b=u(this,"propValue");return b&&b[e]&&b[e].apply?b[e].apply(this,arguments):b&&b[e]},v.extendValue(c,e,h.value);h.value._supvalue=h._supvalue}}(),v=function(){var d={};f.addReady(function(a,c){var i={},r=function(d){i[d]||(i[d]=b(a.getElementsByTagName(d)), +c[0]&&b.nodeName(c[0],d)&&(i[d]=i[d].add(c)))};b.each(d,function(b,a){r(b);!a||!a.forEach?f.warn("Error: with "+b+"-property. methods: "+a):a.forEach(function(a){i[b].each(a)})});i=null});var a,c=b([]),e=function(c,e){d[c]?d[c].push(e):d[c]=[e];b.isDOMReady&&(a||b(l.getElementsByTagName(c))).each(e)};return{createTmpCache:function(d){b.isDOMReady&&(a=a||b(l.getElementsByTagName(d)));return a||c},flushTmpCache:function(){a=null},content:function(a,d){e(a,function(){var a=b.attr(this,d);null!=a&&b.attr(this, +d,a)})},createElement:function(b,a){e(b,a)},extendValue:function(a,d,c){e(a,function(){b(this).each(function(){u(this,"propValue",{})[d]=this[d];this[d]=c})})}}}(),F=function(b,a){if(b.defaultValue===n)b.defaultValue="";if(!b.removeAttr)b.removeAttr={value:function(){b[a||"prop"].set.call(this,b.defaultValue);b.removeAttr._supvalue.call(this)}};if(!b.attr)b.attr={}};b.extend(f,{getID:function(){var d=(new Date).getTime();return function(a){var a=b(a),c=a.attr("id");c||(d++,c="ID-"+d,a.attr("id",c)); +return c}}(),extendUNDEFProp:function(d,a){b.each(a,function(b,a){b in d||(d[b]=a)})},createPropDefault:F,data:u,moveToFirstEvent:function(){var d=b._data?"_data":"data";return function(a,c,e){if((a=(b[d](a,"events")||{})[c])&&1<a.length)c=a.pop(),e||(e="bind"),"bind"==e&&a.delegateCount?a.splice(a.delegateCount,0,c):a.unshift(c)}}(),addShadowDom:function(){var d,a,c,e,h={init:!1,start:function(){if(!this.init&&l.body)this.init=!0,this.height=b(l).height(),this.width=b(l).width(),setInterval(function(){var a= +b(l).height(),d=b(l).width();if(a!=h.height||d!=h.width)h.height=a,h.width=d,e({type:"docresize"})},600)}};e=function(e){clearTimeout(d);d=setTimeout(function(){if("resize"==e.type){var d=b(k).width(),r=b(k).width();if(r==a&&d==c)return;a=r;c=d;if(l.body)h.height=b(l).height(),h.width=b(l).width()}b.event.trigger("updateshadowdom")},40)};b(k).bind("resize",e);b.event.customEvent.updateshadowdom=!0;return function(a,d,c){c=c||{};a.jquery&&(a=a[0]);d.jquery&&(d=d[0]);var e=b.data(a,D)||b.data(a,D,{}), +z=b.data(d,D)||b.data(d,D,{}),A={};if(c.shadowFocusElement){if(c.shadowFocusElement){if(c.shadowFocusElement.jquery)c.shadowFocusElement=c.shadowFocusElement[0];A=b.data(c.shadowFocusElement,D)||b.data(c.shadowFocusElement,D,A)}}else c.shadowFocusElement=d;e.hasShadow=d;A.nativeElement=z.nativeElement=a;A.shadowData=z.shadowData=e.shadowData={nativeElement:a,shadowElement:d,shadowFocusElement:c.shadowFocusElement};c.shadowChilds&&c.shadowChilds.each(function(){u(this,"shadowData",z.shadowData)}); +if(c.data)A.shadowData.data=z.shadowData.data=e.shadowData.data=c.data;c=null;f.ready("DOM",function(){h.start()})}}(),propTypes:{standard:function(b){F(b);if(!b.prop)b.prop={set:function(a){b.attr.set.call(this,""+a)},get:function(){return b.attr.get.call(this)||b.defaultValue}}},"boolean":function(b){F(b);if(!b.prop)b.prop={set:function(a){a?b.attr.set.call(this,""):b.removeAttr.value.call(this)},get:function(){return null!=b.attr.get.call(this)}}},src:function(){var d=l.createElement("a");d.style.display= +"none";return function(a,c){F(a);if(!a.prop)a.prop={set:function(b){a.attr.set.call(this,b)},get:function(){var a=this.getAttribute(c),f;if(null==a)return"";d.setAttribute("href",a+"");if(!b.support.hrefNormalized){try{b(d).insertAfter(this),f=d.getAttribute("href",4)}catch(x){f=d.getAttribute("href",4)}b(d).detach()}return f||d.href}}}}(),enumarated:function(b){F(b);if(!b.prop)b.prop={set:function(a){b.attr.set.call(this,a)},get:function(){var a=(b.attr.get.call(this)||"").toLowerCase();if(!a||-1== +b.limitedTo.indexOf(a))a=b.defaultValue;return a}}}},reflectProperties:function(d,a){"string"==typeof a&&(a=a.split(p));a.forEach(function(a){f.defineNodeNamesProperty(d,a,{prop:{set:function(d){b.attr(this,a,d)},get:function(){return b.attr(this,a)||""}}})})},defineNodeNameProperty:function(d,a,c){o[a]=!0;if(c.reflect)f.propTypes[c.propType||"standard"](c,a);["prop","attr","removeAttr"].forEach(function(e){var h=c[e];h&&(h="prop"===e?b.extend({writeable:!0},h):b.extend({},h,{writeable:!0}),y[e](d, +a,h),"*"!=d&&f.cfg.extendNative&&"prop"==e&&h.value&&b.isFunction(h.value)&&q(d,a,h),c[e]=h)});c.initAttr&&v.content(d,a);return c},defineNodeNameProperties:function(b,a,c,e){for(var h in a)!e&&a[h].initAttr&&v.createTmpCache(b),c&&!a[h][c]&&(a[h][c]={},["value","set","get"].forEach(function(b){b in a[h]&&(a[h][c][b]=a[h][b],delete a[h][b])})),a[h]=f.defineNodeNameProperty(b,h,a[h]);e||v.flushTmpCache();return a},createElement:function(d,a,c){var e;b.isFunction(a)&&(a={after:a});v.createTmpCache(d); +a.before&&v.createElement(d,a.before);c&&(e=f.defineNodeNameProperties(d,c,!1,!0));a.after&&v.createElement(d,a.after);v.flushTmpCache();return e},onNodeNamesPropertyModify:function(d,a,c,e){"string"==typeof d&&(d=d.split(p));b.isFunction(c)&&(c={set:c});d.forEach(function(b){x[b]||(x[b]={});"string"==typeof a&&(a=a.split(p));c.initAttr&&v.createTmpCache(b);a.forEach(function(a){x[b][a]||(x[b][a]=[],o[a]=!0);if(c.set){if(e)c.set.only=e;x[b][a].push(c.set)}c.initAttr&&v.content(b,a)});v.flushTmpCache()})}, +defineNodeNamesBooleanProperty:function(d,a,c){c||(c={});if(b.isFunction(c))c.set=c;f.defineNodeNamesProperty(d,a,{attr:{set:function(b){this.setAttribute(a,b);c.set&&c.set.call(this,!0)},get:function(){return null==this.getAttribute(a)?n:a}},removeAttr:{value:function(){this.removeAttribute(a);c.set&&c.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:c.initAttr||!1})},contentAttr:function(b,a,c){if(b.nodeName){if(c===n)return b=b.attributes[a]||{},c=b.specified?b.value:null,null==c?n:c; +"boolean"==typeof c?c?b.setAttribute(a,a):b.removeAttribute(a):b.setAttribute(a,c)}},activeLang:function(){var d=[],a={},c,e,x=/:\/\/|^\.*\//,g=function(a,c,d){return c&&d&&-1!==b.inArray(c,d.availabeLangs||[])?(a.loading=!0,d=d.langSrc,x.test(d)||(d=f.cfg.basePath+d),f.loader.loadScript(d+c+".js",function(){a.langObj[c]?(a.loading=!1,r(a,!0)):b(function(){a.langObj[c]&&r(a,!0);a.loading=!1})}),!0):!1},i=function(b){a[b]&&a[b].forEach(function(b){b.callback()})},r=function(b,a){if(b.activeLang!=c&& +b.activeLang!==e){var d=s[b.module].options;if(b.langObj[c]||e&&b.langObj[e])b.activeLang=c,b.callback(b.langObj[c]||b.langObj[e],c),i(b.module);else if(!a&&!g(b,c,d)&&!g(b,e,d)&&b.langObj[""]&&""!==b.activeLang)b.activeLang="",b.callback(b.langObj[""],c),i(b.module)}};return function(i){if("string"==typeof i&&i!==c)c=i,e=c.split("-")[0],c==e&&(e=!1),b.each(d,function(b,a){r(a)});else if("object"==typeof i)if(i.register)a[i.register]||(a[i.register]=[]),a[i.register].push(i),i.callback();else{if(!i.activeLang)i.activeLang= +"";d.push(i);r(i)}return c}}()});b.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(b,a){f[b]=function(b,d,x,g){"string"==typeof b&&(b=b.split(p));var i={};b.forEach(function(b){i[b]=f[a](b,d,x,g)});return i}});f.isReady("webshimLocalization",!0)}); +(function(b,f){var k=b.webshims.browserVersion;if(!(b.browser.mozilla&&5<k)&&(!b.browser.msie||12>k&&7<k)){var l={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},n=function(b,f){b.getAttribute("role")||b.setAttribute("role",f)};b.webshims.addReady(function(k,p){b.each(l,function(f,x){for(var g=b(f,k).add(p.filter(f)),l=0,o=g.length;l<o;l++)n(g[l],x)});if(k===f){var w=f.getElementsByTagName("header")[0],o=f.getElementsByTagName("footer"),t=o.length; +w&&!b(w).closest("section, article")[0]&&n(w,"banner");t&&(w=o[t-1],b(w).closest("section, article")[0]||n(w,"contentinfo"))}})}})(jQuery,document); +(function(b,f,k){var l=f.audio&&f.video,n=!1,s=k.cfg.mediaelement,p=k.bugs,w=function(){k.ready("mediaelement-swf",function(){if(!k.mediaelement.createSWF)k.modules["mediaelement-swf"].test=b.noop,k.reTest(["mediaelement-swf"],l)})},o;if(l){var t=document.createElement("video");f.videoBuffered="buffered"in t;n="loop"in t;k.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(","));f.videoBuffered||(k.addPolyfill("mediaelement-native-fix",{f:"mediaelement", +test:f.videoBuffered,d:["dom-support"]}),k.reTest("mediaelement-native-fix"))}if(l&&!s.preferFlash){var y=function(f){var g=f.target.parentNode;!s.preferFlash&&(b(f.target).is("audio, video")||g&&b("source:last",g)[0]==f.target)&&k.ready("DOM mediaelement",function(){o&&w();k.ready("WINDOWLOAD mediaelement-swf",function(){setTimeout(function(){o&&!s.preferFlash&&k.mediaelement.createSWF&&!b(f.target).closest("audio, video").is(".nonnative-api-active")?(s.preferFlash=!0,document.removeEventListener("error", +y,!0),b("audio, video").mediaLoad(),k.info("switching mediaelements option to 'preferFlash', due to an error with native player: "+f.target.src)):o||document.removeEventListener("error",y,!0)},20)})})};document.addEventListener("error",y,!0);b("audio, video").each(function(){this.error&&y({target:this})})}p.track=!1;f.track&&function(){if(!p.track)p.track="number"!=typeof b("<track />")[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<g.browserVersion&&b.prop(this,"paused")&&!b.prop(this,"readyState")&&b(this).is('audio[preload="none"][controls]:not([autoplay])')?b(this).prop("preload","metadata").mediaLoad():B(this);if(l){var a,c,d=this,e=function(){var a=b.prop(d,"buffered");if(a){for(var c="",e=0,f=a.length;e<f;e++)c+=a.end(e);return c}},f=function(){var a=e();a!=c&&(c=a,b(d).triggerHandler("progress"))};b(this).bind("play loadstart progress",function(b){"progress"== +b.type&&(c=e());clearTimeout(a);a=setTimeout(f,999)}).bind("emptied stalled mediaerror abort suspend",function(b){"emptied"==b.type&&(c=!1);clearTimeout(a)})}})})};f.track&&!p.track&&g.defineProperty(TextTrack.prototype,"shimActiveCues",{get:function(){return this._shimActiveCues||this.activeCues}});l?(g.isReady("mediaelement-core",!0),k(),g.ready("WINDOWLOAD mediaelement",d)):g.ready("mediaelement-swf",k);b(function(){g.loader.loadList(["track-ui"])})})})(jQuery,Modernizr,jQuery.webshims); +jQuery.webshims.register("mediaelement-swf",function(b,f,k,l,n,s){var p=f.mediaelement,w=k.swfobject,o=Modernizr.audio&&Modernizr.video,t=w.hasFlashPlayerVersion("9.0.115"),y=0,k={paused:!0,ended:!1,currentSrc:"",duration:k.NaN,readyState:0,networkState:0,videoHeight:0,videoWidth:0,error:null,buffered:{start:function(b){if(b)f.error("buffered index size error");else return 0},end:function(b){if(b)f.error("buffered index size error");else return 0},length:0}},x=Object.keys(k),g={currentTime:0,volume:1, +muted:!1};Object.keys(g);var H=b.extend({isActive:"html5",activating:"html5",wasSwfReady:!1,_bufferedEnd:0,_bufferedStart:0,_metadata:!1,_durationCalcs:-1,_callMeta:!1,currentTime:0,_ppFlag:n},k,g),D=/^jwplayer-/,u=function(b){if(b=l.getElementById(b.replace(D,"")))return b=f.data(b,"mediaelement"),"third"==b.isActive?b:null},j=function(b){return(b=f.data(b,"mediaelement"))&&"third"==b.isActive?b:null},q=function(a,m){m=b.Event(m);m.preventDefault();b.event.trigger(m,n,a)},v=s.playerPath||f.cfg.basePath+ +"jwplayer/"+(s.playerName||"player.swf"),F=s.pluginPath||f.cfg.basePath+"swf/jwwebshims.swf";f.extendUNDEFProp(s.jwParams,{allowscriptaccess:"always",allowfullscreen:"true",wmode:"transparent"});f.extendUNDEFProp(s.jwVars,{screencolor:"ffffffff"});f.extendUNDEFProp(s.jwAttrs,{bgcolor:"#000000"});var d=function(a,m){var c=a.duration;if(!(c&&0<a._durationCalcs)){try{if(a.duration=a.jwapi.getPlaylist()[0].duration,!a.duration||0>=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)||5<c.percentage&&25>c.percentage||100===c.percentage)&&d(m,c);if(m.ended)m.ended= +!1;if(m.duration){2<c.percentage&&20>c.percentage?a(3,m):20<c.percentage&&a(4,m);if(m._bufferedEnd&&m._bufferedEnd>c.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.duration<c.currentTime&&d(c,b);2>c.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('<img style="position: absolute; height: auto; width: auto; top: 0px; left: 0px; visibility: hidden;" />'),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(!(9<I))if(I++,c(d)){if(d.wasSwfReady)b(d._elem).mediaLoad();else{var i=parseFloat(a.version,10);(5.1>i||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),2<I&&9>d.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('<div class="polyfill-'+j+' polyfill-mediaelement" id="wrapper-'+C+'"><div id="'+C+'"></div>').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);1<a[0].offsetWidth&&1<a[0].offsetHeight&&0===location.protocol.indexOf("file:")?f.error("Add your local development-directory to the local-trusted security sandbox: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html"):(2>a[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}),10<d.actionQueue.length&&setTimeout(function(){5<d.actionQueue.length&&d.actionQueue.shift()},99)),d):!1};["audio","video"].forEach(function(a){var c={},d,e=function(b){"audio"==a&&("videoHeight"==b||"videoWidth"==b)||(c[b]={get:function(){var a=j(this);return a?a[b]:o&&d[b].prop._supget?d[b].prop._supget.apply(this):H[b]},writeable:!1})},g=function(a,b){e(a);delete c[a].writeable; +c[a].set=b};g("volume",function(a){var b=j(this);if(b){if(a*=100,!isNaN(a)){var c=b.muted;(0>a||100<a)&&f.error("volume greater or less than allowed "+a/100);G(this,"sendEvent",["VOLUME",a],b);if(c)try{b.jwapi.sendEvent("mute","true")}catch(e){}a/=100;if(!(b.volume==a||"third"!=b.isActive))b.volume=a,q(b._elem,"volumechange")}}else if(d.volume.prop._supset)return d.volume.prop._supset.apply(this,arguments)});g("muted",function(a){var b=j(this);if(b){if(a=!!a,G(this,"sendEvent",["mute",""+a],b),!(b.muted== +a||"third"!=b.isActive))b.muted=a,q(b._elem,"volumechange")}else if(d.muted.prop._supset)return d.muted.prop._supset.apply(this,arguments)});g("currentTime",function(a){var b=j(this);if(b){if(a*=1,!isNaN(a)){if(b.paused)clearTimeout(b.stopPlayPause),b.stopPlayPause=setTimeout(function(){b.paused=!0;b.stopPlayPause=!1},50);G(this,"sendEvent",["SEEK",""+a],b);if(b.paused){if(0<b.readyState)b.currentTime=a,q(b._elem,"timeupdate");try{b.jwapi.sendEvent("play","false")}catch(c){}}}}else if(d.currentTime.prop._supset)return d.currentTime.prop._supset.apply(this, +arguments)});["play","pause"].forEach(function(b){c[b]={value:function(){var a=j(this);if(a)a.stopPlayPause&&clearTimeout(a.stopPlayPause),G(this,"sendEvent",["play","play"==b],a),setTimeout(function(){if("third"==a.isActive&&(a._ppFlag=!0,a.paused!=("play"!=b)))a.paused="play"!=b,q(a._elem,b)},1);else if(d[b].prop._supvalue)return d[b].prop._supvalue.apply(this,arguments)}}});x.forEach(e);f.onNodeNamesPropertyModify(a,"controls",function(c,d){var e=j(this);b(this)[d?"addClass":"removeClass"]("webshims-controls"); +if(e){try{G(this,d?"showControls":"hideControls",[a],e)}catch(g){f.warn("you need to generate a crossdomain.xml")}"audio"==a&&J(e,d);b(e.jwapi).attr("tabindex",d?"0":"-1")}});d=f.defineNodeNameProperties(a,c,"prop")});if(t){var M=b.cleanData,N=b.browser.msie&&9>f.browserVersion,O={object:1,OBJECT:1};b.cleanData=function(a){var b,c,d;if(a&&(c=a.length)&&y)for(b=0;b<c;b++)if(O[a[b].nodeName]){if("sendEvent"in a[b]){y--;try{a[b].sendEvent("play",!1)}catch(e){}}if(N)try{for(d in a[b])"function"==typeof a[b][d]&& +(a[b][d]=null)}catch(f){}}return M.apply(this,arguments)}}o||(["poster","src"].forEach(function(a){f.defineNodeNamesProperty("src"==a?["audio","video","source"]:["video"],a,{reflect:!0,propType:"src"})}),["autoplay","controls"].forEach(function(a){f.defineNodeNamesBooleanProperty(["audio","video"],a)}),f.defineNodeNamesProperties(["audio","video"],{HAVE_CURRENT_DATA:{value:2},HAVE_ENOUGH_DATA:{value:4},HAVE_FUTURE_DATA:{value:3},HAVE_METADATA:{value:1},HAVE_NOTHING:{value:0},NETWORK_EMPTY:{value:0}, NETWORK_IDLE:{value:1},NETWORK_LOADING:{value:2},NETWORK_NO_SOURCE:{value:3}},"prop"))});