//Jim Savage
function FlashInstalled(){
	result = false;
	if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]){
		result = navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin;
	}else if (document.all && (navigator.appVersion.indexOf("Mac")==-1))
	{
		// IE Windows only -- check for ActiveX control, have to hide code in eval from Netscape (doesn't like try)
		eval ('try {var xObj = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if (xObj)	result = true; xObj = null;	} catch (e)	{}');
	}
	return result;
}

/*an exmample of code for your HTML document, place this script were your flash movie should go
<SCRIPT Language = "JavaScript">
	if (FlashInstalled()){
		str = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" name="anim" width="427" height="87" id="anim">'
		str = str + '<param name="movie" value="images/anim.swf">'
		str = str + '<param name=quality value=high>'
		str = str + '<param name="SCALE" value="exactfit">'
		str = str + '<embed src="images/anim.swf" width="427" height="87" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" name="anim" scale="exactfit"></embed></object></td>'
		document.write(str);
	}else{
		document.write('<img src="images/noflash.jpg" width="427" height="87">');
	}
</SCRIPT><NOSCRIPT><img src="images/noflash.jpg" width="427" height="87"></NOSCRIPT>
*/