(function(){var a=Function.prototype.call,e=Object.prototype,i=Array.prototype.slice,j,g;if(!Function.prototype.bind)Function.prototype.bind=function(a){var f=this;if("function"!=typeof f)throw new TypeError;var m=i.call(arguments,1),c=function(){if(this instanceof c){var b=function(){};b.prototype=f.prototype;var b=new b,g=f.apply(b,m.concat(i.call(arguments)));return null!==g&&Object(g)===g?g:b}return f.apply(a,m.concat(i.call(arguments)))};return c};g=a.bind(e.toString);j=a.bind(e.hasOwnProperty); if(!Array.isArray)Array.isArray=function(a){return"[object Array]"==g(a)};if(!Array.prototype.forEach)Array.prototype.forEach=function(a,f){var m=q(this),c=0,b=m.length>>>0;if("[object Function]"!=g(a))throw new TypeError;for(;c>>0,e=Array(c);if("[object Function]"!=g(a))throw new TypeError;for(var h=0;h>>0,e=[];if("[object Function]"!=g(a))throw new TypeError;for(var h=0;h>>0;if("[object Function]"!=g(a))throw new TypeError;for(var e=0;e>>0;if("[object Function]"!=g(a))throw new TypeError; for(var e=0;e>>0;if("[object Function]"!=g(a))throw new TypeError;if(!b&&1==arguments.length)throw new TypeError;var c=0,e;if(2<=arguments.length)e=arguments[1];else{do{if(c in f){e=f[c++];break}if(++c>=b)throw new TypeError;}while(1)}for(;c>>0;if("[object Function]"!=g(a))throw new TypeError;if(!b&&1==arguments.length)throw new TypeError;var c,b=b-1;if(2<=arguments.length)c=arguments[1];else{do{if(b in f){c=f[b--];break}if(0>--b)throw new TypeError;}while(1)}do b in this&&(c=a.call(void 0,c,f[b],b,f));while(b--);return c};if(!Array.prototype.indexOf)Array.prototype.indexOf=function(a){var f=q(this),b=f.length>>>0;if(!b)return-1;var c=0;1>>0;if(!b)return-1;var c=b-1;1b&&(a[f]="0"+b);return a.slice(0,3).join("-")+"T"+ a.slice(3).join(":")+"."+("000"+this.getUTCMilliseconds()).slice(-3)+"Z"};if(!Date.now)Date.now=function(){return(new Date).getTime()};if(!Date.prototype.toJSON)Date.prototype.toJSON=function(){if("function"!=typeof this.toISOString)throw new TypeError;return this.toISOString()};a="\t\n\u000b\u000c\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff";if(!String.prototype.trim||a.trim()){var a="["+a+"]",A=RegExp("^"+a+a+"*"),h= RegExp(a+a+"*$");String.prototype.trim=function(){return(""+this).replace(A,"").replace(h,"")}}var w=function(a){a=+a;a!==a?a=-1:0!==a&&a!==1/0&&a!==-(1/0)&&(a=(0=l.duration||l.duration===l._lastDuration)l.duration=e}catch(f){}l.duration&& l.duration!=l._lastDuration?(c(l._elem,"durationchange"),("audio"==l._elemNodeName||l._callMeta)&&b.jwEvents.Model.META(a.extend({duration:l.duration},d),l),l._durationCalcs--):l._durationCalcs++}},s=function(a,d){3>a&&clearTimeout(d._canplaythroughTimer);if(3<=a&&3>d.readyState)d.readyState=a,c(d._elem,"canplay"),clearTimeout(d._canplaythroughTimer),d._canplaythroughTimer=setTimeout(function(){s(4,d)},4E3);if(4<=a&&4>d.readyState)d.readyState=a,c(d._elem,"canplaythrough");d.readyState=a};b.jwEvents= {View:{PLAY:function(a){var d=p(a.id);if(d&&!d.stopPlayPause&&(d._ppFlag=!0,d.paused==a.state)){d.paused=!a.state;if(d.ended)d.ended=!1;c(d._elem,a.state?"play":"pause")}}},Model:{BUFFER:function(l){var d=p(l.id);if(d&&"percentage"in l&&d._bufferedEnd!=l.percentage){d.networkState=100==l.percentage?1:2;(isNaN(d.duration)||5l.percentage||100===l.percentage)&&o(d,l);if(d.ended)d.ended=!1;if(d.duration){2l.percentage?s(3,d):20l.percentage)d._bufferedStart=d.currentTime||0;d._bufferedEnd=l.percentage;d.buffered.length=1;if(100==l.percentage)d.networkState=1,s(4,d);a.event.trigger("progress",g,d._elem,!0)}}},META:function(a,d){if(d=d&&d.networkState?d:p(a.id))if("duration"in a){if(!d._metadata||!((!a.height||d.videoHeight==a.height)&&a.duration===d.duration)){d._metadata=!0;var b=d.duration;if(a.duration)d.duration=a.duration;d._lastDuration=d.duration;if(a.height||a.width)d.videoHeight=a.height||0,d.videoWidth= a.width||0;if(!d.networkState)d.networkState=2;1>d.readyState&&s(1,d);d.duration&&b!==d.duration&&c(d._elem,"durationchange");c(d._elem,"loadedmetadata")}}else d._callMeta=!0},TIME:function(a){var d=p(a.id);if(d&&d.currentTime!==a.position){d.currentTime=a.position;d.duration&&d.durationd.readyState&&s(2,d);if(d.ended)d.ended=!1;c(d._elem,"timeupdate")}},STATE:function(a){var d=p(a.id);if(d)switch(a.newstate){case "BUFFERING":if(d.ended)d.ended=!1;s(1,d);c(d._elem,"waiting"); break;case "PLAYING":d.paused=!1;d._ppFlag=!0;d.duration||o(d,a);3>d.readyState&&s(3,d);if(d.ended)d.ended=!1;c(d._elem,"playing");break;case "PAUSED":if(!d.paused&&!d.stopPlayPause)d.paused=!0,d._ppFlag=!0,c(d._elem,"pause");break;case "COMPLETED":4>d.readyState&&s(4,d),d.ended=!0,c(d._elem,"ended")}}},Controller:{ERROR:function(a){var d=p(a.id);d&&b.setError(d._elem,a.message)},SEEK:function(a){var d=p(a.id);if(d){if(d.ended)d.ended=!1;if(d.paused)try{d.jwapi.sendEvent("play","false")}catch(b){}if(d.currentTime!= a.position)d.currentTime=a.position,c(d._elem,"timeupdate")}},VOLUME:function(a){var d=p(a.id);if(d&&(a=a.percentage/100,d.volume!=a))d.volume=a,c(d._elem,"volumechange")},MUTE:function(a){if(!a.state){var d=p(a.id);if(d&&d.muted!=a.state)d.muted=a.state,c(d._elem,"volumechange")}}}};var J=function(c){var d=!0;a.each(b.jwEvents,function(b,e){a.each(e,function(a){try{c.jwapi["add"+b+"Listener"](a,"jQuery.webshims.mediaelement.jwEvents."+b+"."+a)}catch(e){return d=!1}})});return d},n=function(a){var d= a.actionQueue.length,b=0,c;if(d&&"flash"==a.isActive)for(;a.actionQueue.length&&d>b;)b++,c=a.actionQueue.shift(),a.jwapi[c.fn].apply(a.jwapi,c.args);if(a.actionQueue.length)a.actionQueue=[]},F=function(b){b&&(b._ppFlag===g&&a.prop(b._elem,"autoplay")||!b.paused)&&setTimeout(function(){if("flash"==b.isActive&&(b._ppFlag===g||!b.paused))try{a(b._elem).play()}catch(d){}},1)},K=function(b){if(b&&"video"==b._elemNodeName){var d,c,e,f,h,r,g,k,i=function(i,j){if(j&&i&&!(1>j||1>i||"flash"!=b.isActive))if(d&& (d.remove(),d=!1),f=i,h=j,clearTimeout(g),c="auto"==b._elem.style.width,e="auto"==b._elem.style.height,c||e){r=r||a(b._elem).getShadowElement();var m;c&&!e?(m=r.height(),i*=m/j,j=m):!c&&e&&(m=r.width(),j*=m/i,i=m);k=!0;setTimeout(function(){k=!1},9);r.css({width:i,height:j})}},j=function(){if(!("flash"!=b.isActive||a.prop(b._elem,"readyState")&&a.prop(this,"videoWidth"))){var f=a.prop(b._elem,"poster");if(f&&(c="auto"==b._elem.style.width,e="auto"==b._elem.style.height,c||e))d&&(d.remove(),d=!1), d=a(''),d.bind("load error alreadycomplete",function(){clearTimeout(g);var b=this,c=b.naturalWidth||b.width||b.offsetWidth,e=b.naturalHeight||b.height||b.offsetHeight;e&&c?(i(c,e),b=null):setTimeout(function(){c=b.naturalWidth||b.width||b.offsetWidth;e=b.naturalHeight||b.height||b.offsetHeight;i(c,e);d&&(d.remove(),d=!1);b=null},9);a(this).unbind()}).prop("src",f).appendTo("body").each(function(){this.complete|| this.error?a(this).triggerHandler("alreadycomplete"):(clearTimeout(g),g=setTimeout(function(){a(b._elem).triggerHandler("error")},9999))})}};a(b._elem).bind("loadedmetadata",function(){i(a.prop(this,"videoWidth"),a.prop(this,"videoHeight"))}).bind("emptied",j).bind("swfstageresize",function(){k||i(f,h)}).bind("emptied",function(){f=void 0;h=void 0}).triggerHandler("swfstageresize");j();a.prop(b._elem,"readyState")&&i(a.prop(b._elem,"videoWidth"),a.prop(b._elem,"videoHeight"))}};b.playerResize=function(b){b&& (b=j.getElementById(b.replace(y,"")))&&a(b).triggerHandler("swfstageresize")};a(j).bind("emptied",function(a){a=m(a.target);F(a)});var B;b.jwPlayerReady=function(b){var d=p(b.id),c=0,f=function(){if(!(9h||6<=h)&&e.warn("mediaelement-swf is only testet with jwplayer 5.6+")}d.wasSwfReady=!0;d.tryedReframeing=0;n(d);F(d)}else clearTimeout(d.reframeTimer),d.reframeTimer=setTimeout(f,9*c),2d.tryedReframeing&& (d.tryedReframeing++,d.shadowElem.css({overflow:"visible"}),setTimeout(function(){d.shadowElem.css({overflow:"hidden"})},16))};if(d&&d.jwapi){if(!d.tryedReframeing)d.tryedReframeing=0;clearTimeout(B);d.jwData=b;d.shadowElem.removeClass("flashblocker-assumed");a.prop(d._elem,"volume",d.volume);a.prop(d._elem,"muted",d.muted);f()}};var E=a.noop;if(k){var L={play:1,playing:1},G="play,pause,playing,canplay,progress,waiting,ended,loadedmetadata,durationchange,emptied".split(","),H=G.map(function(a){return a+ ".webshimspolyfill"}).join(" "),M=function(b){var d=e.data(b.target,"mediaelement");d&&(b.originalEvent&&b.originalEvent.type===b.type)==("flash"==d.activating)&&(b.stopImmediatePropagation(),L[b.type]&&d.isActive!=d.activating&&a(b.target).pause())},E=function(b){a(b).unbind(H).bind(H,M);G.forEach(function(a){e.moveToFirstEvent(b,a)})};E(j)}b.setActive=function(b,d,c){c||(c=e.data(b,"mediaelement"));if(c&&c.isActive!=d){"html5"!=d&&"flash"!=d&&e.warn("wrong type for mediaelement activating: "+d); var f=e.data(b,"shadowData");c.activating=d;a(b).pause();c.isActive=d;"flash"==d?(f.shadowElement=f.shadowFocusElement=c.shadowElem[0],a(b).hide().getShadowElement().show()):(a(b).show().getShadowElement().hide(),f.shadowElement=f.shadowFocusElement=!1)}};var N=function(){var a="_bufferedEnd,_bufferedStart,_metadata,_ppFlag,currentSrc,currentTime,duration,ended,networkState,paused,videoHeight,videoWidth,_callMeta,_durationCalcs".split(","),b=a.length;return function(e){if(e){var f=b,h=e.networkState; for(s(0,e);--f;)delete e[a[f]];e.actionQueue=[];e.buffered.length=0;h&&c(e._elem,"emptied")}}}(),I=function(b,d){var c=b._elem,e=b.shadowElem;a(c)[d?"addClass":"removeClass"]("webshims-controls");"audio"==b._elemNodeName&&!d?e.css({width:0,height:0}):e.css({width:c.style.width||a(c).width(),height:c.style.height||a(c).height()})};b.createSWF=function(c,d,g){if(A){1>h?h=1:h++;var i=a.extend({},f.jwVars,{image:a.prop(c,"poster")||"",file:d.srcProp}),j=a(c).data("jwvars")||{};if(g&&g.swfCreated)b.setActive(c, "flash",g),N(g),g.currentSrc=d.srcProp,a.extend(i,j),f.changeJW(i,c,d,g,"load"),x(c,"sendEvent",["LOAD",i]);else{var C=a.prop(c,"controls"),r="jwplayer-"+e.getID(c),m=a.extend({},f.jwParams,a(c).data("jwparams")),n=c.nodeName.toLowerCase(),p=a.extend({},f.jwAttrs,{name:r,id:r},a(c).data("jwattrs")),o=a('
').css({position:"relative",overflow:"hidden"}),g=e.data(c,"mediaelement",e.objectCreate(q,{actionQueue:{value:[]}, shadowElem:{value:o},_elemNodeName:{value:n},_elem:{value:c},currentSrc:{value:d.srcProp},swfCreated:{value:!0},buffered:{value:{start:function(a){if(a>=g.buffered.length)e.error("buffered index size error");else return 0},end:function(a){if(a>=g.buffered.length)e.error("buffered index size error");else return(g.duration-g._bufferedStart)*g._bufferedEnd/100+g._bufferedStart},length:0}}}));I(g,C);o.insertBefore(c);k&&a.extend(g,{volume:a.prop(c,"volume"),muted:a.prop(c,"muted")});a.extend(i,{id:r, controlbar:C?f.jwVars.controlbar||("video"==n?"over":"bottom"):"video"==n?"none":"bottom",icons:""+(C&&"video"==n)},j,{playerready:"jQuery.webshims.mediaelement.jwPlayerReady"});i.plugins=i.plugins?i.plugins+(","+v):v;e.addShadowDom(c,o);E(c);b.setActive(c,"flash",g);f.changeJW(i,c,d,g,"embed");K(g);z.embedSWF(D,r,"100%","100%","9.0.0",!1,i,m,p,function(b){if(b.success)g.jwapi=b.ref,C||a(b.ref).attr("tabindex","-1").css("outline","none"),setTimeout(function(){if(!b.ref.parentNode&&o[0].parentNode|| "none"==b.ref.style.display)o.addClass("flashblocker-assumed"),a(c).trigger("flashblocker"),e.warn("flashblocker assumed");a(b.ref).css({minHeight:"2px",minWidth:"2px",display:"block"})},9),B||(clearTimeout(B),B=setTimeout(function(){var d=a(b.ref);1d[0].offsetWidth||2>d[0].offsetHeight)&&e.info("JS-SWF connection can't be established on hidden or unconnected flash objects")},8E3))})}}else setTimeout(function(){a(c).mediaLoad()},1)};var x=function(a,b,c,e){return(e=e||m(a))?(e.jwapi&&e.jwapi[b]?e.jwapi[b].apply(e.jwapi,c||[]):(e.actionQueue.push({fn:b,args:c}),10a||100e.browserVersion,Q={object:1,OBJECT:1};a.cleanData=function(a){var b,c,e;if(a&&(c=a.length)&&h)for(b=0;b