if(typeof deconcept=="undefined"){var deconcept=new Object()}if(typeof deconcept.util=="undefined"){deconcept.util=new Object()}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()}deconcept.SWFObject=function(A,J,L,I,B,H,C,D,E,F){if(!document.getElementById){return}this.DETECT_KEY=F?F:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(A){this.setAttribute("swf",A)}if(J){this.setAttribute("id",J)}if(L){this.setAttribute("width",L)}if(I){this.setAttribute("height",I)}if(B){this.setAttribute("version",new deconcept.PlayerVersion(B.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true}if(H){this.addParam("bgcolor",H)}var K=C?C:"high";this.addParam("quality",K);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var G=(D)?D:window.location;this.setAttribute("xiRedirectUrl",G);this.setAttribute("redirectUrl","");if(E){this.setAttribute("redirectUrl",E)}};deconcept.SWFObject.prototype={useExpressInstall:function(A){this.xiSWFPath=!A?"expressinstall.swf":A;this.setAttribute("useExpressInstall",true)},setAttribute:function(A,B){this.attributes[A]=B},getAttribute:function(A){return this.attributes[A]},addParam:function(A,B){this.params[A]=B},getParams:function(){return this.params},addVariable:function(A,B){this.variables[A]=B},getVariable:function(A){return this.variables[A]},getVariables:function(){return this.variables},getVariablePairs:function(){var A=new Array();var C;var B=this.getVariables();for(C in B){A[A.length]=C+"="+B[C]}return A},getSWFHTML:function(){var A="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}A='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'"';A+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var B=this.getParams();for(var F in B){A+=[F]+'="'+B[F]+'" '}var C=this.getVariablePairs().join("&");if(C.length>0){A+='flashvars="'+C+'"'}A+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}A='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';A+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var D=this.getParams();for(var F in D){A+='<param name="'+F+'" value="'+D[F]+'" />'}var E=this.getVariablePairs().join("&");if(E.length>0){A+='<param name="flashvars" value="'+E+'" />'}A+="</object>"}return A},write:function(A){if(this.getAttribute("useExpressInstall")){var B=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(B)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var C=(typeof A=="string")?document.getElementById(A):A;C.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var A=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var E=navigator.plugins["Shockwave Flash"];if(E&&E.description){A=new deconcept.PlayerVersion(E.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var C=1;var B=3;while(C){try{B++;C=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+B);A=new deconcept.PlayerVersion([B,0,0])}catch(D){C=null}}}else{try{var C=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(D){try{var C=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");A=new deconcept.PlayerVersion([6,0,21]);C.AllowScriptAccess="always"}catch(D){if(A.major==6){return A}}try{C=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(D){}}if(C!=null){A=new deconcept.PlayerVersion(C.GetVariable("$version").split(" ")[1].split(","))}}}return A};deconcept.PlayerVersion=function(A){this.major=A[0]!=null?parseInt(A[0]):0;this.minor=A[1]!=null?parseInt(A[1]):0;this.rev=A[2]!=null?parseInt(A[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(A){if(this.major<A.major){return false
}if(this.major>A.major){return true}if(this.minor<A.minor){return false}if(this.minor>A.minor){return true}if(this.rev<A.rev){return false}return true};deconcept.util={getRequestParameter:function(A){var D=document.location.search||document.location.hash;if(A==null){return D}if(D){var B=D.substring(1).split("&");for(var C=0;C<B.length;C++){if(B[C].substring(0,B[C].indexOf("="))==A){return B[C].substring((B[C].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var A=document.getElementsByTagName("OBJECT");for(var B=A.length-1;B>=0;B--){A[B].style.display="none";for(var C in A[B]){if(typeof A[B][C]=="function"){A[B][C]=function(){}}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true}}if(!document.getElementById&&document.all){document.getElementById=function(A){return document.all[A]}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;;var swfobject=function(){var Ae="undefined",AF="object",AI="Shockwave Flash",AQ="ShockwaveFlash.ShockwaveFlash",AD="application/x-shockwave-flash",AG="SWFObjectExprInst",AR="onreadystatechange",AA=window,Ap=document,AJ=navigator,AK=false,AM=[Al],Az=[],Ay=[],Ao=[],At,AE,Ag,Aa,Aq=false,X=false,Ax,Ak,Av=true,Aw=function(){var A=typeof Ap.getElementById!=Ae&&typeof Ap.getElementsByTagName!=Ae&&typeof Ap.createElement!=Ae,H=AJ.userAgent.toLowerCase(),J=AJ.platform.toLowerCase(),E=J?/win/.test(J):/win/.test(H),C=J?/mac/.test(J):/mac/.test(H),F=/webkit/.test(H)?parseFloat(H.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,I=!+"\v1",G=[0,0,0],B=null;if(typeof AJ.plugins!=Ae&&typeof AJ.plugins[AI]==AF){B=AJ.plugins[AI].description;if(B&&!(typeof AJ.mimeTypes!=Ae&&AJ.mimeTypes[AD]&&!AJ.mimeTypes[AD].enabledPlugin)){AK=true;I=false;B=B.replace(/^.*\s+(\S+\s+\S+$)/,"$1");G[0]=parseInt(B.replace(/^(.*)\..*$/,"$1"),10);G[1]=parseInt(B.replace(/^.*\.(.*)\s.*$/,"$1"),10);G[2]=/[a-zA-Z]/.test(B)?parseInt(B.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof AA.ActiveXObject!=Ae){try{var D=new ActiveXObject(AQ);if(D){B=D.GetVariable("$version");if(B){I=true;B=B.split(" ")[1].split(",");G=[parseInt(B[0],10),parseInt(B[1],10),parseInt(B[2],10)]}}}catch(K){}}}return{w3:A,pv:G,wk:F,ie:I,win:E,mac:C}}(),Ar=function(){if(!Aw.w3){return}if((typeof Ap.readyState!=Ae&&Ap.readyState=="complete")||(typeof Ap.readyState==Ae&&(Ap.getElementsByTagName("body")[0]||Ap.body))){Ah()}if(!Aq){if(typeof Ap.addEventListener!=Ae){Ap.addEventListener("DOMContentLoaded",Ah,false)}if(Aw.ie&&Aw.win){Ap.attachEvent(AR,function(){if(Ap.readyState=="complete"){Ap.detachEvent(AR,arguments.callee);Ah()}});if(AA==top){(function(){if(Aq){return}try{Ap.documentElement.doScroll("left")}catch(A){setTimeout(arguments.callee,0);return}Ah()})()}}if(Aw.wk){(function(){if(Aq){return}if(!/loaded|complete/.test(Ap.readyState)){setTimeout(arguments.callee,0);return}Ah()})()}AH(Ah)}}();function Ah(){if(Aq){return}try{var D=Ap.getElementsByTagName("body")[0].appendChild(Ac("span"));D.parentNode.removeChild(D)}catch(A){return}Aq=true;var B=AM.length;for(var C=0;C<B;C++){AM[C]()}}function As(A){if(Aq){A()}else{AM[AM.length]=A}}function AH(B){if(typeof AA.addEventListener!=Ae){AA.addEventListener("load",B,false)}else{if(typeof Ap.addEventListener!=Ae){Ap.addEventListener("load",B,false)}else{if(typeof AA.attachEvent!=Ae){An(AA,"onload",B)}else{if(typeof AA.onload=="function"){var A=AA.onload;AA.onload=function(){A();B()}}else{AA.onload=B}}}}}function Al(){if(AK){AO()}else{Am()}}function AO(){var B=Ap.getElementsByTagName("body")[0];var A=Ac(AF);A.setAttribute("type",AD);var D=B.appendChild(A);if(D){var C=0;(function(){if(typeof D.GetVariable!=Ae){var E=D.GetVariable("$version");if(E){E=E.split(" ")[1].split(",");Aw.pv=[parseInt(E[0],10),parseInt(E[1],10),parseInt(E[2],10)]}}else{if(C<10){C++;setTimeout(arguments.callee,10);return}}B.removeChild(A);D=null;Am()})()}else{Am()}}function Am(){var G=Az.length;if(G>0){for(var F=0;F<G;F++){var K=Az[F].id;var B=Az[F].callbackFn;var A={success:false,id:K};if(Aw.pv[0]>0){var E=Ab(K);if(E){if(Ai(Az[F].swfVersion)&&!(Aw.wk&&Aw.wk<312)){AP(K,true);if(B){A.success=true;A.ref=AT(K);B(A)}}else{if(Az[F].expressInstall&&Y()){var I={};I.data=Az[F].expressInstall;I.width=E.getAttribute("width")||"0";I.height=E.getAttribute("height")||"0";if(E.getAttribute("class")){I.styleclass=E.getAttribute("class")}if(E.getAttribute("align")){I.align=E.getAttribute("align")}var H={};var J=E.getElementsByTagName("param");var C=J.length;for(var D=0;D<C;D++){if(J[D].getAttribute("name").toLowerCase()!="movie"){H[J[D].getAttribute("name")]=J[D].getAttribute("value")}}AC(I,H,K,B)}else{AB(E);if(B){B(A)}}}}}else{AP(K,true);if(B){var L=AT(K);if(L&&typeof L.SetVariable!=Ae){A.success=true;A.ref=L}B(A)}}}}}function AT(A){var B=null;var C=Ab(A);if(C&&C.nodeName=="OBJECT"){if(typeof C.SetVariable!=Ae){B=C}else{var D=C.getElementsByTagName(AF)[0];if(D){B=D}}}return B}function Y(){return !X&&Ai("6.0.65")&&(Aw.win||Aw.mac)&&!(Aw.wk&&Aw.wk<312)}function AC(A,B,F,H){X=true;Ag=H||null;Aa={success:false,id:F};var E=Ab(F);if(E){if(E.nodeName=="OBJECT"){At=Aj(E);AE=null}else{At=E;AE=F}A.id=AG;if(typeof A.width==Ae||(!/%$/.test(A.width)&&parseInt(A.width,10)<310)){A.width="310"}if(typeof A.height==Ae||(!/%$/.test(A.height)&&parseInt(A.height,10)<137)){A.height="137"}Ap.title=Ap.title.slice(0,47)+" - Flash Player Installation";var D=Aw.ie&&Aw.win?"ActiveX":"PlugIn",C="MMredirectURL="+AA.location.toString().replace(/&/g,"%26")+"&MMplayerType="+D+"&MMdoctitle="+Ap.title;if(typeof B.flashvars!=Ae){B.flashvars+="&"+C}else{B.flashvars=C}if(Aw.ie&&Aw.win&&E.readyState!=4){var G=Ac("div");F+="SWFObjectNew";G.setAttribute("id",F);E.parentNode.insertBefore(G,E);E.style.display="none";(function(){if(E.readyState==4){E.parentNode.removeChild(E)}else{setTimeout(arguments.callee,10)}})()}AL(A,B,F)}}function AB(B){if(Aw.ie&&Aw.win&&B.readyState!=4){var A=Ac("div");B.parentNode.insertBefore(A,B);
A.parentNode.replaceChild(Aj(B),A);B.style.display="none";(function(){if(B.readyState==4){B.parentNode.removeChild(B)}else{setTimeout(arguments.callee,10)}})()}else{B.parentNode.replaceChild(Aj(B),B)}}function Aj(B){var A=Ac("div");if(Aw.win&&Aw.ie){A.innerHTML=B.innerHTML}else{var E=B.getElementsByTagName(AF)[0];if(E){var C=E.childNodes;if(C){var D=C.length;for(var F=0;F<D;F++){if(!(C[F].nodeType==1&&C[F].nodeName=="PARAM")&&!(C[F].nodeType==8)){A.appendChild(C[F].cloneNode(true))}}}}}return A}function AL(I,G,K){var J,A=Ab(K);if(Aw.wk&&Aw.wk<312){return J}if(A){if(typeof I.id==Ae){I.id=K}if(Aw.ie&&Aw.win){var H="";for(var E in I){if(I[E]!=Object.prototype[E]){if(E.toLowerCase()=="data"){G.movie=I[E]}else{if(E.toLowerCase()=="styleclass"){H+=' class="'+I[E]+'"'}else{if(E.toLowerCase()!="classid"){H+=" "+E+'="'+I[E]+'"'}}}}}var F="";for(var D in G){if(G[D]!=Object.prototype[D]){F+='<param name="'+D+'" value="'+G[D]+'" />'}}A.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+H+">"+F+"</object>";Ay[Ay.length]=I.id;J=Ab(I.id)}else{var L=Ac(AF);L.setAttribute("type",AD);for(var C in I){if(I[C]!=Object.prototype[C]){if(C.toLowerCase()=="styleclass"){L.setAttribute("class",I[C])}else{if(C.toLowerCase()!="classid"){L.setAttribute(C,I[C])}}}}for(var B in G){if(G[B]!=Object.prototype[B]&&B.toLowerCase()!="movie"){Af(L,B,G[B])}}A.parentNode.replaceChild(L,A);J=L}}return J}function Af(D,B,C){var A=Ac("param");A.setAttribute("name",B);A.setAttribute("value",C);D.appendChild(A)}function AS(B){var A=Ab(B);if(A&&A.nodeName=="OBJECT"){if(Aw.ie&&Aw.win){A.style.display="none";(function(){if(A.readyState==4){Z(B)}else{setTimeout(arguments.callee,10)}})()}else{A.parentNode.removeChild(A)}}}function Z(C){var B=Ab(C);if(B){for(var A in B){if(typeof B[A]=="function"){B[A]=null}}B.parentNode.removeChild(B)}}function Ab(C){var A=null;try{A=Ap.getElementById(C)}catch(B){}return A}function Ac(A){return Ap.createElement(A)}function An(C,A,B){C.attachEvent(A,B);Ao[Ao.length]=[C,A,B]}function Ai(C){var B=Aw.pv,A=C.split(".");A[0]=parseInt(A[0],10);A[1]=parseInt(A[1],10)||0;A[2]=parseInt(A[2],10)||0;return(B[0]>A[0]||(B[0]==A[0]&&B[1]>A[1])||(B[0]==A[0]&&B[1]==A[1]&&B[2]>=A[2]))?true:false}function AN(C,F,D,B){if(Aw.ie&&Aw.mac){return}var A=Ap.getElementsByTagName("head")[0];if(!A){return}var E=(D&&typeof D=="string")?D:"screen";if(B){Ax=null;Ak=null}if(!Ax||Ak!=E){var G=Ac("style");G.setAttribute("type","text/css");G.setAttribute("media",E);Ax=A.appendChild(G);if(Aw.ie&&Aw.win&&typeof Ap.styleSheets!=Ae&&Ap.styleSheets.length>0){Ax=Ap.styleSheets[Ap.styleSheets.length-1]}Ak=E}if(Aw.ie&&Aw.win){if(Ax&&typeof Ax.addRule==AF){Ax.addRule(C,F)}}else{if(Ax&&typeof Ap.createTextNode!=Ae){Ax.appendChild(Ap.createTextNode(C+" {"+F+"}"))}}}function AP(C,A){if(!Av){return}var B=A?"visible":"hidden";if(Aq&&Ab(C)){Ab(C).style.visibility=B}else{AN("#"+C,"visibility:"+B)}}function Au(B){var C=/[\\\"<>\.;]/;var A=C.exec(B)!=null;return A&&typeof encodeURIComponent!=Ae?encodeURIComponent(B):B}var Ad=function(){if(Aw.ie&&Aw.win){window.attachEvent("onunload",function(){var C=Ao.length;for(var B=0;B<C;B++){Ao[B][0].detachEvent(Ao[B][1],Ao[B][2])}var F=Ay.length;for(var A=0;A<F;A++){AS(Ay[A])}for(var E in Aw){Aw[E]=null}Aw=null;for(var D in swfobject){swfobject[D]=null}swfobject=null})}}();return{registerObject:function(B,C,A,E){if(Aw.w3&&B&&C){var D={};D.id=B;D.swfVersion=C;D.expressInstall=A;D.callbackFn=E;Az[Az.length]=D;AP(B,false)}else{if(E){E({success:false,id:B})}}},getObjectById:function(A){if(Aw.w3){return AT(A)}},embedSWF:function(B,H,E,G,J,A,K,D,F,C){var I={success:false,id:H};if(Aw.w3&&!(Aw.wk&&Aw.wk<312)&&B&&H&&E&&G&&J){AP(H,false);As(function(){E+="";G+="";var M={};if(F&&typeof F===AF){for(var O in F){M[O]=F[O]}}M.data=B;M.width=E;M.height=G;var P={};if(D&&typeof D===AF){for(var N in D){P[N]=D[N]}}if(K&&typeof K===AF){for(var L in K){if(typeof P.flashvars!=Ae){P.flashvars+="&"+L+"="+K[L]}else{P.flashvars=L+"="+K[L]}}}if(Ai(J)){var Q=AL(M,P,H);if(M.id==H){AP(H,true)}I.success=true;I.ref=Q}else{if(A&&Y()){M.data=A;AC(M,P,H,C);return}else{AP(H,true)}}if(C){C(I)}})}else{if(C){C(I)}}},switchOffAutoHideShow:function(){Av=false},ua:Aw,getFlashPlayerVersion:function(){return{major:Aw.pv[0],minor:Aw.pv[1],release:Aw.pv[2]}},hasFlashPlayerVersion:Ai,createSWF:function(C,B,A){if(Aw.w3){return AL(C,B,A)}else{return undefined}},showExpressInstall:function(D,A,B,C){if(Aw.w3&&Y()){AC(D,A,B,C)}},removeSWF:function(A){if(Aw.w3){AS(A)}},createCSS:function(A,D,C,B){if(Aw.w3){AN(A,D,C,B)}},addDomLoadEvent:As,addLoadEvent:AH,getQueryParamValue:function(A){var D=Ap.location.search||Ap.location.hash;if(D){if(/\?/.test(D)){D=D.split("?")[1]}if(A==null){return Au(D)}var C=D.split("&");for(var B=0;B<C.length;B++){if(C[B].substring(0,C[B].indexOf("="))==A){return Au(C[B].substring((C[B].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(X){var A=Ab(AG);if(A&&At){A.parentNode.replaceChild(At,A);if(AE){AP(AE,true);if(Aw.ie&&Aw.win){At.style.display="block"
}}if(Ag){Ag(Aa)}}X=false}}}}();;var MultiAudioPlayer={FlashName:"audioplayer",FlashObject:null,CurrentPlayer:null,_playersAudio:[],CurrentVideoPlayer:null,LoggingAddress:null,register:function(A){if(A){if(!this._playersAudio[A.id]){this._playersAudio[A.id]=A}}else{throw"Player not defined"}},play:function(A){if(this._playersAudio[A]){this.stopPlayingVideo();this._playersAudio[A].play()}else{throw"Player not registered"}},playById:function(A,B){if(this._playersAudio[A]){this.stopPlayingVideo();this._playersAudio[A].playById(B)}else{throw"Player not registered"}},playAll:function(A,B){if(this._playersAudio[A]){this.stopPlayingVideo();this._playersAudio[A].stop();this._playersAudio[A].playById(B);this._playAllMode=true;this.autoNext=true}else{throw"Player not registered"}},stop:function(A,B){if(this._playersAudio[A]){this._playersAudio[A].stop(B)}else{throw"Player not registered"}},previous:function(A){if(this._playersAudio[A]){this.stopPlayingVideo();this._playersAudio[A].previous()}else{throw"Player not registered"}},next:function(A){if(this._playersAudio[A]){this.stopPlayingVideo();this._playersAudio[A].next()}else{throw"Player not registered"}},setFlash:function(){this.FlashObject=this.getElement(this.FlashName)},stopPlayingVideo:function(){if(this.CurrentVideoPlayer!=null){var A=document.getElementById(this.CurrentVideoPlayer);if(A!=null){A.doPlayPause()}}},setCurrentVideoPlayer:function(A){if(A!=null&&this.CurrentVideoPlayer!=null&&this.CurrentVideoPlayer!=A){this.stopPlayingVideo()}if(A!=null){this.CurrentVideoPlayer=A;if(this.CurrentPlayer!=null){this.CurrentPlayer.stop()}}},getElement:function(A){if(navigator.appName.indexOf("Microsoft")!=-1){return window[A]}else{return document.getElementById(A)}},stopCurrentPlayer:function(){if(this.CurrentPlayer!=null){this.CurrentPlayer.stop()}if(this.CurrentVideoPlayer!=null){this.stopPlayingVideo()}}};function LogListening(A){$.ajax({url:MultiAudioPlayer.LoggingAddress,type:"GET",data:({content:A}),dataType:"jsonp",success:function(B){}})}function PlayerCallback(B,C,A){if(B=="initialized"){MultiAudioPlayer.setFlash()}if(typeof(C)!="undefined"&&C!=null&&C.length>0&&C!="null"){switch(B){case"play":MultiAudioPlayer.stopPlayingVideo();MultiAudioPlayer.CurrentPlayer.raiseMediaChanged(C);break;case"error":case"pause":break;case"stop":MultiAudioPlayer.CurrentPlayer.raiseMediaStopped(C);break;case"finished":MultiAudioPlayer.CurrentPlayer.finished();break;case"logAccessFile":LogListening(A);break}}}function AudioItem(D,I,H,G,F,C,B,A,E,J){this.id=D;this.url=I;this.index=E;this.title=G;this.performer=F;this.duration=C;this.coverUrl=B;this.coverLiteral=A;this.type=H;this.userId=J}AudioItem.prototype={id:null,url:null,title:null,performer:null,duration:null,coverUrl:null,coverLiteral:null,index:-1,type:null,userId:null,isLast:false,isFirst:false};function AudioPlayer(A,C,B,D,E){this.initialize(A,C,B,D,E)}AudioPlayer.prototype={mediaChanged:function(B,A){},mediaStopped:function(B,A){},metaUpdated:function(D,C,A,F,B,E){},update:function(A){if(this.updateOnce(A)){setTimeout(function(){A.update(A)},300)}},updateOnce:function(D){if(D!=null&&MultiAudioPlayer.FlashObject!=null&&D.metaUpdated!=null&&D._playingId!=null){var F=MultiAudioPlayer.FlashObject.GetSongDuration(D._playingId);var A=MultiAudioPlayer.FlashObject.GetSongTime(D._playingId);var E=MultiAudioPlayer.FlashObject.GetSongPosition(D._playingId);var C=MultiAudioPlayer.FlashObject.GetSongProgress(D._playingId);var B=D._media[D._playingId];D.metaUpdated(D,B,A,F,C,E);return true}return false},raiseMediaChanged:function(A){if(this.mediaChanged){this.mediaChanged(this,this._media[A])}},raiseMediaStopped:function(A){if(this.mediaStopped){this.mediaStopped(this,this._media[A])}},id:null,_media:[],_keys:[],_playingId:null,_lastPlayingId:null,autoNext:true,autoNextSingle:true,_playAllMode:false,initialize:function(F,A,B,C,D){this.id=F;this._media=[];this._keys=[];this._lastPlayingId=null;this._playingId=null;if(A){for(var E in A){this.addTrack(E,A[E],null,null,null,null)}}this.mediaChanged=B;this.metaUpdated=D;this.mediaStopped=C},clear:function(){this._media=[];this._keys=[]},addTrack:function(D,I,H,G,F,C,B,A,J){var E=new AudioItem(D.toString(),I,H,G,F,C,B,A,this._keys.length,J);this._media[E.id]=E;if(this._keys.length==0){E.isFirst=true}if(this._keys.length>0){this._keys[this._keys.length-1].isLast=false}E.isLast=true;this._keys.push(E)},play:function(){if(this._lastPlayingId!=null){this.playById(this._lastPlayingId)}else{this.playByIndex(0)}this._playAllMode=true},playById:function(A){var B=this._media[A];if(this._lastPlayingId!=A){this.stop()}this.playByItem(B)},playByIndex:function(A){var B=this._keys[A];this.playByItem(B)},playByItem:function(A){this._playAllMode=this.autoNextSingle;this._playByItem(A)},_playByItem:function(B){if(MultiAudioPlayer.FlashObject!=null&&B){var A=(this._playingId==B.id);if(MultiAudioPlayer.CurrentPlayer!=null){MultiAudioPlayer.CurrentPlayer.stop()}if(MultiAudioPlayer.CurrentPlayer!=this){MultiAudioPlayer.CurrentPlayer=this}if(!A){this._playingId=B.id;
this._lastPlayingId=this._playingId;MultiAudioPlayer.FlashObject.LoadSong(B.url,B.id,B.type,B.userId);this.update(this)}}},stop:function(){if(MultiAudioPlayer.FlashObject!=null){if(this._playingId!=null){MultiAudioPlayer.FlashObject.StopSong(this._playingId);this._playingId=null}}},next:function(){if(MultiAudioPlayer.FlashObject!=null){if(this._lastPlayingId!=null){var A=this._media[this._lastPlayingId].index;if(A<this._keys.length-1){this._playByItem(this._keys[A+1])}else{this.stop()}}}},previous:function(){if(MultiAudioPlayer.FlashObject!=null){if(this._lastPlayingId!=null){var A=this._media[this._lastPlayingId].index;if(A>0){this._playByItem(this._keys[A-1])}}}},tracksCount:function(){return this._keys.length},currentTrackIndex:function(){if(this._lastPlayingId){return this._media[this._lastPlayingId].index}return -1},finished:function(){if(this._playAllMode&&this.autoNext){this.next()}},volumeUp:function(){if(MultiAudioPlayer.FlashObject!=null&&this._playingId!=null){var A=MultiAudioPlayer.FlashObject.GetSongVolume(this._playingId);if(A<1){A=A+0,1;var A=MultiAudioPlayer.FlashObject.SetSongVolume(this._playingId,A)}}},volumeDown:function(){if(MultiAudioPlayer.FlashObject!=null&&this._playingId!=null){var A=MultiAudioPlayer.FlashObject.GetSongVolume(this._playingId);if(A>0){A=A-0,1;var A=MultiAudioPlayer.FlashObject.SetSongVolume(this._playingId,A)}}}};var TrackId=0;var Type="";var useOffset=false;function OpenPopin(C,A,G,B){var F=0;var E=0;if(useOffset){var D=$("#editorialContent .blk_inside").offset();F=D.top;E=D.left}TrackId=B;Type=G;var A=$.event.fix(A);$("#PlayerPopin, #FMPlaylistPopin").css({top:(A.pageY-F)-31,left:(A.pageX-E)+24}).filter("#PlayerPopin").css("display","block")}function popinPos(B,A){var E=0;var D=0;if(useOffset){var C=$("#editorialContent .blk_inside").offset();E=C.top;D=C.left}var A=$.event.fix(A);$("#FMPlaylistPopin").css({top:(A.pageY-E)-31,left:(A.pageX-D)+24})}$(function(){$("#closePlayerPopin").click(function(){$("#PlayerPopin").css("display","none");return false})});AppCore.ready(function(){AppCore.register("audioplayer",function(){return{}})});;
