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