/*!
   SoundManager 2: Javascript Sound for the Web
   --------------------------------------------
   http://schillmania.com/projects/soundmanager2/

   Copyright (c) 2007, Scott Schiller. All rights reserved.
   Code provided under the BSD License:
   http://schillmania.com/projects/soundmanager2/license.txt

   V2.95b.20100101
*/
var soundManager=null;function SoundManager(c,e){this.flashVersion=8;this.debugMode=false;this.debugFlash=false;this.useConsole=true;this.consoleOnly=false;this.waitForWindowLoad=false;this.nullURL="null.mp3";this.allowPolling=true;this.useFastPolling=false;this.useMovieStar=false;this.bgColor="#ffffff";this.useHighPerformance=false;this.flashLoadTimeout=1000;this.wmode=null;this.allowFullScreen=true;this.allowScriptAccess="always";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,multiShotEvents:false,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:2};var d=null;var i=this;var h="soundManager";this.version=null;this.versionNumber="V2.95b.20100101";this.movieURL=null;this.url=null;this.altURL=null;this.swfLoaded=false;this.enabled=false;this.o=null;this.id=(e||"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.debugID="soundmanager-debug";this.debugURLParam=/([#?&])debug=1/i;this.specialWmodeCase=false;this._onready=[];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 f=function(j){return document.getElementById(j)};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(i.flashVersion!=8&&i.flashVersion!=9){alert(i._str("badFV",i.flashVersion,i._defaultFlashVersion));i.flashVersion=i._defaultFlashVersion}i.version=i.versionNumber+(i.flashVersion==9?" (AS3/Flash 9)":" (AS2/Flash 8)");if(i.flashVersion>8){i.defaultOptions=i._mergeObjects(i.defaultOptions,i.flash9Options);i.features.buffering=true}if(i.flashVersion>8&&i.useMovieStar){i.defaultOptions=i._mergeObjects(i.defaultOptions,i.movieStarOptions);i.filePatterns.flash9=new RegExp("\\.(mp3|"+i.netStreamTypes.join("|")+")(\\?.*)?$","i");i.features.movieStar=true}else{i.useMovieStar=false;i.features.movieStar=false}i.filePattern=i.filePatterns[(i.flashVersion!=8?"flash9":"flash8")];i.movieURL=(i.flashVersion==8?"soundmanager2.swf":"soundmanager2_flash9.swf");i.features.peakData=i.features.waveformData=i.features.eqData=(i.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 a="";this.strings={};var b="";this._str=function(){var p=Array.prototype.slice.call(arguments);var n=p.shift();var m=i.strings&&i.strings[n]?i.strings[n]:"";if(m&&p&&p.length){for(var l=0,k=p.length;l<k;l++){m=m.replace("%s",p[l])}}return m};this.supported=function(){return(i._didInit&&!i._disabled)};this.getMovie=function(j){return i.isIE?window[j]:(i.isSafari?f(j)||document[j]:f(j))};this.loadFromXML=function(j){try{i.o._loadFromXML(j)}catch(k){i._failSafely();return true}};this.createSound=function(k){var m="soundManager.createSound(): ";if(!i._didInit){throw i._complain(m+i._str("notReady"),arguments.callee.caller)}if(arguments.length==2){k={id:arguments[0],url:arguments[1]}}var l=i._mergeObjects(k);var j=l;if(j.id.toString().charAt(0).match(/^[0-9]$/)){}if(i._idCheck(j.id,true)){return i.sounds[j.id]}if(i.flashVersion>8&&i.useMovieStar){if(j.isMovieStar===null){j.isMovieStar=(j.url.match(i.netStreamPattern)?true:false)}if(j.isMovieStar){}if(j.isMovieStar&&(j.usePeakData||j.useWaveformData||j.useEQData)){j.usePeakData=false;j.useWaveformData=false;j.useEQData=false}}i.sounds[j.id]=new d(j);i.soundIDs[i.soundIDs.length]=j.id;if(i.flashVersion==8){i.o._createSound(j.id,j.onjustbeforefinishtime)}else{i.o._createSound(j.id,j.url,j.onjustbeforefinishtime,j.usePeakData,j.useWaveformData,j.useEQData,j.isMovieStar,(j.isMovieStar?j.useVideo:false),(j.isMovieStar?j.bufferTime:false))}if(j.autoLoad||j.autoPlay){if(i.sounds[j.id]){i.sounds[j.id].load(j)}}if(j.autoPlay){i.sounds[j.id].play()}return i.sounds[j.id]};this.createVideo=function(j){if(arguments.length==2){j={id:arguments[0],url:arguments[1]}}if(i.flashVersion>=9){j.isMovieStar=true;j.useVideo=true}else{return false}if(!i.useMovieStar){}return i.createSound(j)};this.destroySound=function(k,j){if(!i._idCheck(k)){return false}for(var l=0;l<i.soundIDs.length;l++){if(i.soundIDs[l]==k){i.soundIDs.splice(l,1);continue}}i.sounds[k].unload();if(!j){i.sounds[k].destruct()}delete i.sounds[k]};this.destroyVideo=this.destroySound;this.load=function(j,k){if(!i._idCheck(j)){return false}i.sounds[j].load(k)};this.unload=function(j){if(!i._idCheck(j)){return false}i.sounds[j].unload()};this.play=function(j,k){if(!i._didInit){throw i._complain(b+i._str("notReady"),arguments.callee.caller)}if(!i._idCheck(j)){if(typeof k!="Object"){k={url:k}}if(k&&k.url){k.id=j;i.createSound(k)}else{return false}}i.sounds[j].play(k)};this.start=this.play;this.setPosition=function(j,k){if(!i._idCheck(j)){return false}i.sounds[j].setPosition(k)};this.stop=function(j){if(!i._idCheck(j)){return false}i.sounds[j].stop()};this.stopAll=function(){for(var j in i.sounds){if(i.sounds[j] instanceof d){i.sounds[j].stop()}}};this.pause=function(j){if(!i._idCheck(j)){return false}i.sounds[j].pause()};this.pauseAll=function(){for(var j=i.soundIDs.length;j--;){i.sounds[i.soundIDs[j]].pause()}};this.resume=function(j){if(!i._idCheck(j)){return false}i.sounds[j].resume()};this.resumeAll=function(){for(var j=i.soundIDs.length;j--;){i.sounds[i.soundIDs[j]].resume()}};this.togglePause=function(j){if(!i._idCheck(j)){return false}i.sounds[j].togglePause()};this.setPan=function(j,k){if(!i._idCheck(j)){return false}i.sounds[j].setPan(k)};this.setVolume=function(k,j){if(!i._idCheck(k)){return false}i.sounds[k].setVolume(j)};this.mute=function(j){if(typeof j!="string"){j=null}if(!j){for(var k=i.soundIDs.length;k--;){i.sounds[i.soundIDs[k]].mute()}i.muted=true}else{if(!i._idCheck(j)){return false}i.sounds[j].mute()}};this.muteAll=function(){i.mute()};this.unmute=function(j){if(typeof j!="string"){j=null}if(!j){for(var k=i.soundIDs.length;k--;){i.sounds[i.soundIDs[k]].unmute()}i.muted=false}else{if(!i._idCheck(j)){return false}i.sounds[j].unmute()}};this.unmuteAll=function(){i.unmute()};this.toggleMute=function(j){if(!i._idCheck(j)){return false}i.sounds[j].toggleMute()};this.getMemoryUse=function(){if(i.flashVersion==8){return 0}if(i.o){return parseInt(i.o._getMemoryUse(),10)}};this.disable=function(k){if(typeof k=="undefined"){k=false}if(i._disabled){return false}i._disabled=true;for(var j=i.soundIDs.length;j--;){i._disableObject(i.sounds[i.soundIDs[j]])}i.initComplete(k)};this.canPlayURL=function(j){return(j?(j.match(i.filePattern)?true:false):null)};this.getSoundById=function(k,l){if(!k){throw new Error("SoundManager.getSoundById(): sID is null/undefined")}var j=i.sounds[k];if(!j&&!l){}return j};this.onready=function(k,j){if(k&&k instanceof Function){if(i._didInit){}if(!j){j=window}i._addOnReady(k,j);i._processOnReady();return true}else{throw i._str("needFunction")}};this.oninitmovie=function(){};this.onload=function(){soundManager._wD("soundManager.onload()",1)};this.onerror=function(){};this._idCheck=this.getSoundById;this._complain=function(k,m){var l="Error: ";if(!m){return new Error(l+k)}var o=new Error("");var p=null;if(o.stack){try{var q="@";var r=o.stack.split(q);p=r[4]}catch(n){p=o.stack}}if(typeof console!="undefined"&&typeof console.trace!="undefined"){console.trace()}var j=l+k+". \nCaller: "+m.toString()+(o.stack?" \nTop of stacktrace: "+p:(o.message?" \nMessage: "+o.message:""));return new Error(j)};var g=function(){return false};g._protected=true;this._disableObject=function(k){for(var j in k){if(typeof k[j]=="function"&&typeof k[j]._protected=="undefined"){k[j]=g}}j=null};this._failSafely=function(j){if(typeof j=="undefined"){j=false}if(!i._disabled||j){i.disable(j)}};this._normalizeMovieURL=function(j){var k=null;if(j){if(j.match(/\.swf(\?.*)?$/i)){k=j.substr(j.toLowerCase().lastIndexOf(".swf?")+4);if(k){return j}}else{if(j.lastIndexOf("/")!=j.length-1){j=j+"/"}}}return(j&&j.lastIndexOf("/")!=-1?j.substr(0,j.lastIndexOf("/")+1):"./")+i.movieURL};this._getDocument=function(){return(document.body?document.body:(document.documentElement?document.documentElement:document.getElementsByTagName("div")[0]))};this._getDocument._protected=true;this._setPolling=function(j,k){if(!i.o||!i.allowPolling){return false}i.o._setPolling(j,k)};this._createMovie=function(q,n){var p=null;var w=(n?n:i.url);var m=(i.altURL?i.altURL:w);if(i._didAppend&&i._appendSuccess){return false}i._didAppend=true;i._setVersionInfo();i.url=i._normalizeMovieURL(i._overHTTP?w:m);n=i.url;if(i.useHighPerformance&&i.useMovieStar&&i.defaultOptions.useVideo===true){p="soundManager note: disabling highPerformance, not applicable with movieStar mode+useVideo";i.useHighPerformance=false}i.wmode=(!i.wmode&&i.useHighPerformance&&!i.useMovieStar?"transparent":i.wmode);if(i.wmode!==null&&i.flashLoadTimeout!==0&&(!i.useHighPerformance||i.debugFlash)&&!i.isIE&&navigator.platform.match(/win32/i)){i.specialWmodeCase=true;i.wmode=null}if(i.flashVersion==8){i.allowFullScreen=false}var u={name:q,id:q,src:n,width:"100%",height:"100%",quality:"high",allowScriptAccess:i.allowScriptAccess,bgcolor:i.bgColor,pluginspage:"http://www.macromedia.com/go/getflashplayer",type:"application/x-shockwave-flash",wmode:i.wmode,allowfullscreen:(i.allowFullScreen?"true":"false")};if(i.debugFlash){u.FlashVars="debug=1"}if(!i.wmode){delete u.wmode}var l=null;var v=null;var j=null;var t=null;if(i.isIE){l=document.createElement("div");j='<object id="'+q+'" data="'+n+'" type="'+u.type+'" width="'+u.width+'" height="'+u.height+'"><param name="movie" value="'+n+'" /><param name="AllowScriptAccess" value="'+i.allowScriptAccess+'" /><param name="quality" value="'+u.quality+'" />'+(i.wmode?'<param name="wmode" value="'+i.wmode+'" /> ':"")+'<param name="bgcolor" value="'+i.bgColor+'" /><param name="allowFullScreen" value="'+u.allowFullScreen+'" />'+(i.debugFlash?'<param name="FlashVars" value="'+u.FlashVars+'" />':"")+"<!-- --></object>"}else{l=document.createElement("embed");for(v in u){if(u.hasOwnProperty(v)){l.setAttribute(v,u[v])}}}var r=null;var B=null;if(i.debugMode){r=document.createElement("div");r.id=i.debugID+"-toggle";B={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};r.appendChild(document.createTextNode("-"));r.onclick=i._toggleDebug;r.title="Toggle SM2 debug console";if(navigator.userAgent.match(/msie 6/i)){r.style.position="absolute";r.style.cursor="hand"}for(v in B){if(B.hasOwnProperty(v)){r.style[v]=B[v]}}}var k=i._getDocument();if(k){i.oMC=f("sm2-container")?f("sm2-container"):document.createElement("div");var o=(i.debugMode?" sm2-debug":"")+(i.debugFlash?" flash-debug":"");if(!i.oMC.id){i.oMC.id="sm2-container";i.oMC.className="movieContainer"+o;var A=null;t=null;if(i.useHighPerformance){A={position:"fixed",width:"8px",height:"8px",bottom:"0px",left:"0px",overflow:"hidden"}}else{A={position:"absolute",width:"8px",height:"8px",top:"-9999px",left:"-9999px"}}var z=null;if(!i.debugFlash){for(z in A){if(A.hasOwnProperty(z)){i.oMC.style[z]=A[z]}}}try{if(!i.isIE){i.oMC.appendChild(l)}k.appendChild(i.oMC);if(i.isIE){t=i.oMC.appendChild(document.createElement("div"));t.className="sm2-object-box";t.innerHTML=j}i._appendSuccess=true}catch(y){throw new Error(i._str("appXHTML"))}}else{if(i.debugMode||i.debugFlash){i.oMC.className+=o}i.oMC.appendChild(l);if(i.isIE){t=i.oMC.appendChild(document.createElement("div"));t.className="sm2-object-box";t.innerHTML=j}i._appendSuccess=true}k=null}if(p){}};this._writeDebug=function(j,l,k){};this._writeDebug._protected=true;this._wdCount=0;this._wdCount._protected=true;this._wD=this._writeDebug;this._debug=function(){for(var l=0,k=i.soundIDs.length;l<k;l++){i.sounds[i.soundIDs[l]]._debug()}};this._debugTS=function(m,j,k){if(typeof sm2Debugger!="undefined"){try{sm2Debugger.handleEvent(m,j,k)}catch(l){}}};this._debugTS._protected=true;this._mergeObjects=function(k,j){var n={};for(var l in k){if(k.hasOwnProperty(l)){n[l]=k[l]}}var m=(typeof j=="undefined"?i.defaultOptions:j);for(var p in m){if(m.hasOwnProperty(p)&&typeof n[p]=="undefined"){n[p]=m[p]}}return n};this.createMovie=function(j){if(j){i.url=j}i._initMovie()};this.go=this.createMovie;this._initMovie=function(){if(i.o){return false}i.o=i.getMovie(i.id);if(!i.o){if(!i.oRemoved){i._createMovie(i.id,i.url)}else{if(!i.isIE){i.oMC.appendChild(i.oRemoved)}else{i.oMC.innerHTML=i.oRemovedHTML}i.oRemoved=null;i._didAppend=true}i.o=i.getMovie(i.id)}if(i.o){if(i.flashLoadTimeout>0){}}if(typeof i.oninitmovie=="function"){setTimeout(i.oninitmovie,1)}};this.waitForExternalInterface=function(){if(i._waitingForEI){return false}i._waitingForEI=true;if(i._tryInitOnFocus&&!i._isFocused){return false}if(i.flashLoadTimeout>0){if(!i._didInit){var j=i.getMoviePercent()}setTimeout(function(){var k=i.getMoviePercent();if(!i._didInit){if(!i._overHTTP){if(!i.debugFlash){}}if(k===0){}i._debugTS("flashtojs",false,": Timed out"+(i._overHTTP)?" (Check flash security or flash blockers)":" (No plugin/missing SWF?)")}if(!i._didInit&&i._okToDisable){i._failSafely(true)}},i.flashLoadTimeout)}else{if(!i._didInit){}}};this.getMoviePercent=function(){return(i.o&&typeof i.o.PercentLoaded!="undefined"?i.o.PercentLoaded():null)};this.handleFocus=function(){if(i._isFocused||!i._tryInitOnFocus){return true}i._okToDisable=true;i._isFocused=true;if(i._tryInitOnFocus){window.removeEventListener("mousemove",i.handleFocus,false)}i._waitingForEI=false;setTimeout(i.waitForExternalInterface,500);if(window.removeEventListener){window.removeEventListener("focus",i.handleFocus,false)}else{if(window.detachEvent){window.detachEvent("onfocus",i.handleFocus)}}};this.initComplete=function(j){if(i._didInit){return false}i._didInit=true;if(i._disabled||j){i._processOnReady();i._debugTS("onload",false);i.onerror.apply(window);return false}else{i._debugTS("onload",true)}if(i.waitForWindowLoad&&!i._windowLoaded){if(window.addEventListener){window.addEventListener("load",i._initUserOnload,false)}else{if(window.attachEvent){window.attachEvent("onload",i._initUserOnload)}}return false}else{if(i.waitForWindowLoad&&i._windowLoaded){}i._initUserOnload()}};this._addOnReady=function(k,j){i._onready.push({method:k,scope:(j||null),fired:false})};this._processOnReady=function(){if(!i._didInit){return false}var l={success:(!i._disabled)};var k=[];for(var n=0,m=i._onready.length;n<m;n++){if(i._onready[n].fired!==true){k.push(i._onready[n])}}if(k.length){for(n=0,m=k.length;n<m;n++){if(k[n].scope){k[n].method.apply(k[n].scope,[l])}else{k[n].method(l)}k[n].fired=true}}};this._initUserOnload=function(){window.setTimeout(function(){i._processOnReady();i.onload.apply(window)})};this.init=function(){i._initMovie();if(i._didInit){return false}if(window.removeEventListener){window.removeEventListener("load",i.beginDelayedInit,false)}else{if(window.detachEvent){window.detachEvent("onload",i.beginDelayedInit)}}try{i.o._externalInterfaceTest(false);if(!i.allowPolling){}else{i._setPolling(true,i.useFastPolling?true:false)}if(!i.debugMode){i.o._disableDebug()}i.enabled=true;i._debugTS("jstoflash",true)}catch(j){i._debugTS("jstoflash",false);i._failSafely(true);i.initComplete();return false}i.initComplete()};this.beginDelayedInit=function(){i._windowLoaded=true;setTimeout(i.waitForExternalInterface,500);setTimeout(i.beginInit,20)};this.beginInit=function(){if(i._initPending){return false}i.createMovie();i._initMovie();i._initPending=true;return true};this.domContentLoaded=function(){if(document.removeEventListener){document.removeEventListener("DOMContentLoaded",i.domContentLoaded,false)}i.go()};this._externalInterfaceOK=function(j){if(i.swfLoaded){return false}var k=new Date().getTime();i._debugTS("swf",true);i._debugTS("flashtojs",true);i.swfLoaded=true;i._tryInitOnFocus=false;if(i.isIE){setTimeout(i.init,100)}else{i.init()}};this._setSandboxType=function(j){var k=i.sandbox;k.type=j;k.description=k.types[(typeof k.types[j]!="undefined"?j:"unknown")];if(k.type=="localWithFile"){k.noRemote=true;k.noLocal=false}else{if(k.type=="localWithNetwork"){k.noRemote=false;k.noLocal=true}else{if(k.type=="localTrusted"){k.noRemote=false;k.noLocal=false}}}};this.reboot=function(){if(i.soundIDs.length){}for(var j=i.soundIDs.length;j--;){i.sounds[i.soundIDs[j]].destruct()}try{if(i.isIE){i.oRemovedHTML=i.o.innerHTML}i.oRemoved=i.o.parentNode.removeChild(i.o)}catch(k){}i.oRemovedHTML=null;i.oRemoved=null;i.enabled=false;i._didInit=false;i._waitingForEI=false;i._initPending=false;i._didAppend=false;i._appendSuccess=false;i._disabled=false;i._waitingforEI=true;i.swfLoaded=false;i.soundIDs={};i.sounds=[];i.o=null;for(j=i._onready.length;j--;){i._onready[j].fired=false}window.setTimeout(soundManager.beginDelayedInit,20)};this.destruct=function(){i.disable(true)};d=function(j){var k=this;this.sID=j.id;this.url=j.url;this.options=i._mergeObjects(j);this.instanceOptions=this.options;this._iO=this.instanceOptions;this.pan=this.options.pan;this.volume=this.options.volume;this._lastURL=null;this._debug=function(){};this._debug();this.id3={};this.resetProperties=function(l){k.bytesLoaded=null;k.bytesTotal=null;k.position=null;k.duration=null;k.durationEstimate=null;k.loaded=false;k.playState=0;k.paused=false;k.readyState=0;k.muted=false;k.didBeforeFinish=false;k.didJustBeforeFinish=false;k.isBuffering=false;k.instanceOptions={};k.instanceCount=0;k.peakData={left:0,right:0};k.waveformData={left:[],right:[]};k.eqData=[];k.eqData.left=[];k.eqData.right=[]};k.resetProperties();this.load=function(l){if(typeof l!="undefined"){k._iO=i._mergeObjects(l);k.instanceOptions=k._iO}else{l=k.options;k._iO=l;k.instanceOptions=k._iO;if(k._lastURL&&k._lastURL!=k.url){k._iO.url=k.url;k.url=null}}if(typeof k._iO.url=="undefined"){k._iO.url=k.url}if(k._iO.url==k.url&&k.readyState!==0&&k.readyState!=2){return false}k.url=k._iO.url;k._lastURL=k._iO.url;k.loaded=false;k.readyState=1;k.playState=0;try{if(i.flashVersion==8){i.o._load(k.sID,k._iO.url,k._iO.stream,k._iO.autoPlay,(k._iO.whileloading?1:0))}else{i.o._load(k.sID,k._iO.url,k._iO.stream?true:false,k._iO.autoPlay?true:false);if(k._iO.isMovieStar&&k._iO.autoLoad&&!k._iO.autoPlay){k.pause()}}}catch(m){i._debugTS("onload",false);i.onerror();i.disable()}};this.unload=function(){if(k.readyState!==0){if(k.readyState!=2){k.setPosition(0,true)}i.o._unload(k.sID,i.nullURL);k.resetProperties()}};this.destruct=function(){i.o._destroySound(k.sID);i.destroySound(k.sID,true)};this.play=function(m){if(!m){m={}}k._iO=i._mergeObjects(m,k._iO);k._iO=i._mergeObjects(k._iO,k.options);k.instanceOptions=k._iO;if(k.playState==1){var l=k._iO.multiShot;if(!l){return false}else{}}if(!k.loaded){if(k.readyState===0){k._iO.autoPlay=true;k.load(k._iO)}else{if(k.readyState==2){return false}else{}}}else{}if(k.paused){k.resume()}else{k.playState=1;if(!k.instanceCount||i.flashVersion>8){k.instanceCount++}k.position=(typeof k._iO.position!="undefined"&&!isNaN(k._iO.position)?k._iO.position:0);if(k._iO.onplay){k._iO.onplay.apply(k)}k.setVolume(k._iO.volume,true);k.setPan(k._iO.pan,true);i.o._start(k.sID,k._iO.loop||1,(i.flashVersion==9?k.position:k.position/1000))}};this.start=this.play;this.stop=function(l){if(k.playState==1){k.playState=0;k.paused=false;if(k._iO.onstop){k._iO.onstop.apply(k)}i.o._stop(k.sID,l);k.instanceCount=0;k._iO={}}};this.setPosition=function(m,l){if(typeof m=="undefined"){m=0}var n=Math.min(k.duration,Math.max(m,0));k._iO.position=n;if(!l){}i.o._setPosition(k.sID,(i.flashVersion==9?k._iO.position:k._iO.position/1000),(k.paused||!k.playState))};this.pause=function(){if(k.paused||k.playState===0){return false}k.paused=true;i.o._pause(k.sID);if(k._iO.onpause){k._iO.onpause.apply(k)}};this.resume=function(){if(!k.paused||k.playState===0){return false}k.paused=false;i.o._pause(k.sID);if(k._iO.onresume){k._iO.onresume.apply(k)}};this.togglePause=function(){if(k.playState===0){k.play({position:(i.flashVersion==9?k.position:k.position/1000)});return false}if(k.paused){k.resume()}else{k.pause()}};this.setPan=function(m,l){if(typeof m=="undefined"){m=0}if(typeof l=="undefined"){l=false}i.o._setPan(k.sID,m);k._iO.pan=m;if(!l){k.pan=m}};this.setVolume=function(l,m){if(typeof l=="undefined"){l=100}if(typeof m=="undefined"){m=false}i.o._setVolume(k.sID,(i.muted&&!k.muted)||k.muted?0:l);k._iO.volume=l;if(!m){k.volume=l}};this.mute=function(){k.muted=true;i.o._setVolume(k.sID,0)};this.unmute=function(){k.muted=false;var l=typeof k._iO.volume!="undefined";i.o._setVolume(k.sID,l?k._iO.volume:k.options.volume)};this.toggleMute=function(){if(k.muted){k.unmute()}else{k.mute()}};this._whileloading=function(l,m,n){if(!k._iO.isMovieStar){k.bytesLoaded=l;k.bytesTotal=m;k.duration=Math.floor(n);k.durationEstimate=parseInt((k.bytesTotal/k.bytesLoaded)*k.duration,10);if(k.durationEstimate===undefined){k.durationEstimate=k.duration}if(k.readyState!=3&&k._iO.whileloading){k._iO.whileloading.apply(k)}}else{k.bytesLoaded=l;k.bytesTotal=m;k.duration=Math.floor(n);k.durationEstimate=k.duration;if(k.readyState!=3&&k._iO.whileloading){k._iO.whileloading.apply(k)}}};this._onid3=function(o,l){var p=[];for(var n=0,m=o.length;n<m;n++){p[o[n]]=l[n]}k.id3=i._mergeObjects(k.id3,p);if(k._iO.onid3){k._iO.onid3.apply(k)}};this._whileplaying=function(n,o,q,m,p){if(isNaN(n)||n===null){return false}if(k.playState===0&&n>0){n=0}k.position=n;if(i.flashVersion>8){if(k._iO.usePeakData&&typeof o!="undefined"&&o){k.peakData={left:o.leftPeak,right:o.rightPeak}}if(k._iO.useWaveformData&&typeof q!="undefined"&&q){k.waveformData={left:q.split(","),right:m.split(",")}}if(k._iO.useEQData){if(typeof p!="undefined"&&p.leftEQ){var l=p.leftEQ.split(",");k.eqData=l;k.eqData.left=l;if(typeof p.rightEQ!="undefined"&&p.rightEQ){k.eqData.right=p.rightEQ.split(",")}}}}if(k.playState==1){if(k.isBuffering){k._onbufferchange(0)}if(k._iO.whileplaying){k._iO.whileplaying.apply(k)}if(k.loaded&&k._iO.onbeforefinish&&k._iO.onbeforefinishtime&&!k.didBeforeFinish&&k.duration-k.position<=k._iO.onbeforefinishtime){k._onbeforefinish()}}};this._onload=function(l){l=(l==1?true:false);if(!l){if(i.sandbox.noRemote===true){}if(i.sandbox.noLocal===true){}}k.loaded=l;k.readyState=l?3:2;if(k._iO.onload){k._iO.onload.apply(k)}};this._onbeforefinish=function(){if(!k.didBeforeFinish){k.didBeforeFinish=true;if(k._iO.onbeforefinish){k._iO.onbeforefinish.apply(k)}}};this._onjustbeforefinish=function(l){if(!k.didJustBeforeFinish){k.didJustBeforeFinish=true;if(k._iO.onjustbeforefinish){k._iO.onjustbeforefinish.apply(k)}}};this._onfinish=function(){if(k._iO.onbeforefinishcomplete){k._iO.onbeforefinishcomplete.apply(k)}k.didBeforeFinish=false;k.didJustBeforeFinish=false;if(k.instanceCount){k.instanceCount--;if(!k.instanceCount){k.playState=0;k.paused=false;k.instanceCount=0;k.instanceOptions={}}if(!k.instanceCount||k._iO.multiShotEvents){if(k._iO.onfinish){k._iO.onfinish.apply(k)}}}else{if(k.useVideo){}}};this._onmetadata=function(l){if(!l.width&&!l.height){l.width=320;l.height=240}k.metadata=l;k.width=l.width;k.height=l.height;if(k._iO.onmetadata){k._iO.onmetadata.apply(k)}};this._onbufferchange=function(l){if(k.playState===0){return false}if(l==k.isBuffering){return false}k.isBuffering=(l==1?true:false);if(k._iO.onbufferchange){k._iO.onbufferchange.apply(k)}};this._ondataerror=function(l){if(k.playState>0){if(k._iO.ondataerror){k._iO.ondataerror.apply(k)}}else{}}};this._onfullscreenchange=function(j){i.isFullScreen=(j==1?true:false);if(!i.isFullScreen){try{window.focus()}catch(k){}}};if(window.addEventListener){window.addEventListener("focus",i.handleFocus,false);window.addEventListener("load",i.beginDelayedInit,false);window.addEventListener("unload",i.destruct,false);if(i._tryInitOnFocus){window.addEventListener("mousemove",i.handleFocus,false)}}else{if(window.attachEvent){window.attachEvent("onfocus",i.handleFocus);window.attachEvent("onload",i.beginDelayedInit);window.attachEvent("unload",i.destruct)}else{i._debugTS("onload",false);soundManager.onerror();soundManager.disable()}}if(document.addEventListener){document.addEventListener("DOMContentLoaded",i.domContentLoaded,false)}}if(typeof SM2_DEFER=="undefined"||!SM2_DEFER){soundManager=new SoundManager()};
/*  
	Animator.js 1.1.9
	
	This library is released under the BSD license:

	Copyright (c) 2006, Bernard Sumption. All rights reserved.
	
	Redistribution and use in source and binary forms, with or without
	modification, are permitted provided that the following conditions are met:
	
	Redistributions of source code must retain the above copyright notice, this
	list of conditions and the following disclaimer. Redistributions in binary
	form must reproduce the above copyright notice, this list of conditions and
	the following disclaimer in the documentation and/or other materials
	provided with the distribution. Neither the name BernieCode nor
	the names of its contributors may be used to endorse or promote products
	derived from this software without specific prior written permission. 
	
	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
	AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
	IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
	ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR
	ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
	DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
	SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
	CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
	LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
	OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
	DAMAGE.
*/
function Animator(a){this.setOptions(a);var b=this;this.timerDelegate=function(){b.onTimerEvent()};this.subjects=[];this.subjectScopes=[];this.target=0;this.state=0;this.lastTime=null}Animator.prototype={setOptions:function(a){this.options=Animator.applyDefaults({interval:20,duration:400,onComplete:function(){},onStep:function(){},transition:Animator.tx.easeInOut},a)},seekTo:function(a){this.seekFromTo(this.state,a)},seekFromTo:function(b,a){this.target=Math.max(0,Math.min(1,a));this.state=Math.max(0,Math.min(1,b));this.lastTime=new Date().getTime();if(!this.intervalId){this.intervalId=window.setInterval(this.timerDelegate,this.options.interval)}},jumpTo:function(a){this.target=this.state=Math.max(0,Math.min(1,a));this.propagate()},toggle:function(){this.seekTo(1-this.target)},addSubject:function(a,b){this.subjects[this.subjects.length]=a;this.subjectScopes[this.subjectScopes.length]=b;return this},clearSubjects:function(){this.subjects=[];this.subjectScopes=[]},propagate:function(){var b=this.options.transition(this.state);for(var a=0;a<this.subjects.length;a++){if(this.subjects[a].setState){this.subjects[a].setState(b)}else{this.subjects[a].apply(this.subjectScopes[a],[b])}}},onTimerEvent:function(){var c=new Date().getTime();var a=c-this.lastTime;this.lastTime=c;var b=(a/this.options.duration)*(this.state<this.target?1:-1);if(Math.abs(b)>=Math.abs(this.state-this.target)){this.state=this.target}else{this.state+=b}try{this.propagate()}finally{this.options.onStep.call(this);if(this.target==this.state){window.clearInterval(this.intervalId);this.intervalId=null;this.options.onComplete.call(this)}}},play:function(){this.seekFromTo(0,1)},reverse:function(){this.seekFromTo(1,0)},inspect:function(){var b="#<Animator:\n";for(var a=0;a<this.subjects.length;a++){b+=this.subjects[a].inspect()}b+=">";return b}};Animator.applyDefaults=function(c,b){b=b||{};var d,a={};for(d in c){a[d]=b[d]!==undefined?b[d]:c[d]}return a};Animator.makeArray=function(c){if(c==null){return[]}if(!c.length){return[c]}var a=[];for(var b=0;b<c.length;b++){a[b]=c[b]}return a};Animator.camelize=function(c){var e=c.split("-");if(e.length==1){return e[0]}var b=c.indexOf("-")==0?e[0].charAt(0).toUpperCase()+e[0].substring(1):e[0];for(var d=1,a=e.length;d<a;d++){var f=e[d];b+=f.charAt(0).toUpperCase()+f.substring(1)}return b};Animator.apply=function(c,b,a){if(b instanceof Array){return new Animator(a).addSubject(new CSSStyleSubject(c,b[0],b[1]))}return new Animator(a).addSubject(new CSSStyleSubject(c,b))};Animator.makeEaseIn=function(b){return function(a){return Math.pow(a,b*2)}};Animator.makeEaseOut=function(b){return function(a){return 1-Math.pow(1-a,b*2)}};Animator.makeElastic=function(a){return function(b){b=Animator.tx.easeInOut(b);return((1-Math.cos(b*Math.PI*a))*(1-b))+b}};Animator.makeADSR=function(d,b,c,a){if(a==null){a=0.5}return function(e){if(e<d){return e/d}if(e<b){return 1-((e-d)/(b-d)*(1-a))}if(e<c){return a}return a*(1-((e-c)/(1-c)))}};Animator.makeBounce=function(a){var b=Animator.makeElastic(a);return function(c){c=b(c);return c<=1?c:2-c}};Animator.tx={easeInOut:function(a){return((-Math.cos(a*Math.PI)/2)+0.5)},linear:function(a){return a},easeIn:Animator.makeEaseIn(1.5),easeOut:Animator.makeEaseOut(1.5),strongEaseIn:Animator.makeEaseIn(2.5),strongEaseOut:Animator.makeEaseOut(2.5),elastic:Animator.makeElastic(1),veryElastic:Animator.makeElastic(3),bouncy:Animator.makeBounce(1),veryBouncy:Animator.makeBounce(3)};function NumericalStyleSubject(b,c,e,d,a){this.els=Animator.makeArray(b);if(c=="opacity"&&window.ActiveXObject){this.property="filter"}else{this.property=Animator.camelize(c)}this.from=parseFloat(e);this.to=parseFloat(d);this.units=a!=null?a:"px"}NumericalStyleSubject.prototype={setState:function(f){var d=this.getStyle(f);var a=(this.property=="opacity"&&f==0)?"hidden":"";var b=0;for(var c=0;c<this.els.length;c++){try{this.els[c].style[this.property]=d}catch(g){if(this.property!="fontWeight"){throw g}}if(b++>20){return}}},getStyle:function(a){a=this.from+((this.to-this.from)*a);if(this.property=="filter"){return"alpha(opacity="+Math.round(a*100)+")"}if(this.property=="opacity"){return a}return Math.round(a)+this.units},inspect:function(){return"\t"+this.property+"("+this.from+this.units+" to "+this.to+this.units+")\n"}};function ColorStyleSubject(a,b,d,c){this.els=Animator.makeArray(a);this.property=Animator.camelize(b);this.to=this.expandColor(c);this.from=this.expandColor(d);this.origFrom=d;this.origTo=c}ColorStyleSubject.prototype={expandColor:function(b){var c,e,d,a;c=ColorStyleSubject.parseColor(b);if(c){e=parseInt(c.slice(1,3),16);d=parseInt(c.slice(3,5),16);a=parseInt(c.slice(5,7),16);return[e,d,a]}if(window.DEBUG){alert("Invalid colour: '"+b+"'")}},getValueForState:function(a,b){return Math.round(this.from[a]+((this.to[a]-this.from[a])*b))},setState:function(c){var a="#"+ColorStyleSubject.toColorPart(this.getValueForState(0,c))+ColorStyleSubject.toColorPart(this.getValueForState(1,c))+ColorStyleSubject.toColorPart(this.getValueForState(2,c));for(var b=0;b<this.els.length;b++){this.els[b].style[this.property]=a}},inspect:function(){return"\t"+this.property+"("+this.origFrom+" to "+this.origTo+")\n"}};ColorStyleSubject.parseColor=function(d){var a="#",c;if(c=ColorStyleSubject.parseColor.rgbRe.exec(d)){var b;for(var e=1;e<=3;e++){b=Math.max(0,Math.min(255,parseInt(c[e])));a+=ColorStyleSubject.toColorPart(b)}return a}if(c=ColorStyleSubject.parseColor.hexRe.exec(d)){if(c[1].length==3){for(var e=0;e<3;e++){a+=c[1].charAt(e)+c[1].charAt(e)}return a}return"#"+c[1]}return false};ColorStyleSubject.toColorPart=function(a){if(a>255){a=255}var b=a.toString(16);if(a<16){return"0"+b}return b};ColorStyleSubject.parseColor.rgbRe=/^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i;ColorStyleSubject.parseColor.hexRe=/^\#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;function DiscreteStyleSubject(b,c,e,d,a){this.els=Animator.makeArray(b);this.property=Animator.camelize(c);this.from=e;this.to=d;this.threshold=a||0.5}DiscreteStyleSubject.prototype={setState:function(c){var a=0;for(var b=0;b<this.els.length;b++){this.els[b].style[this.property]=c<=this.threshold?this.from:this.to}},inspect:function(){return"\t"+this.property+"("+this.from+" to "+this.to+" @ "+this.threshold+")\n"}};function CSSStyleSubject(d,m,j){d=Animator.makeArray(d);this.subjects=[];if(d.length==0){return}var a,n,b;if(j){b=this.parseStyle(m,d[0]);n=this.parseStyle(j,d[0])}else{n=this.parseStyle(m,d[0]);b={};for(a in n){b[a]=CSSStyleSubject.getStyle(d[0],a)}}var a;for(a in b){if(b[a]==n[a]){delete b[a];delete n[a]}}var a,h,e,i,l,k;for(a in b){var g=String(b[a]);var c=String(n[a]);if(n[a]==null){if(window.DEBUG){alert("No to style provided for '"+a+'"')}continue}if(l=ColorStyleSubject.parseColor(g)){k=ColorStyleSubject.parseColor(c);i=ColorStyleSubject}else{if(g.match(CSSStyleSubject.numericalRe)&&c.match(CSSStyleSubject.numericalRe)){l=parseFloat(g);k=parseFloat(c);i=NumericalStyleSubject;e=CSSStyleSubject.numericalRe.exec(g);var f=CSSStyleSubject.numericalRe.exec(c);if(e[1]!=null){h=e[1]}else{if(f[1]!=null){h=f[1]}else{h=f}}}else{if(g.match(CSSStyleSubject.discreteRe)&&c.match(CSSStyleSubject.discreteRe)){l=g;k=c;i=DiscreteStyleSubject;h=0}else{if(window.DEBUG){alert("Unrecognised format for value of "+a+": '"+b[a]+"'")}continue}}}this.subjects[this.subjects.length]=new i(d,a,l,k,h)}}CSSStyleSubject.prototype={parseStyle:function(b,c){var g={};if(b.indexOf(":")!=-1){var j=b.split(";");for(var e=0;e<j.length;e++){var d=CSSStyleSubject.ruleRe.exec(j[e]);if(d){g[d[1]]=d[2]}}}else{var a,h,f;f=c.className;c.className=b;for(var e=0;e<CSSStyleSubject.cssProperties.length;e++){a=CSSStyleSubject.cssProperties[e];h=CSSStyleSubject.getStyle(c,a);if(h!=null){g[a]=h}}c.className=f}return g},setState:function(b){for(var a=0;a<this.subjects.length;a++){this.subjects[a].setState(b)}},inspect:function(){var b="";for(var a=0;a<this.subjects.length;a++){b+=this.subjects[a].inspect()}return b}};CSSStyleSubject.getStyle=function(b,c){var a;if(document.defaultView&&document.defaultView.getComputedStyle){a=document.defaultView.getComputedStyle(b,"").getPropertyValue(c);if(a){return a}}c=Animator.camelize(c);if(b.currentStyle){a=b.currentStyle[c]}return a||b.style[c]};CSSStyleSubject.ruleRe=/^\s*([a-zA-Z\-]+)\s*:\s*(\S(.+\S)?)\s*$/;CSSStyleSubject.numericalRe=/^-?\d+(?:\.\d+)?(%|[a-zA-Z]{2})?$/;CSSStyleSubject.discreteRe=/^\w+$/;CSSStyleSubject.cssProperties=["azimuth","background","background-attachment","background-color","background-image","background-position","background-repeat","border-collapse","border-color","border-spacing","border-style","border-top","border-top-color","border-right-color","border-bottom-color","border-left-color","border-top-style","border-right-style","border-bottom-style","border-left-style","border-top-width","border-right-width","border-bottom-width","border-left-width","border-width","bottom","clear","clip","color","content","cursor","direction","display","elevation","empty-cells","css-float","font","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","height","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-top","margin-right","margin-bottom","margin-left","max-height","max-width","min-height","min-width","orphans","outline","outline-color","outline-style","outline-width","overflow","padding","padding-top","padding-right","padding-bottom","padding-left","pause","position","right","size","table-layout","text-align","text-decoration","text-indent","text-shadow","text-transform","top","vertical-align","visibility","white-space","width","word-spacing","z-index","opacity","outline-offset","overflow-x","overflow-y"];function AnimatorChain(c,a){this.animators=c;this.setOptions(a);for(var b=0;b<this.animators.length;b++){this.listenTo(this.animators[b])}this.forwards=false;this.current=0}AnimatorChain.prototype={setOptions:function(a){this.options=Animator.applyDefaults({resetOnPlay:true},a)},play:function(){this.forwards=true;this.current=-1;if(this.options.resetOnPlay){for(var a=0;a<this.animators.length;a++){this.animators[a].jumpTo(0)}}this.advance()},reverse:function(){this.forwards=false;this.current=this.animators.length;if(this.options.resetOnPlay){for(var a=0;a<this.animators.length;a++){this.animators[a].jumpTo(1)}}this.advance()},toggle:function(){if(this.forwards){this.seekTo(0)}else{this.seekTo(1)}},listenTo:function(a){var b=a.options.onComplete;var c=this;a.options.onComplete=function(){if(b){b.call(a)}c.advance()}},advance:function(){if(this.forwards){if(this.animators[this.current+1]==null){return}this.current++;this.animators[this.current].play()}else{if(this.animators[this.current-1]==null){return}this.current--;this.animators[this.current].reverse()}},seekTo:function(a){if(a<=0){this.forwards=false;this.animators[this.current].seekTo(0)}else{this.forwards=true;this.animators[this.current].seekTo(1)}}};function Accordion(k){this.setOptions(k);var b=this.options.initialSection,g;if(this.options.rememberance){g=document.location.hash.substring(1)}this.rememberanceTexts=[];this.ans=[];var f=this;for(var c=0;c<this.options.sections.length;c++){var a=this.options.sections[c];var d=new Animator(this.options.animatorOptions);var j=this.options.from+(this.options.shift*c);var h=this.options.to+(this.options.shift*c);d.addSubject(new NumericalStyleSubject(a,this.options.property,j,h,this.options.units));d.jumpTo(0);var e=this.options.getActivator(a);e.index=c;e.onclick=function(){f.show(this.index)};this.ans[this.ans.length]=d;this.rememberanceTexts[c]=e.innerHTML.replace(/\s/g,"");if(this.rememberanceTexts[c]===g){b=c}}this.show(b)}Accordion.prototype={setOptions:function(a){this.options=Object.extend({sections:null,getActivator:function(b){return document.getElementById(b.getAttribute("activator"))},shift:0,initialSection:0,rememberance:true,animatorOptions:{}},a||{})},show:function(b){for(var a=0;a<this.ans.length;a++){this.ans[a].seekTo(a>b?1:0)}if(this.options.rememberance){document.location.hash=this.rememberanceTexts[b]}}};
/*
  SoundManager 2 Demo: 360-degree / "donut player"
  ------------------------------------------------

  http://schillmania.com/projects/soundmanager2/

  * Beta-ish warning: Subject to flux. *

  An inline player with a circular UI.
  Based on the original SM2 inline player.
  Inspired by Apple's preview feature in the
  iTunes music store (iPhone), among others.

  Requires SoundManager 2 Javascript API.
  Also uses Bernie's Better Animation Class (BSD):
  http://www.berniecode.com/writing/animator.html
*/
function ThreeSixtyPlayer(){var a=this;var e=this;var h=soundManager;var d=(navigator.userAgent.match(/msie/i));var b=(navigator.userAgent.match(/opera/i));var c=(navigator.userAgent.match(/safari/i));var f=(navigator.userAgent.match(/chrome/i));this.excludeClass="360-exclude";this.alreadyAdded="360-added";this.links=[];this.sounds=[];this.soundsByURL=[];this.indexByURL=[];this.lastSound=null;this.soundCount=0;this.oUITemplate=null;this.oUIImageMap=null;this.vuMeter=null;this.config={playNext:false,autoPlay:false,loadRingColor:"#ccc",playRingColor:"#000",backgroundRingColor:"#eee",segmentRingColor:"rgba(255,255,255,0.33)",segmentRingColorAlt:"rgba(0,0,0,0.1)",loadRingColorMetadata:"#ddd",playRingColorMetadata:"rgba(96,160,224,0.99)",playRingColorMetadata:"rgba(128,192,256,0.9)",circleDiameter:null,circleRadius:null,imageRoot:"/images/",animDuration:500,animTransition:Animator.tx.bouncy,showHMSTime:false,scaleFont:false,useWaveformData:false,waveformDataColor:"#0099ff",waveformDataDownsample:3,waveformDataOutside:false,waveformDataConstrain:false,waveformDataLineRatio:0.64,useEQData:false,eqDataColor:"#339933",eqDataDownsample:4,eqDataOutside:true,eqDataLineRatio:0.54,usePeakData:false,peakDataColor:"#ff33ff",peakDataOutside:false,peakDataLineRatio:0.5,useAmplifier:false,fontSizeMax:null,useFavIcon:false};this.css={sDefault:"sm2_link",sBuffering:"sm2_buffering",sPlaying:"sm2_playing",sPaused:"sm2_paused"};this.addEventHandler=function(k,j,i){typeof(attachEvent)=="undefined"?k.addEventListener(j,i,false):k.attachEvent("on"+j,i)};this.removeEventHandler=function(k,j,i){typeof(attachEvent)=="undefined"?k.removeEventListener(j,i,false):k.detachEvent("on"+j,i)};this.hasClass=function(j,i){return(typeof(j.className)!="undefined"?j.className.match(new RegExp("(\\s|^)"+i+"(\\s|$)")):false)};this.addClass=function(j,i){if(!j||!i||a.hasClass(j,i)){return false}j.className=(j.className?j.className+" ":"")+i};this.removeClass=function(j,i){if(!j||!i||!a.hasClass(j,i)){return false}j.className=j.className.replace(new RegExp("( "+i+")|("+i+")","g"),"")};this.getElementsByClassName=function(o,k,r){var q=(r||document);var p=[];var n,m;var l=[];if(typeof k!="undefined"&&typeof k!="string"){for(n=k.length;n--;){if(!l||!l[k[n]]){l[k[n]]=q.getElementsByTagName(k[n])}}}else{if(k){l=q.getElementsByTagName(k)}else{l=q.all||q.getElementsByTagName("*")}}if(typeof(k)!="string"){for(n=k.length;n--;){for(m=l[k[n]].length;m--;){if(a.hasClass(l[k[n]][m],o)){p.push(l[k[n]][m])}}}}else{for(n=0;n<l.length;n++){if(a.hasClass(l[n],o)){p.push(l[n])}}}return p};this.getParentByNodeName=function(j,i){if(!j||!i){return false}i=i.toLowerCase();while(j.parentNode&&i!=j.parentNode.nodeName.toLowerCase()){j=j.parentNode}return(j.parentNode&&i==j.parentNode.nodeName.toLowerCase()?j.parentNode:null)};this.getParentByClassName=function(j,i){if(!j||!i){return false}while(j.parentNode&&!a.hasClass(j.parentNode,i)){j=j.parentNode}return(j.parentNode&&a.hasClass(j.parentNode,i)?j.parentNode:null)};this.getSoundByURL=function(i){return(typeof a.soundsByURL[i]!="undefined"?a.soundsByURL[i]:null)};this.isChildOfNode=function(j,i){if(!j||!j.parentNode){return false}i=i.toLowerCase();do{j=j.parentNode}while(j&&j.parentNode&&j.nodeName.toLowerCase()!=i);return(j&&j.nodeName.toLowerCase()==i?j:null)};this.isChildOfClass=function(j,i){if(!j||!i){return false}while(j.parentNode&&!a.hasClass(j,i)){j=a.findParent(j)}return(a.hasClass(j,i))};this.findParent=function(i){if(!i||!i.parentNode){return false}i=i.parentNode;if(i.nodeType==2){while(i&&i.parentNode&&i.parentNode.nodeType==2){i=i.parentNode}}return i};this.getStyle=function(k,i){try{if(k.currentStyle){return k.currentStyle[i]}else{if(window.getComputedStyle){return document.defaultView.getComputedStyle(k,null).getPropertyValue(i)}}}catch(j){}return null};this.findXY=function(j){var k=0;var i=0;do{k+=j.offsetLeft;i+=j.offsetTop}while(j=j.offsetParent);return[k,i]};this.getMouseXY=function(i){i=i?i:event;if(i.pageX||i.pageY){return[i.pageX,i.pageY]}else{if(i.clientX||i.clientY){return[i.clientX+a.getScrollLeft(),i.clientY+a.getScrollTop()]}}};this.getScrollLeft=function(){return(document.body.scrollLeft+document.documentElement.scrollLeft)};this.getScrollTop=function(){return(document.body.scrollTop+document.documentElement.scrollTop)};this.events={play:function(){e.removeClass(this._360data.oUIBox,this._360data.className);this._360data.className=e.css.sPlaying;e.addClass(this._360data.oUIBox,this._360data.className);a.fanOut(this)},stop:function(){e.removeClass(this._360data.oUIBox,this._360data.className);this._360data.className="";a.fanIn(this)},pause:function(){e.removeClass(this._360data.oUIBox,this._360data.className);this._360data.className=e.css.sPaused;e.addClass(this._360data.oUIBox,this._360data.className)},resume:function(){e.removeClass(this._360data.oUIBox,this._360data.className);this._360data.className=e.css.sPlaying;e.addClass(this._360data.oUIBox,this._360data.className)},finish:function(){e.removeClass(this._360data.oUIBox,this._360data.className);this._360data.className="";this._360data.didFinish=true;a.fanIn(this);if(e.config.playNext){var i=(e.indexByURL[this._360data.oLink.href]+1);if(i<e.links.length){e.handleClick({target:e.links[i]})}}},whileloading:function(){if(this.paused){a.updatePlaying.apply(this)}},whileplaying:function(){a.updatePlaying.apply(this);this._360data.fps++},bufferchange:function(){if(this.isBuffering){e.addClass(this._360data.oUIBox,e.css.sBuffering)}else{e.removeClass(this._360data.oUIBox,e.css.sBuffering)}}};this.stopEvent=function(i){if(typeof i!="undefined"&&typeof i.preventDefault!="undefined"){i.preventDefault()}else{if(typeof event!="undefined"&&typeof event.returnValue!="undefined"){event.returnValue=false}}return false};this.getTheDamnLink=(d)?function(i){return(i&&i.target?i.target:window.event.srcElement)}:function(i){return i.target};this.handleClick=function(l){if(l.button>1){return true}var n=a.getTheDamnLink(l);if(n.nodeName.toLowerCase()!="a"){n=a.isChildOfNode(n,"a");if(!n){return true}}if(!a.isChildOfClass(n,"ui360")){return true}var k=n.getAttribute("href");if(!n.href||!h.canPlayURL(n.href)||a.hasClass(n,a.excludeClass)){if(d&&n.onclick){return false}return true}h._writeDebug("handleClick()");var m=(n.href);var i=a.getSoundByURL(m);if(i){if(i==a.lastSound){i.togglePause()}else{i.togglePause();h._writeDebug("sound different than last sound: "+a.lastSound.sID);if(a.lastSound){a.stopSound(a.lastSound)}}}else{i=h.createSound({id:"ui360Sound"+(a.soundCount++),url:m,onplay:a.events.play,onstop:a.events.stop,onpause:a.events.pause,onresume:a.events.resume,onfinish:a.events.finish,onbufferchange:a.events.bufferchange,whileloading:a.events.whileloading,whileplaying:a.events.whileplaying});var j=n.parentNode;i._360data={oUI360:a.getParentByClassName(n,"ui360"),oLink:n,className:a.css.sPlaying,oUIBox:a.getElementsByClassName("sm2-360ui","div",j)[0],oCanvas:a.getElementsByClassName("sm2-canvas","canvas",j)[0],oButton:a.getElementsByClassName("sm2-360btn","img",j)[0],oTiming:a.getElementsByClassName("sm2-timing","div",j)[0],oCover:a.getElementsByClassName("sm2-cover","div",j)[0],lastTime:null,didFinish:null,pauseCount:0,radius:0,amplifier:(a.config.usePeakData?0.9:1),radiusMax:a.config.circleDiameter*0.175,width:0,widthMax:a.config.circleDiameter*0.4,lastValues:{bytesLoaded:0,bytesTotal:0,position:0,durationEstimate:0},animating:false,oAnim:new Animator({duration:a.config.animDuration,transition:a.config.animTransition,onComplete:function(){}}),oAnimProgress:function(p){var o=this;o._360data.radius=parseInt(o._360data.radiusMax*o._360data.amplifier*p);o._360data.width=parseInt(o._360data.widthMax*o._360data.amplifier*p);if(a.config.scaleFont&&a.config.fontSizeMax!=null){o._360data.oTiming.style.fontSize=parseInt(Math.max(1,a.config.fontSizeMax*p))+"px";o._360data.oTiming.style.opacity=p}if(o.paused||o.playState==0||o._360data.lastValues.bytesLoaded==0||o._360data.lastValues.position==0){a.updatePlaying.apply(o)}},fps:0};if(typeof a.Metadata!="undefined"&&a.getElementsByClassName("metadata","div",i._360data.oUI360).length){i._360data.metadata=new a.Metadata(i,a)}i._360data.oCover.style.width=a.config.circleDiameter+"px";i._360data.oCover.style.height=a.config.circleDiameter+"px";if(a.config.scaleFont&&a.config.fontSizeMax!=null){i._360data.oTiming.style.fontSize="1px"}i._360data.oAnim.addSubject(i._360data.oAnimProgress,i);a.refreshCoords(i);a.updatePlaying.apply(i);a.soundsByURL[m]=i;a.sounds.push(i);if(a.lastSound){a.stopSound(a.lastSound)}i.play()}a.lastSound=i;if(typeof l!="undefined"&&typeof l.preventDefault!="undefined"){l.preventDefault()}else{if(typeof event!="undefined"){event.returnValue=false}}return false};this.fanOut=function(j){var i=j;if(i._360data.animating==1){return false}i._360data.animating=0;soundManager._writeDebug("fanOut: "+i.sID+": "+i._360data.oLink.href);i._360data.oAnim.seekTo(1);window.setTimeout(function(){i._360data.animating=0},a.config.animDuration+20)};this.fanIn=function(j){var i=j;if(i._360data.animating==-1){return false}i._360data.animating=-1;soundManager._writeDebug("fanIn: "+i.sID+": "+i._360data.oLink.href);i._360data.oAnim.seekTo(0);window.setTimeout(function(){i._360data.didFinish=false;i._360data.animating=0;a.resetLastValues(i)},a.config.animDuration+20)};this.resetLastValues=function(i){var j=i._360data;j.lastValues.position=0};this.refreshCoords=function(i){i._360data.canvasXY=a.findXY(i._360data.oCanvas);i._360data.canvasMid=[a.config.circleRadius,a.config.circleRadius];i._360data.canvasMidXY=[i._360data.canvasXY[0]+i._360data.canvasMid[0],i._360data.canvasXY[1]+i._360data.canvasMid[1]]};this.stopSound=function(i){soundManager._writeDebug("stopSound: "+i.sID);soundManager.stop(i.sID);soundManager.unload(i.sID)};this.buttonClick=function(i){var j=i?(i.target?i.target:i.srcElement):event.srcElement;a.handleClick({target:a.getParentByClassName(j,"sm2-360ui").nextSibling});return false};this.buttonMouseDown=function(i){document.onmousemove=function(j){a.mouseDown(j)};a.stopEvent(i);return false};this.mouseDown=function(j){if(!a.lastSound){a.stopEvent(j);return false}var i=a.lastSound;a.refreshCoords(i);var k=a.lastSound._360data;a.addClass(k.oUIBox,"sm2_dragging");k.pauseCount=(a.lastSound.paused?1:0);a.mmh(j?j:event);document.onmousemove=a.mmh;document.onmouseup=a.mouseUp;a.stopEvent(j);return false};this.mouseUp=function(i){var j=a.lastSound._360data;a.removeClass(j.oUIBox,"sm2_dragging");if(j.pauseCount==0){a.lastSound.resume()}document.onmousemove=null;document.onmouseup=null};var g=360;this.mmh=function(n){if(typeof n=="undefined"){var n=event}var l=a.lastSound;var m=a.getMouseXY(n);var j=m[0];var p=m[1];var k=j-l._360data.canvasMidXY[0];var i=p-l._360data.canvasMidXY[1];var o=Math.floor(g-(a.rad2deg(Math.atan2(k,i))+180));l.setPosition(l.durationEstimate*(o/g));a.stopEvent(n);return false};this.drawSolidArc=function(n,m,o,i,l,p,v){var u=o;var s=o;var k=n;if(k.getContext){var w=k.getContext("2d")}var n=w;if(!v){a.clearCanvas(k)}if(m){w.fillStyle=m}else{}n.beginPath();if(isNaN(l)){l=0}var q=o-i;var j=(b||c);if(!j||(j&&o>0)){n.arc(0,0,o,p,l,false);var r=a.getArcEndpointCoords(q,l);n.lineTo(r.x,r.y);n.arc(0,0,q,l,p,true);n.closePath();n.fill()}};this.getArcEndpointCoords=function(i,j){return{x:i*Math.cos(j),y:i*Math.sin(j)}};this.deg2rad=function(i){return(i*Math.PI/180)};this.rad2deg=function(i){return(i*180/Math.PI)};this.getTime=function(j,k){var i=Math.floor(j/1000);var l=Math.floor(i/60);var m=i-(l*60);return(k?(l+":"+(m<10?"0"+m:m)):{min:l,sec:m})};this.clearCanvas=function(m){var k=m;var j=null;if(k.getContext){j=k.getContext("2d")}var l=k.offsetWidth;var i=k.offsetHeight;j.clearRect(-(l/2),-(i/2),l,i)};var g=(b||f?359.9:360);this.updatePlaying=function(){if(this.bytesLoaded){this._360data.lastValues.bytesLoaded=this.bytesLoaded;this._360data.lastValues.bytesTotal=this.bytesTotal}if(this.position){this._360data.lastValues.position=this.position}if(this.durationEstimate){this._360data.lastValues.durationEstimate=this.durationEstimate}a.drawSolidArc(this._360data.oCanvas,a.config.backgroundRingColor,this._360data.width,this._360data.radius,a.deg2rad(g),false);a.drawSolidArc(this._360data.oCanvas,(this._360data.metadata?a.config.loadRingColorMetadata:a.config.loadRingColor),this._360data.width,this._360data.radius,a.deg2rad(g*(this._360data.lastValues.bytesLoaded/this._360data.lastValues.bytesTotal)),0,true);if(this._360data.lastValues.position!=0){a.drawSolidArc(this._360data.oCanvas,(this._360data.metadata?a.config.playRingColorMetadata:a.config.playRingColor),this._360data.width,this._360data.radius,a.deg2rad((this._360data.didFinish==1?g:g*(this._360data.lastValues.position/this._360data.lastValues.durationEstimate))),0,true)}if(this._360data.metadata){this._360data.metadata.events.whileplaying()}var i=(a.config.showHMSTime?a.getTime(this.position,true):parseInt(this.position/1000));if(i!=this._360data.lastTime){this._360data.lastTime=i;this._360data.oTiming.innerHTML=i}if(!d){a.updateWaveform(this)}if(a.config.useFavIcon&&a.vuMeter){a.vuMeter.updateVU(this)}};this.updateWaveform=function(i){if((!a.config.useWaveformData&&!a.config.useEQData)||(!h.features.waveformData&&!h.features.eqData)){return false}};this.callbackCount=0;this.peakDataHistory=[];this.getUIHTML=function(){return['<canvas class="sm2-canvas" width="'+a.config.circleDiameter+'" height="'+a.config.circleDiameter+'"></canvas>',' <img src="'+a.config.imageRoot+'empty.gif" class="sm2-360btn sm2-360btn-default" style="border:none" />',' <div class="sm2-timing'+(navigator.userAgent.match(/safari/i)?" alignTweak":"")+'"></div>',' <div class="sm2-cover"></div>']};this.init=function(){h._writeDebug("threeSixtyPlayer.init()");var n=a.getElementsByClassName("ui360","div");var D=[];for(var y=0,x=n.length;y<x;y++){D.push(n[y].getElementsByTagName("a")[0])}var q=0;var p=null;var l=null;var v=null;a.oUITemplate=document.createElement("div");a.oUITemplate.className="sm2-360ui";var B=document.createElement("div");B.className="ui360";var r=B.appendChild(a.oUITemplate.cloneNode(true));B.style.position="absolute";B.style.left="-9999px";var C=a.getUIHTML();r.innerHTML=C[1]+C[2]+C[3];delete C;var s=document.body.appendChild(B);a.config.circleDiameter=parseInt(r.offsetWidth);a.config.circleRadius=parseInt(a.config.circleDiameter/2);var m=a.getElementsByClassName("sm2-timing","div",s)[0];a.config.fontSizeMax=parseInt(a.getStyle(m,"font-size"));if(isNaN(a.config.fontSizeMax)){a.config.fontSizeMax=null}B.parentNode.removeChild(B);delete B;delete r;delete s;a.oUITemplate.innerHTML=a.getUIHTML().join("");for(y=0,x=D.length;y<x;y++){if(h.canPlayURL(D[y].href)&&!a.hasClass(D[y],a.excludeClass)&&!a.hasClass(D[y],a.alreadyAdded)){a.addClass(D[y],this.alreadyAdded);a.addClass(D[y],a.css.sDefault);a.links[q]=(D[y]);a.indexByURL[D[y].href]=q;q++;var z=D[y].parentNode.insertBefore(a.oUITemplate.cloneNode(true),D[y]);if(d&&typeof G_vmlCanvasManager!="undefined"){var u=D[y].parentNode;var w=document.createElement("canvas");w.className="sm2-canvas";var A="sm2_canvas_"+parseInt(Math.random()*1048576);w.id=A;w.width=a.config.circleDiameter;w.height=a.config.circleDiameter;z.appendChild(w);G_vmlCanvasManager.initElement(w);p=document.getElementById(A)}else{p=D[y].parentNode.getElementsByTagName("canvas")[0]}v=a.getElementsByClassName("sm2-cover","div",D[y].parentNode)[0];var k=D[y].parentNode.getElementsByTagName("img")[0];var k=D[y].parentNode.getElementsByTagName("img")[0];a.addEventHandler(k,"click",a.buttonClick);a.addEventHandler(v,"mousedown",a.mouseDown);l=p.getContext("2d");l.translate(a.config.circleRadius,a.config.circleRadius);l.rotate(a.deg2rad(-90))}}if(q>0){a.addEventHandler(document,"click",a.handleClick);if(a.config.autoPlay){a.handleClick({target:a.links[0],preventDefault:function(){}})}}h._writeDebug("threeSixtyPlayer.init(): Found "+q+" relevant items.");if(a.config.useFavIcon&&typeof this.VUMeter!="undefined"){this.vuMeter=new this.VUMeter(this)}}}var threeSixtyPlayer=null;soundManager.consoleOnly=true;soundManager.flashVersion=9;soundManager.stream=true;soundManager.debugMode=false;soundManager.url="/include/flash/";soundManager.useMovieStar=true;if(soundManager.debugMode){var t=window.setInterval(function(){if(threeSixtyPlayer&&threeSixtyPlayer.lastSound&&threeSixtyPlayer.lastSound._360data.fps){soundManager._writeDebug("fps: ~"+threeSixtyPlayer.lastSound._360data.fps);threeSixtyPlayer.lastSound._360data.fps=0}},1000)}threeSixtyPlayer=new ThreeSixtyPlayer();if(threeSixtyPlayer.config.useWaveformData){soundManager.flash9Options.useWaveformData=true}if(threeSixtyPlayer.config.useEQData){soundManager.flash9Options.useEQData=true}if(threeSixtyPlayer.config.usePeakData){soundManager.flash9Options.usePeakData=true}soundManager.onready(function(){if(soundManager.supported()){threeSixtyPlayer.init()}});

