// $Header: /HBI Websites/_client_common/js/feedback/flash_detect.js 1     11/20/03 11:57a Richard.kildare $
var flashplugin = 0;

// first try checking the normal way
if (	navigator.mimeTypes
	&& navigator.mimeTypes["application/x-shockwave-flash"]
	&& navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin
	&& navigator.plugins
	&& navigator.plugins["Shockwave Flash"]
)
{	flashplugin = 1;

// if that doesn't work, and we're IE/Windows, try the hard way
} else if (
	navigator.userAgent
	&& navigator.userAgent.indexOf("MSIE") >= 0
	&& (	navigator.userAgent.indexOf("Windows 95") >= 0
		|| navigator.userAgent.indexOf("Windows 98") >= 0
		|| navigator.userAgent.indexOf("Windows NT") >= 0
	)
)
{	document.write("<script language=\"vbscript\"\> \n");
	document.write("on error resume next \n");
	document.write("flashplugin = ( IsObject(CreateObject(\"ShockwaveFlash.ShockwaveFlash.3\")))\n");
	document.write("if ( flashplugin <= 0 ) then flashplugin = ( IsObject(CreateObject(\"ShockwaveFlash.ShockwaveFlash.4\")))\n");
	document.write("if ( flashplugin <= 0 ) then flashplugin = ( IsObject(CreateObject(\"ShockwaveFlash.ShockwaveFlash.5\")))\n");
	document.write("</script\> \n");
}
