
var hasFlash = false            
    
// Check for flash if browser is netscape

if(navigator.appName == "Netscape")
{
  for(i=0; i<navigator.plugins.length; i++)
  {
    if(navigator.plugins[i].name == "Shockwave Flash")
	{
      hasFlash = true
    }
  }
}  // Check for flash if browser is IE
else if(navigator.appName == "Microsoft Internet Explorer")
{
  document.writeln("<script language='VBscript'>")
  document.writeln('\'Test to see if VBScripting works')
  document.writeln("detectableWithVB = False")
  document.writeln("If ScriptEngineMajorVersion >= 2 then")
  document.writeln("   detectableWithVB = True")
  document.writeln("End If")
  document.writeln('\'This will check for the plugin')
  document.writeln("Function detectActiveXControl(activeXControlName)")
  document.writeln("   on error resume next")
  document.writeln("   detectActiveXControl = False")
  document.writeln("   If detectableWithVB Then")
  document.writeln("      detectActiveXControl = IsObject(CreateObject(activeXControlName))")
  document.writeln("   End If")
  document.writeln("End Function")
  document.writeln("</scr" + "ipt>")
      
  hasFlash = detectActiveXControl("ShockwaveFlash.ShockwaveFlash.1")
}	

if (hasFlash) 
{
  document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,79,0' id='headerBannerAnimation-800x115' width='800' height='115'>");
  document.write("<param name='movie' value='flash/headerBannerAnimation-800x115.swf'>");
  document.write("<param name='bgcolor' value='#ffffff'>");
  document.write("<param name='quality' value='high'>");
  document.write("<param name='allowscriptaccess' value='samedomain'>");
  document.write("<param name='wmode' value='opaque'>"); 
  document.write("<embed type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' name='headerBannerAnimation-800x115' width='800' height='115' src='flash/headerBannerAnimation-800x115.swf' bgcolor='#FFFFFF' quality='high' swliveconnect='true' allowscriptaccess='samedomain' wmode='opaque'>");
  document.write("<noembed>");
  document.write("</noembed>");
  document.write("</embed>");
  document.write("</object></td>");
}
else 
{
  document.write("<img src='images/headerBannerImage-800x115.jpg' width='800' height='115' border='0' alt='USI Holdings Corporation'></td>");
}