Файл: touchSpace/js/soundmanager2-nodebug-jsmin.js
Строк: 1839
<?php
!function(t,e){function n(n,i){function o(t){return u.preferFlash&&wt&&!u.ignoreFlash&&u.flash[t]!==e&&u.flash[t]}function a(t){return function(e){var n=this._s;return n&&n._a?t.call(this,e):null}}var s,u,r,l,d,f,h,c,p,m,_,y,g,v,O,M,P,b,L,T,w,S,I,A,H,F,D,C,E,k,x,N,R,U,B,q,j,V,Q,W,$,X,K,J,Y,Z,G,z,tt,et,nt,it,ot,at,st,ut,rt,lt,dt,ft,ht,ct,pt,mt,_t,yt,gt,vt,Ot,Mt,Pt,bt,Lt,Tt,wt,St,It,At,Ht,Ft,Dt,Ct,Et,kt,xt,Nt,Rt,Ut,Bt,qt,jt,Vt,Qt,Wt,$t,Xt,Kt,Jt;this.setupOptions={url:n||null,flashVersion:8,debugMode:!0,debugFlash:!1,useConsole:!0,consoleOnly:!0,waitForWindowLoad:!1,bgColor:"#ffffff",useHighPerformance:!1,flashPollingInterval:null,html5PollingInterval:null,flashLoadTimeout:1e3,wmode:null,allowScriptAccess:"always",useFlashBlock:!1,useHTML5Audio:!0,html5Test:/^(probably|maybe)$/i,preferFlash:!1,noSWFCache:!1,idPrefix:"sound"},this.defaultOptions={autoLoad:!1,autoPlay:!1,from:null,loops:1,onid3:null,onload:null,whileloading:null,onplay:null,onpause:null,onresume:null,whileplaying:null,onposition:null,onstop:null,onfailure:null,onfinish:null,multiShot:!0,multiShotEvents:!1,position:null,pan:0,stream:!0,to:null,type:null,usePolicyFile:!1,volume:100},this.flash9Options={isMovieStar:null,usePeakData:!1,useWaveformData:!1,useEQData:!1,onbufferchange:null,ondataerror:null},this.movieStarOptions={bufferTime:3,serverURL:null,onconnect:null,duration:null},this.audioFormats={mp3:{type:['audio/mpeg; codecs="mp3"',"audio/mpeg","audio/mp3","audio/MPA","audio/mpa-robust"],required:!0},mp4:{related:["aac","m4a","m4b"],type:['audio/mp4; codecs="mp4a.40.2"',"audio/aac","audio/x-m4a","audio/MP4A-LATM","audio/mpeg4-generic"],required:!1},ogg:{type:["audio/ogg; codecs=vorbis"],required:!1},opus:{type:["audio/ogg; codecs=opus","audio/opus"],required:!1},wav:{type:['audio/wav; codecs="1"',"audio/wav","audio/wave","audio/x-wav"],required:!1}},this.movieID="sm2-container",this.id=i||"sm2movie",this.debugID="soundmanager-debug",this.debugURLParam=/([#?&])debug=1/i,this.versionNumber="V2.97a.20140901",this.altURL=this.movieURL=this.version=null,this.enabled=this.swfLoaded=!1,this.oMC=null,this.sounds={},this.soundIDs=[],this.didFlashBlock=this.muted=!1,this.filePattern=null,this.filePatterns={flash8:/.mp3(?.*)?$/i,flash9:/.mp3(?.*)?$/i},this.features={buffering:!1,peakData:!1,waveformData:!1,eqData:!1,movieStar:!1},this.sandbox={},this.html5={usingFlash:null},this.flash={},this.ignoreFlash=this.html5Only=!1,u=this,r=null,l=null,f=navigator.userAgent,h=""+t.location.href,c=document,g=[],v=!1,O=!1,M=!1,P=!1,b=!1,Y=null,Z=null,ot=!1,at=!1,lt=0,dt=null,ht=[],pt=null,bt=Array.prototype.slice,Lt=!1,Ft=0,Dt=f.match(/(ipad|iphone|ipod)/i),Ct=f.match(/android/i),Et=f.match(/msie/i),kt=f.match(/webkit/i),xt=f.match(/safari/i)&&!f.match(/chrome/i),Nt=f.match(/opera/i),Rt=f.match(/(mobile|pre/|xoom)/i)||Dt||Ct,Ut=!h.match(/usehtml5audio/i)&&!h.match(/sm2-ignorebadua/i)&&xt&&!f.match(/silk/i)&&f.match(/OS X 10_6_([3-7])/i),Bt=c.hasFocus!==e?c.hasFocus():null,qt=xt&&(c.hasFocus===e||!c.hasFocus()),jt=!qt,Vt=/(mp3|mp4|mpa|m4a|m4b)/i,Qt=c.location?c.location.protocol.match(/http/i):null,Wt=Qt?"":"http://",$t=/^s*audio/(?:x-)?(?:mpeg4|aac|flv|mov|mp4||m4v|m4a|m4b|mp4v|3gp|3g2)s*(?:$|;)/i,Xt="mpeg4 aac flv mov mp4 m4v f4v m4a m4b mp4v 3gp 3g2".split(" "),Kt=RegExp("\.("+Xt.join("|")+")(\?.*)?$","i"),this.mimePattern=/^s*audio/(?:x-)?(?:mp(?:eg|3))s*(?:$|;)/i,this.useAltURL=!Qt;try{Jt=Audio!==e&&(Nt&&opera!==e&&10>opera.version()?new Audio(null):new Audio).canPlayType!==e}catch(Yt){Jt=!1}this.hasHTML5=Jt,this.setup=function(t){var n=!u.url;return t!==e&&M&&pt&&u.ok(),w(t),t&&(n&&q&&t.url!==e&&u.beginDelayedInit(),!q&&t.url!==e&&"complete"===c.readyState&&setTimeout(U,1)),u},this.supported=this.ok=function(){return pt?M&&!P:u.useHTML5Audio&&u.hasHTML5},this.getMovie=function(e){return d(e)||c[e]||t[e]},this.createSound=function(t,n){function i(){return o=et(o),u.sounds[o.id]=new s(o),u.soundIDs.push(o.id),u.sounds[o.id]}var o,a=null;if(!M||!u.ok())return!1;if(n!==e&&(t={id:t,url:n}),o=T(t),o.url=ft(o.url),void 0===o.id&&(o.id=u.setupOptions.idPrefix+Ft++),it(o.id,!0))return u.sounds[o.id];if(_t(o))a=i(),a._setup_html5(o);else{if(u.html5Only||u.html5.usingFlash&&o.url&&o.url.match(/data:/i))return i();y>8&&null===o.isMovieStar&&(o.isMovieStar=!(!o.serverURL&&!(o.type&&o.type.match($t)||o.url&&o.url.match(Kt)))),o=nt(o,void 0),a=i(),8===y?l._createSound(o.id,o.loops||1,o.usePolicyFile):(l._createSound(o.id,o.url,o.usePeakData,o.useWaveformData,o.useEQData,o.isMovieStar,o.isMovieStar?o.bufferTime:!1,o.loops||1,o.serverURL,o.duration||null,o.autoPlay,!0,o.autoLoad,o.usePolicyFile),o.serverURL||(a.connected=!0,o.onconnect&&o.onconnect.apply(a))),!o.serverURL&&(o.autoLoad||o.autoPlay)&&a.load(o)}return!o.serverURL&&o.autoPlay&&a.play(),a},this.destroySound=function(t,e){if(!it(t))return!1;var n,i=u.sounds[t];for(i._iO={},i.stop(),i.unload(),n=0;n<u.soundIDs.length;n++)if(u.soundIDs[n]===t){u.soundIDs.splice(n,1);break}return e||i.destruct(!0),delete u.sounds[t],!0},this.load=function(t,e){return it(t)?u.sounds[t].load(e):!1},this.unload=function(t){return it(t)?u.sounds[t].unload():!1},this.onposition=this.onPosition=function(t,e,n,i){return it(t)?u.sounds[t].onposition(e,n,i):!1},this.clearOnPosition=function(t,e,n){return it(t)?u.sounds[t].clearOnPosition(e,n):!1},this.start=this.play=function(t,e){var n=null,i=e&&!(e instanceof Object);if(!M||!u.ok())return!1;if(it(t,i))i&&(e={url:e});else{if(!i)return!1;i&&(e={url:e}),e&&e.url&&(e.id=t,n=u.createSound(e).play())}return null===n&&(n=u.sounds[t].play(e)),n},this.setPosition=function(t,e){return it(t)?u.sounds[t].setPosition(e):!1},this.stop=function(t){return it(t)?u.sounds[t].stop():!1},this.stopAll=function(){for(var t in u.sounds)u.sounds.hasOwnProperty(t)&&u.sounds[t].stop()},this.pause=function(t){return it(t)?u.sounds[t].pause():!1},this.pauseAll=function(){var t;for(t=u.soundIDs.length-1;t>=0;t--)u.sounds[u.soundIDs[t]].pause()},this.resume=function(t){return it(t)?u.sounds[t].resume():!1},this.resumeAll=function(){var t;for(t=u.soundIDs.length-1;t>=0;t--)u.sounds[u.soundIDs[t]].resume()},this.togglePause=function(t){return it(t)?u.sounds[t].togglePause():!1},this.setPan=function(t,e){return it(t)?u.sounds[t].setPan(e):!1},this.setVolume=function(t,e){return it(t)?u.sounds[t].setVolume(e):!1},this.mute=function(t){var e=0;if(t instanceof String&&(t=null),t)return it(t)?u.sounds[t].mute():!1;for(e=u.soundIDs.length-1;e>=0;e--)u.sounds[u.soundIDs[e]].mute();return u.muted=!0},this.muteAll=function(){u.mute()},this.unmute=function(t){if(t instanceof String&&(t=null),t)return it(t)?u.sounds[t].unmute():!1;for(t=u.soundIDs.length-1;t>=0;t--)u.sounds[u.soundIDs[t]].unmute();return u.muted=!1,!0},this.unmuteAll=function(){u.unmute()},this.toggleMute=function(t){return it(t)?u.sounds[t].toggleMute():!1},this.getMemoryUse=function(){var t=0;return l&&8!==y&&(t=parseInt(l._getMemoryUse(),10)),t},this.disable=function(n){var i;if(n===e&&(n=!1),P)return!1;for(P=!0,i=u.soundIDs.length-1;i>=0;i--)X(u.sounds[u.soundIDs[i]]);return L(n),Pt.remove(t,"load",H),!0},this.canPlayMIME=function(t){var e;return u.hasHTML5&&(e=yt({type:t})),!e&&pt&&(e=t&&u.ok()?!!(y>8&&t.match($t)||t.match(u.mimePattern)):null),e},this.canPlayURL=function(t){var e;return u.hasHTML5&&(e=yt({url:t})),!e&&pt&&(e=t&&u.ok()?!!t.match(u.filePattern):null),e},this.canPlayLink=function(t){return t.type!==e&&t.type&&u.canPlayMIME(t.type)?!0:u.canPlayURL(t.href)},this.getSoundById=function(t){return t?u.sounds[t]:null},this.onready=function(e,n){if("function"!=typeof e)throw G("needFunction","onready");return n||(n=t),I("onready",e,n),A(),!0},this.ontimeout=function(e,n){if("function"!=typeof e)throw G("needFunction","ontimeout");return n||(n=t),I("ontimeout",e,n),A({type:"ontimeout"}),!0},this._wD=this._writeDebug=function(){return!0},this._debug=function(){},this.reboot=function(e,n){var i,o,a;for(i=u.soundIDs.length-1;i>=0;i--)u.sounds[u.soundIDs[i]].destruct();if(l)try{Et&&(Z=l.innerHTML),Y=l.parentNode.removeChild(l)}catch(s){}if(Z=Y=pt=l=null,u.enabled=q=M=ot=at=v=O=P=Lt=u.swfLoaded=!1,u.soundIDs=[],u.sounds={},Ft=0,e)g=[];else for(i in g)if(g.hasOwnProperty(i))for(o=0,a=g[i].length;a>o;o++)g[i][o].fired=!1;return u.html5={usingFlash:null},u.flash={},u.html5Only=!1,u.ignoreFlash=!1,t.setTimeout(function(){R(),n||u.beginDelayedInit()},20),u},this.reset=function(){return u.reboot(!0,!0)},this.getMoviePercent=function(){return l&&"PercentLoaded"in l?l.PercentLoaded():null},this.beginDelayedInit=function(){b=!0,U(),setTimeout(function(){return at?!1:(V(),N(),at=!0)},20),F()},this.destruct=function(){u.disable(!0)},s=function(t){var n,i,o,a,s,d,f,h,c,p,m,_=this,g=!1,v=[],O=0,M=null;i=n=null,this.sID=this.id=t.id,this.url=t.url,this._iO=this.instanceOptions=this.options=T(t),this.pan=this.options.pan,this.volume=this.options.volume,this.isHTML5=!1,this._a=null,m=this.url?!1:!0,this.id3={},this._debug=function(){},this.load=function(t){var n,i=null;if(t!==e?_._iO=T(t,_.options):(t=_.options,_._iO=t,M&&M!==_.url&&(_._iO.url=_.url,_.url=null)),_._iO.url||(_._iO.url=_.url),_._iO.url=ft(_._iO.url),n=_.instanceOptions=_._iO,!n.url&&!_.url)return _;if(n.url===_.url&&0!==_.readyState&&2!==_.readyState)return 3===_.readyState&&n.onload&&Ht(_,function(){n.onload.apply(_,[!!_.duration])}),_;if(_.loaded=!1,_.readyState=1,_.playState=0,_.id3={},_t(n))i=_._setup_html5(n),i._called_load||(_._html5_canplay=!1,_.url!==n.url&&(_._a.src=n.url,_.setPosition(0)),_._a.autobuffer="auto",_._a.preload="auto",_._a._called_load=!0);else{if(u.html5Only||_._iO.url&&_._iO.url.match(/data:/i))return _;try{_.isHTML5=!1,_._iO=nt(et(n)),_._iO.autoPlay&&(_._iO.position||_._iO.from)&&(_._iO.autoPlay=!1),n=_._iO,8===y?l._load(_.id,n.url,n.stream,n.autoPlay,n.usePolicyFile):l._load(_.id,n.url,!!n.stream,!!n.autoPlay,n.loops||1,!!n.autoLoad,n.usePolicyFile)}catch(o){Q({type:"SMSOUND_LOAD_JS_EXCEPTION",fatal:!0})}}return _.url=n.url,_},this.unload=function(){return 0!==_.readyState&&(_.isHTML5?(d(),_._a&&(_._a.pause(),M=vt(_._a))):8===y?l._unload(_.id,"about:blank"):l._unload(_.id),o()),_},this.destruct=function(t){_.isHTML5?(d(),_._a&&(_._a.pause(),vt(_._a),Lt||s(),_._a._s=null,_._a=null)):(_._iO.onfailure=null,l._destroySound(_.id)),t||u.destroySound(_.id,!0)},this.start=this.play=function(t,n){var i,o,a,s,r;if(o=!0,o=null,n=n===e?!0:n,t||(t={}),_.url&&(_._iO.url=_.url),_._iO=T(_._iO,_.options),_._iO=T(t,_._iO),_._iO.url=ft(_._iO.url),_.instanceOptions=_._iO,!_.isHTML5&&_._iO.serverURL&&!_.connected)return _.getAutoPlay()||_.setAutoPlay(!0),_;if(_t(_._iO)&&(_._setup_html5(_._iO),f()),1===_.playState&&!_.paused&&(i=_._iO.multiShot,i||(_.isHTML5&&_.setPosition(_._iO.position),o=_)),null!==o)return o;if(t.url&&t.url!==_.url&&(_.readyState||_.isHTML5||8!==y||!m?_.load(_._iO):m=!1),_.loaded||(0===_.readyState?(_.isHTML5||u.html5Only?_.isHTML5?_.load(_._iO):o=_:(_._iO.autoPlay=!0,_.load(_._iO)),_.instanceOptions=_._iO):2===_.readyState&&(o=_)),null!==o)return o;if(!_.isHTML5&&9===y&&0<_.position&&_.position===_.duration&&(t.position=0),_.paused&&0<=_.position&&(!_._iO.serverURL||0<_.position))_.resume();else{if(_._iO=T(t,_._iO),(!_.isHTML5&&null!==_._iO.position&&0<_._iO.position||null!==_._iO.from&&0<_._iO.from||null!==_._iO.to)&&0===_.instanceCount&&0===_.playState&&!_._iO.serverURL){if(i=function(){_._iO=T(t,_._iO),_.play(_._iO)},_.isHTML5&&!_._html5_canplay?(_.load({_oncanplay:i}),o=!1):_.isHTML5||_.loaded||_.readyState&&2===_.readyState||(_.load({onload:i}),o=!1),null!==o)return o;_._iO=p()}(!_.instanceCount||_._iO.multiShotEvents||_.isHTML5&&_._iO.multiShot&&!Lt||!_.isHTML5&&y>8&&!_.getAutoPlay())&&_.instanceCount++,_._iO.onposition&&0===_.playState&&h(_),_.playState=1,_.paused=!1,_.position=_._iO.position===e||isNaN(_._iO.position)?0:_._iO.position,_.isHTML5||(_._iO=nt(et(_._iO))),_._iO.onplay&&n&&(_._iO.onplay.apply(_),g=!0),_.setVolume(_._iO.volume,!0),_.setPan(_._iO.pan,!0),_.isHTML5?2>_.instanceCount?(f(),o=_._setup_html5(),_.setPosition(_._iO.position),o.play()):(a=new Audio(_._iO.url),s=function(){Pt.remove(a,"ended",s),_._onfinish(_),vt(a),a=null},r=function(){Pt.remove(a,"canplay",r);try{a.currentTime=_._iO.position/1e3}catch(t){}a.play()},Pt.add(a,"ended",s),void 0!==_._iO.volume&&(a.volume=Math.max(0,Math.min(1,_._iO.volume/100))),_.muted&&(a.muted=!0),_._iO.position?Pt.add(a,"canplay",r):a.play()):(o=l._start(_.id,_._iO.loops||1,9===y?_.position:_.position/1e3,_._iO.multiShot||!1),9===y&&!o&&_._iO.onplayerror&&_._iO.onplayerror.apply(_))}return _},this.stop=function(t){var e=_._iO;return 1===_.playState&&(_._onbufferchange(0),_._resetOnPosition(0),_.paused=!1,_.isHTML5||(_.playState=0),c(),e.to&&_.clearOnPosition(e.to),_.isHTML5?_._a&&(t=_.position,_.setPosition(0),_.position=t,_._a.pause(),_.playState=0,_._onTimer(),d()):(l._stop(_.id,t),e.serverURL&&_.unload()),_.instanceCount=0,_._iO={},e.onstop&&e.onstop.apply(_)),_},this.setAutoPlay=function(t){_._iO.autoPlay=t,_.isHTML5||(l._setAutoPlay(_.id,t),t&&!_.instanceCount&&1===_.readyState&&_.instanceCount++)},this.getAutoPlay=function(){return _._iO.autoPlay},this.setPosition=function(t){t===e&&(t=0);var n=_.isHTML5?Math.max(t,0):Math.min(_.duration||_._iO.duration,Math.max(t,0));if(_.position=n,t=_.position/1e3,_._resetOnPosition(_.position),_._iO.position=n,_.isHTML5){if(_._a){if(_._html5_canplay){if(_._a.currentTime!==t)try{_._a.currentTime=t,(0===_.playState||_.paused)&&_._a.pause()}catch(i){}}else if(t)return _;_.paused&&_._onTimer(!0)}}else t=9===y?_.position:t,_.readyState&&2!==_.readyState&&l._setPosition(_.id,t,_.paused||!_.playState,_._iO.multiShot);return _},this.pause=function(t){return _.paused||0===_.playState&&1!==_.readyState?_:(_.paused=!0,_.isHTML5?(_._setup_html5().pause(),d()):(t||t===e)&&l._pause(_.id,_._iO.multiShot),_._iO.onpause&&_._iO.onpause.apply(_),_)},this.resume=function(){var t=_._iO;return _.paused?(_.paused=!1,_.playState=1,_.isHTML5?(_._setup_html5().play(),f()):(t.isMovieStar&&!t.serverURL&&_.setPosition(_.position),l._pause(_.id,t.multiShot)),!g&&t.onplay?(t.onplay.apply(_),g=!0):t.onresume&&t.onresume.apply(_),_):_},this.togglePause=function(){return 0===_.playState?(_.play({position:9!==y||_.isHTML5?_.position/1e3:_.position}),_):(_.paused?_.resume():_.pause(),_)},this.setPan=function(t,n){return t===e&&(t=0),n===e&&(n=!1),_.isHTML5||l._setPan(_.id,t),_._iO.pan=t,n||(_.pan=t,_.options.pan=t),_},this.setVolume=function(t,n){return t===e&&(t=100),n===e&&(n=!1),_.isHTML5?_._a&&(u.muted&&!_.muted&&(_.muted=!0,_._a.muted=!0),_._a.volume=Math.max(0,Math.min(1,t/100))):l._setVolume(_.id,u.muted&&!_.muted||_.muted?0:t),_._iO.volume=t,n||(_.volume=t,_.options.volume=t),_},this.mute=function(){return _.muted=!0,_.isHTML5?_._a&&(_._a.muted=!0):l._setVolume(_.id,0),_},this.unmute=function(){_.muted=!1;var t=_._iO.volume!==e;return _.isHTML5?_._a&&(_._a.muted=!1):l._setVolume(_.id,t?_._iO.volume:_.options.volume),_},this.toggleMute=function(){return _.muted?_.unmute():_.mute()},this.onposition=this.onPosition=function(t,n,i){return v.push({position:parseInt(t,10),method:n,scope:i!==e?i:_,fired:!1}),_},this.clearOnPosition=function(t,e){var n;if(t=parseInt(t,10),isNaN(t))return!1;for(n=0;n<v.length;n++)t!==v[n].position||e&&e!==v[n].method||(v[n].fired&&O--,v.splice(n,1))},this._processOnPosition=function(){var t,e;if(t=v.length,!t||!_.playState||O>=t)return!1;for(t-=1;t>=0;t--)e=v[t],!e.fired&&_.position>=e.position&&(e.fired=!0,O++,e.method.apply(e.scope,[e.position]));return!0},this._resetOnPosition=function(t){var e,n;if(e=v.length,!e)return!1;for(e-=1;e>=0;e--)n=v[e],n.fired&&t<=n.position&&(n.fired=!1,O--);return!0},p=function(){var t,e,n=_._iO,i=n.from,o=n.to;return e=function(){_.clearOnPosition(o,e),_.stop()},t=function(){null===o||isNaN(o)||_.onPosition(o,e)},null!==i&&!isNaN(i)&&(n.position=i,n.multiShot=!1,t()),n},h=function(){var t,e=_._iO.onposition;if(e)for(t in e)e.hasOwnProperty(t)&&_.onPosition(parseInt(t,10),e[t])},c=function(){var t,e=_._iO.onposition;if(e)for(t in e)e.hasOwnProperty(t)&&_.clearOnPosition(parseInt(t,10))},f=function(){_.isHTML5&&st(_)},d=function(){_.isHTML5&&ut(_)},o=function(t){t||(v=[],O=0),g=!1,_._hasTimer=null,_._a=null,_._html5_canplay=!1,_.bytesLoaded=null,_.bytesTotal=null,_.duration=_._iO&&_._iO.duration?_._iO.duration:null,_.durationEstimate=null,_.buffered=[],_.eqData=[],_.eqData.left=[],_.eqData.right=[],_.failures=0,_.isBuffering=!1,_.instanceOptions={},_.instanceCount=0,_.loaded=!1,_.metadata={},_.readyState=0,_.muted=!1,_.paused=!1,_.peakData={left:0,right:0},_.waveformData={left:[],right:[]},_.playState=0,_.position=null,_.id3={}},o(),this._onTimer=function(t){var e,o=!1,a={};return _._hasTimer||t?(_._a&&(t||(0<_.playState||1===_.readyState)&&!_.paused)&&(e=_._get_html5_duration(),e!==n&&(n=e,_.duration=e,o=!0),_.durationEstimate=_.duration,e=1e3*_._a.currentTime||0,e!==i&&(i=e,o=!0),(o||t)&&_._whileplaying(e,a,a,a,a)),o):void 0},this._get_html5_duration=function(){var t=_._iO;return(t=_._a&&_._a.duration?1e3*_._a.duration:t&&t.duration?t.duration:null)&&!isNaN(t)&&1/0!==t?t:null},this._apply_loop=function(t,e){t.loop=e>1?"loop":""},this._setup_html5=function(t){t=T(_._iO,t);var e,n=Lt?r:_._a,i=decodeURI(t.url);if(Lt?i===decodeURI(Tt)&&(e=!0):i===decodeURI(M)&&(e=!0),n){if(n._s)if(Lt)n._s&&n._s.playState&&!e&&n._s.stop();else if(!Lt&&i===decodeURI(M))return _._apply_loop(n,t.loops),n;e||(M&&o(!1),n.src=t.url,Tt=M=_.url=t.url,n._called_load=!1)}else t.autoLoad||t.autoPlay?(_._a=new Audio(t.url),_._a.load()):_._a=Nt&&10>opera.version()?new Audio(null):new Audio,n=_._a,n._called_load=!1,Lt&&(r=n);return _.isHTML5=!0,_._a=n,n._s=_,a(),_._apply_loop(n,t.loops),t.autoLoad||t.autoPlay?_.load():(n.autobuffer=!1,n.preload="auto"),n},a=function(){if(_._a._added_events)return!1;var t;_._a._added_events=!0;for(t in At)At.hasOwnProperty(t)&&_._a&&_._a.addEventListener(t,At[t],!1);return!0},s=function(){var t;_._a._added_events=!1;for(t in At)At.hasOwnProperty(t)&&_._a&&_._a.removeEventListener(t,At[t],!1)},this._onload=function(t){var e=!!t||!_.isHTML5&&8===y&&_.duration;return _.loaded=e,_.readyState=e?3:2,_._onbufferchange(0),_._iO.onload&&Ht(_,function(){_._iO.onload.apply(_,[e])}),!0},this._onbufferchange=function(t){return 0===_.playState||t&&_.isBuffering||!t&&!_.isBuffering?!1:(_.isBuffering=1===t,_._iO.onbufferchange&&_._iO.onbufferchange.apply(_,[t]),!0)},this._onsuspend=function(){return _._iO.onsuspend&&_._iO.onsuspend.apply(_),!0},this._onfailure=function(t,e,n){_.failures++,_._iO.onfailure&&1===_.failures&&_._iO.onfailure(t,e,n)},this._onwarning=function(t,e,n){_._iO.onwarning&&_._iO.onwarning(t,e,n)},this._onfinish=function(){var t=_._iO.onfinish;_._onbufferchange(0),_._resetOnPosition(0),_.instanceCount&&(_.instanceCount--,_.instanceCount||(c(),_.playState=0,_.paused=!1,_.instanceCount=0,_.instanceOptions={},_._iO={},d(),_.isHTML5&&(_.position=0)),(!_.instanceCount||_._iO.multiShotEvents)&&t&&Ht(_,function(){t.apply(_)}))},this._whileloading=function(t,e,n,i){var o=_._iO;_.bytesLoaded=t,_.bytesTotal=e,_.duration=Math.floor(n),_.bufferLength=i,_.durationEstimate=_.isHTML5||o.isMovieStar?_.duration:o.duration?_.duration>o.duration?_.duration:o.duration:parseInt(_.bytesTotal/_.bytesLoaded*_.duration,10),_.isHTML5||(_.buffered=[{start:0,end:_.duration}]),(3!==_.readyState||_.isHTML5)&&o.whileloading&&o.whileloading.apply(_)},this._whileplaying=function(t,n,i,o,a){var s=_._iO;return isNaN(t)||null===t?!1:(_.position=Math.max(0,t),_._processOnPosition(),!_.isHTML5&&y>8&&(s.usePeakData&&n!==e&&n&&(_.peakData={left:n.leftPeak,right:n.rightPeak}),s.useWaveformData&&i!==e&&i&&(_.waveformData={left:i.split(","),right:o.split(",")}),s.useEQData&&a!==e&&a&&a.leftEQ&&(t=a.leftEQ.split(","),_.eqData=t,_.eqData.left=t,a.rightEQ!==e&&a.rightEQ&&(_.eqData.right=a.rightEQ.split(",")))),1===_.playState&&(!_.isHTML5&&8===y&&!_.position&&_.isBuffering&&_._onbufferchange(0),s.whileplaying&&s.whileplaying.apply(_)),!0)},this._oncaptiondata=function(t){_.captiondata=t,_._iO.oncaptiondata&&_._iO.oncaptiondata.apply(_,[t])},this._onmetadata=function(t,e){var n,i,o={};for(n=0,i=t.length;i>n;n++)o[t[n]]=e[n];_.metadata=o,console.log("updated metadata",_.metadata),_._iO.onmetadata&&_._iO.onmetadata.call(_,_.metadata)},this._onid3=function(t,e){var n,i,o=[];for(n=0,i=t.length;i>n;n++)o[t[n]]=e[n];_.id3=T(_.id3,o),_._iO.onid3&&_._iO.onid3.apply(_)},this._onconnect=function(t){t=1===t,(_.connected=t)&&(_.failures=0,it(_.id)&&(_.getAutoPlay()?_.play(e,_.getAutoPlay()):_._iO.autoLoad&&_.load()),_._iO.onconnect&&_._iO.onconnect.apply(_,[t]))},this._ondataerror=function(){0<_.playState&&_._iO.ondataerror&&_._iO.ondataerror.apply(_)}},j=function(){return c.body||c.getElementsByTagName("div")[0]},d=function(t){return c.getElementById(t)},T=function(t,n){var i,o,a=t||{};i=n===e?u.defaultOptions:n;for(o in i)i.hasOwnProperty(o)&&a[o]===e&&(a[o]="object"!=typeof i[o]||null===i[o]?i[o]:T(a[o],i[o]));return a},Ht=function(e,n){e.isHTML5||8!==y?n():t.setTimeout(n,0)},S={onready:1,ontimeout:1,defaultOptions:1,flash9Options:1,movieStarOptions:1},w=function(t,n){var i,o=!0,a=n!==e,s=u.setupOptions;for(i in t)if(t.hasOwnProperty(i))if("object"!=typeof t[i]||null===t[i]||t[i]instanceof Array||t[i]instanceof RegExp)a&&S[n]!==e?u[n][i]=t[i]:s[i]!==e?(u.setupOptions[i]=t[i],u[i]=t[i]):S[i]===e?o=!1:u[i]instanceof Function?u[i].apply(u,t[i]instanceof Array?t[i]:[t[i]]):u[i]=t[i];else{if(S[i]!==e)return w(t[i],i);o=!1}return o},Pt=function(){function e(t){t=bt.call(t);var e=t.length;return i?(t[1]="on"+t[1],e>3&&t.pop()):3===e&&t.push(!1),t}function n(t,e){var n=t.shift(),a=[o[e]];i?n[a](t[0],t[1]):n[a].apply(n,t)}var i=t.attachEvent,o={add:i?"attachEvent":"addEventListener",remove:i?"detachEvent":"removeEventListener"};return{add:function(){n(e(arguments),"add")},remove:function(){n(e(arguments),"remove")}}}(),At={abort:a(function(){}),canplay:a(function(){var t,n=this._s;if(n._html5_canplay)return!0;if(n._html5_canplay=!0,n._onbufferchange(0),t=n._iO.position===e||isNaN(n._iO.position)?null:n._iO.position/1e3,this.currentTime!==t)try{this.currentTime=t}catch(i){}n._iO._oncanplay&&n._iO._oncanplay()}),canplaythrough:a(function(){var t=this._s;t.loaded||(t._onbufferchange(0),t._whileloading(t.bytesLoaded,t.bytesTotal,t._get_html5_duration()),t._onload(!0))}),durationchange:a(function(){var t,e=this._s;t=e._get_html5_duration(),!isNaN(t)&&t!==e.duration&&(e.durationEstimate=e.duration=t)}),ended:a(function(){this._s._onfinish()}),error:a(function(){this._s._onload(!1)}),loadeddata:a(function(){var t=this._s;!t._loaded&&!xt&&(t.duration=t._get_html5_duration())}),loadedmetadata:a(function(){}),loadstart:a(function(){this._s._onbufferchange(1)}),play:a(function(){this._s._onbufferchange(0)}),playing:a(function(){this._s._onbufferchange(0)}),progress:a(function(t){var e,n,i,o=this._s,a=0;if(a=t.target.buffered,e=t.loaded||0,i=t.total||1,o.buffered=[],a&&a.length){for(e=0,n=a.length;n>e;e++)o.buffered.push({start:1e3*a.start(e),end:1e3*a.end(e)});a=1e3*(a.end(0)-a.start(0)),e=Math.min(1,a/(1e3*t.target.duration))}isNaN(e)||(o._whileloading(e,i,o._get_html5_duration()),e&&i&&e===i&&At.canplaythrough.call(this,t))}),ratechange:a(function(){}),suspend:a(function(t){var e=this._s;At.progress.call(this,t),e._onsuspend()}),stalled:a(function(){}),timeupdate:a(function(){this._s._onTimer()}),waiting:a(function(){this._s._onbufferchange(1)})},_t=function(t){return t&&(t.type||t.url||t.serverURL)?t.serverURL||t.type&&o(t.type)?!1:t.type?yt({type:t.type}):yt({url:t.url})||u.html5Only||t.url.match(/data:/i):!1},vt=function(t){var e;return t&&(e=xt?"about:blank":u.html5.canPlayType("audio/wav")?"data:audio/wave;base64,/UklGRiYAAABXQVZFZm10IBAAAAABAAEARKwAAIhYAQACABAAZGF0YQIAAAD//w==":"about:blank",t.src=e,void 0!==t._called_unload&&(t._called_load=!1)),Lt&&(Tt=null),e},yt=function(t){var n,i,a;if(!u.useHTML5Audio||!u.hasHTML5)return!1;if(n=t.url||null,t=t.type||null,i=u.audioFormats,t&&u.html5[t]!==e)return u.html5[t]&&!o(t);if(!gt){gt=[];for(a in i)i.hasOwnProperty(a)&&(gt.push(a),i[a].related&&(gt=gt.concat(i[a].related)));gt=RegExp("\.("+gt.join("|")+")(\?.*)?$","i")}return a=n?n.toLowerCase().match(gt):null,a&&a.length?a=a[1]:t&&(n=t.indexOf(";"),a=(-1!==n?t.substr(0,n):t).substr(6)),a&&u.html5[a]!==e?n=u.html5[a]&&!o(a):(t="audio/"+a,n=u.html5.canPlayType({type:t}),n=(u.html5[a]=n)&&u.html5[t]&&!o(t)),n},Mt=function(){function t(t){var e,n=e=!1;if(!s||"function"!=typeof s.canPlayType)return e;if(t instanceof Array){for(a=0,e=t.length;e>a;a++)(u.html5[t[a]]||s.canPlayType(t[a]).match(u.html5Test))&&(n=!0,u.html5[t[a]]=!0,u.flash[t[a]]=!!t[a].match(Vt));e=n}else t=s&&"function"==typeof s.canPlayType?s.canPlayType(t):!1,e=!(!t||!t.match(u.html5Test));return e}if(!u.useHTML5Audio||!u.hasHTML5)return pt=u.html5.usingFlash=!0,!1;var n,i,o,a,s=Audio!==e?Nt&&10>opera.version()?new Audio(null):new Audio:null,r={};o=u.audioFormats;for(n in o)if(o.hasOwnProperty(n)&&(i="audio/"+n,r[n]=t(o[n].type),r[i]=r[n],n.match(Vt)?(u.flash[n]=!0,u.flash[i]=!0):(u.flash[n]=!1,u.flash[i]=!1),o[n]&&o[n].related))for(a=o[n].related.length-1;a>=0;a--)r["audio/"+o[n].related[a]]=r[n],u.html5[o[n].related[a]]=r[n],u.flash[o[n].related[a]]=r[n];return r.canPlayType=s?t:null,u.html5=T(u.html5,r),u.html5.usingFlash=mt(),pt=u.html5.usingFlash,!0},x={},G=function(){},et=function(t){return 8===y&&1<t.loops&&t.stream&&(t.stream=!1),t},nt=function(t){return t&&!t.usePolicyFile&&(t.onid3||t.usePeakData||t.useWaveformData||t.useEQData)&&(t.usePolicyFile=!0),t},p=function(){return!1},X=function(t){for(var e in t)t.hasOwnProperty(e)&&"function"==typeof t[e]&&(t[e]=p)},K=function(t){t===e&&(t=!1),(P||t)&&u.disable(t)},J=function(t){var e=null;if(t)if(t.match(/.swf(?.*)?$/i)){if(e=t.substr(t.toLowerCase().lastIndexOf(".swf?")+4))return t}else t.lastIndexOf("/")!==t.length-1&&(t+="/");return t=(t&&-1!==t.lastIndexOf("/")?t.substr(0,t.lastIndexOf("/")+1):"./")+u.movieURL,u.noSWFCache&&(t+="?ts="+(new Date).getTime()),t},E=function(){y=parseInt(u.flashVersion,10),8!==y&&9!==y&&(u.flashVersion=y=8);var t=u.debugMode||u.debugFlash?"_debug.swf":".swf";u.useHTML5Audio&&!u.html5Only&&u.audioFormats.mp4.required&&9>y&&(u.flashVersion=y=9),u.version=u.versionNumber+(u.html5Only?" (HTML5-only mode)":9===y?" (AS3/Flash 9)":" (AS2/Flash 8)"),y>8?(u.defaultOptions=T(u.defaultOptions,u.flash9Options),u.features.buffering=!0,u.defaultOptions=T(u.defaultOptions,u.movieStarOptions),u.filePatterns.flash9=RegExp("\.(mp3|"+Xt.join("|")+")(\?.*)?$","i"),u.features.movieStar=!0):u.features.movieStar=!1,u.filePattern=u.filePatterns[8!==y?"flash9":"flash8"],u.movieURL=(8===y?"soundmanager2.swf":"soundmanager2_flash9.swf").replace(".swf",t),u.features.peakData=u.features.waveformData=u.features.eqData=y>8},W=function(t,e){return l?void l._setPolling(t,e):!1},$=function(){},it=this.getSoundById,tt=function(){var t=[];return u.debugMode&&t.push("sm2_debug"),u.debugFlash&&t.push("flash_debug"),u.useHighPerformance&&t.push("high_performance"),t.join(" ")},z=function(){G("fbHandler");var t=u.getMoviePercent(),e={type:"FLASHBLOCK"};return u.html5Only?!1:void(u.ok()?u.oMC&&(u.oMC.className=[tt(),"movieContainer","swf_loaded"+(u.didFlashBlock?" swf_unblocked":"")].join(" ")):(pt&&(u.oMC.className=tt()+" movieContainer "+(null===t?"swf_timedout":"swf_error")),u.didFlashBlock=!0,A({type:"ontimeout",ignoreInit:!0,error:e}),Q(e)))},I=function(t,n,i){g[t]===e&&(g[t]=[]),g[t].push({method:n,scope:i||null,fired:!1})},A=function(t){if(t||(t={type:u.ok()?"onready":"ontimeout"}),!M&&t&&!t.ignoreInit||"ontimeout"===t.type&&(u.ok()||P&&!t.ignoreInit))return!1;var e,n={success:t&&t.ignoreInit?u.ok():!P},i=t&&t.type?g[t.type]||[]:[],o=[],n=[n],a=pt&&!u.ok();for(t.error&&(n[0].error=t.error),t=0,e=i.length;e>t;t++)!0!==i[t].fired&&o.push(i[t]);if(o.length)for(t=0,e=o.length;e>t;t++)o[t].scope?o[t].method.apply(o[t].scope,n):o[t].method.apply(this,n),a||(o[t].fired=!0);return!0},H=function(){t.setTimeout(function(){u.useFlashBlock&&z(),A(),"function"==typeof u.onload&&u.onload.apply(t),u.waitForWindowLoad&&Pt.add(t,"load",H)},1)},St=function(){if(wt!==e)return wt;var n,i=!1,o=navigator,a=o.plugins,s=t.ActiveXObject;if(a&&a.length)(o=o.mimeTypes)&&o["application/x-shockwave-flash"]&&o["application/x-shockwave-flash"].enabledPlugin&&o["application/x-shockwave-flash"].enabledPlugin.description&&(i=!0);else if(s!==e&&!f.match(/MSAppHost/i)){try{n=new s("ShockwaveFlash.ShockwaveFlash")}catch(u){n=null}i=!!n}return wt=i},mt=function(){var t,e,n=u.audioFormats;if(Dt&&f.match(/os (1|2|3_0|3_1)s/i)?(u.hasHTML5=!1,u.html5Only=!0,u.oMC&&(u.oMC.style.display="none")):!u.useHTML5Audio||u.html5&&u.html5.canPlayType||(u.hasHTML5=!1),u.useHTML5Audio&&u.hasHTML5)for(e in ct=!0,n)n.hasOwnProperty(e)&&n[e].required&&(u.html5.canPlayType(n[e].type)?u.preferFlash&&(u.flash[e]||u.flash[n[e].type])&&(t=!0):(ct=!1,t=!0));return u.ignoreFlash&&(t=!1,ct=!0),u.html5Only=u.hasHTML5&&u.useHTML5Audio&&!t,!u.html5Only},ft=function(t){var e,n,i=0;if(t instanceof Array){for(e=0,n=t.length;n>e;e++)if(t[e]instanceof Object){if(u.canPlayMIME(t[e].type)){i=e;break}}else if(u.canPlayURL(t[e])){i=e;break}t[i].url&&(t[i]=t[i].url),t=t[i]}return t},st=function(t){t._hasTimer||(t._hasTimer=!0,!Rt&&u.html5PollingInterval&&(null===dt&&0===lt&&(dt=setInterval(rt,u.html5PollingInterval)),lt++))},ut=function(t){t._hasTimer&&(t._hasTimer=!1,!Rt&&u.html5PollingInterval&<--)},rt=function(){var t;if(null!==dt&&!lt)return clearInterval(dt),dt=null,!1;for(t=u.soundIDs.length-1;t>=0;t--)u.sounds[u.soundIDs[t]].isHTML5&&u.sounds[u.soundIDs[t]]._hasTimer&&u.sounds[u.soundIDs[t]]._onTimer()},Q=function(n){n=n!==e?n:{},"function"==typeof u.onerror&&u.onerror.apply(t,[{type:n.type!==e?n.type:null}]),n.fatal!==e&&n.fatal&&u.disable()},It=function(){if(!Ut||!St())return!1;var t,e,n=u.audioFormats;for(e in n)if(n.hasOwnProperty(e)&&("mp3"===e||"mp4"===e)&&(u.html5[e]=!1,n[e]&&n[e].related))for(t=n[e].related.length-1;t>=0;t--)u.html5[n[e].related[t]]=!1},this._setSandboxType=function(){},this._externalInterfaceOK=function(){return u.swfLoaded?!1:(u.swfLoaded=!0,qt=!1,Ut&&It(),void setTimeout(_,Et?100:1))},V=function(t,n){function i(t,e){return'<param name="'+t+'" value="'+e+'" />'}if(v&&O)return!1;if(u.html5Only)return E(),u.oMC=d(u.movieID),_(),O=v=!0,!1;var o,a,s,r=n||u.url,l=u.altURL||r,h=j(),p=tt(),m=null,m=c.getElementsByTagName("html")[0],m=m&&m.dir&&m.dir.match(/rtl/i);if(t=t===e?u.id:t,E(),u.url=J(Qt?r:l),n=u.url,u.wmode=!u.wmode&&u.useHighPerformance?"transparent":u.wmode,null!==u.wmode&&(f.match(/msie 8/i)||!Et&&!u.useHighPerformance)&&navigator.platform.match(/win32|win64/i)&&(ht.push(x.spcWmode),u.wmode=null),h={name:t,id:t,src:n,quality:"high",allowScriptAccess:u.allowScriptAccess,bgcolor:u.bgColor,pluginspage:Wt+"www.macromedia.com/go/getflashplayer",title:"JS/Flash audio component (SoundManager 2)",type:"application/x-shockwave-flash",wmode:u.wmode,hasPriority:"true"},u.debugFlash&&(h.FlashVars="debug=1"),u.wmode||delete h.wmode,Et)r=c.createElement("div"),a=""+('<object id="'+t+'" data="'+n+'" type="'+h.type+'" title="'+h.title+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="'+Wt+'download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0">')+i("movie",n)+i("AllowScriptAccess",u.allowScriptAccess)+i("quality",h.quality)+(u.wmode?i("wmode",u.wmode):"")+i("bgcolor",u.bgColor)+i("hasPriority","true")+(u.debugFlash?i("FlashVars",h.FlashVars):"")+"</object>";else for(o in r=c.createElement("embed"),h)h.hasOwnProperty(o)&&r.setAttribute(o,h[o]);if($(),p=tt(),h=j())if(u.oMC=d(u.movieID)||c.createElement("div"),u.oMC.id)s=u.oMC.className,u.oMC.className=(s?s+" ":"movieContainer")+(p?" "+p:""),u.oMC.appendChild(r),Et&&(o=u.oMC.appendChild(c.createElement("div")),o.className="sm2-object-box",o.innerHTML=a),O=!0;else{if(u.oMC.id=u.movieID,u.oMC.className="movieContainer "+p,o=p=null,u.useFlashBlock||(u.useHighPerformance?p={position:"fixed",width:"8px",height:"8px",bottom:"0px",
left:"0px",overflow:"hidden"}:(p={position:"absolute",width:"6px",height:"6px",top:"-9999px",left:"-9999px"},m&&(p.left=Math.abs(parseInt(p.left,10))+"px"))),kt&&(u.oMC.style.zIndex=1e4),!u.debugFlash)for(s in p)p.hasOwnProperty(s)&&(u.oMC.style[s]=p[s]);try{Et||u.oMC.appendChild(r),h.appendChild(u.oMC),Et&&(o=u.oMC.appendChild(c.createElement("div")),o.className="sm2-object-box",o.innerHTML=a),O=!0}catch(y){throw Error(G("domError")+" n"+y)}}return v=!0},N=function(){return u.html5Only?(V(),!1):l||!u.url?!1:(l=u.getMovie(u.id),l||(Y?(Et?u.oMC.innerHTML=Z:u.oMC.appendChild(Y),Y=null,v=!0):V(u.id,u.url),l=u.getMovie(u.id)),"function"==typeof u.oninitmovie&&setTimeout(u.oninitmovie,1),!0)},F=function(){setTimeout(D,1e3)},C=function(){t.setTimeout(function(){u.setup({preferFlash:!1}).reboot(),u.didFlashBlock=!0,u.beginDelayedInit()},1)},D=function(){var e,n=!1;return!u.url||ot?!1:(ot=!0,Pt.remove(t,"load",F),wt&&qt&&!Bt?!1:(M||(e=u.getMoviePercent(),e>0&&100>e&&(n=!0)),void setTimeout(function(){return e=u.getMoviePercent(),n?(ot=!1,t.setTimeout(F,1),!1):void(!M&&jt&&(null===e?u.useFlashBlock||0===u.flashLoadTimeout?u.useFlashBlock&&z():!u.useFlashBlock&&ct?C():A({type:"ontimeout",ignoreInit:!0,error:{type:"INIT_FLASHBLOCK"}}):0!==u.flashLoadTimeout&&(!u.useFlashBlock&&ct?C():K(!0))))},u.flashLoadTimeout)))},k=function(){return Bt||!qt?(Pt.remove(t,"focus",k),!0):(Bt=jt=!0,ot=!1,F(),Pt.remove(t,"focus",k),!0)},L=function(e){if(M)return!1;if(u.html5Only)return M=!0,H(),!0;var n,i=!0;return u.useFlashBlock&&u.flashLoadTimeout&&!u.getMoviePercent()||(M=!0),n={type:!wt&&pt?"NO_FLASH":"INIT_TIMEOUT"},(P||e)&&(u.useFlashBlock&&u.oMC&&(u.oMC.className=tt()+" "+(null===u.getMoviePercent()?"swf_timedout":"swf_error")),A({type:"ontimeout",error:n,ignoreInit:!0}),Q(n),i=!1),P||(u.waitForWindowLoad&&!b?Pt.add(t,"load",H):H()),i},m=function(){var t,n=u.setupOptions;for(t in n)n.hasOwnProperty(t)&&(u[t]===e?u[t]=n[t]:u[t]!==n[t]&&(u.setupOptions[t]=u[t]))},_=function(){if(M)return!1;if(u.html5Only)return M||(Pt.remove(t,"load",u.beginDelayedInit),u.enabled=!0,L()),!0;N();try{l._externalInterfaceTest(!1),W(!0,u.flashPollingInterval||(u.useHighPerformance?10:50)),u.debugMode||l._disableDebug(),u.enabled=!0,u.html5Only||Pt.add(t,"unload",p)}catch(e){return Q({type:"JS_TO_FLASH_EXCEPTION",fatal:!0}),K(!0),L(),!1}return L(),Pt.remove(t,"load",u.beginDelayedInit),!0},U=function(){return q?!1:(q=!0,m(),$(),!wt&&u.hasHTML5&&u.setup({useHTML5Audio:!0,preferFlash:!1}),Mt(),!wt&&pt&&(ht.push(x.needFlash),u.setup({flashLoadTimeout:1})),c.removeEventListener&&c.removeEventListener("DOMContentLoaded",U,!1),N(),!0)},Ot=function(){return"complete"===c.readyState&&(U(),c.detachEvent("onreadystatechange",Ot)),!0},B=function(){b=!0,U(),Pt.remove(t,"load",B)},R=function(){Rt&&(u.setupOptions.useHTML5Audio=!0,u.setupOptions.preferFlash=!1,Dt||Ct&&!f.match(/androids2.3/i))&&(Dt&&(u.ignoreFlash=!0),Lt=!0)},R(),St(),Pt.add(t,"focus",k),Pt.add(t,"load",F),Pt.add(t,"load",B),c.addEventListener?c.addEventListener("DOMContentLoaded",U,!1):c.attachEvent?c.attachEvent("onreadystatechange",Ot):Q({type:"NO_DOM2_EVENTS",fatal:!0})}if(!t||!t.document)throw Error("SoundManager requires a browser with window and document objects.");var i=null;void 0!==t.SM2_DEFER&&SM2_DEFER||(i=new n),"object"==typeof module&&module&&"object"==typeof module.exports?(t.soundManager=i,module.exports.SoundManager=n,module.exports.soundManager=i):"function"==typeof define&&define.amd?define("SoundManager",[],function(){return{SoundManager:n,soundManager:i}}):(t.SoundManager=n,t.soundManager=i)}(window);
?>