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)) >= 4;
}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.4")))\n');
    document.write('</SCRIPT\> \n');
}
if(plugin) {
    document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
    document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" ');
    document.write(' ID=test WIDTH="' + breite + '" HEIGHT="' + hoehe + '">'); 
    document.write(' <PARAM NAME=movie VALUE="' + swf + '"> <PARAM NAME=quality VALUE=high> <PARAM NAME=wmode VALUE=transparent>');
    document.write(' <EMBED src="' + swf + '" quality=high wmode=transparent ');
    document.write(' swLiveConnect=true WIDTH="' + breite + '" HEIGHT="' + hoehe + '"');
    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>');
}else {
    //if (link!="undefined") {
    //    document.write('<a href="'+link+'" target="_blank">');
    //}
    document.write('<img src="'+jpg+'" usemap="#flashaltmap">');
    //if (link!="undefined") {
    //    document.write('</a>');
    //}
}
document.write('<NOEMBED>');
    //if (link!="undefined") {
    //    document.write('<a href="'+link+'" target="_blank">');
    //}
    document.write('<img src="'+jpg+'" usemap="#flashaltmap">');
    //if (link!="undefined") {
    //    document.write('</a>');
    //}
document.write('</NOEMBED>');
// Ende Flash-Abfrage