// Detect Macromedia Flash Plug-In - Part B
// NOTE: This part MUST be included as "JavaScript1.1".

// environment variables
var isIE = (navigator.appVersion.indexOf("MSIE") != -1);	// Browser is Microsoft Internet Explorer.
var isWin = (navigator.appVersion.indexOf("Windows") != -1);	// Platform is Microsoft Windows.
jsVersion = 1.1;						// Highest version of JavaScript detected (only goes up to 1.1 here).

// Write a Visual Basic script to detect the Flash plug-in if using Internet Explorer in Windows.
if (isIE && isWin) {
 document.writeln('  <scr' + 'ipt language="VBScript" type="text/vbscript"\>');
 document.writeln('on error resume next ');
 document.writeln('flash2Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.2"))) ');
 document.writeln('flash3Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3"))) ');
 document.writeln('flash4Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4"))) ');
 document.writeln('flash5Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5"))) ');
 document.writeln('flash6Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6"))) ');
 document.writeln('  </scr' + 'ipt\>');
}

