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