////////////////////////////////////////////////////////////////////////////////
/*

FlashSnifferJS API
Version 1.0.1 
Last Modified 11/08/2004
Written by Craig Phares
Special Thanks To: Joe Tozzini, Macromedia

Dependencies: BrowserSniffer (browser.js), FlashSnifferVBS API (flash.vbs)

Supported Platforms:
Windows, Macintosh

Supported Browsers:
IE (Mac only), NS, Opera, Firefox, Safari, AOL

This script relies on the BrowserSniffer API to reference browser information.
Unless the FlashSnifferVBS API is also included in the page, this script will
not work in Internet Explorer on Windows. This script will check for the 
Macromedia Flash plug-in. Two global variables are declared, gFlashInstalled - 
which will return true if Flash is installed, and gFlashVersion - which holds 
the major version of the Flash plug-in if it exists.

*/
////////////////////////////////////////////////////////////////////////////////

// global variables
gFlashInstalled = false;
gFlashVersion = 0;

// only execute if not windows ie
if (!(gBrowser.win && gBrowser.ie)) {
	
	// check for flash plugin
	if (navigator.plugins["Shockwave Flash"] && navigator.mimeTypes["application/x-shockwave-flash"]) {
		gFlashInstalled = true;
		gFlashVersion = parseInt(navigator.plugins["Shockwave Flash"].description.substring(16));
	}
	
}


