var flashInstalled = false;		// boolean. true if flash Version is installed
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. Check the browser...we're looking for ie/win
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('flashInstalled = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.'+version+'"))) \n');	
	document.write('</SCR' + 'IPT\> \n'); // break up end tag so it doesn't end our script
}
  
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)) >= version) 
{ flashInstalled = true; }  //Flash 5 or greater is available 