<!--//hidden

//////////////////////////////////////////////////////
// source: designminds.cc
// description: Flash 3, 4, 5 and 6 Detection
// Author: jesse@designminds.cc
// Last Modified: 09-09-02
//////////////////////////////////////////////////////


/////////////////////////////////////////
// Convert userAgent string to Lowercase
/////////////////////////////////////////

var agt=navigator.userAgent.toLowerCase();

///////////////////
// Browser Version
///////////////////

var is_ns  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1) && (agt.indexOf('webtv')==-1));
var is_ie   = (agt.indexOf("msie") != -1);


////////////
// Platform
////////////


var is_win   = ( (agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1) );
var is_win95 = ((agt.indexOf("win95")!=-1) || (agt.indexOf("windows 95")!=-1));
var is_win16 = ((agt.indexOf("win16")!=-1) || (agt.indexOf("16bit")!=-1) || (agt.indexOf("windows 3.1")!=-1) || (agt.indexOf("windows 16-bit")!=-1) );
var is_win31 = ((agt.indexOf("windows 3.1")!=-1) || (agt.indexOf("win16")!=-1) || (agt.indexOf("windows 16-bit")!=-1));

var is_win98 = ((agt.indexOf("win98")!=-1) || (agt.indexOf("windows 98")!=-1));
var is_winnt = ((agt.indexOf("winnt")!=-1) || (agt.indexOf("windows nt")!=-1));
var is_win32 = (is_win95 || is_winnt || is_win98 || ((is_major >= 4) && (navigator.platform == "Win32")) || (agt.indexOf("win32")!=-1) || (agt.indexOf("32bit")!=-1));

var is_os2   = ((agt.indexOf("os/2")!=-1) || (navigator.appVersion.indexOf("OS/2")!=-1) || (agt.indexOf("ibm-webexplorer")!=-1));

var is_mac= (agt.indexOf("mac")!=-1);
var is_mac68k = (is_mac && ((agt.indexOf("68k")!=-1) || (agt.indexOf("68000")!=-1)));
var is_macppc = (is_mac && ((agt.indexOf("ppc")!=-1) || (agt.indexOf("powerpc")!=-1)));

//////////////////////////////////////////
// Flash 3, 4, 5 and 6 Detection
// NOT checking for enabled Plugin (buggy)
//////////////////////////////////////////

var is_flash6 = 0;
var is_flash5 = 0;
var is_flash4 = 0;
var is_flash3 = 0;


if (navigator.plugins["Shockwave Flash"]) {

	var plugin_version = 0;
	var plugin_description = navigator.plugins["Shockwave Flash"].description.split(" ");


	for (var i = 0; i < plugin_description.length; ++i) {

	if (isNaN(parseInt(plugin_description[i])))

	continue;

	plugin_version = plugin_description[i];

		}
	}
	
	if (plugin_version >= 6) {

	is_flash6 = 1;


	} 

	if (plugin_version >= 5) {

	is_flash5 = 1;


	} 


	if (plugin_version >= 4) {

	is_flash4 = 1;


	}	


	if (plugin_version >= 3) {

	is_flash3 = 1;


	}


if (is_ie && is_win32) { // Check IE on windows for flash 3, 4 AND 5 using VB Script

	document.write('<SCRIPT LANGUAGE="VBScript"\>\n');
	document.write('on error resume next\n');
	document.write('is_flash5 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5")))\n');
	document.write('on error resume next\n');
	document.write('is_flash4 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4")))\n');
	document.write('on error resume next\n');
	document.write('is_flash3 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3")))\n');
	document.write('<'+'/SCRIPT> \n');
}


// -->