\n'); for ( var i = 2; i <= 6; i++ ) { if ( eval("gotFlash" + i) == true ) flashVersion = i; } } function doFlashCheck() { // For Netscape or IE.Mac>=5 if ( navigator.plugins ) { if ( navigator.plugins["Shockwave Flash 2.0"] ) { flashVersion = 2; } else if ( navigator.plugins["Shockwave Flash"] ) { var description = navigator.plugins["Shockwave Flash"].description; flashVersion = parseInt( description.charAt(description.indexOf(".") - 1) ); } } // So at this point we've either got a valid flash version number // or flashVersion = -1, which indicates that the browser either // doesn't support flash, OR it won't tell us (e.g. IE <4.5 on Mac) if ( flashVersion >= requiredFlashVersion ) { location.replace( flashPage ); } else { location.replace( nonFlashPage ); } } doFlashCheck(); // -->