// Detect flash plugin
var FlashMode = 0;

if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin)
{
	var plugin=navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin;
	if ( plugin && parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) > 5 )
	{
	  FlashMode = 1;
	}
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0)
{
	if (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows 98")>=0 || navigator.userAgent.indexOf("Windows NT")>=0 )
	{
		//check for ie3
		if (document.images)
		{
			document.write('<');document.write('SCRIPT LANGUAGE=VBScript\> \n');
			document.write('on error resume next \n');
			document.write('FlashMode = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6"))) \n');
			document.write('</');document.write('SCRIPT\> \n');
		}
		else
		{
			FlashMode = 1;
		}

	} else {
		// this is probably stupid old i.e. 4.5 on a mac - just let it through
		FlashMode = 1;

	}
}