(function(){function J(a){console.log("$f.fireEvent",[].slice.call(a))}function w(a){if(!a||typeof a!="object")return a;var d=new a.constructor;for(var c in a)if(a.hasOwnProperty(c))d[c]=w(a[c]);return d}function q(a,d){if(a){var c,m=0,f=a.length;if(f===undefined)for(c in a){if(d.call(a[c],c,a[c])===false)break}else for(c=a[0];m<f&&d.call(c,m,c)!==false;c=a[++m]);return a}}function G(a){return document.getElementById(a)}function v(a,d,c){if(typeof d!="object")return a;a&&d&&q(d,function(m,f){if(!c||
typeof f!="function")a[m]=f});return a}function B(a){var d=a.indexOf(".");if(d!=-1){var c=a.substring(0,d)||"*",m=a.substring(d+1,a.length),f=[];q(document.getElementsByTagName(c),function(){this.className&&this.className.indexOf(m)!=-1&&f.push(this)});return f}}function I(a){a=a||window.event;if(a.preventDefault){a.stopPropagation();a.preventDefault()}else{a.returnValue=false;a.cancelBubble=true}return false}function z(a,d,c){a[d]=a[d]||[];a[d].push(c)}function A(){return"_"+(""+Math.random()).substring(2,
10)}function t(a,d,c){function m(){function g(j){!f.isLoaded()&&f._fireEvent("onBeforeClick")!==false&&f.load();return I(j)}if($f(a)){$f(a).getParent().innerHTML="";C=$f(a).getIndex();r[C]=f}else{r.push(f);C=r.length-1}L=parseInt(a.style.height,10)||a.clientHeight;if(typeof d=="string")d={src:d};u=a.id||"fp"+A();D=d.id||u+"_api";d.id=D;c.playerId=u;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 e(c.clip,-1,f);c.playlist=c.playlist||[c.clip];var n=0;q(c.playlist,function(){var j=this;if(typeof j=="object"&&j.length)j={url:""+j};q(c.clip,function(p,x){if(x!==undefined&&j[p]===undefined&&typeof x!="function")j[p]=x});c.playlist[n]=j;j=new e(j,n,f);i.push(j);n++});q(c,function(j,p){if(typeof p=="function"){h[j]?h[j](p):z(s,j,p);delete c[j]}});q(c.plugins,function(j,p){if(p)o[j]=new l(j,p,f)});if(!c.plugins||c.plugins.controls===undefined)o.controls=new l("controls",
null,f);o.canvas=new l("canvas",null,f);d.bgcolor=d.bgcolor||"#000000";d.version=d.version||[9,0];d.expressInstall="http://www.flowplayer.org/swf/expressinstall.swf";y=a.innerHTML;if(y.replace(/\s/g,"")!=="")if(a.addEventListener)a.addEventListener("click",g,false);else a.attachEvent&&a.attachEvent("onclick",g);else{a.addEventListener&&a.addEventListener("click",I,false);f.load()}}var f=this,k=null,y,h,i=[],o={},s={},u,D,C,H,M,L;v(f,{id:function(){return u},isLoaded:function(){return k!==null},getParent:function(){return a},
hide:function(g){if(g)a.style.height="0px";if(k)k.style.height="0px";return f},show:function(){a.style.height=L+"px";if(k)k.style.height=M+"px";return f},isHidden:function(){return k&&parseInt(k.style.height,10)===0},load:function(g){if(!k&&f._fireEvent("onBeforeLoad")!==false){q(r,function(){this.unload()});if((y=a.innerHTML)&&!flashembed.isSupported(d.version))a.innerHTML="";flashembed(a,d,{config:c});if(g){g.cached=true;z(s,"onLoad",g)}}return f},unload:function(){if(y.replace(/\s/g,"")!==""){if(f._fireEvent("onBeforeUnload")===
false)return f;try{if(k){k.fp_close();f._fireEvent("onUnload")}}catch(g){}k=null;a.innerHTML=y}return f},getClip:function(g){if(g===undefined)g=H;return i[g]},getCommonClip:function(){return h},getPlaylist:function(){return i},getPlugin:function(g){var n=o[g];if(!n&&f.isLoaded()){var j=f._api().fp_getPlugin(g);if(j){n=new l(g,j,f);o[g]=n}}return n},getScreen:function(){return f.getPlugin("screen")},getControls:function(){return f.getPlugin("controls")},getConfig:function(g){return g?w(c):c},getFlashParams:function(){return d},
loadPlugin:function(g,n,j,p){if(typeof j=="function"){p=j;j={}}var x=p?A():"_";f._api().fp_loadPlugin(g,n,j,x);n={};n[x]=p;p=new l(g,null,f,n);return o[g]=p},getState:function(){return k?k.fp_getState():-1},play:function(g,n){function j(){g!==undefined?f._api().fp_play(g,n):f._api().fp_play()}k?j():f.load(function(){j()});return f},getVersion:function(){if(k){var g=k.fp_getVersion();g.push("flowplayer.js 3.1.4");return g}return"flowplayer.js 3.1.4"},_api:function(){if(!k)throw"Flowplayer "+f.id()+
" not loaded when calling an API method";return k},setClip:function(g){f.setPlaylist([g]);return f},getIndex:function(){return C}});q("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 n="onBefore"+g.substring(2);f[n]=function(j){z(s,n,j);return f}}f[g]=function(j){z(s,g,j);return f}});q("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;f[g]=function(n,j){if(!k)return f;var p=null;p=n!==undefined&&j!==undefined?k["fp_"+g](n,j):n===undefined?k["fp_"+g]():k["fp_"+g](n);return p==="undefined"||p===undefined?f:p}});f._fireEvent=function(g){if(typeof g=="string")g=[g];var n=g[0],j=g[1],p=g[2],x=g[3],E=0;c.debug&&J(g);if(!k&&n=="onLoad"&&j=="player"){k=k||G(D);M=k.clientHeight;q(i,function(){this._fireEvent("onLoad")});q(o,function(N,K){K._fireEvent("onUpdate")});h._fireEvent("onLoad")}if(!(n=="onLoad"&&j!="player")){if(n==
"onError")if(typeof j=="string"||typeof j=="number"&&typeof p=="number"){j=p;p=x}if(n=="onContextMenu")q(c.contextMenu[j],function(N,K){K.call(f)});else if(n=="onPluginEvent"){if(x=o[j.name||j]){x._fireEvent("onUpdate",j);x._fireEvent(p,g.slice(3))}}else{if(n=="onPlaylistReplace"){i=[];var O=0;q(j,function(){i.push(new e(this,O++,f))})}if(n=="onClipAdd"){if(j.isInStream)return;j=new e(j,p,f);i.splice(p,0,j);for(E=p+1;E<i.length;E++)i[E].index++}var F=true;if(typeof j=="number"&&j<i.length){H=j;if(g=
i[j])F=g._fireEvent(n,p,x);if(!g||F!==false)F=h._fireEvent(n,p,x,g)}q(s[n],function(){F=this.call(f,j,p);this.cached&&s[n].splice(E,1);if(F===false)return false;E++});return F}}};typeof a=="string"?flashembed.domReady(function(){var g=G(a);if(g){a=g;m()}else throw"Flowplayer cannot access element: "+a;}):m()}function b(a){this.length=a.length;this.each=function(d){q(a,d)};this.size=function(){return a.length}}var e=function(a,d,c){var m=this,f={},k={};m.index=d;if(typeof a=="string")a={url:a};v(this,
a,true);q("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 i="onBefore"+h.substring(2);m[i]=function(o){z(k,i,o);return m}}m[h]=function(o){z(k,h,o);return m};if(d==-1){if(m[i])c[i]=m[i];if(m[h])c[h]=m[h]}});v(this,{onCuepoint:function(h,i){if(arguments.length==1){f.embedded=[null,h];return m}if(typeof h=="number")h=[h];var o=A();f[o]=[h,i];c.isLoaded()&&
c._api().fp_addCuepoints(h,d,o);return m},update:function(h){v(m,h);c.isLoaded()&&c._api().fp_updateClip(h,d);var i=c.getConfig();v(d==-1?i.clip:i.playlist[d],h,true)},_fireEvent:function(h,i,o,s){if(h=="onLoad"){q(f,function(C,H){H[0]&&c._api().fp_addCuepoints(H[0],d,C)});return false}s=s||m;if(h=="onCuepoint"){var u=f[i];if(u)return u[1].call(c,s,o)}if(i&&"onBeforeBegin,onMetaData,onStart,onUpdate,onResume".indexOf(h)!=-1){v(s,i);if(i.metaData)if(s.duration)s.fullDuration=i.metaData.duration;else s.duration=
i.metaData.duration}var D=true;q(k[h],function(){D=this.call(c,s,i,o)});return D}});if(a.onCuepoint){var y=a.onCuepoint;m.onCuepoint.apply(m,typeof y=="function"?[y]:y);delete a.onCuepoint}q(a,function(h,i){if(typeof i=="function"){z(k,h,i);delete a[h]}});if(d==-1)c.onCuepoint=this.onCuepoint},l=function(a,d,c,m){var f={},k=this,y=false;m&&v(f,m);q(d,function(h,i){if(typeof i=="function"){f[h]=i;delete d[h]}});v(this,{animate:function(h,i,o){if(!h)return k;if(typeof i=="function"){o=i;i=500}if(typeof h==
"string"){var s=h;h={};h[s]=i;i=500}if(o){var u=A();f[u]=o}if(i===undefined)i=500;d=c._api().fp_animate(a,h,i,u);return k},css:function(h,i){if(i!==undefined){var o={};o[h]=i;h=o}d=c._api().fp_css(a,h);v(k,d);return k},show:function(){this.display="block";c._api().fp_showPlugin(a);return k},hide:function(){this.display="none";c._api().fp_hidePlugin(a);return k},toggle:function(){this.display=c._api().fp_togglePlugin(a);return k},fadeTo:function(h,i,o){if(typeof i=="function"){o=i;i=500}if(o){var s=
A();f[s]=o}this.display=c._api().fp_fadeTo(a,h,i,s);this.opacity=h;return k},fadeIn:function(h,i){return k.fadeTo(1,h,i)},fadeOut:function(h,i){return k.fadeTo(0,h,i)},getName:function(){return a},getPlayer:function(){return c},_fireEvent:function(h,i){if(h=="onUpdate"){var o=c._api().fp_getPlugin(a);if(!o)return;v(k,o);delete k.methods;if(!y){q(o.methods,function(){var s=""+this;k[s]=function(){var u=[].slice.call(arguments);u=c._api().fp_invoke(a,s,u);return u==="undefined"||u===undefined?k:u}});
y=true}}if(o=f[h]){o.apply(k,i);h.substring(0,1)=="_"&&delete f[h]}}})},r=[];window.flowplayer=window.$f=function(){var a=null,d=arguments[0];if(!arguments.length){q(r,function(){if(this.isLoaded()){a=this;return false}});return a||r[0]}if(arguments.length==1)if(typeof d=="number")return r[d];else{if(d=="*")return new b(r);q(r,function(){if(this.id()==d.id||this.id()==d||this.getParent()==d){a=this;return false}});return a}if(arguments.length>1){var c=arguments[1],m=arguments.length==3?arguments[2]:
{};if(typeof d=="string")if(d.indexOf(".")!=-1){var f=[];q(B(d),function(){f.push(new t(this,w(c),w(m)))});return new b(f)}else{var k=G(d);return new t(k!==null?k:d,c,m)}else if(d)return new t(d,c,m)}return null};v(window.$f,{fireEvent:function(){var a=[].slice.call(arguments),d=$f(a[0]);return d?d._fireEvent(a.slice(1)):null},addPlugin:function(a,d){t.prototype[a]=d;return $f},each:q,extend:v});if(typeof jQuery=="function")jQuery.prototype.flowplayer=function(a,d){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 b(c)}return this.each(function(){$f(this,w(a),d?w(d):{})})}})();
(function(){function J(){if(t.done)return false;var b=document;if(b&&b.getElementsByTagName&&b.getElementById&&b.body){clearInterval(t.timer);t.timer=null;for(b=0;b<t.ready.length;b++)t.ready[b].call();t.ready=null;t.done=true}}function w(b,e){if(e)for(key in e)if(e.hasOwnProperty(key))b[key]=e[key];return b}function q(b){switch(G(b)){case "string":b=b.replace(new RegExp('(["\\\\])',"g"),"\\$1");b=b.replace(/^\s?(\d+)%/,"$1pct");return'"'+b+'"';case "array":return"["+v(b,function(r){return q(r)}).join(",")+
"]";case "function":return'"function()"';case "object":var e=[];for(var l in b)b.hasOwnProperty(l)&&e.push('"'+l+'":'+q(b[l]));return"{"+e.join(",")+"}"}return String(b).replace(/\s/g," ").replace(/\'/g,'"')}function G(b){if(b===null||b===undefined)return false;var e=typeof b;return e=="object"&&b.push?"array":e}function v(b,e){var l=[];for(var r in b)if(b.hasOwnProperty(r))l[r]=e(b[r]);return l}function B(b,e){var l=w({},b),r=document.all;b='<object width="'+l.width+'" height="'+l.height+'"';if(r&&
!l.id)l.id="_"+(""+Math.random()).substring(9);if(l.id)b+=' id="'+l.id+'"';if(l.cachebusting)l.src+=(l.src.indexOf("?")!=-1?"&":"?")+Math.random();b+=l.w3c||!r?' data="'+l.src+'" type="application/x-shockwave-flash"':' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';b+=">";if(l.w3c||r)b+='<param name="movie" value="'+l.src+'" />';l.width=l.height=l.id=l.w3c=l.src=null;for(var a in l)if(l[a]!==null)b+='<param name="'+a+'" value="'+l[a]+'" />';a="";if(e){for(var d in e)if(e[d]!==null)a+=d+"="+
(typeof e[d]=="object"?q(e[d]):e[d])+"&";a=a.substring(0,a.length-1);b+='<param name="flashvars" value=\''+a+"' />"}b+="</object>";return b}function I(b,e,l){var r=flashembed.getVersion();w(this,{getContainer:function(){return b},getConf:function(){return e},getVersion:function(){return r},getFlashvars:function(){return l},getApi:function(){return b.firstChild},getHTML:function(){return B(e,l)}});var a=e.version,d=e.expressInstall,c=!a||flashembed.isSupported(a);if(c){e.onFail=e.version=e.expressInstall=
null;b.innerHTML=B(e,l)}else if(a&&d&&flashembed.isSupported([6,65])){w(e,{src:d});l={MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title};b.innerHTML=B(e,l)}else if(b.innerHTML.replace(/\s/g,"")===""){b.innerHTML="<h2>Flash version "+a+" or greater is required</h2><h3>"+(r[0]>0?"Your version is "+r:"You have no flash plugin installed")+"</h3>"+(b.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(b.tagName=="A")b.onclick=function(){location.href="http://www.adobe.com/go/getflashplayer"}}if(!c&&e.onFail){a=e.onFail.call(this);if(typeof a=="string")b.innerHTML=a}if(document.all)window[e.id]=document.getElementById(e.id)}var z=typeof jQuery=="function",A={width:"100%",height:"100%",allowfullscreen:true,allowscriptaccess:"always",quality:"high",version:null,onFail:null,expressInstall:null,w3c:false,cachebusting:false};if(z){jQuery.tools=jQuery.tools||{};jQuery.tools.flashembed={version:"1.0.4",
conf:A}}var t=z?jQuery:function(b){if(t.done)return b();if(t.timer)t.ready.push(b);else{t.ready=[b];t.timer=setInterval(J,13)}};window.attachEvent&&window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}});window.flashembed=function(b,e,l){if(typeof b=="string"){var r=document.getElementById(b);if(r)b=r;else{t(function(){flashembed(b,e,l)});return}}if(b){if(typeof e=="string")e={src:e};r=w({},A);w(r,e);return new I(b,r,l)}};w(window.flashembed,
{getVersion:function(){var b=[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");b=parseInt(e.replace(/^(.*)\..*$/,"$1"),10);e=/r/.test(e)?parseInt(e.replace(/^.*r(.*)$/,"$1"),10):0;b=[b,e]}}else if(window.ActiveXObject){try{e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(l){try{e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");b=
[6,0];e.AllowScriptAccess="always"}catch(r){if(b[0]==6)return b}try{e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(a){}}if(typeof e=="object"){e=e.GetVariable("$version");if(typeof e!="undefined"){e=e.replace(/^\S+\s+(.*)$/,"$1").split(",");b=[parseInt(e[0],10),parseInt(e[2],10)]}}}return b},isSupported:function(b){var e=flashembed.getVersion();return e[0]>b[0]||e[0]==b[0]&&e[1]>=b[1]},domReady:t,asString:q,getHTML:B});if(z)jQuery.fn.flashembed=function(b,e){var l=null;this.each(function(){l=
flashembed(this,b,e)});return b.api===false?this:l}})();

