(function(){function w(a){if(!a||typeof a!="object")return a;var c=new a.constructor;for(var d in a)if(a.hasOwnProperty(d))c[d]=w(a[d]);return c}function q(a,c){if(a){var d,b=0,l=a.length;if(l===undefined)for(d in a){if(c.call(a[d],d,a[d])===false)break}else for(d=a[0];b<l&&c.call(d,b,d)!==false;d=a[++b]);return a}}function v(a,c,d){if(typeof c!="object")return a;a&&c&&q(c,function(b,l){if(!d||typeof l!="function")a[b]=l});return a}function r(a){var c=a.indexOf(".");if(c!=-1){var d=a.slice(0,c)||
"*",b=a.slice(c+1,a.length),l=[];q(document.getElementsByTagName(d),function(){this.className&&this.className.indexOf(b)!=-1&&l.push(this)});return l}}function I(a){a=a||window.event;if(a.preventDefault){a.stopPropagation();a.preventDefault()}else{a.returnValue=false;a.cancelBubble=true}return false}function z(a,c,d){a[c]=a[c]||[];a[c].push(d)}function B(){return"_"+(""+Math.random()).slice(2,10)}function G(a,c,d){var b=this,l=null,x=false,C,g,i=[],o={},t={},h,n,s,u,F,E;v(b,{id:function(){return h},
isLoaded:function(){return l!==null&&l.fp_play!==undefined&&!x},getParent:function(){return a},hide:function(f){if(f)a.style.height="0px";if(b.isLoaded())l.style.height="0px";return b},show:function(){a.style.height=E+"px";if(b.isLoaded())l.style.height=F+"px";return b},isHidden:function(){return b.isLoaded()&&parseInt(l.style.height,10)===0},load:function(f){if(!b.isLoaded()&&b._fireEvent("onBeforeLoad")!==false){var m=0;q(j,function(){this.unload(function(){if(++m==j.length){if((C=a.innerHTML)&&
!flashembed.isSupported(c.version))a.innerHTML="";if(f){f.cached=true;z(t,"onLoad",f)}flashembed(a,c,{config:d})}})})}return b},unload:function(f){if(this.isFullscreen()&&/WebKit/i.test(navigator.userAgent)){f&&f(false);return b}if(C.replace(/\s/g,"")!==""){if(b._fireEvent("onBeforeUnload")===false){f&&f(false);return b}x=true;try{if(l){l.fp_close();b._fireEvent("onUnload")}}catch(m){}setTimeout(function(){l=null;a.innerHTML=C;x=false;f&&f(true)},50)}else f&&f(false);return b},getClip:function(f){if(f===
undefined)f=u;return i[f]},getCommonClip:function(){return g},getPlaylist:function(){return i},getPlugin:function(f){var m=o[f];if(!m&&b.isLoaded()){var k=b._api().fp_getPlugin(f);if(k){m=new e(f,k,b);o[f]=m}}return m},getScreen:function(){return b.getPlugin("screen")},getControls:function(){return b.getPlugin("controls")._fireEvent("onUpdate")},getLogo:function(){try{return b.getPlugin("logo")._fireEvent("onUpdate")}catch(f){}},getPlay:function(){return b.getPlugin("play")._fireEvent("onUpdate")},
getConfig:function(f){return f?w(d):d},getFlashParams:function(){return c},loadPlugin:function(f,m,k,p){if(typeof k=="function"){p=k;k={}}var A=p?B():"_";b._api().fp_loadPlugin(f,m,k,A);m={};m[A]=p;p=new e(f,null,b,m);return o[f]=p},getState:function(){return b.isLoaded()?l.fp_getState():-1},play:function(f,m){var k=function(){f!==undefined?b._api().fp_play(f,m):b._api().fp_play()};if(b.isLoaded())k();else x?setTimeout(function(){b.play(f,m)},50):b.load(function(){k()});return b},getVersion:function(){if(b.isLoaded()){var f=
l.fp_getVersion();f.push("flowplayer.js 3.2.4");return f}return"flowplayer.js 3.2.4"},_api:function(){if(!b.isLoaded())throw"Flowplayer "+b.id()+" not loaded when calling an API method";return l},setClip:function(f){b.setPlaylist([f]);return b},getIndex:function(){return s},_swfHeight:function(){return l.clientHeight}});q("Click*,Load*,Unload*,Keypress*,Volume*,Mute*,Unmute*,PlaylistReplace,ClipAdd,Fullscreen*,FullscreenExit,Error,MouseOver,MouseOut".split(","),function(){var f="on"+this;if(f.indexOf("*")!=
-1){f=f.slice(0,f.length-1);var m="onBefore"+f.slice(2);b[m]=function(k){z(t,m,k);return b}}b[f]=function(k){z(t,f,k);return b}});q("pause,resume,mute,unmute,stop,toggle,seek,getStatus,getVolume,setVolume,getTime,isPaused,isPlaying,startBuffering,stopBuffering,isFullscreen,toggleFullscreen,reset,close,setPlaylist,addClip,playFeed,setKeyboardShortcutsEnabled,isKeyboardShortcutsEnabled".split(","),function(){var f=this;b[f]=function(m,k){if(!b.isLoaded())return b;var p=null;p=m!==undefined&&k!==undefined?
l["fp_"+f](m,k):m===undefined?l["fp_"+f]():l["fp_"+f](m);return p==="undefined"||p===undefined?b:p}});b._fireEvent=function(f){if(typeof f=="string")f=[f];var m=f[0],k=f[1],p=f[2],A=f[3],J=0;d.debug&&console.log("$f.fireEvent",[].slice.call(f));if(!b.isLoaded()&&m=="onLoad"&&k=="player"){l=l||document.getElementById(n);F=b._swfHeight();q(i,function(){this._fireEvent("onLoad")});q(o,function(M,L){L._fireEvent("onUpdate")});g._fireEvent("onLoad")}if(!(m=="onLoad"&&k!="player")){if(m=="onError")if(typeof k==
"string"||typeof k=="number"&&typeof p=="number"){k=p;p=A}if(m=="onContextMenu")q(d.contextMenu[k],function(M,L){L.call(b)});else if(m=="onPluginEvent"||m=="onBeforePluginEvent"){if(A=o[k.name||k]){A._fireEvent("onUpdate",k);return A._fireEvent(p,f.slice(3))}}else{if(m=="onPlaylistReplace"){i=[];var N=0;q(k,function(){i.push(new D(this,N++,b))})}if(m=="onClipAdd"){if(k.isInStream)return;k=new D(k,p,b);i.splice(p,0,k);for(J=p+1;J<i.length;J++)i[J].index++}var K=true;if(typeof k=="number"&&k<i.length){u=
k;if(f=i[k])K=f._fireEvent(m,p,A);if(!f||K!==false)K=g._fireEvent(m,p,A,f)}q(t[m],function(){K=this.call(b,k,p);this.cached&&t[m].splice(J,1);if(K===false)return false;J++});return K}}};if(typeof a=="string"){var H=document.getElementById(a);if(!H)throw"Flowplayer cannot access element: "+a;a=H}(function(){function f(k){var p=b.hasiPadSupport&&b.hasiPadSupport();if(/iPad|iPhone|iPod/i.test(navigator.userAgent)&&!/.flv$/i.test(i[0].url)&&!p)return true;!b.isLoaded()&&b._fireEvent("onBeforeClick")!==
false&&b.load();return I(k)}if($f(a)){$f(a).getParent().innerHTML="";s=$f(a).getIndex();j[s]=b}else{j.push(b);s=j.length-1}E=parseInt(a.style.height,10)||a.clientHeight;h=a.id||"fp"+B();n=c.id||h+"_api";c.id=n;d.playerId=h;if(typeof d=="string")d={clip:{url:d}};if(typeof d.clip=="string")d.clip={url:d.clip};d.clip=d.clip||{};if(a.getAttribute("href",2)&&!d.clip.url)d.clip.url=a.getAttribute("href",2);g=new D(d.clip,-1,b);d.playlist=d.playlist||[d.clip];var m=0;q(d.playlist,function(){var k=this;if(typeof k==
"object"&&k.length)k={url:""+k};q(d.clip,function(p,A){if(A!==undefined&&k[p]===undefined&&typeof A!="function")k[p]=A});d.playlist[m]=k;k=new D(k,m,b);i.push(k);m++});q(d,function(k,p){if(typeof p=="function"){g[k]?g[k](p):z(t,k,p);delete d[k]}});q(d.plugins,function(k,p){if(p)o[k]=new e(k,p,b)});if(!d.plugins||d.plugins.controls===undefined)o.controls=new e("controls",null,b);o.canvas=new e("canvas",null,b);C=a.innerHTML;setTimeout(function(){if(C.replace(/\s/g,"")!=="")if(a.addEventListener)a.addEventListener("click",
f,false);else a.attachEvent&&a.attachEvent("onclick",f);else{a.addEventListener&&a.addEventListener("click",I,false);b.load()}},0)})()}function y(a){this.length=a.length;this.each=function(c){q(a,c)};this.size=function(){return a.length}}var D=function(a,c,d){var b=this,l={},x={};b.index=c;if(typeof a=="string")a={url:a};v(this,a,true);q("Begin*,Start,Pause*,Resume*,Seek*,Stop*,Finish*,LastSecond,Update,BufferFull,BufferEmpty,BufferStop".split(","),function(){var g="on"+this;if(g.indexOf("*")!=-1){g=
g.slice(0,g.length-1);var i="onBefore"+g.slice(2);b[i]=function(o){z(x,i,o);return b}}b[g]=function(o){z(x,g,o);return b};if(c==-1){if(b[i])d[i]=b[i];if(b[g])d[g]=b[g]}});v(this,{onCuepoint:function(g,i){if(arguments.length==1){l.embedded=[null,g];return b}if(typeof g=="number")g=[g];var o=B();l[o]=[g,i];d.isLoaded()&&d._api().fp_addCuepoints(g,c,o);return b},update:function(g){v(b,g);d.isLoaded()&&d._api().fp_updateClip(g,c);var i=d.getConfig();v(c==-1?i.clip:i.playlist[c],g,true)},_fireEvent:function(g,
i,o,t){if(g=="onLoad"){q(l,function(s,u){u[0]&&d._api().fp_addCuepoints(u[0],c,s)});return false}t=t||b;if(g=="onCuepoint"){var h=l[i];if(h)return h[1].call(d,t,o)}if(i&&"onBeforeBegin,onMetaData,onStart,onUpdate,onResume".indexOf(g)!=-1){v(t,i);if(i.metaData)if(t.duration)t.fullDuration=i.metaData.duration;else t.duration=i.metaData.duration}var n=true;q(x[g],function(){n=this.call(d,t,i,o)});return n}});if(a.onCuepoint){var C=a.onCuepoint;b.onCuepoint.apply(b,typeof C=="function"?[C]:C);delete a.onCuepoint}q(a,
function(g,i){if(typeof i=="function"){z(x,g,i);delete a[g]}});if(c==-1)d.onCuepoint=this.onCuepoint},e=function(a,c,d,b){var l=this,x={},C=false;b&&v(x,b);q(c,function(g,i){if(typeof i=="function"){x[g]=i;delete c[g]}});v(this,{animate:function(g,i,o){if(!g)return l;if(typeof i=="function"){o=i;i=500}if(typeof g=="string"){var t=g;g={};g[t]=i;i=500}if(o){var h=B();x[h]=o}if(i===undefined)i=500;c=d._api().fp_animate(a,g,i,h);return l},css:function(g,i){if(i!==undefined){var o={};o[g]=i;g=o}c=d._api().fp_css(a,
g);v(l,c);return l},show:function(){this.display="block";d._api().fp_showPlugin(a);return l},hide:function(){this.display="none";d._api().fp_hidePlugin(a);return l},toggle:function(){this.display=d._api().fp_togglePlugin(a);return l},fadeTo:function(g,i,o){if(typeof i=="function"){o=i;i=500}if(o){var t=B();x[t]=o}this.display=d._api().fp_fadeTo(a,g,i,t);this.opacity=g;return l},fadeIn:function(g,i){return l.fadeTo(1,g,i)},fadeOut:function(g,i){return l.fadeTo(0,g,i)},getName:function(){return a},
getPlayer:function(){return d},_fireEvent:function(g,i){if(g=="onUpdate"){var o=d._api().fp_getPlugin(a);if(!o)return;v(l,o);delete l.methods;if(!C){q(o.methods,function(){var t=""+this;l[t]=function(){var h=[].slice.call(arguments);h=d._api().fp_invoke(a,t,h);return h==="undefined"||h===undefined?l:h}});C=true}}if(o=x[g]){o=o.apply(l,i);g.slice(0,1)=="_"&&delete x[g];return o}return l}})},j=[];window.flowplayer=window.$f=function(){var a=null,c=arguments[0];if(!arguments.length){q(j,function(){if(this.isLoaded()){a=
this;return false}});return a||j[0]}if(arguments.length==1)if(typeof c=="number")return j[c];else{if(c=="*")return new y(j);q(j,function(){if(this.id()==c.id||this.id()==c||this.getParent()==c){a=this;return false}});return a}if(arguments.length>1){var d=arguments[1],b=arguments.length==3?arguments[2]:{};if(typeof d=="string")d={src:d};d=v({bgcolor:"#000000",version:[9,0],expressInstall:"http://static.flowplayer.org/swf/expressinstall.swf",cachebusting:true},d);if(typeof c=="string")if(c.indexOf(".")!=
-1){var l=[];q(r(c),function(){l.push(new G(this,w(d),w(b)))});return new y(l)}else{var x=document.getElementById(c);return new G(x!==null?x:c,d,b)}else if(c)return new G(c,d,b)}return null};v(window.$f,{fireEvent:function(){var a=[].slice.call(arguments),c=$f(a[0]);return c?c._fireEvent(a.slice(1)):null},addPlugin:function(a,c){G.prototype[a]=c;return $f},each:q,extend:v});if(typeof jQuery=="function")jQuery.fn.flowplayer=function(a,c){if(!arguments.length||typeof arguments[0]=="number"){var d=[];
this.each(function(){var b=$f(this);b&&d.push(b)});return arguments.length?d[arguments[0]]:new y(d)}return this.each(function(){$f(this,w(a),c?w(c):{})})}})();
(function(){function w(e,j){if(j)for(var a in j)if(j.hasOwnProperty(a))e[a]=j[a];return e}function q(e,j){var a=[];for(var c in e)if(e.hasOwnProperty(c))a[c]=j(e[c]);return a}function v(e,j,a){if(y.isSupported(j.version))e.innerHTML=y.getHTML(j,a);else if(j.expressInstall&&y.isSupported([6,65]))e.innerHTML=y.getHTML(w(j,{src:j.expressInstall}),{MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title});else{if(!e.innerHTML.replace(/\s/g,"")){e.innerHTML="<h2>Flash version "+j.version+
" or greater is required</h2><h3>"+(D[0]>0?"Your version is "+D:"You have no flash plugin installed")+"</h3>"+(e.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='"+I+"'>here</a></p>");if(e.tagName=="A")e.onclick=function(){location.href=I}}if(j.onFail){var c=j.onFail.call(this);if(typeof c=="string")e.innerHTML=c}}if(r)window[j.id]=document.getElementById(j.id);w(this,{getRoot:function(){return e},getOptions:function(){return j},getConf:function(){return a},
getApi:function(){return e.firstChild}})}var r=document.all,I="http://www.adobe.com/go/getflashplayer",z=typeof jQuery=="function",B=/(\d+)[^\d]+(\d+)[^\d]*(\d*)/,G={width:"100%",height:"100%",id:"_"+(""+Math.random()).slice(9),allowfullscreen:true,allowscriptaccess:"always",quality:"high",version:[3,0],onFail:null,expressInstall:null,w3c:false,cachebusting:false};window.attachEvent&&window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}});
window.flashembed=function(e,j,a){if(typeof e=="string")e=document.getElementById(e.replace("#",""));if(e){if(typeof j=="string")j={src:j};return new v(e,w(w({},G),j),a)}};var y=w(window.flashembed,{conf:G,getVersion:function(){var e,j;try{j=navigator.plugins["Shockwave Flash"].description.slice(16)}catch(a){try{j=(e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"))&&e.GetVariable("$version")}catch(c){try{j=(e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"))&&e.GetVariable("$version")}catch(d){}}}return(j=
B.exec(j))?[j[1],j[3]]:[0,0]},asString:function(e){if(e===null||e===undefined)return null;var j=typeof e;if(j=="object"&&e.push)j="array";switch(j){case "string":e=e.replace(new RegExp('(["\\\\])',"g"),"\\$1");e=e.replace(/^\s?(\d+\.?\d+)%/,"$1pct");return'"'+e+'"';case "array":return"["+q(e,function(c){return y.asString(c)}).join(",")+"]";case "function":return'"function()"';case "object":j=[];for(var a in e)e.hasOwnProperty(a)&&j.push('"'+a+'":'+y.asString(e[a]));return"{"+j.join(",")+"}"}return String(e).replace(/\s/g,
" ").replace(/\'/g,'"')},getHTML:function(e,j){e=w({},e);var a='<object width="'+e.width+'" height="'+e.height+'" id="'+e.id+'" name="'+e.id+'"';if(e.cachebusting)e.src+=(e.src.indexOf("?")!=-1?"&":"?")+Math.random();a+=e.w3c||!r?' data="'+e.src+'" type="application/x-shockwave-flash"':' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';a+=">";if(e.w3c||r)a+='<param name="movie" value="'+e.src+'" />';e.width=e.height=e.id=e.w3c=e.src=null;e.onFail=e.version=e.expressInstall=null;for(var c in e)if(e[c])a+=
'<param name="'+c+'" value="'+e[c]+'" />';c="";if(j){for(var d in j)if(j[d]){var b=j[d];c+=d+"="+(/function|object/.test(typeof b)?y.asString(b):b)+"&"}c=c.slice(0,-1);a+='<param name="flashvars" value=\''+c+"' />"}a+="</object>";return a},isSupported:function(e){return D[0]>e[0]||D[0]==e[0]&&D[1]>=e[1]}}),D=y.getVersion();if(z){jQuery.tools=jQuery.tools||{version:"3.2.4"};jQuery.tools.flashembed={conf:G};jQuery.fn.flashembed=function(e,j){return this.each(function(){$(this).data("flashembed",flashembed(this,
e,j))})}}})();(function(w,q){function v(h,n){for(var s=[],u=0;u<h.length;u++)s.push(h[u]);for(u=0;u<s.length;u++)n(s[u])}function r(){v([D,e],function(h){v(q.getElementsByTagName(h),function(n){function s(E){return n.canPlayType(E)||F&&E.search("mp4")>-1}var u=true,F=navigator.userAgent.toLowerCase().search("android")>-1;if(n.canPlayType)if(n.src){if(s(I(h,n.src)))u=false}else v(n.getElementsByTagName("source"),function(E){if(s(I(h,E.src,E.type)))u=false});if(u)r.createFallback(h,n);else F&&n.addEventListener("click",
function(){n.play()},false)})})}function I(h,n,s){return s||i[h][n.split(".").slice(-1)[0]]||C[h]}function z(h,n){var s=h.getAttribute(n);return s==true||typeof s=="string"}function B(h){if(h.substr(0,1)=="/")return o+h;if(h.substr(0,1)=="."||!h.match(/^\s*\w+:\/\//))return t+h;return h}function G(h,n,s){var u=h.getAttribute(n);if(u)return u+"px";if(h.currentStyle)h=h.currentStyle[n];else if(w.getComputedStyle)h=q.defaultView.getComputedStyle(h,null).getPropertyValue(n);else return s;if(h=="auto")return s;
return h}function y(h){return h.match(/\s*([\w-]+\/[\w-]+)(;|\s|$)/)[1]}var D="video",e="audio";q.createElement(D).canPlayType||v(["abbr","article","aside","audio","canvas","details","figcaption","figure","footer","header","hgroup","mark","menu","meter","nav","output","progress","section","summary","time","video","source"],function(h){q.createElement(h)});var j="";v(q.getElementsByTagName("script"),function(h){h=h.src;if(h.match(/html5media(\.min|)\.js/))j=h.split("/").slice(0,-1).join("/")+"/"});
r.flowplayerSwf=j+"flowplayer.swf";r.flowplayerAudioSwf=j+"flowplayer.audio.swf";r.flowplayerControlsSwf=j+"flowplayer.controls.swf";var a=r.THEORA_FORMAT='video/ogg; codecs="theora, vorbis"',c=r.H264_FORMAT='video/mp4; codecs="avc1.42E01E, mp4a.40.2"',d=r.VORBIS_FORMAT='audio/ogg; codecs="vorbis"',b=r.M4A_FORMAT="audio/x-m4a;",l=r.MP3_FORMAT="audio/mpeg;",x=r.WAV_FORMAT='audio/wav; codecs="1"',C=r.assumedFormats={video:c,audio:l},g=r.fallbackFormats=[r.H264_FORMAT,r.M4A_FORMAT,r.MP3_FORMAT],i=r.fileExtensions=
{video:{ogg:a,ogv:a,avi:c,mp4:c,mkv:c,h264:c,"264":c,avc:c,m4v:c,"3gp":c,"3gpp":c,"3g2":c,mpg:c,mpeg:c},audio:{ogg:d,oga:d,aac:b,m4a:b,mp3:l,wav:x}},o=w.location.protocol+"//"+w.location.host,t=String(w.location);v(q.getElementsByTagName("base"),function(h){if(h.href)t=h.href});t=t.split("/").slice(0,-1).join("/")+"/";r.configureFlowplayer=function(h,n,s){return s};r.createFallback=function(h,n){var s=z(n,"controls"),u=n.getAttribute("poster")||"",F=n.getAttribute("src")||"",E;if(F)E=I(h,F);else v(n.getElementsByTagName("source"),
function(k){var p=k.getAttribute("src");p&&!F&&v(g,function(A){E=I(h,p,k.getAttribute("type"));if(y(E)==y(A))F=p})});var H=q.createElement("span");H.id=n.id;H.className=n.className;H.title=n.title;H.style.display="block";H.style.width=G(n,"width","300px");H.style.height=G(n,"height","24px");n.parentNode.replaceChild(H,n);var f=(n.getAttribute("preload")||"").toLowerCase(),m=[];u&&m.push({url:B(u)});if(F)m.push({url:B(F),autoPlay:z(n,"autoplay"),autoBuffering:z(n,"autobuffer")||z(n,"preload")&&(f==
""||f=="auto"),onBeforeFinish:function(){return!z(n,"loop")}});u={controls:s&&{url:B(r.flowplayerControlsSwf),fullscreen:false,autoHide:h==D&&"always"||"never"}||null};if(y(E)==y(l)){u.audio={url:B(r.flowplayerAudioSwf)};s||(u.controls={url:B(r.flowplayerControlsSwf),display:"none"});m.slice(-1)[0].autoBuffering=false}s={play:null,playlist:m,clip:{scaling:"fit",fadeInSpeed:0,fadeOutSpeed:0},plugins:u};r.configureFlowplayer(h,n,s);flowplayer(H,{src:B(r.flowplayerSwf),wmode:"opaque"},s)};if(w.jQuery)jQuery(r);
else w.DomReady&&DomReady.ready(r);w.html5media=r})(this,document);

