// JavaScript Document
var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if(hasRightVersion) {  // if we've detected an acceptable version
	var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="566" height="164" '
	+ 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
	+ '<param name="movie" value="/typo3conf/ext/slideshow/pi1/jpgrotator.swf" /><param name="quality" value="high" />'
	+ '<param name="FlashVars" value="file=index.php%3Ftype%3D9005%26slideshow%3D1%26random%3D0%26transition%3Dblocks%26timer%3D5%26navigation%3D0"> '
	+ '<embed src="/typo3conf/ext/slideshow/pi1/jpgrotator.swf" quality="high" '
    + 'FlashVars="file=index.php%3Ftype%3D9005%26slideshow%3D1%26random%3D0%26transition%3Dblocks%26timer%3D5%26navigation%3D0" '
	+ 'width="566" height="164" name="jpgrotator" play="true" loop="false" quality="high" allowScriptAccess="sameDomain" '
	+ 'type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">'
	+ '<\/embed><\/object>';
	document.write(oeTags);   // embed the flash movie
  } else {  // flash is too old or we can't detect the plugin
	var alternateContent = '<img src="fileadmin/brunn/media/base/top.jpg" alt="" width="566" height="164" border="0" />';
	document.write(alternateContent);  // insert non-flash content
  }

