(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}a=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},getPlayer:function(){return Q},_fireEvent:function(W,V,X){if(W=="onUpdate"){var Y=Q._api().fp_getPlugin(P);if(!Y){return }I(O,Y);delete O.methods;if(!U){M(Y.methods,function(){var a=""+this;O[a]=function(){var b=[].slice.call(arguments);var c=Q._api().fp_invoke(P,a,b);return c=="undefined"?O:c}});U=true}}var Z=S[W];if(Z){Z.apply(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()){return e}}catch(f){return e}if(e._fireEvent("onBeforeUnload")===false){return false}Y.fp_close();Y=null;if(X.replace(/\s/g,"")!==""){O.innerHTML=X}e._fireEvent("onUnload");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.6";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){if(typeof q=="string"){q=[q]}var r=q[0];var m=q[1];var l=q[2];var k=q[3];if(Z.debug){G(q)}if(!Y&&r=="onLoad"&&m=="player"){Y=Y||C(V);a=Y.clientHeight;M(P,function(){this._fireEvent("onLoad")});M(S,function(i,s){s._fireEvent("onUpdate")});U._fireEvent("onLoad")}if(r=="onLoad"&&m!="player"){return }if(r=="onError"){if(typeof m=="string"||(typeof m=="number"&&typeof l=="number")){m=l;l=k}}if(r=="onContextMenu"){M(Z.contextMenu[m],function(i,p){p.call(e)});return }if(r=="onPluginEvent"){var f=m.name||m;var g=S[f];if(g){g._fireEvent("onUpdate",m);g._fireEvent(l,q.slice(3))}return }if(r=="onPlaylistReplace"){P=[];var n=0;M(m,function(){P.push(new H(this,n++,e))})}var o=true;if(typeof m=="number"&&m<P.length){d=m;var h=P[m];if(h){o=h._fireEvent(r,l,k)}if(!h||o!==false){o=U._fireEvent(r,l,k,h)}}var j=0;M(b[r],function(){o=this.call(e,m,l);if(this.cached){b[r].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}}}if(typeof Z.clip=="string"){Z.clip={url:Z.clip}}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(typeof h=="string"){h={url:h}}M(Z.clip,function(i,j){if(Z.clip[i]!==undefined&&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(){var O=[].slice.call(arguments);var P=$f(O[0]);return P?P._fireEvent(O.slice(1)):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 E=typeof jQuery=="function";function I(){if(C.done){return false}var K=document;if(K&&K.getElementsByTagName&&K.getElementById&&K.body){clearInterval(C.timer);C.timer=null;for(var J=0;J<C.ready.length;J++){C.ready[J].call()}C.ready=null;C.done=true}}var C=E?jQuery:function(J){if(C.done){return J()}if(C.timer){C.ready.push(J)}else{C.ready=[J];C.timer=setInterval(I,13)}};function F(K,J){if(J){for(key in J){if(J.hasOwnProperty(key)){K[key]=J[key]}}}return K}function G(J){switch(H(J)){case"string":J=J.replace(new RegExp('(["\\\\])',"g"),"\\$1");J=J.replace(/^\s?(\d+)%/,"$1pct");return'"'+J+'"';case"array":return"["+B(J,function(M){return G(M)}).join(",")+"]";case"function":return'"function()"';case"object":var K=[];for(var L in J){if(J.hasOwnProperty(L)){K.push('"'+L+'":'+G(J[L]))}}return"{"+K.join(",")+"}"}return String(J).replace(/\s/g," ").replace(/\'/g,'"')}function H(K){if(K===null||K===undefined){return false}var J=typeof K;return(J=="object"&&K.push)?"array":J}if(window.attachEvent){window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}})}function B(J,M){var L=[];for(var K in J){if(J.hasOwnProperty(K)){L[K]=M(J[K])}}return L}function A(O,Q){var P=document.all;var L='<object width="'+O.width+'" height="'+O.height+'"';if(P&&!O.id){O.id="_"+(""+Math.random()).substring(9)}if(O.id){L+=' id="'+O.id+'"'}if(O.w3c||!P){L+=' data="'+O.src+'" type="application/x-shockwave-flash"'}else{L+=' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'}L+=">";if(O.w3c||P){L+='<param name="movie" value="'+O.src+'" />'}var N=F({},O);N.width=N.height=N.id=N.w3c=N.src=null;for(var J in N){if(N[J]!==null){L+='<param name="'+J+'" value="'+N[J]+'" />'}}var M="";if(Q){for(var K in Q){if(Q[K]!==null){M+=K+"="+(typeof Q[K]=="object"?G(Q[K]):Q[K])+"&"}}M=M.substring(0,M.length-1);L+='<param name="flashvars" value=\''+M+"' />"}L+="</object>";return L}function D(L,O,K){var J=flashembed.getVersion();F(this,{getContainer:function(){return L},getConf:function(){return conf},getVersion:function(){return J},getFlashvars:function(){return K},getApi:function(){return L.firstChild},getHTML:function(){return A(O,K)}});var P=O.version;var Q=O.expressInstall;var N=!P||flashembed.isSupported(P);if(N){O.onFail=O.version=O.expressInstall=null;L.innerHTML=A(O,K)}else{if(P&&Q&&flashembed.isSupported([6,65])){F(O,{src:Q});K={MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title};L.innerHTML=A(O,K)}else{if(L.innerHTML.replace(/\s/g,"")!==""){}else{L.innerHTML="<h2>Flash version "+P+" or greater is required</h2><h3>"+(J[0]>0?"Your version is "+J:"You have no flash plugin installed")+"</h3>"+(L.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(L.tagName=="A"){L.href="http://www.adobe.com/go/getflashplayer"}}}}if(!N&&O.onFail){var M=O.onFail.call(this);if(typeof M=="string"){L.innerHTML=M}}}window.flashembed=function(K,L,J){if(typeof K=="string"){var M=document.getElementById(K);if(M){K=M}else{C(function(){flashembed(K,L,J)});return }}if(!K){return }var N={width:"100%",height:"100%",allowfullscreen:true,allowscriptaccess:"always",quality:"high",version:null,onFail:null,expressInstall:null,w3c:false};if(typeof L=="string"){L={src:L}}F(N,L);return new D(K,N,J)};F(window.flashembed,{getVersion:function(){var L=[0,0];if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){var K=navigator.plugins["Shockwave Flash"].description;if(typeof K!="undefined"){K=K.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var M=parseInt(K.replace(/^(.*)\..*$/,"$1"),10);var Q=/r/.test(K)?parseInt(K.replace(/^.*r(.*)$/,"$1"),10):0;L=[M,Q]}}else{if(window.ActiveXObject){try{var O=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(P){try{O=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");L=[6,0];O.AllowScriptAccess="always"}catch(J){if(L[0]==6){return }}try{O=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(N){}}if(typeof O=="object"){K=O.GetVariable("$version");if(typeof K!="undefined"){K=K.replace(/^\S+\s+(.*)$/,"$1").split(",");L=[parseInt(K[0],10),parseInt(K[2],10)]}}}}return L},isSupported:function(J){var L=flashembed.getVersion();var K=(L[0]>J[0])||(L[0]==J[0]&&L[1]>=J[1]);return K},domReady:C,asString:G,getHTML:A});if(E){jQuery.prototype.flashembed=function(K,J){return this.each(function(){flashembed(this,K,J)})}}})()