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