/* 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 */
var addonParams = '';
var pastloadSwf = '';
var preloadedSwf=false;
var swfATag = '<a href="internallink:12961869">NPSLinkOnly</a>';
var swfBgcolor = '#ffffff';
var swfFallbackHTML = '';
var swfHeight = '300';
var swfName = 'Flash';
var swfPreload = '';
var swfVersion = '6';
var swfWidth = '400';
var swfWmode = 'transparent';
var targetUrl = [];
// Ende.
function flashDisplay() {
var swfSrc = swfATag.split( "\"" )[ 1 ];
var success = false;
var params = '';
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 (plugin) {
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
if ( document.location.href.substr( 0, 5 ) == 'https' ) {
document.write(' codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" '); 
} else {
document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
}
// fuer preloader
if (pastloadSwf != '') {
params += 'werbemittel=' + pastloadSwf.split('"')[1] + '&';
}
for (i = 0; i < targetUrl.length; i++) {
if (pastloadSwf != '')
params += targetUrl[i][0] + '=' + escape(encodeURIComponent(targetUrl[i][1].split('"')[1].replace(/\&amp;/g,"&")))+'&';
else
params += targetUrl[i][0] + '=' + encodeURIComponent(targetUrl[i][1].split('"')[1].replace(/\&amp;/g,"&"))+'&';
}
// sonstige(s)
if (addonParams != '') {
params += addonParams;
}
document.write(' id="'+swfName+'" width="' + swfWidth + '" height="' + swfHeight +'" >');
document.write(' <param name="movie" value="' + swfSrc + '">');
document.write(' <param name="quality" value="high">');
document.write(' <param name="bgcolor" value="' + swfBgcolor + '">');
document.write(' <param name="wmode" value="' + swfWmode + '">');
document.write(' <param name="flashvars" value="' + params + '">');
document.write(' <embed name="' + swfName + '" src="' + swfSrc + '" wmode="' + swfWmode + '" quality="high" bgcolor="' + swfBgcolor + '"');
document.write(' flashvars="' + params + '" 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>');
if (swfPreload != '') { 
window.onload = function(){ window.setTimeout('loadrealFlash()',500); }
};
success = true;
} 
if (!success) document.write( swfFallbackHTML );
return success; // just in case... fallback!
}
