var soundManager=null;function SoundManager(h,i){this.flashVersion=8;this.debugMode=true;this.useConsole=true;this.consoleOnly=false;this.waitForWindowLoad=false;this.nullURL="null.mp3";this.allowPolling=true;this.useMovieStar=false;this.bgColor="#ffffff";this.useHighPerformance=false;this.flashLoadTimeout=750;this.wmode=null;this.allowFullScreen=true;this.defaultOptions={autoLoad:false,stream:true,autoPlay:false,onid3:null,onload:null,whileloading:null,onplay:null,onpause:null,onresume:null,whileplaying:null,onstop:null,onfinish:null,onbeforefinish:null,onbeforefinishtime:5000,onbeforefinishcomplete:null,onjustbeforefinish:null,onjustbeforefinishtime:200,multiShot:true,position:null,pan:0,volume:100};this.flash9Options={isMovieStar:null,usePeakData:false,useWaveformData:false,useEQData:false,onbufferchange:null,ondataerror:null};this.movieStarOptions={onmetadata:null,useVideo:false,bufferTime:null};var k=null;var l=this;this.version=null;this.versionNumber="V2.95a.20090501";this.movieURL=null;this.url=null;this.altURL=null;this.swfLoaded=false;this.enabled=false;this.o=null;this.id=(i||"sm2movie");this.oMC=null;this.sounds={};this.soundIDs=[];this.muted=false;this.isFullScreen=false;this.isIE=(navigator.userAgent.match(/MSIE/i));this.isSafari=(navigator.userAgent.match(/safari/i));this.isGecko=(navigator.userAgent.match(/gecko/i));this.debugID="soundmanager-debug";this.specialWmodeCase=false;this._debugOpen=true;this._didAppend=false;this._appendSuccess=false;this._didInit=false;this._disabled=false;this._windowLoaded=false;this._hasConsole=(typeof console!="undefined"&&typeof console.log!="undefined");this._debugLevels=["log","info","warn","error"];this._defaultFlashVersion=8;this._oRemoved=null;this._oRemovedHTML=null;var j=function(a){return document.getElementById(a)};this.filePatterns={flash8:/\.mp3(\?.*)?$/i,flash9:/\.mp3(\?.*)?$/i};this.netStreamTypes=["aac","flv","mov","mp4","m4v","f4v","m4a","mp4v","3gp","3g2"];this.netStreamPattern=new RegExp("\\.("+this.netStreamTypes.join("|")+")(\\?.*)?$","i");this.filePattern=null;this.features={buffering:false,peakData:false,waveformData:false,eqData:false,movieStar:false};this.sandbox={type:null,types:{remote:"remote (domain-based) rules",localWithFile:"local with file access (no internet access)",localWithNetwork:"local with network (internet access only, no local access)",localTrusted:"local, trusted (local + internet access)"},description:null,noRemote:null,noLocal:null};this._setVersionInfo=function(){if(l.flashVersion!=8&&l.flashVersion!=9){alert('soundManager.flashVersion must be 8 or 9. "'+l.flashVersion+'" is invalid. Reverting to '+l._defaultFlashVersion+".");l.flashVersion=l._defaultFlashVersion}l.version=l.versionNumber+(l.flashVersion==9?" (AS3/Flash 9)":" (AS2/Flash 8)");if(l.flashVersion>8){l.defaultOptions=l._mergeObjects(l.defaultOptions,l.flash9Options);l.features.buffering=true}if(l.flashVersion>8&&l.useMovieStar){l.defaultOptions=l._mergeObjects(l.defaultOptions,l.movieStarOptions);l.filePatterns.flash9=new RegExp("\\.(mp3|"+l.netStreamTypes.join("|")+")(\\?.*)?$","i");l.features.movieStar=true}else{l.useMovieStar=false;l.features.movieStar=false}l.filePattern=l.filePatterns[(l.flashVersion!=8?"flash9":"flash8")];l.movieURL=(l.flashVersion==8?"soundmanager2.swf":"soundmanager2_flash9.swf");l.features.peakData=l.features.waveformData=l.features.eqData=(l.flashVersion>8)};this._overHTTP=(document.location?document.location.protocol.match(/http/i):null);this._waitingforEI=false;this._initPending=false;this._tryInitOnFocus=(this.isSafari&&typeof document.hasFocus=="undefined");this._isFocused=(typeof document.hasFocus!="undefined"?document.hasFocus():null);this._okToDisable=!this._tryInitOnFocus;this.useAltURL=!this._overHTTP;var m="http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html";this.strings={notReady:"Not loaded yet",appXHTML:"appendChild/innerHTML set failed."};this.supported=function(){return(l._didInit&&!l._disabled)};this.getMovie=function(a){return l.isIE?window[a]:(l.isSafari?j(a)||document[a]:j(a))};this.loadFromXML=function(b){try{l.o._loadFromXML(b)}catch(a){l._failSafely();return true}};this.createSound=function(b){if(arguments.length==2){b={id:arguments[0],url:arguments[1]}}var a=l._mergeObjects(b);var c=a;if(l._idCheck(c.id,true)){return l.sounds[c.id]}if(l.flashVersion>8&&l.useMovieStar){if(c.isMovieStar===null){c.isMovieStar=(c.url.match(l.netStreamPattern)?true:false)}if(c.isMovieStar){}if(c.isMovieStar&&(c.usePeakData||c.useWaveformData||c.useEQData)){c.usePeakData=false;c.useWaveformData=false;c.useEQData=false}}l.sounds[c.id]=new k(c);l.soundIDs[l.soundIDs.length]=c.id;if(l.flashVersion==8){l.o._createSound(c.id,c.onjustbeforefinishtime)}else{l.o._createSound(c.id,c.url,c.onjustbeforefinishtime,c.usePeakData,c.useWaveformData,c.useEQData,c.isMovieStar,(c.isMovieStar?c.useVideo:false),(c.isMovieStar?c.bufferTime:false))}if(c.autoLoad||c.autoPlay){if(l.sounds[c.id]){l.sounds[c.id].load(c)}}if(c.autoPlay){l.sounds[c.id].play()}return l.sounds[c.id]};this.createVideo=function(a){if(arguments.length==2){a={id:arguments[0],url:arguments[1]}}if(l.flashVersion>=9){a.isMovieStar=true;a.useVideo=true}else{return false}if(!l.useMovieStar){}return l.createSound(a)};this.destroySound=function(b,c){if(!l._idCheck(b)){return false}for(var a=0;a<l.soundIDs.length;a++){if(l.soundIDs[a]==b){l.soundIDs.splice(a,1);continue}}l.sounds[b].unload();if(!c){l.sounds[b].destruct()}delete l.sounds[b]};this.destroyVideo=this.destroySound;this.load=function(b,a){if(!l._idCheck(b)){return false}l.sounds[b].load(a)};this.unload=function(a){if(!l._idCheck(a)){return false}l.sounds[a].unload()};this.play=function(b,a){if(!l._idCheck(b)){if(typeof a!="Object"){a={url:a}}if(a&&a.url){a.id=b;l.createSound(a)}else{return false}}l.sounds[b].play(a)};this.start=this.play;this.setPosition=function(b,a){if(!l._idCheck(b)){return false}l.sounds[b].setPosition(a)};this.stop=function(a){if(!l._idCheck(a)){return false}l.sounds[a].stop()};this.stopAll=function(){for(var a in l.sounds){if(l.sounds[a] instanceof k){l.sounds[a].stop()}}};this.pause=function(a){if(!l._idCheck(a)){return false}l.sounds[a].pause()};this.pauseAll=function(){for(var a=l.soundIDs.length;a--;){l.sounds[l.soundIDs[a]].pause()}};this.resume=function(a){if(!l._idCheck(a)){return false}l.sounds[a].resume()};this.resumeAll=function(){for(var a=l.soundIDs.length;a--;){l.sounds[l.soundIDs[a]].resume()}};this.togglePause=function(a){if(!l._idCheck(a)){return false}l.sounds[a].togglePause()};this.setPan=function(b,a){if(!l._idCheck(b)){return false}l.sounds[b].setPan(a)};this.setVolume=function(a,b){if(!l._idCheck(a)){return false}l.sounds[a].setVolume(b)};this.mute=function(b){if(typeof b!="string"){b=null}if(!b){for(var a=l.soundIDs.length;a--;){l.sounds[l.soundIDs[a]].mute()}l.muted=true}else{if(!l._idCheck(b)){return false}l.sounds[b].mute()}};this.muteAll=function(){l.mute()};this.unmute=function(b){if(typeof b!="string"){b=null}if(!b){for(var a=l.soundIDs.length;a--;){l.sounds[l.soundIDs[a]].unmute()}l.muted=false}else{if(!l._idCheck(b)){return false}l.sounds[b].unmute()}};this.unmuteAll=function(){l.unmute()};this.getMemoryUse=function(){if(l.flashVersion==8){return 0}if(l.o){return parseInt(l.o._getMemoryUse(),10)}};this.setPolling=function(a){if(!l.o||!l.allowPolling){return false}l.o._setPolling(a)};this.disable=function(a){if(typeof a=="undefined"){a=false}if(l._disabled){return false}l._disabled=true;for(var b=l.soundIDs.length;b--;){l._disableObject(l.sounds[l.soundIDs[b]])}l.initComplete(a)};this.canPlayURL=function(a){return(a?(a.match(l.filePattern)?true:false):null)};this.getSoundById=function(b,a){if(!b){throw new Error("SoundManager.getSoundById(): sID is null/undefined")}var c=l.sounds[b];if(!c&&!a){}return c};this.onload=function(){soundManager._wD("Warning: soundManager.onload() is undefined.",2)};this.onerror=function(){};this._idCheck=this.getSoundById;this._complain=function(b,a){};var n=function(){return false};n._protected=true;this._disableObject=function(a){for(var b in a){if(typeof a[b]=="function"&&typeof a[b]._protected=="undefined"){a[b]=n}}b=null};this._failSafely=function(a){if(typeof a=="undefined"){a=false}if(!l._disabled||a){l.disable(a)}};this._normalizeMovieURL=function(b){var a=null;if(b){if(b.match(/\.swf(\?.*)?$/i)){a=b.substr(b.toLowerCase().lastIndexOf(".swf?")+4);if(a){return b}}else{if(b.lastIndexOf("/")!=b.length-1){b=b+"/"}}}return(b&&b.lastIndexOf("/")!=-1?b.substr(0,b.lastIndexOf("/")+1):"./")+l.movieURL};this._getDocument=function(){return(document.body?document.body:(document.documentElement?document.documentElement:document.getElementsByTagName("div")[0]))};this._getDocument._protected=true;this._createMovie=function(b,F){if(l._didAppend&&l._appendSuccess){return false}if(window.location.href.indexOf("debug=1")+1){l.debugMode=true}l._didAppend=true;l._setVersionInfo();var c=(F?F:l.url);var g=(l.altURL?l.altURL:c);l.url=l._normalizeMovieURL(l._overHTTP?c:g);F=l.url;var f=null;if(l.useHighPerformance&&l.useMovieStar&&l.defaultOptions.useVideo===true){f="soundManager note: disabling highPerformance, not applicable with movieStar mode + useVideo";l.useHighPerformance=false}l.wmode=(!l.wmode&&l.useHighPerformance&&!l.useMovieStar?"transparent":l.wmode);if(l.wmode!==null&&l.flashLoadTimeout!==0&&!l.useHighPerformance&&!l.isIE&&navigator.platform.match(/win32/i)){l.specialWmodeCase=true;l.wmode=null}if(l.flashVersion==8){l.allowFullScreen=false}var C={name:b,id:b,src:F,width:"100%",height:"100%",quality:"high",allowScriptAccess:"always",bgcolor:l.bgColor,pluginspage:"http://www.macromedia.com/go/getflashplayer",type:"application/x-shockwave-flash",wmode:l.wmode,allowfullscreen:(l.allowFullScreen?"true":"false")};if(!l.wmode){delete C.wmode}var L={id:b,data:F,type:"application/x-shockwave-flash",width:"100%",height:"100%",wmode:l.wmode};var E=null;var s=null;if(l.isIE){E=document.createElement("div");var e='<object id="'+b+'" data="'+F+'" type="application/x-shockwave-flash" width="100%" height="100%"><param name="movie" value="'+F+'" /><param name="AllowScriptAccess" value="always" /><param name="quality" value="high" />'+(l.wmode?'<param name="wmode" value="'+l.wmode+'" /> ':"")+'<param name="bgcolor" value="'+l.bgColor+'" /><param name="allowFullScreen" value="'+(l.allowFullScreen?"true":"false")+'" /><!-- --></object>'}else{E=document.createElement("embed");for(s in C){if(C.hasOwnProperty(s)){E.setAttribute(s,C[s])}}}var J=document.createElement("div");J.id=l.debugID+"-toggle";var I={position:"fixed",bottom:"0px",right:"0px",width:"1.2em",height:"1.2em",lineHeight:"1.2em",margin:"2px",textAlign:"center",border:"1px solid #999",cursor:"pointer",background:"#fff",color:"#333",zIndex:10001};J.appendChild(document.createTextNode("-"));J.onclick=l._toggleDebug;J.title="Toggle SM2 debug console";if(navigator.userAgent.match(/msie 6/i)){J.style.position="absolute";J.style.cursor="hand"}for(s in I){if(I.hasOwnProperty(s)){J.style[s]=I[s]}}var d=l._getDocument();if(d){l.oMC=j("sm2-container")?j("sm2-container"):document.createElement("div");if(!l.oMC.id){l.oMC.id="sm2-container";l.oMC.className="movieContainer";var D=null;var x=null;if(l.useHighPerformance){D={position:"fixed",width:"8px",height:"8px",bottom:"0px",left:"0px"}}else{D={position:"absolute",width:"1px",height:"1px",top:"-999px",left:"-999px"}}var H=null;for(H in D){if(D.hasOwnProperty(H)){l.oMC.style[H]=D[H]}}try{if(!l.isIE){l.oMC.appendChild(E)}d.appendChild(l.oMC);if(l.isIE){x=l.oMC.appendChild(document.createElement("div"));x.className="sm2-object-box";x.innerHTML=e}l._appendSuccess=true}catch(a){throw new Error(l.strings.appXHTML)}}else{l.oMC.appendChild(E);if(l.isIE){x=l.oMC.appendChild(document.createElement("div"));x.className="sm2-object-box";x.innerHTML=e}l._appendSuccess=true}if(!j(l.debugID)&&((!l._hasConsole||!l.useConsole)||(l.useConsole&&l._hasConsole&&!l.consoleOnly))){var G=document.createElement("div");G.id=l.debugID;G.style.display=(l.debugMode?"block":"none");if(l.debugMode&&!j(J.id)){try{d.appendChild(J)}catch(K){throw new Error(l.strings.appXHTML)}d.appendChild(G)}}d=null}if(f){}};this._writeDebug=function(e,g,c){if(!l.debugMode){return false}if(typeof c!="undefined"&&c){e=e+" | "+new Date().getTime()}if(l._hasConsole&&l.useConsole){var f=l._debugLevels[g];if(typeof console[f]!="undefined"){console[f](e)}else{console.log(e)}if(l.useConsoleOnly){return true}}var o="soundmanager-debug";try{var a=j(o);if(!a){return false}var b=document.createElement("div");if(++l._wdCount%2===0){b.className="sm2-alt"}if(typeof g=="undefined"){g=0}else{g=parseInt(g,10)}b.appendChild(document.createTextNode(e));if(g){if(g>=2){b.style.fontWeight="bold"}if(g==3){b.style.color="#ff3333"}}a.insertBefore(b,a.firstChild)}catch(d){}a=null};this._writeDebug._protected=true;this._wdCount=0;this._wdCount._protected=true;this._wD=this._writeDebug;this._wDAlert=function(a){alert(a)};if(window.location.href.indexOf("debug=alert")+1&&l.debugMode){l._wD=l._wDAlert}this._toggleDebug=function(){var a=j(l.debugID);var b=j(l.debugID+"-toggle");if(!a){return false}if(l._debugOpen){b.innerHTML="+";a.style.display="none"}else{b.innerHTML="-";a.style.display="block"}l._debugOpen=!l._debugOpen};this._toggleDebug._protected=true;this._debug=function(){for(var a=0,b=l.soundIDs.length;a<b;a++){l.sounds[l.soundIDs[a]]._debug()}};this._debugTS=function(a,d,c){if(typeof sm2Debugger!="undefined"){try{sm2Debugger.handleEvent(a,d,c)}catch(b){}}};this._debugTS._protected=true;this._mergeObjects=function(d,e){var a={};for(var c in d){if(d.hasOwnProperty(c)){a[c]=d[c]}}var b=(typeof e=="undefined"?l.defaultOptions:e);for(var f in b){if(b.hasOwnProperty(f)&&typeof a[f]=="undefined"){a[f]=b[f]}}return a};this.createMovie=function(a){if(a){l.url=a}l._initMovie()};this.go=this.createMovie;this._initMovie=function(){if(l.o){return false}l.o=l.getMovie(l.id);if(!l.o){if(!l.oRemoved){l._createMovie(l.id,l.url)}else{if(!l.isIE){l.oMC.appendChild(l.oRemoved)}else{l.oMC.innerHTML=l.oRemovedHTML}l.oRemoved=null;l._didAppend=true}l.o=l.getMovie(l.id)}if(l.o){if(l.flashLoadTimeout>0){}}};this.waitForExternalInterface=function(){if(l._waitingForEI){return false}l._waitingForEI=true;if(l._tryInitOnFocus&&!l._isFocused){return false}if(l.flashLoadTimeout>0){if(!l._didInit){}setTimeout(function(){if(!l._didInit){if(!l._overHTTP){}l._debugTS("flashtojs",false,": Timed out"+(l._overHTTP)?" (Check flash security)":" (No plugin/missing SWF?)")}if(!l._didInit&&l._okToDisable){l._failSafely(true)}},l.flashLoadTimeout)}else{if(!l.didInit){}}};this.handleFocus=function(){if(l._isFocused||!l._tryInitOnFocus){return true}l._okToDisable=true;l._isFocused=true;if(l._tryInitOnFocus){window.removeEventListener("mousemove",l.handleFocus,false)}l._waitingForEI=false;setTimeout(l.waitForExternalInterface,500);if(window.removeEventListener){window.removeEventListener("focus",l.handleFocus,false)}else{if(window.detachEvent){window.detachEvent("onfocus",l.handleFocus)}}};this.initComplete=function(a){if(l._didInit){return false}l._didInit=true;if(l._disabled||a){l._debugTS("onload",false);l.onerror.apply(window);return false}else{l._debugTS("onload",true)}if(l.waitForWindowLoad&&!l._windowLoaded){if(window.addEventListener){window.addEventListener("load",l.initUserOnload,false)}else{if(window.attachEvent){window.attachEvent("onload",l.initUserOnload)}}return false}else{if(l.waitForWindowLoad&&l._windowLoaded){}l.initUserOnload()}};this.initUserOnload=function(){l.onload.apply(window)};this.init=function(){l._initMovie();if(l._didInit){return false}if(window.removeEventListener){window.removeEventListener("load",l.beginDelayedInit,false)}else{if(window.detachEvent){window.detachEvent("onload",l.beginDelayedInit)}}try{l.o._externalInterfaceTest(false);if(!l.allowPolling){}l.setPolling(true);if(!l.debugMode){l.o._disableDebug()}l.enabled=true;l._debugTS("jstoflash",true)}catch(a){l._debugTS("jstoflash",false);l._failSafely(true);l.initComplete();return false}l.initComplete()};this.beginDelayedInit=function(){l._windowLoaded=true;setTimeout(l.waitForExternalInterface,500);setTimeout(l.beginInit,20)};this.beginInit=function(){if(l._initPending){return false}l.createMovie();l._initMovie();l._initPending=true;return true};this.domContentLoaded=function(){if(document.removeEventListener){document.removeEventListener("DOMContentLoaded",l.domContentLoaded,false)}l.go()};this._externalInterfaceOK=function(){if(l.swfLoaded){return false}l._debugTS("swf",true);l._debugTS("flashtojs",true);l.swfLoaded=true;l._tryInitOnFocus=false;if(l.isIE){setTimeout(l.init,100)}else{l.init()}};this._setSandboxType=function(b){var a=l.sandbox;a.type=b;a.description=a.types[(typeof a.types[b]!="undefined"?b:"unknown")];if(a.type=="localWithFile"){a.noRemote=true;a.noLocal=false}else{if(a.type=="localWithNetwork"){a.noRemote=false;a.noLocal=true}else{if(a.type=="localTrusted"){a.noRemote=false;a.noLocal=false}}}};this.reboot=function(){if(l.soundIDs.length){}for(var b=l.soundIDs.length;b--;){l.sounds[l.soundIDs[b]].destruct()}try{if(l.isIE){l.oRemovedHTML=l.o.innerHTML}l.oRemoved=l.o.parentNode.removeChild(l.o)}catch(a){}l.enabled=false;l._didInit=false;l._waitingForEI=false;l._initPending=false;l._didInit=false;l._didAppend=false;l._appendSuccess=false;l._didInit=false;l._disabled=false;l._waitingforEI=true;l.swfLoaded=false;l.soundIDs={};l.sounds=[];l.o=null;window.setTimeout(function(){soundManager.beginDelayedInit()},20)};this.destruct=function(){l.disable(true)};k=function(b){var a=this;this.sID=b.id;this.url=b.url;this.options=l._mergeObjects(b);this.instanceOptions=this.options;this._iO=this.instanceOptions;this.pan=this.options.pan;this.volume=this.options.volume;this._lastURL=null;this._debug=function(){if(l.debugMode){var d=null;var g=[];var e=null;var c=null;var f=64;for(d in a.options){if(a.options[d]!==null){if(a.options[d] instanceof Function){e=a.options[d].toString();e=e.replace(/\s\s+/g," ");c=e.indexOf("{");g[g.length]=" "+d+": {"+e.substr(c+1,(Math.min(Math.max(e.indexOf("\n")-1,f),f))).replace(/\n/g,"")+"... }"}else{g[g.length]=" "+d+": "+a.options[d]}}}}};this._debug();this.id3={};this.resetProperties=function(c){a.bytesLoaded=null;a.bytesTotal=null;a.position=null;a.duration=null;a.durationEstimate=null;a.loaded=false;a.playState=0;a.paused=false;a.readyState=0;a.muted=false;a.didBeforeFinish=false;a.didJustBeforeFinish=false;a.isBuffering=false;a.instanceOptions={};a.instanceCount=0;a.peakData={left:0,right:0};a.waveformData={left:[],right:[]};a.eqData=[]};a.resetProperties();this.load=function(d){if(typeof d!="undefined"){a._iO=l._mergeObjects(d);a.instanceOptions=a._iO}else{d=a.options;a._iO=d;a.instanceOptions=a._iO;if(a._lastURL&&a._lastURL!=a.url){a._iO.url=a.url;a.url=null}}if(typeof a._iO.url=="undefined"){a._iO.url=a.url}if(a._iO.url==a.url&&a.readyState!==0&&a.readyState!=2){return false}a.url=a._iO.url;a._lastURL=a._iO.url;a.loaded=false;a.readyState=1;a.playState=0;try{if(l.flashVersion==8){l.o._load(a.sID,a._iO.url,a._iO.stream,a._iO.autoPlay,(a._iO.whileloading?1:0))}else{l.o._load(a.sID,a._iO.url,a._iO.stream?true:false,a._iO.autoPlay?true:false);if(a._iO.isMovieStar&&a._iO.autoLoad&&!a._iO.autoPlay){a.pause()}}}catch(c){l._debugTS("onload",false);l.onerror();l.disable()}};this.unload=function(){if(a.readyState!==0){if(a.readyState!=2){a.setPosition(0,true)}l.o._unload(a.sID,l.nullURL);a.resetProperties()}};this.destruct=function(){l.o._destroySound(a.sID);l.destroySound(a.sID,true)};this.play=function(c){if(!c){c={}}a._iO=l._mergeObjects(c,a._iO);a._iO=l._mergeObjects(a._iO,a.options);a.instanceOptions=a._iO;if(a.playState==1){var d=a._iO.multiShot;if(!d){return false}else{}}if(!a.loaded){if(a.readyState===0){a._iO.stream=true;a._iO.autoPlay=true;a.load(a._iO)}else{if(a.readyState==2){return false}else{}}}else{}if(a.paused){a.resume()}else{a.playState=1;if(!a.instanceCount||l.flashVersion>8){a.instanceCount++}a.position=(typeof a._iO.position!="undefined"&&!isNaN(a._iO.position)?a._iO.position:0);if(a._iO.onplay){a._iO.onplay.apply(a)}a.setVolume(a._iO.volume,true);a.setPan(a._iO.pan,true);l.o._start(a.sID,a._iO.loop||1,(l.flashVersion==9?a.position:a.position/1000))}};this.start=this.play;this.stop=function(c){if(a.playState==1){a.playState=0;a.paused=false;if(a._iO.onstop){a._iO.onstop.apply(a)}l.o._stop(a.sID,c);a.instanceCount=0;a._iO={}}};this.setPosition=function(d,e){if(typeof d=="undefined"){d=0}var c=Math.min(a.duration,Math.max(d,0));a._iO.position=c;if(!e){}l.o._setPosition(a.sID,(l.flashVersion==9?a._iO.position:a._iO.position/1000),(a.paused||!a.playState))};this.pause=function(){if(a.paused||a.playState===0){return false}a.paused=true;l.o._pause(a.sID);if(a._iO.onpause){a._iO.onpause.apply(a)}};this.resume=function(){if(!a.paused||a.playState===0){return false}a.paused=false;l.o._pause(a.sID);if(a._iO.onresume){a._iO.onresume.apply(a)}};this.togglePause=function(){if(a.playState===0){a.play({position:(l.flashVersion==9?a.position:a.position/1000)});return false}if(a.paused){a.resume()}else{a.pause()}};this.setPan=function(c,d){if(typeof c=="undefined"){c=0}if(typeof d=="undefined"){d=false}l.o._setPan(a.sID,c);a._iO.pan=c;if(!d){a.pan=c}};this.setVolume=function(d,c){if(typeof d=="undefined"){d=100}if(typeof c=="undefined"){c=false}l.o._setVolume(a.sID,(l.muted&&!a.muted)||a.muted?0:d);a._iO.volume=d;if(!c){a.volume=d}};this.mute=function(){a.muted=true;l.o._setVolume(a.sID,0)};this.unmute=function(){a.muted=false;var c=typeof a._iO.volume!="undefined";l.o._setVolume(a.sID,c?a._iO.volume:a.options.volume)};this._whileloading=function(e,d,c){if(!a._iO.isMovieStar){a.bytesLoaded=e;a.bytesTotal=d;a.duration=Math.floor(c);a.durationEstimate=parseInt((a.bytesTotal/a.bytesLoaded)*a.duration,10);if(a.readyState!=3&&a._iO.whileloading){a._iO.whileloading.apply(a)}}else{a.bytesLoaded=e;a.bytesTotal=d;a.duration=Math.floor(c);a.durationEstimate=a.duration;if(a.readyState!=3&&a._iO.whileloading){a._iO.whileloading.apply(a)}}};this._onid3=function(g,e){var f=[];for(var c=0,d=g.length;c<d;c++){f[g[c]]=e[c]}a.id3=l._mergeObjects(a.id3,f);if(a._iO.onid3){a._iO.onid3.apply(a)}};this._whileplaying=function(e,d,g,f,c){if(isNaN(e)||e===null){return false}if(a.playState===0&&e>0){e=0}a.position=e;if(a._iO.usePeakData&&typeof d!="undefined"&&d){a.peakData={left:d.leftPeak,right:d.rightPeak}}if(a._iO.useWaveformData&&typeof g!="undefined"&&g){a.waveformData={left:g.split(","),right:f.split(",")}}if(a._iO.useEQData&&typeof c!="undefined"&&c){a.eqData=c}if(a.playState==1){if(a.isBuffering){a._onbufferchange(0)}if(a._iO.whileplaying){a._iO.whileplaying.apply(a)}if(a.loaded&&a._iO.onbeforefinish&&a._iO.onbeforefinishtime&&!a.didBeforeFinish&&a.duration-a.position<=a._iO.onbeforefinishtime){a._onbeforefinish()}}};this._onload=function(c){c=(c==1?true:false);if(!c){if(l.sandbox.noRemote===true){}if(l.sandbox.noLocal===true){}}a.loaded=c;a.readyState=c?3:2;if(a._iO.onload){a._iO.onload.apply(a)}};this._onbeforefinish=function(){if(!a.didBeforeFinish){a.didBeforeFinish=true;if(a._iO.onbeforefinish){a._iO.onbeforefinish.apply(a)}}};this._onjustbeforefinish=function(c){if(!a.didJustBeforeFinish){a.didJustBeforeFinish=true;if(a._iO.onjustbeforefinish){a._iO.onjustbeforefinish.apply(a)}}};this._onfinish=function(){if(a._iO.onbeforefinishcomplete){a._iO.onbeforefinishcomplete.apply(a)}a.didBeforeFinish=false;a.didJustBeforeFinish=false;if(a.instanceCount){a.instanceCount--;if(!a.instanceCount){a.playState=0;a.paused=false;a.instanceCount=0;a.instanceOptions={};if(a._iO.onfinish){a._iO.onfinish.apply(a)}}}else{if(a.useVideo){}}};this._onmetadata=function(c){if(!c.width&&!c.height){c.width=320;c.height=240}a.metadata=c;a.width=c.width;a.height=c.height;if(a._iO.onmetadata){a._iO.onmetadata.apply(a)}};this._onbufferchange=function(c){if(a.playState===0){return false}if(c==a.isBuffering){return false}a.isBuffering=(c==1?true:false);if(a._iO.onbufferchange){a._iO.onbufferchange.apply(a)}};this._ondataerror=function(c){if(a.playState>0){if(a._iO.ondataerror){a._iO.ondataerror.apply(a)}}else{}}};this._onfullscreenchange=function(b){l.isFullScreen=(b==1?true:false);if(!l.isFullScreen){try{window.focus()}catch(a){}}};if(window.addEventListener){window.addEventListener("focus",l.handleFocus,false);window.addEventListener("load",l.beginDelayedInit,false);window.addEventListener("unload",l.destruct,false);if(l._tryInitOnFocus){window.addEventListener("mousemove",l.handleFocus,false)}}else{if(window.attachEvent){window.attachEvent("onfocus",l.handleFocus);window.attachEvent("onload",l.beginDelayedInit);window.attachEvent("unload",l.destruct)}else{l._debugTS("onload",false);soundManager.onerror();soundManager.disable()}}if(document.addEventListener){document.addEventListener("DOMContentLoaded",l.domContentLoaded,false)}}if(typeof SM2_DEFER=="undefined"||!SM2_DEFER){soundManager=new SoundManager()};