/********** TITLE: Music Object Component - Compatibility VERSION: 3.2.2 AUTHOR: Chris van Rensburg COPYRIGHT: 1996-1999 Beatnik, Inc. All Rights Reserved **********/ function mo_stringHasAny (sourceStr) { var args = mo_stringHasAny.arguments; for (var argNo = 1; argNo < args.length; argNo++) { if (sourceStr.indexOf (args [argNo]) != -1) return true; } return false; } function mo_openWindow (_URL,_name,_width,_height,showStatus,properties) { if (typeof (properties) != 'string') properties = ''; var positionStr = ''; if (typeof (screen) != 'undefined') { var xpos = Math.max (Math.floor ((screen.width - _width - 10) / 2),0), ypos = Math.max (Math.floor ((screen.height - _height - 40) / 2),0) ; positionStr = 'screenx=' + xpos + ',screeny=' + ypos + ',left=' + xpos + ',top=' + ypos + ','; } return window.open (_URL,_name,properties + ',toolbar=no,location=no,directories=no,status=' + ((typeof (showStatus) == 'boolean' && showStatus) ? 'yes' : 'no') + ',menubar=no,scrollbars=no,resizable=yes,' + positionStr + 'width=' + _width + ',height=' + _height + ',' + properties); } function mo_promptClose () { if (Music.promptWindow != null) { Music.promptWindow.close (); Music.promptWindow = null; window.focus (); } } function mo_promptUser (heading,message,okText,okAction,cancelText,cancelAction,showStatus) { Music.promptWindow = mo_openWindow ('','mo_promptWindow',500,295,showStatus); if (typeof (okAction) != 'string' || okAction == '') okAction = 'mo_promptClose ()'; if (typeof (cancelAction) != 'string' || cancelAction == '') cancelAction = 'mo_promptClose ()'; if (typeof (heading) != 'string') heading = ''; with (Music.promptWindow.document) { open ('text/html'); writeln ( '
' + getPlayerLink + '' + getPlayerText + ' |
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_installPrompt () { mo_promptUser ('Beatnik Enhanced Content !!','This page has been optimized for the audio features of the Beatnik Player. It appears you do not have the Beatnik Player installed.
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_enableJavaPrompt () { 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, you must have Java enabled.
This page will continue to load normally, but some interactive audio functionality may be absent.',' OK ','mo_promptClose ()'); } Music.upgradePlayerText = 'Upgrade Beatnik'; Music.getPlayerText = 'Get Beatnik'; /*** Static Methods ***/ Music.hasMinVersion = mo_hasMinVersion; Music.installPlayer = mo_installPlayer; Music.isPlayerCompatible = mo_isPlayerCompatible; Music.promptClose = mo_promptClose; Music.promptUser = mo_promptUser; /*** Static Properties ***/ Music.ignoreJavaDisabled = false; Music.playerCompatible = null; Music.requiredMinVersion = ''; Music.showCompatibilityPrompt = true; Music.silentIfInadequate = false; Music.installerOptions = new Array (); /*** Static Read-only Properties ***/ Music.hasPlayer = false; Music.playerVersion = ''; /*** Private Properties ***/ Music.absMinVersion = ''; Music.promptWindow = null; Music.supportedClients = new Array (); function mo_addSupportedClient (_name,_platform,_minVersion,_upgradable) { var ref = Music.supportedClients [Music.supportedClients.length] = new Object (); ref.name = _name; ref.platform = _platform; ref.minVersion = _minVersion; ref.upgradable = _upgradable; } mo_addSupportedClient ('Netscape','Win32','3.01',true); mo_addSupportedClient ('Netscape','MacPPC','3.01',true); mo_addSupportedClient ('Microsoft Internet Explorer','Win32','4.0',true); mo_addSupportedClient ('WebTV Plus Receiver','WebTV','3.0',false); mo_addSupportedClient ('WebTV Satellite Receiver','WebTV','3.0',false); with (navigator) { if (mo_stringHasAny (userAgent,'Win95','Windows 95','WinNT','Windows NT','Win98','Windows 98')) { Music.platform = 'Win32'; } else if (userAgent.indexOf ('PPC') != -1) { Music.platform = 'MacPPC'; } else if (userAgent.indexOf ('WebTV') != -1) { Music.platform = 'WebTV'; } else { Music.platform = (typeof (platform) == 'undefined') ? 'Unknown' : platform; } Music.clientVersion = mo_retrieveVersion (appVersion); Music.clientSupported = false; for (mo_clientNo = 0; mo_clientNo < Music.supportedClients.length; mo_clientNo++) { Music.client = Music.supportedClients [mo_clientNo]; if (Music.client.name == appName && Music.client.platform == Music.platform && mo_meetsMinVersion (Music.clientVersion,Music.client.minVersion)) { Music.clientSupported = true; break; } } } if (typeof (mo_delayPlayerCheck) == 'undefined') mo_checkForPlayer ();