
// Created by Tom Salmon, TSI Incorporated 09/06/00
// Updated 03/14/01 by Tom Salmon
//
// This script checks Netscape for the Flash plug-in
// It sets a variable "flashcheck" to either true or false
//
// **NOTE**- IE is checked with flash_check.vb


var flashcheck;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin && parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= 5 ) {
  // Check for Flash version 4 or greater in Netscape 
  // Set variable "flashcheck" to either true or false
  flashcheck = "true";
}
else {
  flashcheck = "false";
}

// alert(plugin);

// turn off the Flash animation for Netscape on the Macintosh
if((plat == "mac") && (brow == "ns")) {
  flashcheck = "false";
}

