var Aes={};Aes.Cipher=function(e,a){var d=4;var h=a.length/d-1;var g=[[],[],[],[]];for(var f=0;f<4*d;f++){g[f%4][Math.floor(f/4)]=e[f]}g=Aes.AddRoundKey(g,a,0,d);for(var c=1;c<h;c++){g=Aes.SubBytes(g,d);g=Aes.ShiftRows(g,d);g=Aes.MixColumns(g,d);g=Aes.AddRoundKey(g,a,c,d)}g=Aes.SubBytes(g,d);g=Aes.ShiftRows(g,d);g=Aes.AddRoundKey(g,a,h,d);var b=new Array(4*d);for(var f=0;f<4*d;f++){b[f]=g[f%4][Math.floor(f/4)]}return b};Aes.KeyExpansion=function(f){var d=4;var b=f.length/4;var g=b+6;var e=new Array(d*(g+1));var h=new Array(4);for(var c=0;c<b;c++){var a=[f[4*c],f[4*c+1],f[4*c+2],f[4*c+3]];e[c]=a}for(var c=b;c<(d*(g+1));c++){e[c]=new Array(4);for(var j=0;j<4;j++){h[j]=e[c-1][j]}if(c%b==0){h=Aes.SubWord(Aes.RotWord(h));for(var j=0;j<4;j++){h[j]^=Aes.Rcon[c/b][j]}}else{if(b>6&&c%b==4){h=Aes.SubWord(h)}}for(var j=0;j<4;j++){e[c][j]=e[c-b][j]^h[j]}}return e};Aes.SubBytes=function(b,a){for(var d=0;d<4;d++){for(var e=0;e<a;e++){b[d][e]=Aes.Sbox[b[d][e]]}}return b};Aes.ShiftRows=function(d,a){var b=new Array(4);for(var e=1;e<4;e++){for(var f=0;f<4;f++){b[f]=d[e][(f+e)%a]}for(var f=0;f<4;f++){d[e][f]=b[f]}}return d};Aes.MixColumns=function(h,f){for(var j=0;j<4;j++){var e=new Array(4);var d=new Array(4);for(var g=0;g<4;g++){e[g]=h[g][j];d[g]=h[g][j]&128?h[g][j]<<1^283:h[g][j]<<1}h[0][j]=d[0]^e[1]^d[1]^e[2]^e[3];h[1][j]=e[0]^d[1]^e[2]^d[2]^e[3];h[2][j]=e[0]^e[1]^d[2]^e[3]^d[3];h[3][j]=e[0]^d[0]^e[1]^e[2]^d[3]}return h};Aes.AddRoundKey=function(f,a,d,b){for(var e=0;e<4;e++){for(var g=0;g<b;g++){f[e][g]^=a[d*4+g][e]}}return f};Aes.SubWord=function(a){for(var b=0;b<4;b++){a[b]=Aes.Sbox[a[b]]}return a};Aes.RotWord=function(a){var c=a[0];for(var b=0;b<3;b++){a[b]=a[b+1]}a[3]=c;return a};Aes.Sbox=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22];Aes.Rcon=[[0,0,0,0],[1,0,0,0],[2,0,0,0],[4,0,0,0],[8,0,0,0],[16,0,0,0],[32,0,0,0],[64,0,0,0],[128,0,0,0],[27,0,0,0],[54,0,0,0]];var AesCtr={};AesCtr.encrypt=function(j,a,t){var k=16;if(!(t==128||t==192||t==256)){return""}j=Utf8.encode(j);a=Utf8.encode(a);var l=t/8;var f=new Array(l);for(var r=0;r<l;r++){f[r]=isNaN(a.charCodeAt(r))?0:a.charCodeAt(r)}var y=Aes.Cipher(f,Aes.KeyExpansion(f));y=y.concat(y.slice(0,l-16));var e=new Array(k);var s=(new Date()).getTime();var d=Math.floor(s/1000);var g=s%1000;for(var r=0;r<4;r++){e[r]=(d>>>r*8)&255}for(var r=0;r<4;r++){e[r+4]=g&255}var n="";for(var r=0;r<8;r++){n+=String.fromCharCode(e[r])}var v=Aes.KeyExpansion(y);var q=Math.ceil(j.length/k);var m=new Array(q);for(var w=0;w<q;w++){for(var u=0;u<4;u++){e[15-u]=(w>>>u*8)&255}for(var u=0;u<4;u++){e[15-u-4]=(w/4294967296>>>u*8)}var h=Aes.Cipher(e,v);var p=w<q-1?k:(j.length-1)%k+1;var o=new Array(p);for(var r=0;r<p;r++){o[r]=h[r]^j.charCodeAt(w*k+r);o[r]=String.fromCharCode(o[r])}m[w]=o.join("")}var x=n+m.join("");x=Base64.encode(x);return x};AesCtr.decrypt=function(t,e,p){var m=16;if(!(p==128||p==192||p==256)){return""}t=Base64.decode(t);e=Utf8.encode(e);var n=p/8;var j=new Array(n);for(var o=0;o<n;o++){j[o]=isNaN(e.charCodeAt(o))?0:e.charCodeAt(o)}var u=Aes.Cipher(j,Aes.KeyExpansion(j));u=u.concat(u.slice(0,n-16));var f=new Array(8);ctrTxt=t.slice(0,8);for(var o=0;o<8;o++){f[o]=ctrTxt.charCodeAt(o)}var r=Aes.KeyExpansion(u);var g=Math.ceil((t.length-8)/m);var h=new Array(g);for(var s=0;s<g;s++){h[s]=t.slice(8+s*m,8+s*m+m)}t=h;var a=new Array(t.length);for(var s=0;s<g;s++){for(var q=0;q<4;q++){f[15-q]=((s)>>>q*8)&255}for(var q=0;q<4;q++){f[15-q-4]=(((s+1)/4294967296-1)>>>q*8)&255}var l=Aes.Cipher(f,r);var d=new Array(t[s].length);for(var o=0;o<t[s].length;o++){d[o]=l[o]^t[s].charCodeAt(o);d[o]=String.fromCharCode(d[o])}a[s]=d.join("")}var k=a.join("");k=Utf8.decode(k);return k};var Base64={};Base64.code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";Base64.encode=function(n,p){p=(typeof p=="undefined")?false:p;var g,b,a,r,o,k,j,h,i=[],f="",m,q,l;var d=Base64.code;q=p?n.encodeUTF8():n;m=q.length%3;if(m>0){while(m++<3){f+="=";q+="\0"}}for(m=0;m<q.length;m+=3){g=q.charCodeAt(m);b=q.charCodeAt(m+1);a=q.charCodeAt(m+2);r=g<<16|b<<8|a;o=r>>18&63;k=r>>12&63;j=r>>6&63;h=r&63;i[m/3]=d.charAt(o)+d.charAt(k)+d.charAt(j)+d.charAt(h)}l=i.join("");l=l.slice(0,l.length-f.length)+f;return l};Base64.decode=function(n,e){e=(typeof e=="undefined")?false:e;var g,b,a,o,k,i,h,q,j=[],p,m;var f=Base64.code;m=e?n.decodeUTF8():n;for(var l=0;l<m.length;l+=4){o=f.indexOf(m.charAt(l));k=f.indexOf(m.charAt(l+1));i=f.indexOf(m.charAt(l+2));h=f.indexOf(m.charAt(l+3));q=o<<18|k<<12|i<<6|h;g=q>>>16&255;b=q>>>8&255;a=q&255;j[l/4]=String.fromCharCode(g,b,a);if(h==64){j[l/4]=String.fromCharCode(g,b)}if(i==64){j[l/4]=String.fromCharCode(g)}}p=j.join("");return e?p.decodeUTF8():p};var Utf8={};Utf8.encode=function(a){var b=a.replace(/[\u0080-\u07ff]/g,function(e){var d=e.charCodeAt(0);return String.fromCharCode(192|d>>6,128|d&63)});b=b.replace(/[\u0800-\uffff]/g,function(e){var d=e.charCodeAt(0);return String.fromCharCode(224|d>>12,128|d>>6&63,128|d&63)});return b};Utf8.decode=function(b){var a=b.replace(/[\u00c0-\u00df][\u0080-\u00bf]/g,function(e){var d=(e.charCodeAt(0)&31)<<6|e.charCodeAt(1)&63;return String.fromCharCode(d)});a=a.replace(/[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g,function(e){var d=((e.charCodeAt(0)&15)<<12)|((e.charCodeAt(1)&63)<<6)|(e.charCodeAt(2)&63);return String.fromCharCode(d)});return a};(function(){function log(args){console.log("$f.fireEvent",[].slice.call(args))}function clone(obj){if(!obj||typeof obj!="object"){return obj}var temp=new obj.constructor();for(var key in obj){if(obj.hasOwnProperty(key)){temp[key]=clone(obj[key])}}return temp}function each(obj,fn){if(!obj){return}var name,i=0,length=obj.length;if(length===undefined){for(name in obj){if(fn.call(obj[name],name,obj[name])===false){break}}}else{for(var value=obj[0];i<length&&fn.call(value,i,value)!==false;value=obj[++i]){}}return obj}function el(id){return document.getElementById(id)}function extend(to,from,skipFuncs){if(typeof from!="object"){return to}if(to&&from){each(from,function(name,value){if(!skipFuncs||typeof value!="function"){to[name]=value}})}return to}function select(query){var index=query.indexOf(".");if(index!=-1){var tag=query.substring(0,index)||"*";var klass=query.substring(index+1,query.length);var els=[];each(document.getElementsByTagName(tag),function(){if(this.className&&this.className.indexOf(klass)!=-1){els.push(this)}});return els}}function stopEvent(e){e=e||window.event;if(e.preventDefault){e.stopPropagation();e.preventDefault()}else{e.returnValue=false;e.cancelBubble=true}return false}function bind(to,evt,fn){to[evt]=to[evt]||[];to[evt].push(fn)}function makeId(){return"_"+(""+Math.random()).substring(2,10)}var Clip=function(json,index,player){var self=this;var cuepoints={};var listeners={};self.index=index;if(typeof json=="string"){json={url:json}}extend(this,json,true);each(("Begin*,Start,Pause*,Resume*,Seek*,Stop*,Finish*,LastSecond,Update,BufferFull,BufferEmpty,BufferStop").split(","),function(){var evt="on"+this;if(evt.indexOf("*")!=-1){evt=evt.substring(0,evt.length-1);var before="onBefore"+evt.substring(2);self[before]=function(fn){bind(listeners,before,fn);return self}}self[evt]=function(fn){bind(listeners,evt,fn);return self};if(index==-1){if(self[before]){player[before]=self[before]}if(self[evt]){player[evt]=self[evt]}}});extend(this,{onCuepoint:function(points,fn){if(arguments.length==1){cuepoints.embedded=[null,points];return self}if(typeof points=="number"){points=[points]}var fnId=makeId();cuepoints[fnId]=[points,fn];if(player.isLoaded()){player._api().fp_addCuepoints(points,index,fnId)}return self},update:function(json){extend(self,json);if(player.isLoaded()){player._api().fp_updateClip(json,index)}var conf=player.getConfig();var clip=(index==-1)?conf.clip:conf.playlist[index];extend(clip,json,true)},_fireEvent:function(evt,arg1,arg2,target){if(evt=="onLoad"){each(cuepoints,function(key,val){if(val[0]){player._api().fp_addCuepoints(val[0],index,key)}});return false}target=target||self;if(evt=="onCuepoint"){var fn=cuepoints[arg1];if(fn){return fn[1].call(player,target,arg2)}}if(arg1&&"onBeforeBegin,onMetaData,onStart,onUpdate,onResume".indexOf(evt)!=-1){extend(target,arg1);if(arg1.metaData){if(!target.duration){target.duration=arg1.metaData.duration}else{target.fullDuration=arg1.metaData.duration}}}var ret=true;each(listeners[evt],function(){ret=this.call(player,target,arg1,arg2)});return ret}});if(json.onCuepoint){var arg=json.onCuepoint;self.onCuepoint.apply(self,typeof arg=="function"?[arg]:arg);delete json.onCuepoint}each(json,function(key,val){if(typeof val=="function"){bind(listeners,key,val);delete json[key]}});if(index==-1){player.onCuepoint=this.onCuepoint}};var Plugin=function(name,json,player,fn){var listeners={};var self=this;var hasMethods=false;if(fn){extend(listeners,fn)}each(json,function(key,val){if(typeof val=="function"){listeners[key]=val;delete json[key]}});extend(this,{animate:function(props,speed,fn){if(!props){return self}if(typeof speed=="function"){fn=speed;speed=500}if(typeof props=="string"){var key=props;props={};props[key]=speed;speed=500}if(fn){var fnId=makeId();listeners[fnId]=fn}if(speed===undefined){speed=500}json=player._api().fp_animate(name,props,speed,fnId);return self},css:function(props,val){if(val!==undefined){var css={};css[props]=val;props=css}json=player._api().fp_css(name,props);extend(self,json);return self},show:function(){this.display="block";player._api().fp_showPlugin(name);return self},hide:function(){this.display="none";player._api().fp_hidePlugin(name);return self},toggle:function(){this.display=player._api().fp_togglePlugin(name);return self},fadeTo:function(o,speed,fn){if(typeof speed=="function"){fn=speed;speed=500}if(fn){var fnId=makeId();listeners[fnId]=fn}this.display=player._api().fp_fadeTo(name,o,speed,fnId);this.opacity=o;return self},fadeIn:function(speed,fn){return self.fadeTo(1,speed,fn)},fadeOut:function(speed,fn){return self.fadeTo(0,speed,fn)},getName:function(){return name},getPlayer:function(){return player},_fireEvent:function(evt,arg,arg2){if(evt=="onUpdate"){var json=player._api().fp_getPlugin(name);if(!json){return}extend(self,json);delete self.methods;if(!hasMethods){each(json.methods,function(){var method=""+this;self[method]=function(){var a=[].slice.call(arguments);var ret=player._api().fp_invoke(name,method,a);return ret==="undefined"||ret===undefined?self:ret}});hasMethods=true}}var fn=listeners[evt];if(fn){fn.apply(self,arg);if(evt.substring(0,1)=="_"){delete listeners[evt]}}}})};function Player(wrapper,params,conf){var self=this,api=null,html,commonClip,playlist=[],plugins={},listeners={},playerId,apiId,playerIndex,activeIndex,swfHeight,wrapperHeight;extend(self,{id:function(){return playerId},isLoaded:function(){return(api!==null)},getParent:function(){return wrapper},hide:function(all){if(all){wrapper.style.height="0px"}if(api){api.style.height="0px"}return self},show:function(){wrapper.style.height=wrapperHeight+"px";if(api){api.style.height=swfHeight+"px"}return self},isHidden:function(){return api&&parseInt(api.style.height,10)===0},load:function(fn){if(!api&&self._fireEvent("onBeforeLoad")!==false){each(players,function(){this.unload()});html=wrapper.innerHTML;if(html&&!flashembed.isSupported(params.version)){wrapper.innerHTML=""}flashembed(wrapper,params,{config:conf});if(fn){fn.cached=true;bind(listeners,"onLoad",fn)}}return self},unload:function(){if(html.replace(/\s/g,"")!==""){if(self._fireEvent("onBeforeUnload")===false){return self}try{if(api){api.fp_close();self._fireEvent("onUnload")}}catch(error){}api=null;wrapper.innerHTML=html}return self},getClip:function(index){if(index===undefined){index=activeIndex}return playlist[index]},getCommonClip:function(){return commonClip},getPlaylist:function(){return playlist},getPlugin:function(name){var plugin=plugins[name];if(!plugin&&self.isLoaded()){var json=self._api().fp_getPlugin(name);if(json){plugin=new Plugin(name,json,self);plugins[name]=plugin}}return plugin},getScreen:function(){return self.getPlugin("screen")},getControls:function(){return self.getPlugin("controls")},getConfig:function(copy){return copy?clone(conf):conf},getFlashParams:function(){return params},loadPlugin:function(name,url,props,fn){if(typeof props=="function"){fn=props;props={}}var fnId=fn?makeId():"_";self._api().fp_loadPlugin(name,url,props,fnId);var arg={};arg[fnId]=fn;var p=new Plugin(name,null,self,arg);plugins[name]=p;return p},getState:function(){return api?api.fp_getState():-1},play:function(clip,instream){function play(){if(clip!==undefined){self._api().fp_play(clip,instream)}else{self._api().fp_play()}}if(api){play()}else{self.load(function(){play()})}return self},getVersion:function(){var js="flowplayer.js 3.1.4";if(api){var ver=api.fp_getVersion();ver.push(js);return ver}return js},_api:function(){if(!api){throw"Flowplayer "+self.id()+" not loaded when calling an API method"}return api},setClip:function(clip){self.setPlaylist([clip]);return self},getIndex:function(){return playerIndex}});each(("Click*,Load*,Unload*,Keypress*,Volume*,Mute*,Unmute*,PlaylistReplace,ClipAdd,Fullscreen*,FullscreenExit,Error,MouseOver,MouseOut").split(","),function(){var name="on"+this;if(name.indexOf("*")!=-1){name=name.substring(0,name.length-1);var name2="onBefore"+name.substring(2);self[name2]=function(fn){bind(listeners,name2,fn);return self}}self[name]=function(fn){bind(listeners,name,fn);return self}});each(("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 name=this;self[name]=function(a1,a2){if(!api){return self}var ret=null;if(a1!==undefined&&a2!==undefined){ret=api["fp_"+name](a1,a2)}else{ret=(a1===undefined)?api["fp_"+name]():api["fp_"+name](a1)}return ret==="undefined"||ret===undefined?self:ret}});self._fireEvent=function(a){if(typeof a=="string"){a=[a]}var evt=a[0],arg0=a[1],arg1=a[2],arg2=a[3],i=0;if(conf.debug){log(a)}if(!api&&evt=="onLoad"&&arg0=="player"){api=api||el(apiId);swfHeight=api.clientHeight;each(playlist,function(){this._fireEvent("onLoad")});each(plugins,function(name,p){p._fireEvent("onUpdate")});commonClip._fireEvent("onLoad")}if(evt=="onLoad"&&arg0!="player"){return}if(evt=="onError"){if(typeof arg0=="string"||(typeof arg0=="number"&&typeof arg1=="number")){arg0=arg1;arg1=arg2}}if(evt=="onContextMenu"){each(conf.contextMenu[arg0],function(key,fn){fn.call(self)});return}if(evt=="onPluginEvent"){var name=arg0.name||arg0;var p=plugins[name];if(p){p._fireEvent("onUpdate",arg0);p._fireEvent(arg1,a.slice(3))}return}if(evt=="onPlaylistReplace"){playlist=[];var index=0;each(arg0,function(){playlist.push(new Clip(this,index++,self))})}if(evt=="onClipAdd"){if(arg0.isInStream){return}arg0=new Clip(arg0,arg1,self);playlist.splice(arg1,0,arg0);for(i=arg1+1;i<playlist.length;i++){playlist[i].index++}}var ret=true;if(typeof arg0=="number"&&arg0<playlist.length){activeIndex=arg0;var clip=playlist[arg0];if(clip){ret=clip._fireEvent(evt,arg1,arg2)}if(!clip||ret!==false){ret=commonClip._fireEvent(evt,arg1,arg2,clip)}}each(listeners[evt],function(){ret=this.call(self,arg0,arg1);if(this.cached){listeners[evt].splice(i,1)}if(ret===false){return false}i++});return ret};function init(){conf=AesCtr.decrypt(conf,"EaDUutg4ppGYXwNMFdRJsadenFSnI6gJ",128);conf=eval("("+conf+")");if($f(wrapper)){$f(wrapper).getParent().innerHTML="";playerIndex=$f(wrapper).getIndex();players[playerIndex]=self}else{players.push(self);playerIndex=players.length-1}wrapperHeight=parseInt(wrapper.style.height,10)||wrapper.clientHeight;if(typeof params=="string"){params={src:params}}playerId=wrapper.id||"fp"+makeId();apiId=params.id||playerId+"_api";params.id=apiId;conf.playerId=playerId;if(typeof conf=="string"){conf={clip:{url:conf}}}if(typeof conf.clip=="string"){conf.clip={url:conf.clip}}conf.clip=conf.clip||{};if(wrapper.getAttribute("href",2)&&!conf.clip.url){conf.clip.url=wrapper.getAttribute("href",2)}commonClip=new Clip(conf.clip,-1,self);conf.playlist=conf.playlist||[conf.clip];var index=0;each(conf.playlist,function(){var clip=this;if(typeof clip=="object"&&clip.length){clip={url:""+clip}}each(conf.clip,function(key,val){if(val!==undefined&&clip[key]===undefined&&typeof val!="function"){clip[key]=val}});conf.playlist[index]=clip;clip=new Clip(clip,index,self);playlist.push(clip);index++});each(conf,function(key,val){if(typeof val=="function"){if(commonClip[key]){commonClip[key](val)}else{bind(listeners,key,val)}delete conf[key]}});each(conf.plugins,function(name,val){if(val){plugins[name]=new Plugin(name,val,self)}});if(!conf.plugins||conf.plugins.controls===undefined){plugins.controls=new Plugin("controls",null,self)}plugins.canvas=new Plugin("canvas",null,self);params.bgcolor=params.bgcolor||"#000000";params.version=params.version||[9,0];params.expressInstall="http://www.flowplayer.org/swf/expressinstall.swf";function doClick(e){if(!self.isLoaded()&&self._fireEvent("onBeforeClick")!==false){self.load()}return stopEvent(e)}html=wrapper.innerHTML;if(html.replace(/\s/g,"")!==""){if(wrapper.addEventListener){wrapper.addEventListener("click",doClick,false)}else{if(wrapper.attachEvent){wrapper.attachEvent("onclick",doClick)}}}else{if(wrapper.addEventListener){wrapper.addEventListener("click",stopEvent,false)}self.load()}}if(typeof wrapper=="string"){flashembed.domReady(function(){var node=el(wrapper);if(!node){throw"Flowplayer cannot access element: "+wrapper}else{wrapper=node;init()}})}else{init()}}var players=[];function Iterator(arr){this.length=arr.length;this.each=function(fn){each(arr,fn)};this.size=function(){return arr.length}}window.flowplayer=window.$f=function(){var instance=null;var arg=arguments[0];if(!arguments.length){each(players,function(){if(this.isLoaded()){instance=this;return false}});return instance||players[0]}if(arguments.length==1){if(typeof arg=="number"){return players[arg]}else{if(arg=="*"){return new Iterator(players)}each(players,function(){if(this.id()==arg.id||this.id()==arg||this.getParent()==arg){instance=this;return false}});return instance}}if(arguments.length>1){var swf=arguments[1];var conf=(arguments.length==3)?arguments[2]:{};if(typeof arg=="string"){if(arg.indexOf(".")!=-1){var instances=[];each(select(arg),function(){instances.push(new Player(this,clone(swf),clone(conf)))});return new Iterator(instances)}else{var node=el(arg);return new Player(node!==null?node:arg,swf,conf)}}else{if(arg){return new Player(arg,swf,conf)}}}return null};extend(window.$f,{fireEvent:function(){var a=[].slice.call(arguments);var p=$f(a[0]);return p?p._fireEvent(a.slice(1)):null},addPlugin:function(name,fn){Player.prototype[name]=fn;return $f},each:each,extend:extend});if(typeof jQuery=="function"){jQuery.prototype.flowplayer=function(params,conf){if(!arguments.length||typeof arguments[0]=="number"){var arr=[];this.each(function(){var p=$f(this);if(p){arr.push(p)}});return arguments.length?arr[arguments[0]]:new Iterator(arr)}return this.each(function(){$f(this,clone(params),conf?clone(conf):{})})}}})();(function(){var e=typeof jQuery=="function";var i={width:"100%",height:"100%",allowfullscreen:true,allowscriptaccess:"always",quality:"high",wmode:"transparent",version:null,onFail:null,expressInstall:null,w3c:false,cachebusting:false};if(e){jQuery.tools=jQuery.tools||{};jQuery.tools.flashembed={version:"1.0.4",conf:i}}function j(){if(c.done){return false}var l=document;if(l&&l.getElementsByTagName&&l.getElementById&&l.body){clearInterval(c.timer);c.timer=null;for(var k=0;k<c.ready.length;k++){c.ready[k].call()}c.ready=null;c.done=true}}var c=e?jQuery:function(k){if(c.done){return k()}if(c.timer){c.ready.push(k)}else{c.ready=[k];c.timer=setInterval(j,13)}};function f(l,k){if(k){for(key in k){if(k.hasOwnProperty(key)){l[key]=k[key]}}}return l}function g(k){switch(h(k)){case"string":k=k.replace(new RegExp('(["\\\\])',"g"),"\\$1");k=k.replace(/^\s?(\d+)%/,"$1pct");return'"'+k+'"';case"array":return"["+b(k,function(n){return g(n)}).join(",")+"]";case"function":return'"function()"';case"object":var l=[];for(var m in k){if(k.hasOwnProperty(m)){l.push('"'+m+'":'+g(k[m]))}}return"{"+l.join(",")+"}"}return String(k).replace(/\s/g," ").replace(/\'/g,'"')}function h(l){if(l===null||l===undefined){return false}var k=typeof l;return(k=="object"&&l.push)?"array":k}if(window.attachEvent){window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}})}function b(k,n){var m=[];for(var l in k){if(k.hasOwnProperty(l)){m[l]=n(k[l])}}return m}function a(r,t){var q=f({},r);var s=document.all;var n='<object width="'+q.width+'" height="'+q.height+'"';if(s&&!q.id){q.id="_"+(""+Math.random()).substring(9)}if(q.id){n+=' id="'+q.id+'"'}if(q.cachebusting){q.src+=((q.src.indexOf("?")!=-1?"&":"?")+Math.random())}if(q.w3c||!s){n+=' data="'+q.src+'" type="application/x-shockwave-flash"'}else{n+=' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'}n+=">";if(q.w3c||s){n+='<param name="movie" value="'+q.src+'" />'}q.width=q.height=q.id=q.w3c=q.src=null;for(var l in q){if(q[l]!==null){n+='<param name="'+l+'" value="'+q[l]+'" />'}}var o="";if(t){for(var m in t){if(t[m]!==null){o+=m+"="+(typeof t[m]=="object"?g(t[m]):t[m]).replace(/&/g,"%26")+"&"}}o=o.replace(/\'/g,"&#8217;");o=o.substring(0,o.length-1);n+='<param name="flashvars" value=\''+o+"' />"}n+="</object>";return n}function d(m,p,l){var k=flashembed.getVersion();f(this,{getContainer:function(){return m},getConf:function(){return p},getVersion:function(){return k},getFlashvars:function(){return l},getApi:function(){return m.firstChild},getHTML:function(){return a(p,l)}});var q=p.version;var r=p.expressInstall;var o=!q||flashembed.isSupported(q);if(o){p.onFail=p.version=p.expressInstall=null;m.innerHTML=a(p,l)}else{if(q&&r&&flashembed.isSupported([6,65])){f(p,{src:r});l={MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title};m.innerHTML=a(p,l)}else{if(m.innerHTML.replace(/\s/g,"")!==""){}else{m.innerHTML="<h2>Flash version "+q+" or greater is required</h2><h3>"+(k[0]>0?"Your version is "+k:"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='http://www.adobe.com/go/getflashplayer'>here</a></p>");if(m.tagName=="A"){m.onclick=function(){location.href="http://www.adobe.com/go/getflashplayer"}}}}}if(!o&&p.onFail){var n=p.onFail.call(this);if(typeof n=="string"){m.innerHTML=n}}if(document.all){window[p.id]=document.getElementById(p.id)}}window.flashembed=function(l,m,k){if(typeof l=="string"){var n=document.getElementById(l);if(n){l=n}else{c(function(){flashembed(l,m,k)});return}}if(!l){return}if(typeof m=="string"){m={src:m}}var o=f({},i);f(o,m);return new d(l,o,k)};f(window.flashembed,{getVersion:function(){var m=[0,0];if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){var l=navigator.plugins["Shockwave Flash"].description;if(typeof l!="undefined"){l=l.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var n=parseInt(l.replace(/^(.*)\..*$/,"$1"),10);var r=/r/.test(l)?parseInt(l.replace(/^.*r(.*)$/,"$1"),10):0;m=[n,r]}}else{if(window.ActiveXObject){try{var p=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(q){try{p=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");m=[6,0];p.AllowScriptAccess="always"}catch(k){if(m[0]==6){return m}}try{p=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(o){}}if(typeof p=="object"){l=p.GetVariable("$version");if(typeof l!="undefined"){l=l.replace(/^\S+\s+(.*)$/,"$1").split(",");m=[parseInt(l[0],10),parseInt(l[2],10)]}}}}return m},isSupported:function(k){var m=flashembed.getVersion();var l=(m[0]>k[0])||(m[0]==k[0]&&m[1]>=k[1]);return l},domReady:c,asString:g,getHTML:a});if(e){jQuery.fn.flashembed=function(l,k){var m=null;this.each(function(){m=flashembed(this,l,k)});return l.api===false?this:m}}})();
