(function(){function a(n){console.log("$f.fireEvent",[].slice.call(n))}function u(n){var i,t;if(!n||typeof n!="object")return n;i=new n.constructor;for(t in n)n.hasOwnProperty(t)&&(i[t]=u(n[t]));return i}function n(n,t){var i,r,f,u;if(n){if(r=0,f=n.length,f===undefined){for(i in n)if(t.call(n[i],i,n[i])===!1)break}else for(u=n[0];r<f&&t.call(u,r,u)!==!1;u=n[++r]);return n}}function h(n){return document.getElementById(n)}function t(t,i,r){return typeof i!="object"?t:(t&&i&&n(i,function(n,i){r&&typeof i=="function"||(t[n]=i)}),t)}function v(t){var i=t.indexOf(".");if(i!=-1){var u=t.slice(0,i)||"*",f=t.slice(i+1,t.length),r=[];return n(document.getElementsByTagName(u),function(){this.className&&this.className.indexOf(f)!=-1&&r.push(this)}),r}}function l(n){return n=n||window.event,n.preventDefault?(n.stopPropagation(),n.preventDefault()):(n.returnValue=!1,n.cancelBubble=!0),!1}function r(n,t,i){n[t]=n[t]||[];n[t].push(i)}function f(){return"_"+(""+Math.random()).slice(2,10)}function s(s,c,v){function st(){function u(n){return y.isLoaded()||y._fireEvent("onBeforeClick")===!1||y.load(),l(n)}$f(s)?($f(s).getParent().innerHTML="",it=$f(s).getIndex(),i[it]=y):(i.push(y),it=i.length-1);ot=parseInt(s.style.height,10)||s.clientHeight;tt=s.id||"fp"+f();rt=c.id||tt+"_api";c.id=rt;v.playerId=tt;typeof v=="string"&&(v={clip:{url:v}});typeof v.clip=="string"&&(v.clip={url:v.clip});v.clip=v.clip||{};s.getAttribute("href",2)&&!v.clip.url&&(v.clip.url=s.getAttribute("href",2));d=new o(v.clip,-1,y);v.playlist=v.playlist||[v.clip];var t=0;n(v.playlist,function(){var i=this;typeof i=="object"&&i.length&&(i={url:""+i});n(v.clip,function(n,t){t!==undefined&&i[n]===undefined&&typeof t!="function"&&(i[n]=t)});v.playlist[t]=i;i=new o(i,t,y);w.push(i);t++});n(v,function(n,t){typeof t=="function"&&(d[n]?d[n](t):r(g,n,t),delete v[n])});n(v.plugins,function(n,t){t&&(b[n]=new e(n,t,y))});v.plugins&&v.plugins.controls!==undefined||(b.controls=new e("controls",null,y));b.canvas=new e("canvas",null,y);k=s.innerHTML;k.replace(/\s/g,"")!==""?s.addEventListener?s.addEventListener("click",u,!1):s.attachEvent&&s.attachEvent("onclick",u):(s.addEventListener&&s.addEventListener("click",l,!1),y.load())}var y=this,p=null,nt=!1,k,d,w=[],b={},g={},tt,rt,it,ft,et,ot,ut;if(t(y,{id:function(){return tt},isLoaded:function(){return p!==null&&p.fp_play!=undefined&&!nt},getParent:function(){return s},hide:function(n){return n&&(s.style.height="0px"),y.isLoaded()&&(p.style.height="0px"),y},show:function(){return s.style.height=ot+"px",y.isLoaded()&&(p.style.height=et+"px"),y},isHidden:function(){return y.isLoaded()&&parseInt(p.style.height,10)===0},load:function(t){if(!y.isLoaded()&&y._fireEvent("onBeforeLoad")!==!1){var u=function(){k=s.innerHTML;k&&!flashembed.isSupported(c.version)&&(s.innerHTML="");flashembed(s,c,{config:v});t&&(t.cached=!0,r(g,"onLoad",t))},f=0;n(i,function(){this.unload(function(){++f==i.length&&u()})})}return y},unload:function(n){if(this.isFullscreen()&&/WebKit/i.test(navigator.userAgent))return n&&n(!1),y;if(k.replace(/\s/g,"")!==""){if(y._fireEvent("onBeforeUnload")===!1)return n&&n(!1),y;nt=!0;try{p&&(p.fp_close(),y._fireEvent("onUnload"))}catch(i){}var t=function(){p=null;s.innerHTML=k;nt=!1;n&&n(!0)};setTimeout(t,50)}else n&&n(!1);return y},getClip:function(n){return n===undefined&&(n=ft),w[n]},getCommonClip:function(){return d},getPlaylist:function(){return w},getPlugin:function(n){var t=b[n],i;return!t&&y.isLoaded()&&(i=y._api().fp_getPlugin(n),i&&(t=new e(n,i,y),b[n]=t)),t},getScreen:function(){return y.getPlugin("screen")},getControls:function(){return y.getPlugin("controls")._fireEvent("onUpdate")},getLogo:function(){try{return y.getPlugin("logo")._fireEvent("onUpdate")}catch(n){}},getPlay:function(){return y.getPlugin("play")._fireEvent("onUpdate")},getConfig:function(n){return n?u(v):v},getFlashParams:function(){return c},loadPlugin:function(n,t,i,r){var u,o,s;return typeof i=="function"&&(r=i,i={}),u=r?f():"_",y._api().fp_loadPlugin(n,t,i,u),o={},o[u]=r,s=new e(n,null,y,o),b[n]=s,s},getState:function(){return y.isLoaded()?p.fp_getState():-1},play:function(n,t){var i=function(){n!==undefined?y._api().fp_play(n,t):y._api().fp_play()};return y.isLoaded()?i():nt?setTimeout(function(){y.play(n,t)},50):y.load(function(){i()}),y},getVersion:function(){var t="flowplayer.js 3.2.0",n;return y.isLoaded()?(n=p.fp_getVersion(),n.push(t),n):t},_api:function(){if(!y.isLoaded())throw"Flowplayer "+y.id()+" not loaded when calling an API method";return p},setClip:function(n){return y.setPlaylist([n]),y},getIndex:function(){return it}}),n("Click*,Load*,Unload*,Keypress*,Volume*,Mute*,Unmute*,PlaylistReplace,ClipAdd,Fullscreen*,FullscreenExit,Error,MouseOver,MouseOut".split(","),function(){var n="on"+this,t;n.indexOf("*")!=-1&&(n=n.slice(0,n.length-1),t="onBefore"+n.slice(2),y[t]=function(n){return r(g,t,n),y});y[n]=function(t){return r(g,n,t),y}}),n("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 n=this;y[n]=function(t,i){if(!y.isLoaded())return y;var r=null;return r=t!==undefined&&i!==undefined?p["fp_"+n](t,i):t===undefined?p["fp_"+n]():p["fp_"+n](t),r==="undefined"||r===undefined?y:r}}),y._fireEvent=function(t){var k,c,nt,f,s;typeof t=="string"&&(t=[t]);var r=t[0],i=t[1],u=t[2],l=t[3],e=0;if(v.debug&&a(t),y.isLoaded()||r!="onLoad"||i!="player"||(p=p||h(rt),et=p.clientHeight,n(w,function(){this._fireEvent("onLoad")}),n(b,function(n,t){t._fireEvent("onUpdate")}),d._fireEvent("onLoad")),r!="onLoad"||i=="player"){if(r=="onError"&&(typeof i=="string"||typeof i=="number"&&typeof u=="number")&&(i=u,u=l),r=="onContextMenu"){n(v.contextMenu[i],function(n,t){t.call(y)});return}if(r=="onPluginEvent"||r=="onBeforePluginEvent")return(k=i.name||i,c=b[k],c)?(c._fireEvent("onUpdate",i),c._fireEvent(u,t.slice(3))):void 0;if(r=="onPlaylistReplace"&&(w=[],nt=0,n(i,function(){w.push(new o(this,nt++,y))})),r=="onClipAdd"){if(i.isInStream)return;for(i=new o(i,u,y),w.splice(u,0,i),e=u+1;e<w.length;e++)w[e].index++}return f=!0,typeof i=="number"&&i<w.length&&(ft=i,s=w[i],s&&(f=s._fireEvent(r,u,l)),s&&f===!1||(f=d._fireEvent(r,u,l,s))),n(g[r],function(){if(f=this.call(y,i,u),this.cached&&g[r].splice(e,1),f===!1)return!1;e++}),f}},typeof s=="string")if(ut=h(s),ut)s=ut,st();else throw"Flowplayer cannot access element: "+s;else st()}function c(t){this.length=t.length;this.each=function(i){n(t,i)};this.size=function(){return t.length}}var o=function(i,u,e){var o=this,s={},h={},c;o.index=u;typeof i=="string"&&(i={url:i});t(this,i,!0);n("Begin*,Start,Pause*,Resume*,Seek*,Stop*,Finish*,LastSecond,Update,BufferFull,BufferEmpty,BufferStop".split(","),function(){var n="on"+this,t;n.indexOf("*")!=-1&&(n=n.slice(0,n.length-1),t="onBefore"+n.slice(2),o[t]=function(n){return r(h,t,n),o});o[n]=function(t){return r(h,n,t),o};u==-1&&(o[t]&&(e[t]=o[t]),o[n]&&(e[n]=o[n]))});t(this,{onCuepoint:function(n,t){if(arguments.length==1)return s.embedded=[null,n],o;typeof n=="number"&&(n=[n]);var i=f();return s[i]=[n,t],e.isLoaded()&&e._api().fp_addCuepoints(n,u,i),o},update:function(n){t(o,n);e.isLoaded()&&e._api().fp_updateClip(n,u);var i=e.getConfig(),r=u==-1?i.clip:i.playlist[u];t(r,n,!0)},_fireEvent:function(i,r,f,c){var l,a;return i=="onLoad"?(n(s,function(n,t){t[0]&&e._api().fp_addCuepoints(t[0],u,n)}),!1):(c=c||o,i=="onCuepoint"&&(l=s[r],l))?l[1].call(e,c,f):(r&&"onBeforeBegin,onMetaData,onStart,onUpdate,onResume".indexOf(i)!=-1&&(t(c,r),r.metaData&&(c.duration?c.fullDuration=r.metaData.duration:c.duration=r.metaData.duration)),a=!0,n(h[i],function(){a=this.call(e,c,r,f)}),a)}});i.onCuepoint&&(c=i.onCuepoint,o.onCuepoint.apply(o,typeof c=="function"?[c]:c),delete i.onCuepoint);n(i,function(n,t){typeof t=="function"&&(r(h,n,t),delete i[n])});u==-1&&(e.onCuepoint=this.onCuepoint)},e=function(i,r,u,e){var o=this,s={},h=!1;e&&t(s,e);n(r,function(n,t){typeof t=="function"&&(s[n]=t,delete r[n])});t(this,{animate:function(n,t,e){var c,h;return n?(typeof t=="function"&&(e=t,t=500),typeof n=="string"&&(c=n,n={},n[c]=t,t=500),e&&(h=f(),s[h]=e),t===undefined&&(t=500),r=u._api().fp_animate(i,n,t,h),o):o},css:function(n,f){if(f!==undefined){var e={};e[n]=f;n=e}return r=u._api().fp_css(i,n),t(o,r),o},show:function(){return this.display="block",u._api().fp_showPlugin(i),o},hide:function(){return this.display="none",u._api().fp_hidePlugin(i),o},toggle:function(){return this.display=u._api().fp_togglePlugin(i),o},fadeTo:function(n,t,r){if(typeof t=="function"&&(r=t,t=500),r){var e=f();s[e]=r}return this.display=u._api().fp_fadeTo(i,n,t,e),this.opacity=n,o},fadeIn:function(n,t){return o.fadeTo(1,n,t)},fadeOut:function(n,t){return o.fadeTo(0,n,t)},getName:function(){return i},getPlayer:function(){return u},_fireEvent:function(r,f){var e,c,l;if(r=="onUpdate"){if(e=u._api().fp_getPlugin(i),!e)return;t(o,e);delete o.methods;h||(n(e.methods,function(){var n=""+this;o[n]=function(){var r=[].slice.call(arguments),t=u._api().fp_invoke(i,n,r);return t==="undefined"||t===undefined?o:t}}),h=!0)}return(c=s[r],c)?(l=c.apply(o,f),r.slice(0,1)=="_"&&delete s[r],l):o}})},i=[];window.flowplayer=window.$f=function(){var e=null,r=arguments[0],f,o,l,a;if(!arguments.length)return n(i,function(){if(this.isLoaded())return e=this,!1}),e||i[0];if(arguments.length==1)return typeof r=="number"?i[r]:r=="*"?new c(i):(n(i,function(){if(this.id()==r.id||this.id()==r||this.getParent()==r)return e=this,!1}),e);if(arguments.length>1){if(f=arguments[1],o=arguments.length==3?arguments[2]:{},typeof f=="string"&&(f={src:f}),f=t({bgcolor:"#000000",version:[9,0],expressInstall:"http://static.flowplayer.org/swf/expressinstall.swf",cachebusting:!0},f),typeof r=="string")return r.indexOf(".")!=-1?(l=[],n(v(r),function(){l.push(new s(this,u(f),u(o)))}),new c(l)):(a=h(r),new s(a!==null?a:r,f,o));if(r)return new s(r,f,o)}return null};t(window.$f,{fireEvent:function(){var n=[].slice.call(arguments),t=$f(n[0]);return t?t._fireEvent(n.slice(1)):null},addPlugin:function(n,t){return s.prototype[n]=t,$f},each:n,extend:t});typeof jQuery=="function"&&(jQuery.fn.flowplayer=function(n,t){if(!arguments.length||typeof arguments[0]=="number"){var i=[];return this.each(function(){var n=$f(this);n&&i.push(n)}),arguments.length?i[arguments[0]]:new c(i)}return this.each(function(){$f(this,u(n),t?u(t):{})})})})(),function(){function t(n,t){if(t)for(key in t)t.hasOwnProperty(key)&&(n[key]=t[key]);return n}function s(n,t){var r=[],i;for(i in n)n.hasOwnProperty(i)&&(r[i]=t(n[i]));return r}function h(u,e,o){if(n.isSupported(e.version))u.innerHTML=n.getHTML(e,o);else if(e.expressInstall&&n.isSupported([6,65]))u.innerHTML=n.getHTML(t(e,{src:e.expressInstall}),{MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title});else if(u.innerHTML.replace(/\s/g,"")||(u.innerHTML="<h2>Flash version "+e.version+" or greater is required<\/h2><h3>"+(i[0]>0?"Your version is "+i:"You have no flash plugin installed")+"<\/h3>"+(u.tagName=="A"?"<p>Click here to download latest version<\/p>":"<p>Download latest version from <a href='"+f+"'>here<\/a><\/p>"),u.tagName=="A"&&(u.onclick=function(){location.href=f})),e.onFail){var s=e.onFail.call(this);typeof s=="string"&&(u.innerHTML=s)}r&&(window[e.id]=document.getElementById(e.id));t(this,{getRoot:function(){return u},getOptions:function(){return e},getConf:function(){return o},getApi:function(){return u.firstChild}})}var r=document.all,f="http://www.adobe.com/go/getflashplayer",e=typeof jQuery=="function",o=/(\d+)[^\d]+(\d+)[^\d]*(\d*)/,u={width:"100%",height:"100%",id:"_"+(""+Math.random()).slice(9),allowfullscreen:!0,allowscriptaccess:"always",quality:"high",version:[3,0],onFail:null,expressInstall:null,w3c:!1,cachebusting:!1},n,i;window.attachEvent&&window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}});window.flashembed=function(n,i,r){if(typeof n=="string"&&(n=document.getElementById(n.replace("#",""))),n)return typeof i=="string"&&(i={src:i}),new h(n,t(t({},u),i),r)};n=t(window.flashembed,{conf:u,getVersion:function(){var n,t;try{n=navigator.plugins["Shockwave Flash"].description.slice(16)}catch(i){try{t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");n=t&&t.GetVariable("$version")}catch(r){}}return n=o.exec(n),n?[n[1],n[3]]:[0,0]},asString:function(t){var i,u,r;if(t===null||t===undefined)return null;i=typeof t;i=="object"&&t.push&&(i="array");switch(i){case"string":return t=t.replace(new RegExp('(["\\\\])',"g"),"\\$1"),t=t.replace(/^\s?(\d+\.?\d+)%/,"$1pct"),'"'+t+'"';case"array":return"["+s(t,function(t){return n.asString(t)}).join(",")+"]";case"function":return'"function()"';case"object":u=[];for(r in t)t.hasOwnProperty(r)&&u.push('"'+r+'":'+n.asString(t[r]));return"{"+u.join(",")+"}"}return String(t).replace(/\s/g," ").replace(/\'/g,'"')},getHTML:function(i,u){var f,o,e,s,h;i=t({},i);f='<object width="'+i.width+'" height="'+i.height+'" id="'+i.id+'" name="'+i.id+'"';i.cachebusting&&(i.src+=(i.src.indexOf("?")!=-1?"&":"?")+Math.random());f+=i.w3c||!r?' data="'+i.src+'" type="application/x-shockwave-flash"':' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';f+=">";(i.w3c||r)&&(f+='<param name="movie" value="'+i.src+'" />');i.width=i.height=i.id=i.w3c=i.src=null;i.onFail=i.version=i.expressInstall=null;for(o in i)i[o]&&(f+='<param name="'+o+'" value="'+i[o]+'" />');if(e="",u){for(s in u)u[s]&&(h=u[s],e+=s+"="+(/function|object/.test(typeof h)?n.asString(h):h)+"&");e=e.slice(0,-1);f+='<param name="flashvars" value=\''+e+"' />"}return f+"<\/object>"},isSupported:function(n){return i[0]>n[0]||i[0]==n[0]&&i[1]>=n[1]}});i=n.getVersion();e&&(jQuery.tools=jQuery.tools||{version:"3.2.0"},jQuery.tools.flashembed={conf:u},jQuery.fn.flashembed=function(n,t){return this.each(function(){$(this).data("flashembed",flashembed(this,n,t))})})}()