// flash player detection script
// written by nils millahn, with inspiration from moock fpi at http://www.moock.org/webdesign/flash/detection/moockfpi/

// #############################################
var flashPage = "index_flash.html";	// ignored if using popupflashdetect.js
var noFlashPage = "index_stat.html";
// #############################################

// *************
// system globals
var flash5Installed = false;
var flash6Installed = false;

// check the browser...we're looking for ie/win
var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;		// true if we're on ie
var isWin = (navigator.appVersion.indexOf("Windows") != -1) ? true : false; // true if we're on windows

// write vbscript detection if we're not on mac.
if(isIE && isWin){ // don't write vbscript tags on anything but ie win
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('flash5Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5"))) \n');	
	document.write('flash6Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6"))) \n');	
	document.write('</SCR' + 'IPT\> \n'); // break up end tag so it doesn't end our script
}	