function DetectFlashVer() {
   	// Versionen rückwärts durchlaufen, bis die neueste Version gefunden wird
   	var versionStr = 0; var lastVers = 0;
	for (i=25;i>0;i--) {	
		if (top.IE && top.isWin && !top.Opera) {
			versionStr = VBGetSwfVer(i);
			if(versionStr.length>1) {
				versionStr = ((versionStr.split(" "))[1]).split(",");
				versionStr = versionStr[0]+"."+versionStr[1]+"."+versionStr[2];
				lastVers = (parseInt(versionStr) > lastVers) ? versionStr : lastVers;
			}
		}
	}	
	return lastVers;
}
function JSGetSwfVer(){
	// NS/Opera-Version >= 3 auf Flash-Plug-In im Plug-In-Array pruefen
	if (navigator.plugins != null && navigator.plugins.length > 0) {
		if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
			var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
      		var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;
			descArray = flashDescription.split(" ");
			tempArrayMajor = descArray[2].split(".");
			versionMajor = tempArrayMajor[0];
			versionMinor = tempArrayMajor[1];
			if ( descArray[3] != "" ) { tempArrayMinor = descArray[3].split("r"); }
			else { tempArrayMinor = descArray[4].split("r"); }
      		versionRevision = tempArrayMinor[1] > 0 ? tempArrayMinor[1] : 0;
            flashVer = versionMajor + "." + versionMinor + "." + versionRevision;
      	} else { flashVer = -1; }
    }
	return flashVer;
}