(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,n=/\s*,\s*/,p={},x={},q={},h={},u={},y=d.fn.val,A=function(b,a,c,e,g){return g?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 v="_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,v);c!==o&&(e||(e=d.data(b,v,{})),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,n=!i?p[b]:A;if(!a||!x[c]||1!==a.nodeType||!i&&g&&"attr"==b&&d.attrFn[c])return n(a,c,e,g,f);var D=(a.nodeName||"").toLowerCase(),h=q[D],B="attr"==b&&(!1===e||null===e)?"removeAttr":b,k,l,m;h||(h=q["*"]);h&&(h=h[c]);h&&(k=h[B]);if(k){if("value"==c)l=k.isVal,k.isVal=i;if("removeAttr"===B)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=l}else m=n(a,c,e,g,f);if((e!==o||"removeAttr"===B)&&u[D]&&u[D][c]){var j;j="removeAttr"==B?!1:"prop"==B?!!e:!0;u[D][c].forEach(function(c){if(!c.only||(c.only="prop"==b)||"attr"==c.only&&"prop"!=b)c.call(a,e,j,i?"val":B,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?A(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 t=!d.browser.msie||8j&&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){var b=!0;d.each(n.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)},L=function(a){if(a&&"video"==a._elemNodeName){var b,c,e,f,g,w,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){w=w||d(a._elem).getShadowElement();var l;c&&!e?(l=w.height(),i*=l/j,j=l):!c&&e&&(l=w.width(),j*=l/i,i=l);k=!0;setTimeout(function(){k=!1},9);w.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(''),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",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"))}};n.playerResize=function(a){a&& (a=k.getElementById(a.replace(v,"")))&&d(a).triggerHandler("swfstageresize")};d(k).bind("emptied",function(a){a=t(a.target);g(a)});var F;n.jwPlayerReady=function(a){var b=m(a.id),G=0,h=function(){if(!(9i||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*G),2b.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(F);b.jwData=a;b.shadowElem.removeClass("flashblocker-assumed");d.prop(b._elem,"volume",b.volume);d.prop(b._elem,"muted",b.muted);h()}};var I=d.noop;if(x){var D={play:1,playing:1},J="play,pause,playing,canplay,progress,waiting,ended,loadedmetadata,durationchange,emptied".split(","),B=J.map(function(a){return a+ ".webshimspolyfill"}).join(" "),M=function(a){var b=f.data(a.target,"mediaelement");b&&(a.originalEvent&&a.originalEvent.type===a.type)==("flash"==b.activating)&&(a.stopImmediatePropagation(),D[a.type]&&b.isActive!=b.activating&&d(a.target).pause())},I=function(a){d(a).unbind(B).bind(B,M);J.forEach(function(b){f.moveToFirstEvent(a,b)})};I(k)}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 N=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")}}}(),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()})};n.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")||{};if(c&&c.swfCreated)n.setActive(a, "flash",c),N(c),c.currentSrc=b.srcProp,d.extend(e,g),i.changeJW(e,a,b,c,"load"),E(a,"sendEvent",["LOAD",e]);else{var H=d.prop(a,"controls"),w="jwplayer-"+f.getID(a),k=d.extend({},i.jwParams,d(a).data("jwparams")),j=a.nodeName.toLowerCase(),l=d.extend({},i.jwAttrs,{name:w,id:w},d(a).data("jwattrs")),m=d('
').css({position:"relative",overflow:"hidden"}),c=f.data(a,"mediaelement",f.objectCreate(A,{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,H);m.insertBefore(a);x&&d.extend(c,{volume:d.prop(a,"volume"),muted:d.prop(a,"muted")});d.extend(e,{id:w, controlbar:H?i.jwVars.controlbar||("video"==j?"over":"bottom"):"video"==j?"none":"bottom",icons:""+(H&&"video"==j)},g,{playerready:"jQuery.webshims.mediaelement.jwPlayerReady"});e.plugins=e.plugins?e.plugins+(","+z):z;f.addShadowDom(a,m);I(a);n.setActive(a,"flash",c);i.changeJW(e,a,b,c,"embed");L(c);p.embedSWF(s,w,"100%","100%","9.0.0",!1,e,k,l,function(b){if(b.success)c.jwapi=b.ref,H||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),F||(clearTimeout(F),F=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 E=function(a,b,c,d){return(d=d||t(a))?(d.jwapi&&d.jwapi[b]?d.jwapi[b].apply(d.jwapi,c||[]):(d.actionQueue.push({fn:b,args:c}),10a||100f.browserVersion,Q={object:1,OBJECT:1};d.cleanData=function(a){var b,d,c;if(a&&(d=a.length)&&h)for(b=0;b