(function(d){if(!Modernizr.genericDOM){var f=document,i,h,o=/<([\w:]+)/,j={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||j[(o.exec(d)||["",""])[1].toLowerCase()])return d;if(!h){i=f.body;if(!i)return d;h=f.createElement("div");h.style.display="none"}var s=h.cloneNode(!1);i.appendChild(s);s.innerHTML=d;i.removeChild(s);return s.childNodes}}})(jQuery); jQuery.webshims.register("dom-extend",function(d,f,i,h,o){var j=f.modules,n=/\s*,\s*/,s={},u={},p={},g={},v={},y=d.fn.val,A=function(b,a,c,e,k){return k?y.call(d(b)):y.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?y.call(this):d.prop(a,"value",b,"val",!0);if(d.isArray(b))return y.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){s[b]=d[b];d[b]=function(a,c,e,k,f){var j="val"==k,n=!j?s[b]:A;if(!a||!u[c]||1!==a.nodeType||!j&&k&&"attr"==b&&d.attrFn[c])return n(a,c,e,k,f);var C=(a.nodeName||"").toLowerCase(),g=p[C],B="attr"==b&&(!1===e||null===e)?"removeAttr":b,h,l,m;g||(g=p["*"]);g&&(g=g[c]);g&&(h=g[B]);if(h){if("value"==c)l=h.isVal,h.isVal=j;if("removeAttr"===B)return h.value.call(a);if(e===o)return h.get?h.get.call(a):h.value;h.set&& ("attr"==b&&!0===e&&(e=c),m=h.set.call(a,e));if("value"==c)h.isVal=l}else m=n(a,c,e,k,f);if((e!==o||"removeAttr"===B)&&v[C]&&v[C][c]){var i;i="removeAttr"==B?!1:"prop"==B?!!e:!0;v[C][c].forEach(function(c){if(!c.only||(c.only="prop"==b)||"attr"==c.only&&"prop"!=b)c.call(a,e,i,j?"val":B,b)})}return m};g[b]=function(a,c,e){p[a]||(p[a]={});p[a][c]||(p[a][c]={});var k=p[a][c][b],j=function(a,d,k){return d&&d[a]?d[a]:k&&k[a]?k[a]:"prop"==b&&"value"==c?function(a){return e.isVal?A(this,c,a,!1,0===arguments.length): s[b](this,c,a)}:"prop"==b&&"value"==a&&e.value.apply?function(a){var e=s[b](this,c);e&&e.apply&&(e=e.apply(this,arguments));return e}:function(a){return s[b](this,c,a)}};p[a][c][b]=e;if(e.value===o){if(!e.set)e.set=e.writeable?j("set",e,k):f.cfg.useStrict&&"prop"==c?function(){throw c+" is readonly on "+a;}:d.noop;if(!e.get)e.get=j("get",e,k)}["value","get","set"].forEach(function(a){e[a]&&(e["_sup"+a]=j(a,k))})}});var q=!d.browser.msie||8i&&7=a.duration||a.duration===a._lastDuration)a.duration=c}catch(e){}a.duration&& a.duration!=a._lastDuration?(l(a._elem,"durationchange"),("audio"==a._elemNodeName||a._callMeta)&&n.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,l(d._elem,"canplay"),clearTimeout(d._canplaythroughTimer),d._canplaythroughTimer=setTimeout(function(){a(4,d)},4E3);if(4<=b&&4>d.readyState)d.readyState=b,l(d._elem,"canplaythrough");d.readyState=b};n.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;l(b._elem,a.state?"play":"pause")}}},Model:{BUFFER:function(c){var r=m(c.id);if(r&&"percentage"in c&&r._bufferedEnd!=c.percentage){r.networkState=100==c.percentage?1:2;(isNaN(r.duration)||5c.percentage||100===c.percentage)&&b(r,c);if(r.ended)r.ended=!1;if(r.duration){2c.percentage?a(3,r):20c.percentage)r._bufferedStart=r.currentTime||0;r._bufferedEnd=c.percentage;r.buffered.length=1;if(100==c.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&&l(d._elem,"durationchange");l(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.durationc.readyState&&a(2,c);if(c.ended)c.ended=!1;l(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);l(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;l(c._elem,"playing");break;case "PAUSED":if(!c.paused&&!c.stopPlayPause)c.paused=!0,c._ppFlag=!0,l(c._elem,"pause");break;case "COMPLETED":4>c.readyState&&a(4,c),c.ended=!0,l(c._elem,"ended")}}},Controller:{ERROR:function(a){var b=m(a.id);b&&n.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,l(b._elem,"timeupdate")}},VOLUME:function(a){var b=m(a.id);if(b&&(a=a.percentage/100,b.volume!=a))b.volume=a,l(b._elem,"volumechange")},MUTE:function(a){if(!a.state){var b=m(a.id);if(b&&b.muted!=a.state)b.muted=a.state,l(b._elem,"volumechange")}}}};var c=function(a){d.each(n.jwEvents,function(b,c){d.each(c,function(d){a.jwapi["add"+b+"Listener"](d,"jQuery.webshims.mediaelement.jwEvents."+b+"."+d)})})},e=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)},k=function(a){if(a&&"video"==a._elemNodeName){var b,c,e,f,g,x,h,j,i=function(i,k){if(k&&i&&!(1>k||1>i||"flash"!=a.isActive))if(b&&(b.remove(),b=!1),f=i,g=k,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/k,k=l):!c&&e&&(l=x.width(),k*=l/i,i=l);j=!0;setTimeout(function(){j=!1},9); x.css({width:i,height:k})}},k=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(''),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", k).bind("swfstageresize",function(){j||i(f,g)}).bind("emptied",function(){f=void 0;g=void 0}).triggerHandler("swfstageresize");k();d.prop(a._elem,"readyState")&&i(d.prop(a._elem,"videoWidth"),d.prop(a._elem,"videoHeight"))}};n.playerResize=function(a){a&&(a=h.getElementById(a.replace(w,"")))&&d(a).triggerHandler("swfstageresize")};d(h).bind("emptied",function(a){a=q(a.target);e(a)});var E;n.jwPlayerReady=function(a){var b=m(a.id);if(b&&b.jwapi){clearTimeout(E);b.jwData=a;b.shadowElem.removeClass("flashblocker-assumed"); b.wasSwfReady?d(b._elem).mediaLoad():(a=parseFloat(a.version,10),(5.6>a||6<=a)&&f.warn("mediaelement-swf is only testet with jwplayer 5.6+"),d.prop(b._elem,"volume",b.volume),d.prop(b._elem,"muted",b.muted),c(b));b.wasSwfReady=!0;var a=b.actionQueue.length,J=0,g;if(a&&"flash"==b.isActive)for(;b.actionQueue.length&&a>J;)J++,g=b.actionQueue.shift(),b.jwapi[g.fn].apply(b.jwapi,g.args);if(b.actionQueue.length)b.actionQueue=[];e(b)}};var F=d.noop;if(u){var K={play:1,playing:1},C="play,pause,playing,canplay,progress,waiting,ended,loadedmetadata,durationchange,emptied".split(","), H=C.map(function(a){return a+".webshimspolyfill"}).join(" "),B=function(a){var b=f.data(a.target,"mediaelement");b&&(a.originalEvent&&a.originalEvent.type===a.type)==("flash"==b.activating)&&(a.stopImmediatePropagation(),K[a.type]&&b.isActive!=b.activating&&d(a.target).pause())},F=function(a){d(a).unbind(H).bind(H,B);C.forEach(function(b){f.moveToFirstEvent(a,b)})};F(h)}n.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 L=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&&l(c._elem,"emptied")}}}(),I=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()})};n.createSWF=function(a,b,c){if(p){1>g?g=1:g++;var e=d.extend({},j.jwVars,{image:d.prop(a,"poster")||"",file:b.srcProp}),h=d(a).data("jwvars")||{};if(c&&c.swfCreated)n.setActive(a, "flash",c),L(c),c.currentSrc=b.srcProp,d.extend(e,h),j.changeJW(e,a,b,c,"load"),D(a,"sendEvent",["LOAD",e]);else{var i=d.prop(a,"controls"),x="jwplayer-"+f.getID(a),l=d.extend({},j.jwParams,d(a).data("jwparams")),m=a.nodeName.toLowerCase(),o=d.extend({},j.jwAttrs,{name:x,id:x},d(a).data("jwattrs")),q=d('
').css({position:"relative",overflow:"hidden"}),c=f.data(a,"mediaelement",f.objectCreate(A,{actionQueue:{value:[]}, shadowElem:{value:q},_elemNodeName:{value:m},_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}}}));I(c,i);q.insertBefore(a);u&&d.extend(c,{volume:d.prop(a,"volume"),muted:d.prop(a,"muted")});d.extend(e,{id:x, controlbar:i?j.jwVars.controlbar||("video"==m?"over":"bottom"):"video"==m?"none":"bottom",icons:""+(i&&"video"==m)},h,{playerready:"jQuery.webshims.mediaelement.jwPlayerReady"});e.plugins=e.plugins?e.plugins+(","+z):z;f.addShadowDom(a,q);F(a);n.setActive(a,"flash",c);j.changeJW(e,a,b,c,"embed");k(c);s.embedSWF(t,x,"100%","100%","9.0.0",!1,e,l,o,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&&q[0].parentNode|| "none"==b.ref.style.display)q.addClass("flashblocker-assumed"),d(a).trigger("flashblocker"),f.warn("flashblocker assumed");d(b.ref).css({minHeight:"2px",minWidth:"2px",display:"block"})},9),E||(clearTimeout(E),E=setTimeout(function(){var a=d(b.ref);1a[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 D=function(a,b,c,d){return(d=d||q(a))?(d.jwapi&&d.jwapi[b]?d.jwapi[b].apply(d.jwapi,c||[]):(d.actionQueue.push({fn:b,args:c}),10a||100f.browserVersion,O={object:1,OBJECT:1};d.cleanData=function(a){var b,c,d;if(a&&(c=a.length)&&g)for(b=0;b