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