/*!
Flowplayer v5.4.3 (Wednesday, 19. June 2013 11:34PM) | flowplayer.org/license
*/
!function(e){function t(t,n){var i="obj"+(""+Math.random()).slice(2,15),a='",e(a)}function n(e){return Math.round(100*e)/100}function i(e){return/mpegurl/i.test(e)?"application/x-mpegurl":"video/"+e}function a(e){return/^(video|application)/.test(e)||(e=i(e)),!!g.canPlayType(e).replace("no","")}function r(t,n){var i=e.grep(t,function(e){return e.type===n});return i.length?i[0]:null}function o(e){var t=e.attr("src"),n=e.attr("type")||"",i=t.split(y)[1];return n=/mpegurl/.test(n)?"mpegurl":n.replace("video/",""),{src:t,suffix:i||n,type:n||i}}function s(t){var n=this,i=[];e("source",t).each(function(){i.push(o(e(this)))}),i.length||i.push(o(t)),n.initialSources=i,n.resolve=function(t){return t?(e.isArray(t)?t={sources:e.map(t,function(t){var n,i=e.extend({},t);return e.each(t,function(e){n=e}),i.type=n,i.src=t[n],delete i[n],i})}:"string"==typeof t&&(t={src:t,sources:[]},e.each(i,function(e,n){"flash"!=n.type&&t.sources.push({type:n.type,src:t.src.replace(y,"."+n.suffix+"$2")})})),t):{sources:i}}}function l(e){return e=parseInt(e,10),e>=10?e:"0"+e}function d(e){e=e||0;var t=Math.floor(e/3600),n=Math.floor(e/60);return e-=60*n,t>=1?(n-=60*t,t+":"+l(n)+":"+l(e)):l(n)+":"+l(e)}!function(e){if(!e.browser){var t=e.browser={},n=navigator.userAgent.toLowerCase(),i=/(chrome)[ \/]([\w.]+)/.exec(n)||/(safari)[ \/]([\w.]+)/.exec(n)||/(webkit)[ \/]([\w.]+)/.exec(n)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(n)||/(msie) ([\w.]+)/.exec(n)||n.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(n)||[];i[1]&&(t[i[1]]=!0,t.version=i[2]||"0")}}(jQuery),e(function(){"function"==typeof e.fn.flowplayer&&e("video").parent(".flowplayer").flowplayer()});var u=[],c=[],f=window.navigator.userAgent;window.flowplayer=function(t){return e.isFunction(t)?c.push(t):"number"==typeof t||void 0===t?u[t||0]:e(t).data("flowplayer")},e(window).on("beforeunload",function(){e.each(u,function(t,n){n.conf.splash?n.unload():n.bind("error",function(){e(".flowplayer.is-error .fp-message").remove()})})}),e.extend(flowplayer,{version:"5.4.3",engine:{},conf:{},support:{},defaults:{debug:!1,disabled:!1,engine:"html5",fullscreen:window==window.top,keyboard:!0,ratio:9/16,adaptiveRatio:!1,flashfit:!1,rtmp:0,splash:!1,swf:"//releases.flowplayer.org/5.4.3/flowplayer.swf",speeds:[.25,.5,1,1.5,2],tooltip:!0,volume:"object"!=typeof localStorage?1:"true"==localStorage.muted?0:isNaN(localStorage.volume)?1:localStorage.volume||1,errors:["","Video loading aborted","Network error","Video not properly encoded","Video file not found","Unsupported video","Skin not found","SWF file not found","Subtitles not found","Invalid RTMP URL","Unsupported video format. Try installing Adobe Flash."],errorUrls:["","","","","","","","","","","http://get.adobe.com/flashplayer/"],playlist:[]}});var p=1;e.fn.flowplayer=function(t,n){return"string"==typeof t&&(t={swf:t}),e.isFunction(t)&&(n=t,t={}),!t&&this.data("flowplayer")||this.each(function(){var i,a,r=e(this).addClass("is-loading"),o=e.extend({},flowplayer.defaults,flowplayer.conf,t,r.data()),l=e("video",r).addClass("fp-engine").removeAttr("controls"),d=l.length?new s(l):null,f={};if(o.playlist.length){var v,g=l.attr("preload");l.length&&l.replaceWith(v=e("
")),l=e("").addClass("fp-engine"),v?v.replaceWith(l):r.prepend(l),l.attr("preload",g),"string"==typeof o.playlist[0]?l.attr("src",o.playlist[0]):e.each(o.playlist[0],function(t,n){for(var i in n)n.hasOwnProperty(i)&&l.append(e("").attr({type:"video/"+i,src:n[i]}))}),d=new s(l)}var m=r.data("flowplayer");m&&m.unload(),r.data("fp-player_id",r.data("fp-player_id")||p++);try{f=window.localStorage||f}catch(h){}var y=this.currentStyle&&"rtl"===this.currentStyle.direction||window.getComputedStyle&&"rtl"===window.getComputedStyle(this,null).getPropertyValue("direction");y&&r.addClass("is-rtl");var b=m||{conf:o,currentSpeed:1,volumeLevel:"undefined"==typeof o.volume?1*f.volume:o.volume,video:{},disabled:!1,finished:!1,loading:!1,muted:"true"==f.muted||o.muted,paused:!1,playing:!1,ready:!1,splash:!1,rtl:y,load:function(t,n){if(!(b.error||b.loading||b.disabled)){if(t=d.resolve(t),e.extend(t,a.pick(t.sources)),t.src){var i=e.Event("load");r.trigger(i,[b,t,a]),i.isDefaultPrevented()?b.loading=!1:(a.load(t),e.isFunction(t)&&(n=t),n&&r.one("ready",n))}return b}},pause:function(e){return!b.ready||b.seeking||b.disabled||b.loading||(a.pause(),b.one("pause",e)),b},resume:function(){return b.ready&&b.paused&&!b.disabled&&(a.resume(),b.finished&&(b.trigger("resume"),b.finished=!1)),b},toggle:function(){return b.ready?b.paused?b.resume():b.pause():b.load()},seek:function(t,n){if(b.ready){if("boolean"==typeof t){var o=.1*b.video.duration;t=b.video.time+(t?o:-o)}t=i=Math.min(Math.max(t,0),b.video.duration).toFixed(1);var s=e.Event("beforeseek");r.trigger(s,[b,t]),s.isDefaultPrevented()?(b.seeking=!1,r.toggleClass("is-seeking",b.seeking)):(a.seek(t),e.isFunction(n)&&r.one("seek",n))}return b},seekTo:function(e,t){var n=void 0===e?i:.1*b.video.duration*e;return b.seek(n,t)},mute:function(e){return void 0===e&&(e=!b.muted),f.muted=b.muted=e,f.volume=isNaN(f.volume)?o.volume:f.volume,b.volume(e?0:f.volume,!0),b.trigger("mute",e),b},volume:function(e,t){return b.ready&&(e=Math.min(Math.max(e,0),1),t||(f.volume=e),a.volume(e)),b},speed:function(t,n){return b.ready&&("boolean"==typeof t&&(t=o.speeds[e.inArray(b.currentSpeed,o.speeds)+(t?1:-1)]||b.currentSpeed),a.speed(t),n&&r.one("speed",n)),b},stop:function(){return b.ready&&(b.pause(),b.seek(0,function(){r.trigger("stop")})),b},unload:function(){return r.hasClass("is-embedding")||(o.splash?(b.trigger("unload"),a.unload()):b.stop()),b},disable:function(e){return void 0===e&&(e=!b.disabled),e!=b.disabled&&(b.disabled=e,b.trigger("disable",e)),b}};b.conf=e.extend(b.conf,o),e.each(["bind","one","unbind"],function(e,t){b[t]=function(e,n){return r[t](e,n),b}}),b.trigger=function(e,t){return r.trigger(e,[b,t]),b},r.data("flowplayer")||r.bind("boot",function(){return e.each(["autoplay","loop","preload","poster"],function(e,t){var n=l.attr(t);void 0!==n&&(o[t]=n?n:!0)}),(o.splash||r.hasClass("is-splash")||!flowplayer.support.firstframe)&&(b.forcedSplash=!o.splash&&!r.hasClass("is-splash"),b.splash=o.splash=o.autoplay=!0,r.addClass("is-splash"),l.attr("preload","none")),e.each(c,function(){this(b,r)}),a=flowplayer.engine[o.engine],a&&(a=a(b,r)),a.pick(d.initialSources)?b.engine=o.engine:e.each(flowplayer.engine,function(e){return e!=o.engine?(a=this(b,r),a.pick(d.initialSources)&&(b.engine=e),!1):void 0}),u.push(b),b.engine?(o.splash?b.unload():b.load(),o.disabled&&b.disable(),a.volume(b.volumeLevel),r.one("ready",n),void 0):b.trigger("error",{code:flowplayer.support.flashVideo?5:10})}).bind("load",function(t,n){o.splash&&e(".flowplayer").filter(".is-ready, .is-loading").not(r).each(function(){var t=e(this).data("flowplayer");t.conf.splash&&t.unload()}),r.addClass("is-loading"),n.loading=!0}).bind("ready",function(e,t,n){function i(){r.removeClass("is-loading"),t.loading=!1}n.time=0,t.video=n,o.splash?r.one("progress",i):i(),t.muted?t.mute(!0):t.volume(t.volumeLevel)}).bind("unload",function(){o.splash&&l.remove(),r.removeClass("is-loading"),b.loading=!1}).bind("ready unload",function(e){var t="ready"==e.type;r.toggleClass("is-splash",!t).toggleClass("is-ready",t),b.ready=t,b.splash=!t}).bind("progress",function(e,t,n){t.video.time=n}).bind("speed",function(e,t,n){t.currentSpeed=n}).bind("volume",function(e,t,n){t.volumeLevel=Math.round(100*n)/100,t.muted?n&&t.mute(!1):f.volume=n}).bind("beforeseek seek",function(e){b.seeking="beforeseek"==e.type,r.toggleClass("is-seeking",b.seeking)}).bind("ready pause resume unload finish stop",function(e,t,n){b.paused=/pause|finish|unload|stop/.test(e.type),"ready"==e.type&&(b.paused="none"==o.preload,n&&(b.paused=!n.duration||!o.autoplay&&"none"!=o.preload)),b.playing=!b.paused,r.toggleClass("is-paused",b.paused).toggleClass("is-playing",b.playing),b.load.ed||b.pause()}).bind("finish",function(){b.finished=!0}).bind("error",function(){l.remove()}),r.trigger("boot",[b,r]).data("flowplayer",b)})},!function(){var t=function(e){var t=/Version\/(\d\.\d)/.exec(e);return t&&t.length>1?parseFloat(t[1],10):0},n=flowplayer.support,i=e.browser,a=e("")[0],r=i.msie,o=navigator.userAgent,s=/iPad|MeeGo/.test(o)&&!/CriOS/.test(o),l=/iPad/.test(o)&&/CriOS/.test(o),d=/iP(hone|od)/i.test(o)&&!/iPad/.test(o),u=/Android/.test(o)&&!/Firefox/.test(o),c=/Android/.test(o)&&/Firefox/.test(o),f=/Silk/.test(o),p=/IEMobile/.test(o),v=(s?t(o):0,u?parseFloat(/Android\ (\d\.\d)/.exec(o)[1],10):0);e.extend(n,{subtitles:!!a.addTextTrack,fullscreen:!u&&("function"==typeof document.webkitCancelFullScreen&&!/Mac OS X 10_5.+Version\/5\.0\.\d Safari/.test(o)||document.mozFullScreenEnabled||"function"==typeof document.exitFullscreen),inlineBlock:!(r&&i.version<8),touch:"ontouchstart"in window,dataload:!s&&!d&&!p,zeropreload:!r&&!u,volume:!(s||u||d||f||l),cachedVideoTag:!(s||d||l||p),firstframe:!(d||s||u||f||l||p||c),inlineVideo:!d&&!f&&!p&&(!u||v>=3),hlsDuration:!i.safari||s||d||l,seekable:!s&&!l});try{var g=r?new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version"):navigator.plugins["Shockwave Flash"].description;g=g.split(/\D+/),g.length&&!g[0]&&(g=g.slice(1)),n.flashVideo=g[0]>9||9==g[0]&&g[3]>=115}catch(m){}try{n.video=!!a.canPlayType,n.video&&a.canPlayType("video/mp4")}catch(h){n.video=!1}n.animation=function(){for(var t=["","Webkit","Moz","O","ms","Khtml"],n=e("")[0],i=0;i0&&flowplayer.support.video&&u[0].pause(),u.remove(),is_absolute||s.rtmp||(c=e("").attr("src",c)[0].src),o)o.__play(c);else{a="fp"+(""+Math.random()).slice(3,15);var f={hostname:s.embedded?s.hostname:location.hostname,url:c,callback:"jQuery."+a};i.data("origin")&&(f.origin=i.data("origin")),is_absolute&&delete s.rtmp,e.each(["key","autoplay","preload","rtmp","loop","debug","preload","splash"],function(e,t){s[t]&&(f[t]=s[t])}),f.rtmp&&(f.rtmp=d(f.rtmp)),r=t(s.swf,f),r.prependTo(i),o=r[0],setTimeout(function(){try{if(!o.PercentLoaded())return i.trigger("error",[n,{code:7,url:s.swf}])}catch(e){}},5e3),e[a]=function(t,i){s.debug&&"status"!=t&&console.log("--",t,i);var a=e.Event(t);switch(t){case"ready":i=e.extend(l,i);break;case"click":a.flash=!0;break;case"keydown":a.which=i;break;case"seek":l.time=i;break;case"buffered":l.buffered=!0;break;case"status":n.trigger("progress",i.time),i.buffer<=l.bytes&&!l.buffered?(l.buffer=i.buffer/l.bytes*l.duration,n.trigger("buffer",l.buffer)):l.buffered&&n.trigger("buffered")}setTimeout(function(){n.trigger(a,i)},1)}}},speed:e.noop,unload:function(){o&&o.__unload&&o.__unload(),delete e[a],e("object",i).remove(),o=0}};e.each("pause,resume,seek,volume".split(","),function(e,t){l[t]=function(e){n.ready&&("seek"==t&&n.video.time&&!n.paused&&n.trigger("beforeseek"),void 0===e?o["__"+t]():o["__"+t](e))}});var d=e(window);return n.bind("ready fullscreen fullscreen-exit",function(t){var a=i.height(),r=i.width();if(n.conf.flashfit||/full/.test(t.type)){var o,s,l=n.isFullscreen,u=l&&F,c=!flowplayer.support.inlineBlock,f=l?u?screen.availWidth:d.width():r,p=l?u?screen.availHeight:d.height():a,v=u?screen.width-screen.availWidth:0,g=u?screen.height-screen.availHeight:0,m=c?r:"",h=c?a:"";(n.conf.flashfit||"fullscreen"===t.type)&&(o=n.video.width/n.video.height,s=n.video.height/n.video.width,h=Math.max(s*f),m=Math.max(o*p),h=h>p?m*s:h,h=Math.min(Math.round(h),p),m=m>f?h*o:m,m=Math.min(Math.round(m),f),g=Math.max(Math.round((p+g-h)/2),0),v=Math.max(Math.round((f+v-m)/2),0)),e("object",i).css({width:m,height:h,marginTop:g,marginLeft:v})}}),l};var v,g=e("")[0],m={ended:"finish",pause:"pause",play:"resume",progress:"buffer",timeupdate:"progress",volumechange:"volume",ratechange:"speed",seeked:"seek",loadeddata:"ready",error:"error",dataunavailable:"error"},h=function(t){return v?v.attr({type:i(t.type),src:t.src}):v=e("",{src:t.src,type:i(t.type),"class":"fp-engine",autoplay:"autoplay",preload:"none","x-webkit-airplay":"allow"})};flowplayer.engine.html5=function(t,i){function o(r,o,s){r.listeners&&r.listeners.hasOwnProperty(i.data("fp-player_id"))||((r.listeners||(r.listeners={}))[i.data("fp-player_id")]=!0,o.bind("error",function(n){try{if(n.originalEvent&&e(n.originalEvent.originalTarget).is("img"))return n.preventDefault();a(e(n.target).attr("type"))&&t.trigger("error",{code:4})}catch(i){}}),e.each(m,function(a,o){r.addEventListener(a,function(d){if("progress"==o&&d.srcElement&&0===d.srcElement.readyState&&setTimeout(function(){t.video.duration||(o="error",t.trigger(o,{code:4}))},1e4),p.debug&&!/progress/.test(o)&&console.log(a,"->",o,d),(t.ready||/ready|error/.test(o))&&o&&e("video",i).length){var u,f=e.Event(o);switch(o){case"ready":u=e.extend(s,{duration:r.duration,width:r.videoWidth,height:r.videoHeight,url:r.currentSrc,src:r.currentSrc});try{u.seekable=r.seekable&&r.seekable.end(null)}catch(v){}if(l=l||setInterval(function(){try{u.buffer=r.buffered.end(null)}catch(e){}u.buffer&&(u.buffer<=u.duration&&!u.buffered?t.trigger("buffer",d):u.buffered||(u.buffered=!0,t.trigger("buffer",d).trigger("buffered",d),clearInterval(l),l=0))},250),!u.duration&&!c.hlsDuration&&"loadeddata"===a){var g=function(){u.duration=r.duration;try{u.seekable=r.seekable&&r.seekable.end(null)}catch(e){}t.trigger(f,u),r.removeEventListener("durationchange",g)};return r.addEventListener("durationchange",g),void 0}break;case"progress":case"seek":if(t.video.duration,r.currentTime>0){u=Math.max(r.currentTime,0);break}if("progress"==o)return;case"speed":u=n(r.playbackRate);break;case"volume":u=n(r.volume);break;case"error":try{u=(d.srcElement||d.originalTarget).error}catch(m){return}}t.trigger(f,u)}},!1)}))}var s,l,d,u=e("video",i),c=flowplayer.support,f=e("track",u),p=t.conf;return s={pick:function(e){if(c.video){if(p.videoTypePreference){var t=r(e,p.videoTypePreference);if(t)return t}for(var n=0;ne)||(c.trigger("slide",[e]),w.value=e)},h=function(e){var n=e.pageX;!n&&e.originalEvent&&e.originalEvent.touches&&e.originalEvent.touches.length&&(n=e.originalEvent.touches[0].pageX);var i=s?e.pageY-a.top:n-a.left;i=Math.max(0,Math.min(u||l,i));var r=i/l;return s&&(r=1-r),t&&(r=1-r),y(r,0,!0)},y=function(e,t){void 0===t&&(t=0),e>1&&(e=1);var i=Math.round(1e3*e)/10+"%";return(!d||d>=e)&&(n||p.stop(),v?p.css("width",i):p.animate(s?{height:i}:{width:i},t,"linear")),e},b=function(e){return Math.max(0,Math.min(l,s?(1-e)*o:e*r))},w={max:function(e){d=e},disable:function(e){i=e},slide:function(e,t,n){g(),n&&m(e),y(e,t)},disableAnimation:function(e){v=e!==!1}};g(),c.data("api",w).bind("mousedown.sld touchstart",function(t){if(t.preventDefault(),!i){var n=e.throttle(m,100);g(),w.dragging=!0,c.addClass("is-dragging"),m(h(t)),f.bind("mousemove.sld touchmove",function(e){e.preventDefault(),n(h(e))}).one("mouseup touchend",function(){w.dragging=!1,c.removeClass("is-dragging"),f.unbind("mousemove.sld touchmove")})}})})},flowplayer(function(t,n){function i(t){return e(".fp-"+t,n)}function a(t){("0px"===n.css("width")||"0px"===n.css("height")||t!==flowplayer.defaults.ratio)&&(parseInt(y,10)||g.css("paddingTop",100*t+"%")),l.inlineBlock||e("object",n).height(n.height())}function r(e){n.toggleClass("is-mouseover",e).toggleClass("is-mouseout",!e)}var o,s=t.conf,l=flowplayer.support;n.find(".fp-ratio,.fp-ui").remove(),n.addClass("flowplayer").append(' '.replace(/class="/g,'class="fp-'));var u=i("progress"),c=i("buffer"),f=i("elapsed"),p=i("remaining"),v=i("waiting"),g=i("ratio"),m=i("speed"),h=i("duration"),y=g.css("paddingTop"),b=i("timeline").slider2(t.rtl),w=b.data("api"),k=(i("volume"),i("fullscreen")),x=i("volumeslider").slider2(t.rtl),C=x.data("api"),T=n.is(".fixed-controls, .no-toggle");w.disableAnimation(n.hasClass("is-touch")),l.animation||v.html("loading …
"),a(s.ratio);try{s.fullscreen||k.remove()}catch(S){k.remove()}t.bind("ready",function(){var e=t.video.duration;w.disable(t.disabled||!e),s.adaptiveRatio&&a(t.video.height/t.video.width),h.add(p).html(d(e)),e>=3600&&n.addClass("is-long")||n.removeClass("is-long"),C.slide(t.volumeLevel)}).bind("unload",function(){y||g.css("paddingTop","")}).bind("buffer",function(){var e=t.video,n=e.buffer/e.duration;!e.seekable&&l.seekable&&w.max(n),1>n?c.css("width",100*n+"%"):c.css({width:"100%"})}).bind("speed",function(e,t,n){m.text(n+"x").addClass("fp-hilite"),setTimeout(function(){m.removeClass("fp-hilite")},1e3)}).bind("buffered",function(){c.css({width:"100%"}),w.max(1)}).bind("progress",function(){var e=t.video.time,n=t.video.duration;w.dragging||w.slide(e/n,t.seeking?0:250),f.html(d(e)),p.html("-"+d(n-e))}).bind("finish resume seek",function(e){n.toggleClass("is-finished","finish"==e.type)}).bind("stop",function(){f.html(d(0)),w.slide(0,100)}).bind("finish",function(){f.html(d(t.video.duration)),w.slide(1,100),n.removeClass("is-seeking")}).bind("beforeseek",function(){u.stop()}).bind("volume",function(){C.slide(t.volumeLevel)}).bind("disable",function(){var e=t.disabled;w.disable(e),C.disable(e),n.toggleClass("is-disabled",t.disabled)}).bind("mute",function(e,t,i){n.toggleClass("is-muted",i)}).bind("error",function(t,i,a){if(n.removeClass("is-loading").addClass("is-error"),a){a.message=s.errors[a.code],i.error=!0;var r=e(".fp-message",n);e("h2",r).text((i.engine||"html5")+": "+a.message),e("p",r).text(a.url||i.video.url||i.video.src||s.errorUrls[a.code]),n.unbind("mouseenter click").removeClass("is-mouseover")}}).bind("mouseenter mouseleave",function(e){if(!T){var t,i="mouseenter"==e.type;r(i),i?(n.bind("pause.x mousemove.x volume.x",function(){r(!0),t=new Date}),o=setInterval(function(){new Date-t>5e3&&(r(!1),t=new Date)},100)):(n.unbind(".x"),clearInterval(o))}}).bind("mouseleave",function(){(w.dragging||C.dragging)&&n.addClass("is-mouseover").removeClass("is-mouseout")}).bind("click.player",function(n){return e(n.target).is(".fp-ui, .fp-engine")||n.flash?(n.preventDefault(),t.toggle()):void 0}),s.poster&&n.css("backgroundImage","url("+s.poster+")");var F=n.css("backgroundColor"),_="none"!=n.css("backgroundImage")||F&&"rgba(0, 0, 0, 0)"!=F&&"transparent"!=F;!_||s.splash||s.autoplay||t.bind("ready stop",function(){n.addClass("is-poster").one("progress",function(){n.removeClass("is-poster")})}),!_&&t.forcedSplash&&n.css("backgroundColor","#555"),e(".fp-toggle, .fp-play",n).click(t.toggle),e.each(["mute","fullscreen","unload"],function(e,n){i(n).click(function(){t[n]()})}),b.bind("slide",function(e,n){t.seeking=!0,t.seek(n*t.video.duration)}),x.bind("slide",function(e,n){t.volume(n)}),i("time").click(function(){e(this).toggleClass("is-inverted")}),r(T)});var b,w,k="is-help";e(document).bind("keydown.fp",function(t){var n=b,i=t.ctrlKey||t.metaKey||t.altKey,a=t.which,r=n&&n.conf;if(n&&r.keyboard&&!n.disabled){if(-1!=e.inArray(a,[63,187,191,219]))return w.toggleClass(k),!1;if(27==a&&w.hasClass(k))return w.toggleClass(k),!1;if(!i&&n.ready){if(t.preventDefault(),t.shiftKey)return 39==a?n.speed(!0):37==a&&n.speed(!1),void 0;if(58>a&&a>47)return n.seekTo(a-48);switch(a){case 38:case 75:n.volume(n.volumeLevel+.15);break;case 40:case 74:n.volume(n.volumeLevel-.15);break;case 39:case 76:n.seeking=!0,n.seek(!0);break;case 37:case 72:n.seeking=!0,n.seek(!1);break;case 190:n.seekTo();break;case 32:n.toggle();break;case 70:r.fullscreen&&n.fullscreen();break;case 77:n.mute();break;case 27:n[n.isFullscreen?"fullscreen":"unload"]()}}}}),flowplayer(function(t,n){t.conf.keyboard&&(n.bind("mouseenter mouseleave",function(e){b=t.disabled||"mouseenter"!=e.type?0:t,b&&(w=n)}),n.append(' spaceplay / pause
escstop
ffullscreen
shift + ←→slower / faster (latest Chrome and Safari)
←→seek
. seek to previous
12…6 seek to 10%, 20%, …60%
'),t.conf.tooltip&&e(".fp-ui",n).attr("title","Hit ? for help").on("mouseout.tip",function(){e(this).removeAttr("title").off("mouseout.tip")}),e(".fp-close",n).click(function(){n.toggleClass(k)}))});var x,C=e.browser.mozilla?"moz":"webkit",T="fullscreen",S="fullscreen-exit",F=flowplayer.support.fullscreen,_="function"==typeof document.exitFullscreen,E=navigator.userAgent.toLowerCase(),M=/(safari)[ \/]([\w.]+)/.exec(E)&&!/(chrome)[ \/]([\w.]+)/.exec(E);e(document).bind(_?"fullscreenchange":C+"fullscreenchange",function(t){var n=e(document.webkitCurrentFullScreenElement||document.mozFullScreenElement||document.fullscreenElement||t.target);n.length&&!x?x=n.trigger(T,[n]):(x.trigger(S,[x]),x=null)}),flowplayer(function(t,n){if(t.conf.fullscreen){var i,a=e(window),r={pos:0,play:!1};t.isFullscreen=!1,t.fullscreen=function(e){return t.disabled?void 0:(void 0===e&&(e=!t.isFullscreen),e&&(i=a.scrollTop()),F?e?_?n[0].requestFullscreen():(n[0][C+"RequestFullScreen"](Element.ALLOW_KEYBOARD_INPUT),!M||document.webkitCurrentFullScreenElement||document.mozFullScreenElement||n[0][C+"RequestFullScreen"]()):_?document.exitFullscreen():document[C+"CancelFullScreen"]():("flash"===t.engine&&t.conf.rtmp&&(r={pos:t.video.time,play:t.playing}),t.trigger(e?T:S,[t])),t)};var o;n.bind("mousedown.fs",function(){+new Date-o<150&&t.ready&&t.fullscreen(),o=+new Date}),t.bind(T,function(){n.addClass("is-fullscreen"),t.isFullscreen=!0}).bind(S,function(){n.removeClass("is-fullscreen"),t.isFullscreen=!1,a.scrollTop(i)}).bind("ready",function(){r.pos&&!isNaN(r.pos)&&setTimeout(function(){t.play(),t.seek(r.pos),r.play||setTimeout(function(){t.pause()},100),r={pos:0,play:!1}},250)})}}),flowplayer(function(t,n){function i(){return e(r.query,n)}function a(){return e(r.query+"."+o,n)}var r=e.extend({active:"is-active",advance:!0,query:".fp-playlist a"},t.conf),o=r.active;t.play=function(n){return void 0===n?t.resume():"number"!=typeof n||t.conf.playlist[n]?("number"!=typeof n&&t.load.apply(null,arguments),t.unbind("resume.fromfirst"),t.video.index=n,t.load("string"==typeof t.conf.playlist[n]?t.conf.playlist[n].toString():e.map(t.conf.playlist[n],function(t){return e.extend({},t)})),t):t},t.next=function(e){e&&e.preventDefault();var n=t.video.index;return-1!=n&&(n=n===t.conf.playlist.length-1?0:n+1,t.play(n)),t},t.prev=function(e){e&&e.preventDefault();var n=t.video.index;return-1!=n&&(n=0===n?t.conf.playlist.length-1:n-1,t.play(n)),t},e(".fp-next",n).click(t.next),e(".fp-prev",n).click(t.prev),r.advance&&n.unbind("finish.pl").bind("finish.pl",function(e,t){var i=t.video.index+1;i1&&t.one("resume.fromfirst",function(){return t.play(0),!1}))});var s=!1;if(t.conf.playlist.length){s=!0;var l=n.find(".fp-playlist");if(!l.length){l=e('');var d=e(".fp-next,.fp-prev",n).eq(0).before(l);d.length||e("video",n).after(l)}l.empty(),e.each(t.conf.playlist,function(t,n){var i;if("string"==typeof n)i=n;else for(var a in n[0])if(n[0].hasOwnProperty(a)){i=n[0][a];break}l.append(e("").attr({href:i,"data-index":t}))})}if(i().length){s||(t.conf.playlist=[],i().each(function(){var n=e(this).attr("href");e(this).attr("data-index",t.conf.playlist.length),t.conf.playlist.push(n)})),n.on("click",r.query,function(n){n.preventDefault();var i=e(n.target).closest(r.query),a=Number(i.attr("data-index"));-1!=a&&t.play(a)});var u=i().filter("[data-cuepoints]").length;t.bind("load",function(i,r,s){var l=a().removeClass(o),d=l.attr("data-index"),c=s.index=t.video.index||0,f=e('a[data-index="'+c+'"]',n).addClass(o),p=c==t.conf.playlist.length-1;n.removeClass("video"+d).addClass("video"+c).toggleClass("last-video",p),s.index=r.video.index=c,s.is_last=r.video.is_last=p,u&&(t.cuepoints=f.data("cuepoints"))}).bind("unload.pl",function(){a().toggleClass(o)})}t.conf.playlist.length&&(t.conf.loop=!1)});var D=/ ?cue\d+ ?/;flowplayer(function(t,n){function i(e){n[0].className=n[0].className.replace(D," "),e>=0&&n.addClass("cue"+e)}var a=0;t.cuepoints=t.conf.cuepoints||[],t.bind("progress",function(e,r,o){if(a&&.015>o-a)return a=o;a=o;for(var s,l=t.cuepoints||[],d=0;do&&(o=a+i);var s=e("").addClass("fp-cuepoint fp-cuepoint"+n).css("left",100*(o/a)+"%");s.appendTo(r).mousedown(function(){return t.seek(o),!1})})})}),flowplayer(function(t,n){function i(e){var t=e.split(":");return 2==t.length&&t.unshift(0),60*60*t[0]+60*t[1]+parseFloat(t[2].replace(",","."))}var a=e("track",n),r=t.conf;if(!flowplayer.support.subtitles||(t.subtitles=a.length&&a[0].track,!r.nativesubtitles||"html5"!=r.engine)){a.remove();var o=/^(([0-9]{2}:)?[0-9]{2}:[0-9]{2}[,.]{1}[0-9]{3}) --\> (([0-9]{2}:)?[0-9]{2}:[0-9]{2}[,.]{1}[0-9]{3})(.*)/;t.subtitles=[];var s=a.attr("src");if(s){e.get(s,function(n){for(var a,r,s,l,d=0,u=n.split("\n"),c=u.length,f={};c>d;d++)if(r=o.exec(u[d])){for(a=u[d-1],s=""+u[++d]+"
";e.trim(u[++d])&&d"+u[d]+"
";f={title:a,startTime:i(r[1]),endTime:i(r[2]||r[3]),text:s},l={time:f.startTime,subtitle:f},t.subtitles.push(f),t.cuepoints.push(l),t.cuepoints.push({time:f.endTime,subtitleEnd:a}),0===f.startTime&&t.trigger("cuepoint",l)}}).fail(function(){return t.trigger("error",{code:8,url:s}),!1});var l,d=e("",n).appendTo(n);t.bind("cuepoint",function(e,t,n){n.subtitle?(l=n.index,d.html(n.subtitle.text).addClass("fp-active")):n.subtitleEnd&&(d.removeClass("fp-active"),l=n.index)}).bind("seek",function(n,i,a){l&&t.cuepoints[l]&&t.cuepoints[l].time>a&&(d.removeClass("fp-active"),l=null),e.each(t.cuepoints||[],function(e,n){var i=n.subtitle;i&&l!=n.index?a>=n.time&&(!i.endTime||a<=i.endTime)&&t.trigger("cuepoint",n):n.subtitleEnd&&a>=n.time&&n.index==l+1&&t.trigger("cuepoint",n)})})}}}),flowplayer(function(t,n){function i(){if(r&&"undefined"!=typeof _gat){var e=_gat._getTracker(a),i=t.video;e._setAllowLinker(!0),e._trackEvent("Video / Seconds played",t.engine+"/"+i.type,n.attr("title")||i.src.split("/").slice(-1)[0].replace(y,""),Math.round(r/1e3)),r=0}}var a=t.conf.analytics,r=0,o=0;a&&("undefined"==typeof _gat&&e.getScript("//google-analytics.com/ga.js"),t.bind("load unload",i).bind("progress",function(){t.seeking||(r+=o?+new Date-o:0,o=+new Date)}).bind("pause",function(){o=0}),e(window).unload(i))});var A=/IEMobile/.test(f);(flowplayer.support.touch||A)&&flowplayer(function(t,n){var i=/Android/.test(f)&&!/Firefox/.test(f)&&!/Opera/.test(f),a=/Silk/.test(f);if(i){t.conf.videoTypePreference="mp4";var r=t.load;t.load=function(){var e=r.apply(t,arguments);return t.trigger("ready",t,t.video),e}}flowplayer.support.volume||n.addClass("no-volume no-mute"),n.addClass("is-touch"),n.find(".fp-timeline").data("api").disableAnimation();var o=!1;n.bind("touchmove",function(){o=!0}).bind("touchend click",function(){return o?(o=!1,void 0):t.playing&&!n.hasClass("is-mouseover")?(n.addClass("is-mouseover").removeClass("is-mouseout"),!1):(t.paused&&n.hasClass("is-mouseout")&&t.toggle(),t.paused&&A&&e("video",n)[0].play(),void 0)}),t.conf.native_fullscreen&&(e.browser.webkit||e.browser.safari)&&(t.fullscreen=function(){var t=e("video",n);t[0].webkitEnterFullScreen(),t.one("webkitendfullscreen",function(){t.prop("controls",!0).prop("controls",!1)})}),(i||a)&&t.bind("ready",function(){var i=e("video",n);i.one("canplay",function(){i[0].play()}),i[0].play(),t.bind("progress.dur",function(){var a=i[0].duration;1!==a&&(t.video.duration=a,e(".fp-duration",n).html(d(a)),t.unbind("progress.dur"))})})}),flowplayer(function(t,n){if(t.conf.embed!==!1){var i=t.conf,a=e(".fp-ui",n),r=e("",{"class":"fp-embed",title:"Copy to your site"}).appendTo(a),o=e("",{"class":"fp-embed-code"}).append("").appendTo(a),s=e("textarea",o);t.embedCode=function(){var a=t.video,r=a.width||n.width(),o=a.height||n.height(),s=e("",{"class":"flowplayer",css:{width:r,height:o}}),l=e("").appendTo(s);
e.each(["origin","analytics","logo","key","rtmp"],function(e,t){i[t]&&s.attr("data-"+t,i[t])}),e.each(a.sources,function(t,n){l.append(e("",{type:"video/"+n.type,src:n.src}))});var d={src:"//embed.flowplayer.org/5.4.3/embed.min.js"};e.isPlainObject(i.embed)&&(d["data-swf"]=i.embed.swf,d["data-library"]=i.embed.library,d.src=i.embed.script||d.src,i.embed.skin&&(d["data-skin"]=i.embed.skin));var u=e("",d).append(s);return e("").append(u).html().replace(/<(\/?)foo/g,"<$1script")},n.fptip(".fp-embed","is-embedding"),s.click(function(){this.select()}),r.click(function(){s.text(t.embedCode()),s[0].focus(),s[0].select()})}}),e.fn.fptip=function(t,n){return this.each(function(){function i(){a.removeClass(n),e(document).unbind(".st")}var a=e(this);e(t||"a",this).click(function(t){t.preventDefault(),a.toggleClass(n),a.hasClass(n)&&e(document).bind("keydown.st",function(e){27==e.which&&i()}).bind("click.st",function(t){e(t.target).parents("."+n).length||i()})})})}}(jQuery);flowplayer(function(e,o){function a(e){var o=n("")[0];return o.href=e,o.hostname}var n=jQuery,t=e.conf,i=t.swf.indexOf("flowplayer.org")&&t.e&&o.data("origin"),l=i?a(i):location.hostname,r=t.key;if("file:"==location.protocol&&(l="localhost"),e.load.ed=1,t.hostname=l,t.origin=i||location.href,i&&o.addClass("is-embedded"),"string"==typeof r&&(r=r.split(/,\s*/)),r&&"function"==typeof key_check&&key_check(r,l))t.logo&&o.append(n("",{"class":"fp-logo",href:i}).append(n("",{src:t.logo})));else{var s=n("").attr("href","http://flowplayer.org").appendTo(o);n(".fp-controls",o),e.bind("pause resume finish unload",function(e,o){var a=o.video.src?o.video.src.indexOf("://my.flowplayer.org"):-1;/pause|resume/.test(e.type)&&"flash"!=o.engine&&4!=a&&5!=a?(s.show().css({position:"absolute",left:16,bottom:36,zIndex:99999,width:100,height:20,backgroundImage:"url("+[".png","logo","/",".net",".cloudfront","d32wqyuo10o653","//"].reverse().join("")+")"}),o.load.ed=s.is(":visible"),o.load.ed||o.pause()):s.hide()})}});