/* FlashSound javascript class for sonifying web pages with flash player copyright 2001 Hayden Porter, hayden@aviarts.com v 1.1.2 last update 2/26/01 */ // defaults to hiding browser error messages FlashSound.muteErrorMsg = true; function errorHandler() { return FlashSound.muteErrorMsg; } window.onerror = errorHandler; // browser compatibility check (support for level 4 browsers only) ----------------- FlashSound.winIEpass = ((navigator.appName.indexOf("Microsoft") != -1) && (navigator.appVersion.indexOf("Windows") != -1)) && (parseFloat(navigator.appVersion) >= 4) ? true : false; FlashSound.NNpass = ((navigator.appName == "Netscape") && (navigator.userAgent.indexOf("Mozilla") != -1) && (parseFloat(navigator.appVersion) >= 3) && (navigator.javaEnabled())) ? true : false; FlashSound.supportedBrowser = (FlashSound.winIEpass || FlashSound.NNpass) ? true : false; // player compatibility ------------------ // check for flash plug-in in netscape function Flash_checkForPlugIn() { var flashmimeType = "application/x-shockwave-flash"; var hasplugin = (navigator.mimeTypes && navigator.mimeTypes[flashmimeType]) ? navigator.mimeTypes[flashmimeType].enabledPlugin : 0; return hasplugin; } function Flash_getPlugInVers() { if(Flash_checkForPlugIn()) { var plugin = navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin; var pluginversion = parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) return pluginversion; } else { return 0; } } //NN6 does not support javscript api with liveconnect flash players if ((navigator.appName == "Netscape") && (navigator.userAgent.indexOf("Mozilla") != -1) && (parseFloat(navigator.appVersion) >= 6) && (Flash_getPlugInVers() <= 5)) {FlashSound.supportedBrowser = false} // vbscript get Flash ActiveX control version for windows IE if(FlashSound.supportedBrowser && FlashSound.winIEpass) { document.write( '