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