/* FLASH-ABFRAGE */
/* GLOBALE VARIABLE(N) *****************************************************/

/* diese variablen sind die globalen default-werte f?r die function flashDisplay */
/* sollten sie nicht explizit vor dem aufruf von flashDisplay ?berschrieben werden, */
/* kommts zumindest nicht zu einem javascript-fehler */
swfVersion = '7';
swfWidth = '782';
swfHeight = '645';
swfBgCol = '#FFFFFF';
swfATag = '<a href="img/kunstforum_intro.swf">TEXT</a>';
swfFallbackHTML = '';
// Ende.

/* ?FFENTLICHE FUNKTIONEN ***********+**************************************/

function flashDisplay() {
  var swfSrc = swfATag.split( "\"" )[ 1 ];
  var success = false;
  
  plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : false;
  if (plugin) {
    plugin = parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= swfVersion ;
  } 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('plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.' + swfVersion + '")))\n');
      document.write('</SC' + 'RIPT>' );
    }  // if ie
  }  // if plugin
  if (plugin) {
    document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
    // for http and https handling:
    if ( document.location.href.substr( 0, 5 ) == 'https' ) {
      document.write('  codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" '); 
    } else {
      document.write('  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" ');
    }
    document.write(' ID="Flash" width="' + swfWidth + '" height="' + swfHeight +'" >' );
    document.write(' <PARAM NAME=movie VALUE="' + swfSrc + '">' );
    document.write(' <PARAM NAME=quality VALUE=high>' );
    document.write(' <PARAM NAME=bgcolor VALUE="' + swfBgCol + '">');
    document.write(' <EMBED src="'+ swfSrc +'" quality=high bgcolor=' + swfBgCol );
    document.write(' swLiveConnect=FALSE width="' + swfWidth + '" height="' + swfHeight + '"');
    document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
    document.write(' </EMBED>');
    document.write(' </OBJECT>');
    success = true;
  }  // if plugin
  if (!success) document.write( swfFallbackHTML );
  return success; // just in case... fallback!
}  // function flashDisplay