// Flash.js
// Jürgen Koch
// Mai 2002

var Plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0 ;

if (Plugin)
{
  Plugin = parseInt(Plugin.description.substring(Plugin.description.indexOf(".")-2)) >= 6;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0)
{
  document.write('<SCRIPT LANGUAGE=VBScript\> \n');
  document.write('on error resume next \n');
  document.write('Plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6")))\n');
  document.write('</SCRIPT\> \n');
}

function Flash(id, source, width, height, bgcolor)
{
  document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"') ;
  document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"') ;
  document.write('ID=' + id + ' WIDTH=' + width + ' HEIGHT=' + height + '>') ;
  document.write('<PARAM NAME=movie VALUE="' + source + '"><PARAM NAME=quality VALUE=high>') ;
  document.write('<PARAM NAME=bgcolor VALUE=' + bgcolor + '>') ;
  document.write('<EMBED src="' + source + '" quality=high bgcolor=' + bgcolor) ;
  document.write('swLiveConnect=FALSE WIDTH=' + width + ' HEIGHT=' + height + ' TYPE="application/x-shockwave-flash"');
  document.write('PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
  document.write('</EMBED></OBJECT>');
}
