// Erforderliche Hauptversion von Flash
var requiredMajorVersion = 8;
// Erforderliche Unterversion von Flash
var requiredMinorVersion = 0;
// Erforderliche Flash-Revision
var requiredRevision = 24;

var thisVideo = playerPath+"?";
if (movieID) { thisVideo += "moviePath="+moviePath+'&imagePath='+imagePath; }
if (linkID) { thisVideo += "&linkID="+linkID; }
if (autoplay) { thisVideo += "&autoplay="+autoplay; }

if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {
	alert("Diese Seite erfordert die Datei AC_RunActiveContent.js.");
} else {
	var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	if(hasRightVersion) {  // sofern eine akzeptable Version ermittelt wurde
		// Flash-Film einbetten
		AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,24,0',
			'width', '320',
			'height', '263',
			'src', thisVideo,
			'quality', 'high',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'showall',
			'wmode', 'window',
			'devicefont', 'false',
			'id', 'dvb_view',
			'bgcolor', '#cccccc',
			'name', 'dvb_view',
			'menu', 'true',
			'allowScriptAccess','sameDomain',
			'allowFullScreen','true',
			'movie', thisVideo,
			'salign', ''
			); //end AC code
	} else {  // Flash ist veraltet, oder das Plug-In wurde nicht ermittelt
		var alternateContent = '<a style="padding:0;margin:0;background-image:none;" href=https://www.macromedia.com/go/getflash/>'
			+ '<img src="http://www.dvb-bank.com/resources/images/non_flash_view.jpg" border="0" />'
			+ '</a>';
		document.write(alternateContent);  // Nicht aus Flash stammenden Inhalt einfügen
	}
}

