/**********
     TITLE: Music Object
   VERSION: 3.3.0.35
      TYPE: Object Definition
    AUTHOR: Chris van Rensburg
 COPYRIGHT: 1996-2000 Beatnik, Inc. All Rights Reserved
**********/

/**********
     TITLE: Music Object Component - Basic
   VERSION: 3.3.0.35
    AUTHOR: Chris van Rensburg
 COPYRIGHT: 1996-2000 Beatnik, Inc. All Rights Reserved
**********/

window.onerror=null;function MO_a(_a){return typeof _a._b!='undefined'}function MO_b(_a){return MO_a(_a)?_a:Music}function MO_c(_c,_d,_e){var _f=_c.indexOf(_d,_e);return(_f!= -1)?_f:_c.length;}function MO_d(){}function mo_on(){return this.ready&&MO_e.enabled&& !this.locked}function MO_f(_g,_h,_i,_j){var _k='';if(typeof _h[_i]=='function'){if(typeof _g.MO_g=='undefined')_g.MO_g=0;var _l='mo_storedEventHandler'+ ++_g.MO_g;_g[_l]=_h[_i];_k='; return '+_l+' (event)';}_h[_i]=new _g.Function('event',_j+_k);}function mo_play(_m,_n){var _o=this;if(_o.on()){_o.endVolumeFade();if(typeof _n=='string'){
if(_n!=''&&_n.indexOf('.')== -1&&_n.indexOf('groovoid://')!=0)_n='groovoid://'+_n;if(typeof _m=='string')_m=(_m=='auto')?(_n.indexOf('groovoid://Background-')==0):(_m=='yes');_o._b.play(_m,_n);}else if(typeof _m=='boolean'||typeof _m=='number'){_o._b.play(_m);}else if(typeof _m=='string'){_o.play('auto',_m);}else{if(!_o.isPlaying())_o._b.play();}}}function mo_stop(_p){var _o=this;if(_o.on()){if(typeof _p=='undefined'||_p==0|| !MO_e._q||_o.isPaused()){_o.endVolumeFade();_o._b.stop();}else{_o.fadeVolume(null,0,_p,_o.objectName+'.stop ()');}}}function mo_pause(_p){var _o=this;if(_o.on()){_o.endVolumeFade();if(_o.isPaused()){_o._b.pause();if(typeof _p!='undefined'&&MO_e._q)_o.fadeVolume(0,100,_p);}else{(typeof _p=='undefined'|| !MO_e._q)?_o._b.pause():_o.fadeVolume(null,0,_p,_o.objectName+'.pause ()');}}}function mo_enable(){var _o=this,_r=_o._r,_s=document;if(typeof _o.instanceEnabler=='function'){_o.instanceEnabler();}else{
_o._b=(typeof window[_r]=='object')?window[_r]:((typeof _s[_r]=='object')?_s[_r]:((typeof _s.embeds!='undefined'&&typeof _s.embeds[_r]=='object')?_s.embeds[_r]:((typeof _s[_r+'Layer']!='undefined'&&typeof _s[_r+'Layer'].document.embeds[0]=='object')?_s[_r+'Layer'].document.embeds[0]:_o._b)));if(_o._b!=null){if(MO_e.playerVersion=='')MO_e.playerVersion=MO_e.retrieveVersion(_o._b.getVersion()+'');MO_e._t?_o._b.enableCallbacks(true):_o.execOnReady();}else{setTimeout(_o.objectName+'.enable ()',500);}}}function mo_execOnReady(){var _o=this;if(_o.ready){if(MO_e.playerType=='ActiveX')_o._b.receivedReady(true);}else{_o.ready=_o._b!=null;if(_o.ready){_o.updateMetaEventsEnabled();if(MO_e.global==null)MO_e.global=_o._b;if(MO_e.playerType=='ActiveX')_o._b.receivedReady(true);if(_o==MO_e._u){if(MO_e.playerType=='Plug-in'){if(typeof document[_o._r+'Layer']!='undefined')document[_o._r+'Layer'].visibility=false;}else if(MO_e.playerType=='ActiveX'){
if(typeof window[_o._r+'Layer']!='undefined')window[_o._r+'Layer'].style.visibility='hidden';}}if(_o._v){_o._b.setAutostart(true);_o.play();}_o.execCallback('onReady');}else{_o.enable();}}if(_o.ready)_o.execCallback('onLoad');}function mo_execOnPlay(){this.setVolume(this.VOLUME);this.updateAudibleState();this.execCallback('onPlay');}function mo_getOutputVolume(){var _o=this,_w=_o._x;_o._x=_o.VOLUME;for(var _y in _o.volumeScalars)_o._x*=_o.volumeScalars[_y]/100;_o._x=Math.round(_o._x);if(_o._x!=_w)_o.execCallback('onOutputVolumeChange');return _o._x;}function mo_setVolume(_m,_n){var _o=this;if(typeof _n!='undefined'){if(_n<0)delete _o.volumeScalars[_m];else _o.volumeScalars[_m]=_n;}else if(typeof _m!='undefined'){_o.VOLUME=_m;}_o.getOutputVolume();if(_o.on())_o._b.setVolume(_o._x);}function mo_getVolume(_z){return(typeof _z=='string')?((typeof this.volumeScalars[_z]!='undefined')?this.volumeScalars[_z]:null):this.VOLUME;}function MO_h(_o){
return MO_i(_o,'WIDTH')+MO_i(_o,'HEIGHT')+MO_i(_o,'HSPACE')+MO_i(_o,'VSPACE')+MO_i(_o,'ALIGN');}function MO_j(_A,_o){var _B=false,_C=0;while(!_B&&_C<_A.length){var _D=false;while(!_D&&_C<_A.length){_D=_A.charAt(_C)!=' ';if(!_D)_C++;}if(_D){var _E=MO_c(_A,'=',_C),_F=MO_c(_A,' ',_C),_G=MO_c(_A,'>',_C),_H=Math.min(Math.min(_F,_E),_G),_I=_H!=_F&&_H!=_G,_J=_A.substring(_C,_H).toUpperCase(),_K=_H,_L='';_B=_G==_H;if(_I){var _M=_H+1,_N=_A.charAt(_M);if(_N=='"'||_N=="'"){_K=_M;var _O=false;while(!_O&&_K<_A.length-1){_K=MO_c(_A,_N,_K+1);_O=true;var _P=true,_Q=_K;while(_P){_Q--;_P=_A.charAt(_Q)=='\\';if(_P)_O= !_O;}}_L=eval(_A.substring(_M,_K+1));}else{_K=Math.min(MO_c(_A,' ',_M),MO_c(_A,'>',_M));_L=_A.substring(_M,_K);}}_C=_K+1;_o[_J]=_L;}}}function MO_i(_o,_J){var _L=_o[_J];return(_L!=null)?(' '+_J+(((_L+'')!='')?('="'+_L+'"'):'')):'';}function mo_killReferences(){var _R=MO_e.instances;for(var _S=_R.length-1;_S>=0;_S--)_R[_S]._b=null;MO_e.global=null;}function mo_magicEmbed(_A){var _T=MO_e,_U=MO_a(this),_o=_U?this:_T,
_V=_T.embedDefaults,_W=_T.embedProperties;if(typeof _T.playerCompatible!='boolean')mo_isPlayerCompatible();if(typeof _o._r!='string'|| !_U){for(var _X=0;_X<_W.length;_X++){_o[_W[_X]]=(typeof _V[_W[_X]]!='undefined')?_V[_W[_X]]:null;}MO_j(_A,_o);if(_o.HIDDEN=='')_o.HIDDEN='TRUE';_o._Y=_o.HIDDEN!=null&&_o.HIDDEN.toUpperCase()=='TRUE'&&_o.WIDTH=='0'&&_o.HEIGHT=='0';_o.BGCOLOR=document.bgColor;_o.MUSICOBJECTVERSION=_T.version;var _Z=_o.WIDTH-0,_0=_o.HEIGHT-0,_1=false,_2='';if(_T.enabled&&_T.clientSupported&&_T.hasPlayer&&(_T.playerCompatible|| !_T.silentIfInadequate)){if(_T._3&& !_T._4&&_o._Y){if(_U)_T._u=_o;_1=true;_o.WIDTH=_o.HEIGHT=2;_o.HIDDEN='FALSE';}_T._4=true;if(_U){_o._r=_o.objectName+'Player';var _5=_T.framePrefix+_o.objectName+'.execOn';_o.ONREADY=_5+'Ready()';_o.ONPLAY=_5+'Play()';_o.ONPAUSE=_5+'Pause()';_o.ONSTOP=_5+'Stop()';_o.ONMETAEVENT=_5+'MetaEvent()';_o.ONAUDIOENGAGEDCHANGE=_T.framePrefix+'Music.execCallback (\'onAudioEngagedChange\')';_o.METAEVENTS='FALSE';if(_T._t){_o.CALLBACKS='FALSE';
_o._v=_o.AUTOSTART.toUpperCase()=='TRUE';_o.AUTOSTART='FALSE';if(!_T._6){_T.windowOnloadStr='';_T._6=true;if(_T.playerType=='ActiveX')MO_f(window,window,'onunload','mo_killReferences ()');MO_f(window,window,'onload','eval (Music.windowOnloadStr)');}_T.windowOnloadStr+=_o.objectName+'.enable ();';}_o.execCallback('onPrepareToEmbed');}if(_T.playerType=='Plug-in'){_2+='<EMBED TYPE="'+(mo_hasMinVersion('2.1')?'application/beatnik':'audio/rmf')+'" PLUGINSPAGE="http://www.beatnik.com/to/?player"'+(_U?(' NAME="'+_o._r+'"'):'');for(var _X=0;_X<_W.length;_X++)_2+=MO_i(_o,_W[_X]);_2+='>';if(_U)_o.requireJava();if(typeof Layer!='undefined'&&_o._Y)_2='<LAYER'+(_U?(' NAME="'+_o._r+'Layer"'):'')+' LEFT=0 TOP=0'+(!_1?'VISIBILITY=HIDDEN':'')+'>'+_2+'</LAYER>';}else if(_T.playerType=='ActiveX'){if(_U){var _7=new Array('OnReady','OnPlay','OnPause','OnStop','OnMetaEvent','OnAudioEngagedChange');for(var _8=0;_8<_7.length;_8++){var _9='('+(_7[_8]=='OnMetaEvent'?'eventType,eventValue':'')+')',_ba=_o[_7[_8].toUpperCase()];
_2+='<SCRIPT LANGUAGE=JavaScript FOR="'+_o._r+'" EVENT="'+_7[_8]+_9+'">'+_ba.substring(0,_ba.indexOf('('))+_9+'</SCRIPT>\n';}}_2+='<OBJECT'+(_U?(' ID="'+_o._r+'"'):'')+MO_h(_o)+' CLASSID="CLSID:B384F118-18EE-11D1-95C8-00A024330339" CODEBASE="http://download.beatnik.com/beatnik-player/beatnik-player.cab">\n';for(var _X=0;_X<_W.length;_X++){if(_o[_W[_X]]!=null)_2+='<PARAM NAME="'+_W[_X]+'" VALUE="'+_o[_W[_X]]+'">\n';}_2+='</OBJECT>';if(_o._Y)_2='<SPAN '+(_U?(' ID="'+_o._r+'Layer"'):'')+'STYLE="position:absolute;left:0;top:0;'+(!_1?'visibility:hidden;':'')+'">'+_2+'</SPAN>';}_2+=(typeof _o.embedSuffix=='string')?_o.embedSuffix:'';}else{_2=MO_k(_o);}document.writeln(_2);_o.VOLUME=_o.VOLUME-0;}}function MO_l(_o,_bb){_o[_bb]=(typeof window['mo_'+_bb]!='function')?MO_d:window['mo_'+_bb];}function MO_m(_bc,_bd){for(var _be=0;_be<_bd.length;_be++){_bc[_bc.length]=_bd[_be];}}function MO_n(){var _bf=MO_n.arguments,_bg=MO_e.publicStaticMethods;for(var _bh=0;_bh<_bf.length;_bh++)MO_l(MO_e,_bg[_bg.length]=_bf[_bh]);}
function MO_o(){MO_m(MO_e.publicInstanceMethods,MO_o.arguments);}function MO_p(){MO_m(MO_e.privateInstanceMethods,MO_p.arguments);}function Music(_bi){var _o=this,_bj;_o._v=_o.ready=_o.locked=false;_o.objectName=_o.alias=(typeof _bi=='string')?_bi:('mo_GIN'+MO_e._bk++);_o.VOLUME=_o._x=100;_o.volumeScalars=new Array();_o._b=null;_o.embedSuffix='';_bj=MO_e.publicInstanceMethods;for(var _bl=0;_bl<_bj.length;_bl++)MO_l(_o,_bj[_bl]);_bj=MO_e.privateInstanceMethods;for(var _bl=0;_bl<_bj.length;_bl++)MO_l(_o,_bj[_bl]);window[_o.objectName]=MO_e.instances[MO_e.instances.length]=_o;_o.extend();}MO_e=Music;MO_e.enabled=true;MO_e.version='3.3.0.35';MO_e.instances=new Array();MO_e.publicInstanceMethods=new Array();MO_e.privateInstanceMethods=new Array();MO_e.publicStaticMethods=new Array();MO_e.framePrefix='';
MO_e.embedProperties=new Array('SRC','WIDTH','HEIGHT','AUTOSTART','LOOP','VOLUME','FILEVOLUMESCALING','ALIGN','HSPACE','VSPACE','BGCOLOR','HIDDEN','DISPLAY','MODE','GROOVOID','ONREADY','ONPLAY','ONPAUSE','ONSTOP','ONMETAEVENT','CALLBACKS','METAEVENTS','MUSICOBJECTVERSION','AUDIODEVICEPRIORITY','DOCUMENTID','AUDIOENGAGED','ONAUDIOENGAGEDCHANGE');var MO_q=MO_e.embedDefaults=new Array();MO_q.AUTOSTART=MO_q.FILEVOLUMESCALING=MO_q.AUDIOENGAGED='TRUE';MO_q.DOCUMENTID=(new Date()).getTime();MO_q.WIDTH='144';MO_q.HEIGHT='60';MO_q.HSPACE=MO_q.VSPACE='0';MO_q.VOLUME='100';MO_q.AUDIODEVICEPRIORITY='1';MO_r=navigator;MO_e._3=(MO_r.appName!='Microsoft Internet Explorer');MO_e._4=MO_e._6=MO_e._q=false;MO_e._u=null;MO_e._bk=0;MO_e._t=MO_r.userAgent.indexOf('WebTV')== -1;MO_o('endVolumeFade','getOutputVolume','magicEmbed','pause','play','requireJava','setVolume','stop');MO_p('enable','execCallback','execOnPause','execOnPlay','execOnReady','execOnStop','extend','on','updateAudibleState','updateMetaEventsEnabled');
MO_n('magicEmbed');MO_e.clientSupported=MO_e.hasPlayer=MO_e.playerCompatible=true;MO_e.playerType=(MO_r.appName=='Microsoft Internet Explorer'&&MO_r.platform.indexOf('Win')!= -1)?'ActiveX':'Plug-in';MO_e.playerVersion='';
/**********
     TITLE: Music Object Component - Advanced
   VERSION: 3.3.0.35
    AUTHOR: Chris van Rensburg
 COPYRIGHT: 1996-2000 Beatnik, Inc. All Rights Reserved
**********/

function MO_s(_bm,_bn){var _f=new Array();for(var _bo=0;_bo<_bm;_bo++)_f[_bo]=(typeof _bn=='function')?new _bn():eval(_bn);return _f;}function mo_extend(){for(var _bp=0;_bp<MO_e._bq.length;_bp++)MO_e._bq[_bp](this);;}function MO_t(_br){MO_e._bq[MO_e._bq.length]=_br;}function MO_u(){var _bf=MO_u.arguments,_bs=true,_7=MO_e.publicInstanceCallbacks;for(var _bh=0;_bh<_bf.length;_bh++){var _bt=_bf[_bh];if(_bt.charAt(0)=='['){_bs=_bt.toLowerCase().indexOf('instance')!= -1;_7=MO_e['public'+(_bs?'Instance':'Static')+'Callbacks'];}else{_7[_7.length]=_bt;
window['mo_'+_bt]=new Function('handler',(_bs?'this.':'Music.')+_bt+'Handler = handler;'+((_bs&&_bt=='onMetaEvent')?'this.updateMetaEventsEnabled ();':''));_bs?MO_o(_bt):MO_n(_bt);}}}function mo_updateMetaEventsEnabled(){if(this.ready)this._b.enableMetaEvents(typeof this.onMetaEventHandler=='function'||(typeof this.onMetaEventHandlers!='undefined'&&this.onMetaEventHandlers.length>0));}function mo_addCallbackHandler(_bu,_j){var _o=MO_b(this),_bv=_bu+'Handlers';if(typeof _o[_bv]=='undefined')_o[_bv]=new Array();_o[_bv][_o[_bv].length]=_j;if(_bu=='onMetaEvent')_o.updateMetaEventsEnabled();}function MO_v(_j){if(typeof _j=='string')eval(_j);else if(typeof _j=='function')_j();}function mo_execCallback(_bu){var _o=MO_b(this);if(typeof _o[_bu+'Handler']!='undefined')MO_v(_o[_bu+'Handler']);if(typeof _o[_bu+'Handlers']!='undefined'){var _bw=_o[_bu+'Handlers'];for(var _bx=0;_bx<_bw.length;_bx++)MO_v(_bw[_bx]);}}function mo_updateAudibleState(){var _o=this;MO_w(_o,'updateAudibleStateTimeout');var _by=_o.audible;
_o.audible=((_o.usage!='notes'&&_o.isPlaying())||_o._bz>0)&&_o._x>0;if(_o.audible!=_by)_o.execCallback('onAudibleStateChange');}function mo_execOnMetaEvent(_i,_bA){if(typeof this.onMetaEventHandler=='function')this.onMetaEventHandler(_i,_bA,this);this.execMetaEventHandlers(_i,_bA);}function mo_execOnPause(){this.endVolumeFade();this.updateAudibleState();this.execCallback('onPause');}function mo_execOnStop(){this.endVolumeFade();this.updateAudibleState();this.execCallback('onStop');}function mo_stopAll(){for(var _S=0;_S<MO_e.instances.length;_S++)MO_e.instances[_S].stop();}function MO_x(_bB){var _o=this;if(Math.round(_bB)!=Math.round(_o._bC)){_o.fadeValue=Math.round(_bB);if(typeof _o._bD=='function')_o._bD(_o.fadeValue);}_o._bC=_bB;}function MO_y(){var _o=this;if(_o.inProgress){_o.inProgress=false;MO_v(_o._bE);if(_o._bF)_o.setValue(_o._bG);}}function MO_z(){var _o=this;if(_o.inProgress){_o.setValue(_o._bC+_o._bH);_o.timeElapsed+=MO_e.minFadeInterval;if(_o.timeElapsed>=_o._bI)_o.end();}return _o.inProgress;}
function mo_execFades(){MO_e._bJ=setTimeout(mo_execFades,MO_e.minFadeInterval);var _bK=0,_bL=0;while(_bL<MO_e._bM.length-_bK){MO_e._bM[_bL]=MO_e._bM[_bL+_bK];(MO_e._bM[_bL].advance())?_bL++ :_bK++;}MO_e._bM.length-=_bK;if(typeof MO_e.onFadesUpdatedHandler!='undefined')MO_v(MO_e.onFadesUpdatedHandler);if(MO_e._bM.length==0)clearTimeout(MO_e._bJ);}function MO_A(){var _o=this;if(!_o.inProgress){_o.inProgress=true;if(_o._bI==0){if(!_o._bF)_o.setValue(_o._bN);_o.end();}else{_o.timeElapsed=0;_o.setValue(_o._bG);MO_e._bM[MO_e._bM.length]=_o;if(MO_e._bM.length==1)setTimeout(mo_execFades,MO_e.minFadeInterval);}}}function MO_B(_bG,_bN,_bI,_bD,_bE,_bF){var _o=this;if(typeof _bN!='number')_bN=0;if(typeof _bI=='boolean')_bI=_bI?1000:0;if(typeof _bI!='number')_bI=1000;if(typeof _bF!='boolean')_bF=false;_bD=(typeof _bD=='string')?new Function('fadeValue',_bD):_bD;if(_o.inProgress&&_o._bN==_bN&&_o._bI==_bI){_o._bE=_bE;_o._bD=_bD;}else{var _bO=_o.inProgress;_o.end();_o._bF=_bF;_o._bG=_bG;_o._bN=_bN;
_o._bI=Math.round(_bI/MO_e.minFadeInterval)*MO_e.minFadeInterval;_o._bE=_bE;_o._bD=_bD;_o._bC= -1000;_o._bH=(_bN-_bG)/(_o._bI/MO_e.minFadeInterval);if(_bO)_o.start();}}function MO_C(_bG,_bN,_bI,_bD,_bE,_bF){var _o=this;_o.inProgress=false;_o.fadeValue=_bG;_o.start=MO_A;_o.end=MO_y;_o.advance=MO_z;_o.setValue=MO_x;_o.update=MO_B;if(MO_C.arguments.length>0)_o.update(_bG,_bN,_bI,_bD,_bE,_bF);}function mo_endVolumeFade(){this._bP.end()}function mo_fadeVolume(_bQ,_bR,_bI,_bS,_bT){if(typeof _bT!='undefined')this.onOutputVolumeChangeHandler=_bT;this._bP.update((typeof _bQ!='number')?this.VOLUME:_bQ,_bR,_bI,this.objectName+'.setVolume (fadeValue)',_bS,typeof _bS=='string'&&(_bS.indexOf('.stop ()')!= -1||_bS.indexOf('.pause ()')!= -1));this._bP.start();}function mo_fadeTo(_bU,_bI,_bV,_bW){this.fadeVolume(null,_bU,_bI,_bV,_bW);}function mo_setMonophonic(_bX,_bY){if(_bX==0)for(var _bZ=1;_bZ<17;_bZ++)this._b0[_bZ]=_bY;else this._b0[_bX]=_bY;}function mo_getMonophonic(_bX){return this._b0[_bX]}
function mo_noteOn(_bX,_n,_b1,_b2,_b3,_b4){var _o=this;if(_o.on()){var _b5,_b6=MO_e._b6,_b7=MO_e._b7;if(mo_noteOn.arguments.length>=5){if(_o._b0[_bX])_o.noteOff(_bX);if(typeof _b2=='string')_b2=mo_getNoteNumber(_b2);_b7._b8=_o;_b7._b9= ++MO_e._ca;_b7._bX=_bX;_b7._cb=_b2;var _cc= -1;for(_b5=0;_b5<MO_e._cd;_b5++){if(_b6[_b5]._bX==0){_cc=_b5;break;}}if(_cc== -1){_cc=0;for(_b5=0;_b5<MO_e._cd;_b5++){if(_b6[_b5]._b9<_b6[_cc]._b9)_cc=_b5;}_b6[_cc].free();}var _ce=_b6[_cc];_ce._b8=_b7._b8;_ce._b9=_b7._b9;_ce._bX=_b7._bX;_ce._cb=_b7._cb;(_n>=0&&_b1>=0)?_o._b.noteOn(_bX,_n,_b1,_b2,_b3):_o._b.noteOn(_bX,_b2,_b3);if(typeof _b4=='number')_ce.noteOffTimeout=setTimeout('Music.voices ['+_cc+'].free ()',_b4);_o._bz++;_o.updateAudibleState();}else{_o.noteOn(_bX,-1,-1,_n,_b1,(typeof _b2!='number')?null:_b2);}}}function mo_noteOff(_bX,_cb){if(this.on()){if(typeof _cb=='string')_cb=mo_getNoteNumber(_cb);if(typeof _cb!='number')_cb= -1;for(var _b5=0;_b5<MO_e._cd;_b5++){var _ce=MO_e._b6[_b5];
if(_ce._b8==this&&_ce._bX==_bX&&(_ce._cb==_cb||_cb== -1))_ce.free();}}}function mo_setProgram(_bX,_n,_b1){if(this.on()){(typeof _b1=='number')?this._b.setProgram(_bX,_n,_b1):this._b.setProgram(_bX,_n);}}function mo_isPaused(){return this.ready?this._b.IsPaused():false}function mo_isPlaying(){return this.ready?this._b.IsPlaying():false}function mo_stubEmbed(_cf,_cg){this.magicEmbed(((typeof _cf!='string')?'':('SRC="'+_cf+'" '))+'WIDTH=0 HEIGHT=0 HIDDEN AUTOSTART=TRUE LOOP=TRUE '+((typeof _cg=='string')?_cg:''));}function mo_preloadEmbed(_cf,_cg){this.stubEmbed(_cf,'AUTOSTART=FALSE LOOP=FALSE '+((typeof _cg=='string')?_cg:''));}function mo_getNoteName(_ch){var _ci=new Array('C','C#','D','D#','E','F','F#','G','G#','A','A#','B');return _ci[_ch%12]+(Math.floor(_ch/12)-1);}function mo_getNoteNumber(_cj){if(typeof _cj=='number')return _cj;var _ck='c-d-ef-g-a-b'.indexOf(_cj.charAt(0).toLowerCase()),_f=0,_cl=0;if(_ck!= -1){var _cm=_cj.indexOf('b',1);if(_cm== -1){_cm=_cj.indexOf('#',1);(_cm== -1)?(_cm=0):(_cl=1);}else{_cl= -1;}
var _cn=_cj.substring(_cm+1)-0;_f=12+_cn*12+_ck+_cl;}return Math.floor(_f);}function MO_w(_co,_cp){if(typeof _co[_cp]!='undefined'&&_co[_cp]!=null)clearTimeout(_co[_cp]);_co[_cp]=null;}function MO_D(){var _o=this;MO_w(_o,'noteOffTimeout');_o._b8._b.noteOff(_o._bX,_o._cb,127);_o._bX=0;_o._b8._bz--;MO_w(_o._b8,'updateAudibleStateTimeout');_o._b8.updateAudibleStateTimeout=setTimeout(_o._b8.objectName+'.updateAudibleState ()',_o._b8.averageNoteRelease);}function MO_E(){var _o=this;_o._b8=null;_o._bX=_o._cb=0;_o._b9=0;_o.free=MO_D;}function MO_F(){mo_stopAll();MO_e.enabled=false;}function mo_setAudioDevicePriority(_cq){if(mo_hasMinVersion('2.1')&&MO_G())MO_e.global.setAudioDevicePriority(_cq);MO_e.embedDefaults.AUDIODEVICEPRIORITY=_cq;}function mo_engageAudio(_cr){if(MO_G())MO_e.global.engageAudio(_cr);MO_e.embedDefaults.AUDIOENGAGED=_cr;MO_e.execCallback('onEngageAudio');}function mo_isAudioDeviceShared(){var _cs=MO_r.userAgent;
return mo_hasMinVersion('2.1')?(MO_G()?MO_e.global.isAudioDeviceShared():null):(MO_H(_cs,'WinNT','Windows NT')?MO_I(MO_J(_cs,1,MO_c(_cs,(_cs.indexOf('WinNT')!= -1)?'WinNT':'Windows NT')),'5.0'): !MO_H(_cs,'Win9','Windows 9'));}function mo_isAudioSupported(){return(mo_hasMinVersion('2.1')&&MO_G())?MO_e.global.isAudioSupported():true;}function MO_G(){return MO_e.enabled&&MO_e.global!=null}function mo_doMenuItem(_ct){if(this.on())this._b.doMenuItem(_ct)}function mo_getAudioDevicePriority(){return MO_e.embedDefaults.AUDIODEVICEPRIORITY}function mo_getAutostart(){return this.ready?this._b.getAutostart():null}function mo_getChannelMute(_bX){return this.ready?this._b.getChannelMute(_bX):null}function mo_getChannelSolo(_bX){return this.ready?this._b.getChannelSolo(_bX):null}function mo_getController(_bX,_cu){return this.ready?this._b.getController(_bX,_cu):null}function mo_getFileSize(){return this.ready?this._b.getFileSize():null}function mo_getInfo(_cv){return this.ready?this._b.getInfo(_cv):null}
function mo_getLoop(){return this.ready?this._b.getLoop():null}function mo_getPanelDisplay(){return this.ready?this._b.getPanelDisplay():null}function mo_getPanelMode(){return this.ready?this._b.getPanelMode():null}function mo_getPlayer(){return this._b}function mo_getPlayLength(){return this.ready?this._b.getPlayLength():null}function mo_getPosition(){return this.ready?this._b.getPosition():null}function mo_getProgram(_bX){return this.ready?this._b.getProgram(_bX):null}function mo_getReverbType(){return MO_G()?MO_e.global.getReverbType():null}function mo_getTempo(){return this.ready?this._b.getTempo():null}function mo_getTrackMute(_cw){return this.ready?this._b.getTrackMute(_cw):null}function mo_getTrackSolo(_cw){return this.ready?this._b.getTrackSolo(_cw):null}function mo_getTransposable(_bX){return this.ready?this._b.getTransposable(_bX):null}function mo_getTranspose(){return this.ready?this._b.getTranspose():null}
function mo_isAudioEngaged(){return(MO_G()&&mo_hasMinVersion('2.1'))?MO_e.global.isAudioEngaged():null}function mo_setAutostart(_bY){if(this.on())this._b.setAutostart(_bY)}function mo_setChannelMute(_bX,_bY){if(this.on())this._b.setChannelMute(_bX,_bY)}function mo_setChannelSolo(_bX,_bY){if(this.on())this._b.setChannelSolo(_bX,_bY)}function mo_setController(_bX,_cu,_cx){if(this.on())this._b.setController(_bX,_cu,_cx)}function mo_setEndTime(_cy){if(this.on())this._b.setEndTime(_cy)}function mo_setGlobalMute(_cz){if(MO_G())MO_e.global.setGlobalMute(_cz)}function mo_setLoop(_bY){if(this.on())this._b.setLoop(_bY)}function mo_setPanelDisplay(_cA){if(this.on())this._b.setPanelDisplay(_cA)}function mo_setPanelMode(_cB){if(this.on())this._b.setPanelMode(_cB)}function mo_setPosition(_cC){if(this.on())this._b.setPosition(_cC)}function mo_setPlayer(_b){this._b=_b}function mo_setReverbType(_cD){if(MO_G())MO_e.global.setReverbType(_cD)}function mo_setStartTime(_cE){if(this.on())this._b.setStartTime(_cE)}
function mo_setTempo(_cF){if(this.on())this._b.setTempo(_cF)}function mo_setTrackMute(_cw,_bY){if(this.on())this._b.setTrackMute(_cw,_bY)}function mo_setTrackSolo(_cw,_bY){if(this.on())this._b.setTrackSolo(_cw,_bY)}function mo_setTranspose(_cG){if(this.on())this._b.setTranspose(_cG)}function mo_setTransposable(_bX,_bY){if(this.on())this._b.setTransposable(_bX,_bY)}MO_e.global=null;MO_e.minFadeInterval=100;MO_e.publicInstanceCallbacks=new Array();MO_e.publicStaticCallbacks=new Array();MO_e.addEventHandler=MO_f;MO_e.addInstanceExtender=MO_t;MO_e.addPrivateInstanceMethods=MO_p;MO_e.addPublicCallbacks=MO_u;MO_e.addPublicInstanceMethods=MO_o;MO_e.addPublicStaticMethods=MO_n;MO_e.appendToArray=MO_m;MO_e.arrayOfObjects=MO_s;MO_e.clearTimeout=MO_w;MO_e.doNothing=MO_d;MO_e.execCallback=mo_execCallback;MO_e.execHandler=MO_v;MO_e.globalThru=MO_G;MO_e.indexOf=MO_c;MO_e.isInstance=MO_a;MO_e.parseAttributes=MO_j;MO_e.tagAttr=MO_i;MO_e.wireMethod=MO_l;MO_e._bM=new Array();MO_e._bq=new Array();MO_e._ca=0;MO_e._cd=32;
MO_e.voices=MO_e._b6=MO_s(MO_e._cd,MO_E);MO_e._b7=new MO_E();MO_e._q=true;mo_playNote=mo_noteOn;MO_o('addCallbackHandler','doMenuItem','fadeTo','fadeVolume','getAutostart','getChannelMute','getChannelSolo','getController','getFileSize','getInfo','getLoop','getMonophonic','getPanelDisplay','getPanelMode','getPlayLength','getPosition','getProgram','getTempo','getTrackMute','getTrackSolo','getTransposable','getTranspose','getVolume','isPaused','isPlaying','noteOff','noteOn','playNote','preloadEmbed','setAutostart','setChannelMute','setChannelSolo','setController','setEndTime','setLoop','setMonophonic','setPanelDisplay','setPanelMode','setPosition','setProgram','setStartTime','setTempo','setTrackMute','setTrackSolo','setTransposable','setTranspose','stubEmbed');MO_u('[instance]','onLoad','onAudibleStateChange','onMetaEvent','onOutputVolumeChange','onPause','onPlay','onReady','onStop','[static]','onAudioEngagedChange','onEngageAudio');MO_p('execMetaEventHandlers','execOnMetaEvent','getPlayer','setPlayer');
function MO_K(_o){_o._b0=MO_s(17,false);_o._bP=new MO_C();_o._bz=_o.averageNoteRelease=0;_o.usage='music';_o.audible=false;_o.addCallbackHandler('onOutputVolumeChange',_o.objectName+'.updateAudibleState ()');}MO_t(MO_K);MO_n('addCallbackHandler','engageAudio','getAudioDevicePriority','getNoteName','getNoteNumber','getReverbType','isAudioDeviceShared','isAudioEngaged','isAudioSupported','kill','setAudioDevicePriority','setGlobalMute','setReverbType','stopAll');MO_e.Fade=MO_C;
/**********
     TITLE: Music Object Component - Compatibility
   VERSION: 3.3.0.35
    AUTHOR: Chris van Rensburg
 COPYRIGHT: 1996-2000 Beatnik, Inc. All Rights Reserved
**********/

function MO_H(_c){var _bf=MO_H.arguments;for(var _bh=1;_bh<_bf.length;_bh++){if(_c.indexOf(_bf[_bh])!= -1)return true;}return false;}function MO_L(_c,_cH){return(','+_c+',').indexOf(','+_cH+',')!= -1;}function MO_M(_cI,_cJ,_cK,_cL,_cM,_cN,_cO,_cP){if(typeof _cN!='string')_cN='';var _cQ=typeof screen!='undefined';if(typeof _cO=='undefined'&&_cQ)
_cO=Math.max(Math.floor((screen.width-_cK-10)/2),0);if(typeof _cP=='undefined'&&_cQ)_cP=Math.max(Math.floor((screen.height-_cL-40)/2),0);var _cR=(typeof _cO!='undefined'&&typeof _cP!='undefined')?('screenx='+_cO+',screeny='+_cP+',left='+_cO+',top='+_cP+','):'';return window.open(_cI,_cJ,_cN+',toolbar=no,location=no,directories=no,status='+((typeof _cM=='boolean'&&_cM)?'yes':'no')+',menubar=no,scrollbars=no,resizable=yes,'+_cR+'width='+_cK+',height='+_cL+','+_cN);}function mo_promptClose(){if(MO_e._cS!=null){MO_e._cS.close();MO_e._cS=null;window.focus();}}function mo_promptUser(_cT,_cU,_cV,_cW,_cX,_cY,_cM){MO_e._cS=MO_M('','mo_promptWindow',500,295,_cM);if(typeof _cW!='string'||_cW=='')_cW='mo_promptClose ()';if(typeof _cY!='string'||_cY=='')_cY='mo_promptClose ()';if(typeof _cT!='string')_cT='';var _s=MO_e._cS.document;_s.open('text/html');_s.writeln('<HTML><HEAD><TITLE>'+_cT+'</TITLE></HEAD><BODY TEXT=000000 TOPMARGIN=0 LEFTMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>'+
'<FORM><TABLE WIDTH=100% HEIGHT=100% BORDER=0 CELLSPACING=0 CELLPADDING=6 BGCOLOR=CCCCCC>'+((_cT!='')?('<TR><TD VALIGN=TOP><TABLE WIDTH=100% BORDER=1 CELLSPACING=0 CELLPADDING=2 BGCOLOR=AAAAAA><TR><TD ALIGN=CENTER><FONT FACE=ARIAL,HELVETICA,VERDANA SIZE=5>'+_cT+'</FONT></U><BR></TD></TR></TABLE></TD></TR>'):'')+'<TR><TD VALIGN=CENTER><FONT FACE=ARIAL,HELVETICA,VERDANA SIZE=3>'+_cU+'</FONT>'+'</TD></TR><TR><TD VALIGN=BOTTOM>'+'<TABLE WIDTH=100% BORDER=0 CELLSPACING=0 CELLPADDING=0><TR><TD COLSPAN=2><HR></TD></TR><TR><TD>'+((typeof _cX=='string'&&_cX!='')?('<INPUT TYPE=button VALUE="'+_cX+'" ONCLICK="with (window.opener) {'+_cY+'}">'):'')+'</TD><TD ALIGN=RIGHT>'+((typeof _cV=='string'&&_cV!='')?('<INPUT TYPE=button VALUE="'+_cV+'" ONCLICK="with (window.opener) {'+_cW+'}">'):'')+'</TD></TR></TABLE></TD></TR></TABLE></FORM></BODY></HTML>');_s.close();if(typeof Event!='undefined'){MO_e._cS.captureEvents(Event.KEYUP);
MO_e._cS.onKeyUp=new Function('event','if (event.which == 13) {'+_cW+'} else if (event.which == 27) {'+_cY+'}; return false');}MO_e._cS.focus();}function mo_installPlayer(){var _cZ='';for(var _c0 in MO_e.installerOptions)_cZ+=((_cZ!='')?'&':'')+_c0+'='+escape(MO_e.installerOptions[_c0]);MO_e._cS=MO_M('http://www.beatnik.com/to/install-player.html?'+_cZ,'mo_promptWindow',500,295,true,'resizable=false');}function MO_J(_c,_c1,_e){if(typeof _c1!='number')_c1= -1;var _c2='',_c3='0123456789',_c4=(_c1==1)?'({[<':')}]>',_c5=(_c1==1)?')}]>':'({[<',_c6=(_c1==1)?(_c.length-1):0,_c7=(typeof _e=='number')?_e:((_c1==1)?0:(_c.length-1)),_c8,_c9=false,_da='';while(_c7!=_c6+_c1){_c8=_c.charAt(_c7);var _db=_c4.indexOf(_c8);if(_db!= -1){_da=_c5.charAt(_db)+_da;}else if(_c5.indexOf(_c8)!= -1){if(_c8==_da.charAt(0));_da=_da.substr(1);}else if(_da==''){if(_c9||_c3.indexOf(_c8)!= -1){if(!_c9)_c2='';_c9=_c8=='.'||_c3.indexOf(_c8)!= -1;if(_c9){if(_c1==1)_c2+=_c8;else _c2=_c8+_c2;}else{if(_c2.indexOf('.')!= -1)_c7=_c6;}}}_c7+=_c1;}
return _c2;}function MO_I(_dc,_dd){var _de=MO_J(_dc);return(_de+'0.0.0.0.0.0.0.0.0.0.0.0.0'.substring(_de.length))>=MO_J(_dd);}function mo_hasMinVersion(_dd){return MO_I(MO_e.playerVersion,_dd);}function mo_requireMinPlayerVersion(_df){if(MO_I(_df,MO_e.requiredMinVersion))MO_e.requiredMinVersion=_df;}function mo_isPlayerCompatible(_df,_dg,_dh){var _f=false;if(MO_e.clientSupported){if(typeof _df=='string')mo_requireMinPlayerVersion(_df);if(typeof _dg=='boolean')MO_e.silentIfInadequate=_dg;if(typeof _dh=='boolean')MO_e.showCompatibilityPrompt=_dh;if(MO_e.hasPlayer){if(mo_hasMinVersion(MO_e.requiredMinVersion)){_f=true;}else{if(MO_e.clientUpgradable&&MO_e.showCompatibilityPrompt)MO_e.upgradePrompt();}}else{if(MO_e.clientUpgradable&&MO_e.showCompatibilityPrompt)MO_e.installPrompt();}}if(!_f&&MO_e.silentIfInadequate)MO_F();return MO_e.playerCompatible=_f;}function mo_requireJava(){if(!MO_e.ignoreJavaDisabled){MO_e.ignoreJavaDisabled=true;if(MO_e.clientSupported&&MO_e._di)MO_e.enableJavaPrompt();}}
function MO_k(_o){if(_o._Y){return'';}else{var _Z=_o.WIDTH-0,_0=_o.HEIGHT-0,_dj=MO_h(_o),_f='<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0'+_dj+'><TR><TD></TD></TR></TABLE>';if(MO_e.enabled&&MO_e.clientSupported&&MO_e.clientUpgradable){var _dk=MO_e.hasPlayer?MO_e.upgradePlayerText:MO_e.getPlayerText,_dl='<A HREF="javascript://" ONCLICK="mo_installPlayer (); return false">';if(typeof MO_e.getPlayerImagesPath=='string'&&_Z==144&&(_0==60||_0==45||_0==15)){_f=_dl+'<IMG SRC="'+MO_e.getPlayerImagesPath+'get-player-'+_Z+'x'+_0+'.gif"'+_dj+' ALT="'+_dk+'" BORDER=0></A>';}else{if(_Z>=90&&_0>=15)_f='<TABLE BORDER=1 CELLSPACING=0 CELLPADDING=0 BGCOLOR=FFFFFF'+_dj+'><TR ALIGN=CENTER VALIGN=CENTER><TD>'+_dl+'<FONT FACE="ARIAL,HELVETICA,VERDANA" COLOR=000000 SIZE='+((_0>=30)?'3':'1')+'>'+_dk+'</FONT></A></TD></TR></TABLE>';}}return _f;}}function MO_N(){var _T=MO_e;if(typeof mo_delayPlayerCheck=='undefined'|| !mo_delayPlayerCheck){if(_T.clientSupported&& !_T._dm){_T._dm=true;if(_T.playerType=='Plug-in'){var _dn=MO_r.plugins;
for(var _do=0;_do<_dn.length;_do++){if(_dn[_do].name.indexOf('Beatnik')!= -1&&_dn[_do].name.indexOf('Stub')== -1){_T.playerVersion=MO_J(_dn[_do].name);if(_T.playerVersion==''){if(_T.clientPlatform=='Mac'){_T.playerVersion='1.1.7';}else if(_T.clientPlatform=='WebTV'){_T.playerVersion='0.9.0';}}_T.hasPlayer=true;break;}}_T._t=mo_hasMinVersion('1.3')&& !_T._di;}else{document.writeln('<SPAN STYLE="position:absolute;visibility:hidden">'+'<OBJECT ID=mo_testInstance CLASSID="CLSID:B384F118-18EE-11D1-95C8-00A024330339" WIDTH=0 HEIGHT=0>'+'<PARAM NAME=WIDTH VALUE=0>'+'<PARAM NAME=HEIGHT VALUE=0>'+'<PARAM NAME=DOCUMENTID VALUE=0>'+'<PARAM NAME=AUTOSTART VALUE=FALSE>'+'</OBJECT>'+'</SPAN>');_T.hasPlayer=typeof document.mo_testInstance.getVersion!='undefined';if(_T.hasPlayer)_T.playerVersion=MO_J(document.mo_testInstance.getVersion());}}}}function MO_O(){mo_delayPlayerCheck=false;MO_N();}function MO_P(_dp){var _T=MO_e;if(MO_L(_dp.name,_T.clientName)&&MO_L(_dp.platform,_T.clientPlatform)){var _dq=_dp.versions.split(',');
for(var _dr=0;_dr<_dq.length;_dr++){var _ds=_dq[_dr].toLowerCase(),_dt=(_ds.indexOf('to')!= -1)?_ds.indexOf('to'):_ds.length,_du=MO_J(_ds.substr(0,_dt)),_dv=MO_J(_ds.substr(_dt+1));if(_dv=='')_dv=_du;if((_du==''||MO_I(_T.clientVersion,_du))&&(_dv==''||MO_H(_ds,'and higher','and up')||MO_I(_dv,_T.clientVersion))){_T.clientKnown=true;_T.clientSupported= !MO_H(_ds,'except','not');if(_T.clientSupported){_T.client=_dp;_T.clientUpgradable=_dp.upgradable;}else{_T.client=null;_T.clientUpgradable=false;}}}}MO_N();}function MO_Q(_cJ,_dw,_dx,_dy,_dz){var _o=MO_e.knownClients[MO_e.knownClients.length]=new Object();_o.name=_cJ;_o.platform=_dw;_o.versions=_dx;_o.upgradable=_dy;if(typeof _dz!='undefined')MO_j(_dz,_o);MO_P(_o);}function MO_R(_dA,_dB,_dw,_cs){var _T=MO_e,_dC=MO_r;_T.clientName=(typeof _dA=='string')?_dA:_dC.appName;_T.clientVersion=MO_J((typeof _dB=='string')?_dB:_dC.appVersion,1);_T.clientKnown=_T.clientSupported=_T.clientUpgradable=false;_T.client=null;if(typeof _cs!='string')_cs=_dC.userAgent;
if(MO_H(_cs,'Win9','Windows 9','WinNT','Windows NT','Win2','Windows 2')){_dw='Win32';}else if(_cs.indexOf('PPC')!= -1){_dw='MacPPC';}else if(_cs.indexOf('WebTV')!= -1){_dw='WebTV';}else if(typeof _dw!='string'){_dw=(typeof _dC.platform=='undefined')?'Unknown':_dC.platform;}_T.platform=_T.clientPlatform=_dw;for(var _dD=0;_dD<_T.knownClients.length;_dD++)MO_P(_T.knownClients[_dD]);}if(typeof Music=='undefined'){MO_r=navigator;MO_e=Music=new Object();MO_e.playerType=(MO_r.appName=='Microsoft Internet Explorer'&&MO_r.platform.indexOf('Win')!= -1)?'ActiveX':'Plug-in';MO_n=new Function('for (var argNo = 0; argNo < arguments.length; argNo++) Music [arguments [argNo]] = window [\'mo_\' + arguments [argNo]];');}MO_n('hasMinVersion','installPlayer','isPlayerCompatible','promptClose','promptUser','requireMinPlayerVersion');MO_e.ignoreJavaDisabled=MO_e.silentIfInadequate=false;MO_e.installerOptions=new Array();MO_e.installerOptions.referrerURL=window.location.href;MO_e.installerOptions.inFrameset=top!=window;
MO_e.knownClients=new Array();MO_e.showCompatibilityPrompt=true;MO_e.requiredMinVersion=MO_e.playerVersion='';MO_e.playerCompatible=null;MO_e.hasPlayer=false;MO_e._di=MO_r.appName=='Netscape'&&MO_r.appVersion<'5'&& !MO_r.javaEnabled();MO_e._dm=false;MO_e._cS=null;MO_e.addKnownClient=MO_Q;MO_e.checkForPlayer=MO_O;MO_e.meetsMinVersion=MO_I;MO_e.openWindow=MO_M;MO_e.retrieveVersion=MO_J;MO_e.setClientInfo=MO_R;MO_e.stringHasAny=MO_H;MO_R();MO_Q('Netscape','Win32,MacPPC','4.0 to 6.0,not 4.04 to 4.05,not 1.0 to 3.1',true);MO_Q('Microsoft Internet Explorer','Win32','4.0 to 5.5',true);MO_Q('WebTV Plus Receiver,WebTV Satellite Receiver','WebTV','3.0 and up',false);function MO_S(){
mo_promptUser('Please Upgrade Beatnik','This page has been optimized for the features of version <B>'+MO_e.requiredMinVersion+' (or higher)</B> of the Beatnik Player. The currently installed version in your browser is '+MO_e.playerVersion+'.<P>If you choose to IGNORE this message, the page will continue to load normally, but may not function properly as designed by the author.','UPGRADE BEATNIK >>>','mo_installPlayer ()','IGNORE','mo_promptClose ()');}function MO_T(){mo_promptUser('Beatnik Enhanced Content !!','This page has been optimized for the audio features of the <B>Beatnik Player</B>. It appears you do not have the Beatnik Player installed.<P>If you choose to IGNORE this message, the page will continue to load normally, except there will be no Beatnik audio.','INSTALL BEATNIK >>>','mo_installPlayer ()','IGNORE','mo_promptClose ()');}function MO_U(){
mo_promptUser('Please Enable Java','This page makes use of the interactive audio features of the Beatnik Player. Java is currently not enabled in your browser. In order for the page to function correctly with Beatnik, <B>you must have Java enabled</B>.<P>This page will continue to load normally, but some interactive audio functionality may be absent.','    OK    ','mo_promptClose ()');}MO_e.upgradePrompt=MO_S;MO_e.installPrompt=MO_T;MO_e.enableJavaPrompt=MO_U;MO_e.upgradePlayerText='Upgrade Beatnik';MO_e.getPlayerText='Get Beatnik';
