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

