vendor/assets/javascripts/webshims/minified/shims/combos/9.js in webshims-rails-0.3 vs vendor/assets/javascripts/webshims/minified/shims/combos/9.js in webshims-rails-0.4

- old
+ new

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