\n'); } return result; } function detectObject(ClassID, Name){ // // if the navigator object is there and has the length property, use it. // This is known to work with Netscape and IE for Mac. // if (navigator.plugins.length) { var found = false; for (var i=0; i < navigator.plugins.length; i++) { //alert("comparing " + navigator.plugins[i].name.toLowerCase() + " to " + Name.toLowerCase()); if (navigator.plugins[i].name.toLowerCase().indexOf(Name.toLowerCase()) >= 0) { // v_quicktime = navigator.plugins[i].name.substring(17, navigator.plugins[i].name.length); found = true; break; } } return found; } // Usually this is IE for windows else if (IEDetectObject(ClassID)){ return true; } else{ return false; } } // // // Finally, the browser detection. // // var internetExplorerMinVersion = 5; var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1; var internetExplorerVersion = 0; var hasQuicktime = detectObject("QuickTimeCheckObject.QuickTimeCheck.1", "Quicktime"); var hasMediaPlayer = detectObject("MediaPlayer.MediaPlayer.1", "MediaPlayer"); //Detect IE version if ( ie ){ var temp = navigator.appVersion.split("MSIE"); internetExplorerVersion = parseFloat(temp[1]); } // The big question. var hasValidAudioPlugin = ( (hasQuicktime && mac) || ( win && (hasQuicktime || hasMediaPlayer) ) ); var isValidBrowserSetup = ( isInternetExplorer && (internetExplorerVersion >= internetExplorerMinVersion) && hasValidAudioPlugin); // -->