/*! Flowplayer v5.1.1 (Friday, 19. October 2012 04:24PM) | flowplayer.org/license */!function(e){function a(t,n){window.objectId=new Object;var r="obj"+(""+Math.random()).slice(2,15),i='':' data="'+t+'" type="application/x-shockwave-flash">';var o={width:"100%",height:"100%",allowscriptaccess:"always",wmode:"opaque",quality:"high",flashvars:"",movie:t+(s?"?"+r:""),name:r};return e.each(n,function(e,t){o.flashvars+=e+"="+t+"&"}),e.each(o,function(e,t){i+=''}),i+="",e(i)}function c(e){return Math.round(e*100)/100}function p(e){var t=e.attr("type"),n=e.attr("src");return{src:n,type:t?t.replace("video/",""):n.split(h)[1]}}function d(e){return e=parseInt(e,10),e>=10?e:"0"+e}function v(e){e=e||0;var t=Math.floor(e/3600),n=Math.floor(e/60);return e-=n*60,t>=1?(n-=t*60,t+"h:"+d(n)):d(n)+":"+d(e)}e(function(){typeof e.fn.flowplayer=="function"&&e("video").parent(".flowplayer").flowplayer()});var t=[],n=[],r=navigator.userAgent,i=/iPhone/i.test(r)||/Android/.test(r)&&/Firefox/.test(r);window.flowplayer=function(r){return i?0:e.isFunction(r)?n.push(r):typeof r=="number"||r===undefined?t[r||0]:e(r).data("flowplayer")},e.extend(flowplayer,{version:"5.1.1",engine:{},conf:{},defaults:{debug:!1,disabled:!1,engine:"html5",keyboard:!0,ratio:9/16,rtmp:0,splash:!1,swf:"http://releases.flowplayer.org/5.1.1/flowplayer.swf",speeds:[.25,.5,1,1.5,2],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"]},support:{}});if(i)return e(function(){e("video").attr("controls","controls")});e.fn.flowplayer=function(r,i){return typeof r=="string"&&(r={swf:r}),e.isFunction(r)&&(i=r,r={}),!r&&this.data("flowplayer")||this.each(function(){var s=e(this),o=e.extend({},flowplayer.defaults,flowplayer.conf,r,s.data()),u=e("video",s),a,f=[],l,c,h={conf:o,currentSpeed:1,volumeLevel:o.volume,video:null,splash:!1,ready:!1,paused:!1,playing:!1,loading:!1,muted:!1,disabled:!1,finished:!1,load:function(t,n){if(h.error||h.loading||h.disabled)return;return s.trigger("load",[h,t,c]),e.isFunction(t)&&(n=t),n&&s.one("ready",n),h},pause:function(e){return h.ready&&!h.seeking&&!h.disabled&&!h.loading&&(c.pause(),h.one("pause",e)),h},resume:function(){return h.ready&&h.paused&&!h.disabled&&(c.resume(),h.finished&&(h.trigger("resume"),h.finished=!1)),h},toggle:function(){return h.ready?h.paused?h.resume():h.pause():h.load()},seek:function(t,n){if(h.ready){if(typeof t=="boolean"){var r=h.video.duration*.1;t=h.video.time+(t?r:-r)}t=a=Math.min(Math.max(t,0),h.video.duration),c.seek(t),e.isFunction(n)&&s.one("seek",n)}return h},seekTo:function(e,t){var n=e===undefined?a:h.video.duration*.1*e;return h.seek(n,t)},volume:function(e){return h.ready&&e!=h.volumeLevel&&c.volume(Math.min(Math.max(e,0),1)),h},speed:function(t,n){return h.ready&&(typeof t=="boolean"&&(t=o.speeds[e.inArray(h.currentSpeed,o.speeds)+(t?1:-1)]||h.currentSpeed),c.speed(t),n&&s.one("speed",n)),h},stop:function(){return h.ready&&c.stop(),h},unload:function(){return s.hasClass("is-embedding")||(o.splash?(h.trigger("unload"),c.unload()):h.stop()),h}};e.each(["disable","mute"],function(e,t){h[t]=function(){return h.trigger(t)}}),e.each(["bind","one","unbind"],function(e,t){h[t]=function(e,n){return s[t](e,n),h}}),h.trigger=function(e,t){return s.trigger(e,[h,t]),h},s.bind("boot",function(){e.each(["autoplay","loop","preload","poster"],function(e,t){var n=u.attr(t);n!==undefined&&(o[t]=n?n:!0)});if(o.splash||s.hasClass("is-splash"))h.splash=o.splash=o.autoplay=!0,s.addClass("is-splash");o.poster&&delete o.autoplay,e.each(n,function(e){this(h,s)}),c=flowplayer.engine[o.engine],c&&(c=c(h,s)),c?h.engine=o.engine:(delete flowplayer.engine[o.engine],e.each(flowplayer.engine,function(e,t){return c=this(h,s),c&&(h.engine=e),!1}));if(!c)return h.trigger("error",{code:5});o.splash?h.unload():h.load(),o.disabled&&h.disable(),s.one("ready",i),t.push(h)}).bind("load",function(t,n,r){o.splash&&e(".flowplayer").filter(".is-ready, .is-loading").not(s).each(function(){var t=e(this).data("flowplayer");t.conf.splash&&t.unload()}),n.loading=!0}).bind("ready unload",function(e){function n(){s.removeClass("is-loading"),h.loading=!1}var t=e.type=="ready";s.toggleClass("is-splash",!t).toggleClass("is-ready",t),h.ready=t,h.splash=!t,t?(h.volume(o.volume),o.autoplay?s.one("resume",n):(h.playing||h.trigger("pause"),n())):(h.video.time=0,o.splash&&u.remove())}).bind("mute",function(e){var t=h.muted=!h.muted;t&&(l=h.volumeLevel),h.volume(t?0:l)}).bind("speed",function(e,t,n){t.currentSpeed=n}).bind("volume",function(e,t,n){t.volumeLevel=Math.round(n*100)/100,t.muted&&t.volumeLevel&&(s.removeClass("is-muted"),t.muted=!1)}).bind("beforeseek seek",function(e){h.seeking=e.type=="beforeseek",s.toggleClass("is-seeking",h.seeking)}).bind("ready pause resume unload finish",function(e,t,n){h.paused=/pause|finish|unload/.test(e.type),e.type=="ready"&&n&&(h.paused=!n.duration||!o.autoplay&&(o.preload!="none"||h.engine=="flash")),h.playing=!h.paused,s.toggleClass("is-paused",h.paused).toggleClass("is-playing",h.playing),h.load.ed||h.pause()}).bind("disable",function(){h.disabled=!h.disabled}).bind("finish",function(e){h.finished=!0}).bind("error",function(){u.remove()}),s.trigger("boot",[h,s]).data("flowplayer",h)})};var s=e.browser.msie;try{var o=s?(new ActiveXObject("ShockwaveFlash.ShockwaveFlash")).GetVariable("$version"):navigator.plugins["Shockwave Flash"].description;o=o.split(/\D+/),s||(o=o.slice(1)),flowplayer.support.flashVideo=o[0]>9||o[0]==9&&o[2]>=115}catch(u){}window.attachEvent&&window.attachEvent("onbeforeunload",function(){__flash_savedUnloadHandler=__flash_unloadHandler=function(){}}),flowplayer.engine.flash=function(t,n){function f(e){for(var t=0,n;t").attr("href",l.src)[0].href).replace(/&/g,"%26").replace(/&/g,"%26").replace(/=/g,"%3D");if(u)u.__play(l.url);else{s="fp"+(""+Math.random()).slice(3,15);var c={hostname:r.embedded?r.hostname:top.location.hostname,url:l.url,callback:"$."+s};e.each(["key","autoplay","preload","poster","rtmp","loop","debug"],function(e,t){r[t]&&(c[t]=r[t])}),/^https?:/.test(l.url)&&delete c.rtmp,o=a(r.swf,c),o.prependTo(n),u=o[0],setTimeout(function(){try{if(!u.PercentLoaded())return n.trigger("error",[t,{code:7,url:r.swf}])}catch(e){}},5e3),e[s]=function(n,i){r.debug&&n!="status"&&console.log("--",n,i);var s=e.Event(n),o=t.video;switch(n){case"ready":i=e.extend(o,i);break;case"click":s.flash=!0;break;case"keydown":s.which=i;break;case"buffered":o.buffered=!0;break;case"seek":o.time=i;break;case"status":if(!o.time||i.time>o.time)o.time=i.time,t.trigger("progress",i.time);i.buffer")[0],l={ended:"finish",pause:"pause",play:"resume",progress:"buffer",timeupdate:"progress",volumechange:"volume",ratechange:"speed",seeking:"beforeseek",seeked:"seek",loadeddata:"ready",error:"error",dataunavailable:"error"};flowplayer.support.video=!!f.canPlayType,flowplayer.engine.html5=function(t,n){function a(e){return/video/.test(e)||(e="video/"+e),!!f.canPlayType(e).replace("no","")}function h(e){for(var t=0,n;t",i,u);if(!t.ready&&!/ready|error/.test(i)||!i)return;var a=e.Event(i),f=t.video,l;switch(i){case"ready":l=e.extend(f,{duration:n.duration,width:n.videoWidth,height:n.videoHeight,url:n.currentSrc});try{f.seekable=n.seekable&&n.seekable.end(null)}catch(h){}o=o||setInterval(function(){try{f.buffer=n.buffered.end(null)}catch(e){}f.buffer&&(f.buffer",{src:a.src,type:"video/"+a.type,autoplay:"autoplay","class":"fp-engine"}).prependTo(n),i.length&&r.append(i.attr("default","")),s.loop&&r.attr("loop","loop"),u=r[0]):(u=r[0],o.src&&u.src!=o.src&&(r.attr("autoplay","autoplay"),u.src=a.src,u.load())),s.preload=="none"&&n.trigger("ready",[t,{}]),p(u,e("source",r)),a},pause:function(){u.pause()},resume:function(){u.play()},speed:function(e){u.playbackRate=e},seek:function(e){try{u.currentTime=e}catch(t){}},stop:function(){u.currentTime=0,setTimeout(function(){u.load()},100)},volume:function(e){u.volume=e},unload:function(){e("video",n).remove(),u=0,clearInterval(o)}}};var h=/.(\w{3,4})$/i;flowplayer(function(t,n){var r=e("video",n),i=[];e("source",r).each(function(){i.push(p(e(this)))}),i.length||i.push(p(r)),t.video={sources:i},t.bind("load",function(t,n,r,s){r=r||n.video,e.isArray(r)?r={sources:e.map(r,function(e){var t=Object.keys(e)[0];return e.type=t,e.src=e[t],delete e[t],e})}:typeof r=="string"&&(r={src:r,sources:[]},e.each(i,function(e,t){t.type!="flash"&&r.sources.push({type:t.type,src:r.src.replace(h,"")+"."+t.type})})),n.video=e.extend(r,s.load(r))})}),e.throttle=function(e,t){var n;return function(){n||(e.apply(this,arguments),n=1,setTimeout(function(){n=0},t))}},e.fn.slider2=function(){return this.each(function(){var t=e(this),n=e(document),r=t.children(":last"),i,s,o,u,a,f,l,c,h=function(){s=t.offset(),o=t.width(),u=t.height(),f=a?u:o,c=m(l)},p=function(e){!i&&e!=g.value&&(!l||e")[0];for(var r=0;r

00:00 99:99

'.replace(/class="/g,'class="fp-'));var o=s("progress"),u=s("buffer"),a=s("elapsed"),f=s("remaining"),l=s("waiting"),c=s("ratio"),h=s("speed"),p=c.css("paddingTop"),d=s("timeline").slider2(),m=d.data("api"),g=s("volume"),y=s("fullscreen"),b=s("volumeslider").slider2(),w=b.data("api"),E=n.hasClass("no-toggle");flowplayer.support.animation||l.html("

loading …

"),S(r.ratio),E&&n.addClass("is-mouseover");try{window!=window.top&&y.remove()}catch(T){y.remove()}t.bind("ready",function(){var e=t.video.duration;m.disable(!e),S(t.video.videoHeight/t.video.videoWidth),s("duration").add(f).html(v(e)),w.slide(t.volumeLevel)}).bind("unload",function(){p||c.css("paddingTop","")}).bind("buffer",function(){var e=t.video,n=e.buffer/e.duration;e.seekable||m.max(n),u.animate({width:n*100+"%"},250,"linear")}).bind("speed",function(e,t,n){h.text(n+"x").addClass("fp-hilite"),setTimeout(function(){h.removeClass("fp-hilite")},1e3)}).bind("buffered",function(){u.css({width:"100%"}),m.max(1)}).bind("progress",function(){var e=t.video.time,n=t.video.duration;(!m.dragging||typeof Touch=="object")&&m.slide(e/n,t.seeking?0:250),a.html(v(e)),f.html("-"+v(n-e))}).bind("finish resume seek",function(e){n.toggleClass("is-finished",e.type=="finish")}).bind("finish",function(){a.html(v(t.video.duration)),window.foo=m,m.slide(1,100)}).bind("beforeseek",function(){o.stop()}).bind("volume",function(){w.slide(t.volumeLevel)}).bind("disable",function(){var e=t.disabled;m.disable(e),w.disable(e),n.toggleClass("is-disabled",t.disabled)}).bind("mute",function(){n.toggleClass("is-muted",t.muted)}).bind("error",function(t,i,s){n.removeClass("is-loading").addClass("is-error");if(s){s.message=r.errors[s.code],i.error=!0;var o=e(".fp-message",n);e("h2",o).text(i.engine+": "+s.message),e("p",o).text(s.url||i.video.url||i.video.src),n.unbind("mouseenter click").removeClass("is-mouseover")}}).bind("mouseenter mouseleave",function(e){if(E)return;var t=e.type=="mouseenter",r;x(t),t?(n.bind("pause.x mousemove.x volume.x",function(){x(!0),r=new Date}),i=setInterval(function(){new Date-r>5e3&&(x(!1),r=new Date)},100)):(n.unbind(".x"),clearInterval(i))}).bind("mouseleave",function(){(m.dragging||w.dragging)&&n.addClass("is-mouseover").removeClass("is-mouseout")}).bind("click.player",function(n){if(e(n.target).is(".fp-ui, .fp-engine")||n.flash||n.force)return n.preventDefault(),t.toggle()}),e(".fp-toggle",n).click(t.toggle),e.each(["mute","fullscreen","unload"],function(e,n){s(n).click(function(){t[n]()})}),d.bind("slide",function(e,n){t.seeking=!0,t.seek(n*t.video.duration)}),b.bind("slide",function(e,n){t.volume(n)}),s("time").click(function(t){e(this).toggleClass("is-inverted")}),x(!1)});var m,g,y="is-help";e(document).bind("keydown.fp",function(t){if(!m||!m.conf.keyboard)return;var n=m,r=t.ctrlKey||t.metaKey||t.altKey,i=t.which;if(e.inArray(i,[63,187,191,219])!=-1)return g.toggleClass(y),!1;if(i==27&&g.hasClass(y))return g.toggleClass(y),!1;if(!r&&n.ready){t.preventDefault();if(t.shiftKey){i==39?n.speed(!0):i==37&&n.speed(!1);return}if(i<58&&i>47)return n.seekTo(i-48);switch(i){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:n.fullscreen();break;case 77:n.mute();break;case 27:n[n.isFullscreen?"fullscreen":"unload"]()}}}),flowplayer(function(t,n){if(!t.conf.keyboard)return;n.bind("mouseenter mouseleave",function(e){m=!t.disabled&&e.type=="mouseenter"?t:0,m&&(g=n)}),n.append('

spaceplay / pause

escstop

ffullscreen

shift + ←→slower / faster

↑↓volume

mmute

←→seek

 . seek to previous

12…6 seek to 10%, 20%, …60%

'),t.bind("ready unload",function(t){e(".fp-ui",n).attr("title",t.type=="ready"?"Hit ? for help":"")}),e(".fp-close",n).click(function(){n.toggleClass(y)})});var b=e.browser.mozilla?"moz":"webkit",w="fullscreen",E="fullscreen-exit",S,x=typeof document.webkitCancelFullScreen=="function"||document.mozFullScreenEnabled;flowplayer.support.fullscreen=x,e(document).bind(b+"fullscreenchange",function(t){var n=e(document.webkitCurrentFullScreenElement||document.mozFullScreenElement);n.length?S=n.trigger(w,[n]):S.trigger(E,[S])}),flowplayer(function(t,n){t.isFullscreen=!1,t.fullscreen=function(e){return e===undefined&&(e=!t.isFullscreen),x?e?n[0][b+"RequestFullScreen"](Element.ALLOW_KEYBOARD_INPUT):document[b+"CancelFullScreen"]():t.trigger(e?w:E,[t]),t},t.bind(w,function(e){n.addClass("is-fullscreen"),t.isFullscreen=!0}).bind(E,function(e){n.removeClass("is-fullscreen"),t.isFullscreen=!1});var r=n.height(),i=n.width();t.bind("fullscreen",function(){var r=x?screen.width:e(window).width(),i=x?screen.height:e(window).height(),s=t.video.height/t.video.width,o=s>.5?i*(1/s):r*s;e("object",n).css(s>.5?{width:o,marginLeft:(r-o)/2,height:"100%"}:{height:o,marginTop:(i-o-20)/2,width:"100%"})}).bind("fullscreen-exit",function(){var s=e.browser.msie&&e.browser.version<8,o=t.video.height/t.video.width;e("object",n).css(o>.5?{width:s?i:"",height:s?r:"",marginLeft:""}:{height:s?r:"",width:s?i:"",marginTop:""})})}),flowplayer(function(t,n){function s(){return e(r.query,n)}function o(){return e(r.query+"."+i,n)}var r=e.extend({active:"is-active",advance:!0,query:".fp-playlist a"},t.conf),i=r.active,u=s().live("click",function(n){var r=e(this);r.is("."+i)?t.toggle():t.load(r.attr("href")),n.preventDefault()});t.play=function(e){return e===undefined?t.resume():typeof e!="number"?t.load.apply(null,arguments):s().eq(e).click(),t};if(u.length){t.conf.loop=!1;var a=u.filter("[data-cuepoints]").length;t.bind("load",function(){var r=o().removeClass(i),u=e("a[href*='"+t.video.src.replace(h,"")+"']",n).addClass(i),f=s(),l=f.index(u),c=l==f.length-1;n.removeClass("video"+f.index(r)).addClass("video"+l).toggleClass("last-video",c),t.video.index=l,t.video.is_last=c,a&&(t.cuepoints=u.data("cuepoints"))}).bind("unload.pl",function(){o().toggleClass(i)}),e.each(["next","prev"],function(r,i){t[i]=function(e){e&&e.preventDefault();var t=o()[i]();t.length||(t=s().filter(i=="next"?":first":":last")),t.click()},e(".fp-"+i,n).click(t[i])}),r.advance&&n.unbind("finish.pl").bind("finish.pl",function(){n.addClass("is-playing"),o().next().length||r.loop?t.next():t.one("resume",function(){return t.next(),!1})})}});var T=/ ?cue\d+ ?/;flowplayer(function(t,n){function i(e){n[0].className=n[0].className.replace(T," "),e>=0&&n.addClass("cue"+e)}var r=0;t.cuepoints=t.conf.cuepoints||[],t.bind("progress",function(e,s,o){if(r&&o-r<.015)return r=o;r=o;var u=t.cuepoints||[];for(var a=0,f;a").addClass("fp-cuepoint fp-cuepoint"+n).css("left",o/i*100+"%");u.appendTo(s).mousedown(function(){return t.seek(o),!1})})})});var N=e("")[0];flowplayer.support.subtitles=!!N.track,e.extend(e.support,flowplayer.support),flowplayer(function(t,n,r){function u(e){var t=e.split(":");return t[0]*60*60+t[1]*60+parseFloat(t[2].replace(",","."))}var i=e("track",n),s=t.conf;if(flowplayer.support.subtitles){t.subtitles=i.length&&i[0].track;if(s.nativesubtitles&&s.engine=="html5")return}i.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 a=i.attr("src");e.get(a,function(n){for(var r=0,i=n.split("\n"),s=i.length,a={},f,l,c,h;r"+i[++r]+"


";while(e.trim(i[++r])&&r"+i[r]+"


";a={title:f,startTime:u(l[1]),endTime:u(l[2]),text:c},h={time:a.startTime,subtitle:a},t.subtitles.push(a),t.cuepoints.push(h),t.cuepoints.push({time:a.endTime,subtitleEnd:f}),a.startTime===0&&t.trigger("cuepoint",h)}}}).fail(function(){return t.trigger("error",{code:8,url:a}),!1});var f=e("
",n).appendTo(n),l;t.bind("cuepoint",function(e,t,n){n.subtitle?(l=n.index,f.html(n.subtitle.text).addClass("fp-active")):n.subtitleEnd&&f.removeClass("fp-active")}).bind("seek",function(){var n=t.video.time;e.each(t.cuepoints||[],function(e,r){var i=r.subtitle;i&&l!=r.index&&(n>=r.time&&n<=i.endTime?t.trigger("cuepoint",r):f.removeClass("fp-active"))})})}),flowplayer(function(t,n){var r=t.conf.analytics,i=0,s=0;if(r&&typeof _gat!="undefined"){function o(e){if(i){var s=_gat._getTracker(r),o=t.video;s._setAllowLinker(!0),s._trackEvent("Video / Seconds played",t.engine+"/"+o.type,n.attr("title")||o.src.split("/").slice(-1)[0].replace(h,""),Math.round(i/1e3)),i=0}}t.bind("load unload",o).bind("progress",function(){t.seeking||(i+=s?+(new Date)-s:0,s=+(new Date))}).bind("pause",function(){s=0}),e(window).unload(o)}}),/iPad|MeeGo/.test(r)&&flowplayer(function(t,n){var i=t.conf,s;i.autoplay=t.splash=i.splash=!1,/Version\/5/.test(r)&&(i.preload="none"),i.native_ipad_fullscreen&&(t.fullscreen=function(){e("video",n)[0].webkitEnterFullScreen()}),n.bind("load",function(){var r=e("video",n)[0],i=e(r).attr("poster"),s=e(r).attr("autoplay");i&&!s&&(n.css("background","url("+i+") center no-repeat"),n.css("background-size","contain")),n.addClass("is-ipad is-paused").removeClass("is-loading"),t.ready=t.paused=!0,t.loading=!1,s&&t.resume(),r.addEventListener("canplay",function(e){n.trigger("ready").trigger("resume")},!1)}),n.bind("touchstart",function(e){s||(n.triggerHandler({type:"click.player",force:!0}),s=!0);if(t.playing&&!n.hasClass("is-mouseover"))return n.addClass("is-mouseover"),!1}),t.unload=function(){t.pause(),n.trigger("unload"),s=!1}}),/Android/.test(navigator.userAgent)&&flowplayer(function(t,n){var r;t.splash=t.conf.splash=!1,t.conf.autoplay=!1;var i=e("video",n)[0];t.fullscreen=function(){i.webkitEnterFullScreen()},n.bind("load",function(){n.addClass("is-paused").removeClass("is-loading"),t.ready=t.paused=!0,t.loading=!1;var r=function(){i.duration!=1&&(t.video.duration=i.duration,e(".fp-duration",n).html(v(i.duration)),i.removeEventListener("timeupdate",r))};i.addEventListener("timeupdate",r)}),n.bind("touchstart",function(e){r||(n.triggerHandler("click.player"),r=!0);if(t.playing&&!n.hasClass("is-mouseover"))return n.addClass("is-mouseover"),!1}),t.unload=function(){t.pause(),n.trigger("unload"),r=!1}}),flowplayer(function(t,n){if(t.conf.embed===!1)return;var r=t.conf,i=e(".fp-ui",n),s=e("",{"class":"fp-embed",title:"Copy to your site"}).appendTo(i),o=e("
",{"class":"fp-embed-code"}).append("