|
Detecting Flash If you are not redirected
to our homepage |
\n'); //Netscape plugin detection //Determine if the MIME type application/x-shockwave-flash is present AND enabled if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) { if (navigator.plugins && navigator.plugins["Shockwave Flash"]) //Determine if plug in for the MIME type is present { var words = navigator.plugins["Shockwave Flash"].description.split(" "); for (var i = 0; i < words.length; ++i) { if (isNaN(parseInt(words[i]))) continue; this.version = words[i]; this.revision = parseInt(words[i + 1].substring(1)); } if (this.version >= 5) shockwavePresent = 1; //If present, set variable to 1 } } if (shockwavePresent == 1) location.href='/index_br.html'; //Shockwave enabled page else location.href='/index_st.html'; //Static Page // -->