// 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
var isMac = (navigator.appVersion.indexOf("Mac") != -1) ? true : false; // true if we're on mac
var majorVer = parseInt(navigator.appVersion);
var isMacVB = (isMac && isIE && (majorVer >= 5)) ? true : false; // Mac IE 5.x+ supports VBScript

// write vbscript detection on ie win and mac IE 5.x+
if (isIE && (isWin || isMacVB)) {
	document.write('<SCR' + 'IPT LANGUAGE="VBScript"\>\n');
	document.write('on error resume next\n');
	document.write('For i = minVersion to maxVersion\n');
	document.write('	If Not(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & i))) Then\n');
	document.write('	Else\n');
	document.write('		flashInstalled = 2\n');
	document.write('		flashVersion = i\n');
	document.write('	End If\n');
	document.write('Next\n');
	document.write('</SCR' + 'IPT\> \n'); // break up end tag so it doesn't end our script
}
