var flashinstalled = 0;

  var flashversion = 0;

  MSDetect = "false";

  if (navigator.plugins && navigator.plugins.length)

  {

     x = navigator.plugins["Shockwave Flash"];

     if (x)

     {

        flashinstalled = 2;

        if (x.description)

        {

           y = x.description;

           flashversion = y.charAt(y.indexOf('.')-1);

        }

     }

     else

        flashinstalled = 1;

     if (navigator.plugins["Shockwave Flash 2.0"])

     {

        flashinstalled = 2;

        flashversion = 2;

     }

  }

  else if (navigator.mimeTypes && navigator.mimeTypes.length)

  {

     x = navigator.mimeTypes['application/x-shockwave-flash'];

     if (x && x.enabledPlugin)

        flashinstalled = 2;

     else

        flashinstalled = 1;

  }

  else

     MSDetect = "true";

     
  document.writeln('<script language="vbscript" type="text/vbscript">');
  document.writeln('on error resume next');

  document.writeln('If MSDetect = "true" Then');
  document.writeln('   For i = 2 to 10');
  document.writeln('      If Not(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & i))) Then');
  document.writeln('      Else');
  document.writeln('         flashinstalled = 2');
  document.writeln('         flashversion = i');
  document.writeln('      End If');
  document.writeln('   Next');
  document.writeln('   If flashinstalled = 0 Then');
  document.writeln('      flashinstalled = 1');
  document.writeln('   End If');
  document.writeln('End If');
  document.writeln('</script>');

if (flashinstalled == 2)
{
  document.writeln('<object classid="CLSID:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+width+'" height="'+height+'">');
  document.writeln(' <param name="movie" value="'+src+'" />');
  document.writeln(' <param name="src" value="'+src+'" />');
  document.writeln(' <param name="filename" value="'+src+'" />');
  document.writeln(' <param name="quality" value="high" />');
  document.writeln(' <param name="menu" value="false" />');
  document.writeln(' <param name="wmode" value="" />');
  document.writeln(' <param name="scale" value="showall" />');
  document.writeln(' <param name="salign" value="" />');
  document.writeln(' <param name="bgcolor" value="#FFFFFF" />');
  document.writeln(' <embed pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'" src="'+src+'" movie="'+src+'" filename="'+src+'" quality="high" menu="false" scale="showall" salign="" wmode="" bgcolor="#FFFFFF">');
  document.writeln(' </embed>');
  document.writeln('</object>');
}

else if (flashinstalled == 1) document.write('<img src="'+alt+'" width="'+width+'" height="'+height+'" alt="" />');

else document.write('<img src="'+alt+'" width="'+width+'" height="'+height+'" alt="" />');

