
	// -----------------------------------------------------------------------------
	// Globale Variablen
	// Erforderliche Hauptversion von Flash
	var requiredMajorVersion = 8;
	// Erforderliche Unterversion von Flash
	var requiredMinorVersion = 0;
	// Erforderliche Flash-Revision
	var requiredRevision = 0;
	// Die unterstützte JavaScript-Version
	var jsVersion = 1.0;

	var win;

	// -----------------------------------------------------------------------------
	// -->

	<!-- // Client-Browsertyp ermitteln
	var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
	var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
	var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;
	jsVersion = 1.1;
	// JavaScript-Hilfsprogramm ist zur Ermittlung der Versionsinformationen des Flash Player Plug-Ins erforderlich
	function JSGetSwfVer(i){
		// NS/Opera-Version >= 3 auf Flash-Plug-In im Plug-In-Array prüfen
		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;
			}
		}
		// MSN/WebTV 2.6 unterstützt Flash 4
		else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;
		// WebTV 2.5 unterstützt Flash 3
		else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;
		// älteres WebTV unterstützt Flash 2
		else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2;
		// Ermittlung in allen anderen Fällen nicht möglich
		else {

			flashVer = -1;
		}
		return flashVer;
	}
	// Wenn der Funktionsaufruf ohne Parameter erfolgt, gibt diese Funktion einen Gleitkommawert zurück,
	// bei dem es sich entweder um die Flash Player-Version oder um 0.0 handelt.
	// Beispiel: Flash Player 7r14 gibt 7.14 zurück.
	// Wenn reqMinorVer, reqMajorVer, reqRevision aufgerufen wird, wird 'true' zurückgegeben, sofern diese bzw. eine höhere Version verfügbar ist
	function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision)
	{
	 	reqVer = parseFloat(reqMajorVer + "." + reqRevision);
	   	// Versionen rückwärts durchlaufen, bis die neueste Version gefunden wird
		for (i=25;i>0;i--) {
			if (isIE && isWin && !isOpera) {
				versionStr = VBGetSwfVer(i);
			} else {
				versionStr = JSGetSwfVer(i);
			}
			if (versionStr == -1 ) {
				return false;
			} else if (versionStr != 0) {
				if(isIE && isWin && !isOpera) {
					tempArray         = versionStr.split(" ");
					tempString        = tempArray[1];
					versionArray      = tempString .split(",");
				} else {
					versionArray      = versionStr.split(".");
				}
				versionMajor      = versionArray[0];
				versionMinor      = versionArray[1];
				versionRevision   = versionArray[2];

				versionString     = versionMajor + "." + versionRevision;   // 7.0r24 == 7.24
				versionNum        = parseFloat(versionString);
	        	// ist die Hauptrevision >= angeforderte Hauptrevision UND die Nebenversion >= angeforderte Nebenversion
				if ( (versionMajor > reqMajorVer) && (versionNum >= reqVer) ) {
					return true;
				} else {
					return ((versionNum >= reqVer && versionMinor >= reqMinorVer) ? true : false );
				}
			}
		}
		return (reqVer ? false : 0.0);
	}

	function gotoFlash(alwaysOpen) {
		var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
		if(hasRightVersion){
			pUrl = 'swf/index.html';
			pTarget = 'argo_win';
			w = window.screen.availWidth;
			h = window.screen.availHeight;
			if (document.layers)
			{
				tmp1 = window.outerWidth - window.innerWidth;
				tmp2 = window.outerHeight - window.innerHeight;
				w -= tmp1;
				h -= tmp2;
			}
			pParameter = "toolbar=no,status=no,location=no,resizable=yes,scrollbars=no,width=" + w +",height="+ h + ",left=0,top=0";
			if(win==undefined || win.closed || typeof win.closed == 'undefined') //( typeof showFenster.closed == 'undefined') =>Opera 8 Bugfix
			{
				win = window.open(pUrl, pTarget, pParameter);
				win.resizeTo(w,h);
				win.moveTo(0,0);
				win.focus();
			}

		}else{			
			var controlled_once=true;
			writeNoFlashPage()
		}
	}
	//-->
	<!--
	function gotoHTML() {
		document.location.href="html/index.php"
	}
	function writeSelectPage(){
	var jumpPageContent = '<div id="main"><br>&nbsp;<br><map name="Map"><area shape="rect"  alt="HTML" coords="2,154,89,183" href="html/index.php"><area shape="rect" href="index.html?flash=true" alt="FLASH" coords="367,3,510,52" onClick="gotoFlash(1)" ></map><img src="gfx/main.jpg" border="0" usemap="#Map"/></div>';
		 document.write(jumpPageContent);
	}
	function writeNoFlashPage(){
	//alert("writeNoFlashPage");
	   // var alternateContent = '<div align="center"><br>&nbsp;<br>&nbsp;<br>&nbsp;<br>&nbsp;<br>&nbsp;<br>';
		  //alternateContent += '<a href="http://www.macromedia.com/go/getflash/"><img src="gfx/flash_required.jpg" border="0" /></a></div>'
	    var alternateContent = '<div id="main"><br>&nbsp;<br><map name="Map"><area shape="rect"  alt="HTML" coords="2,223,89,252" href="html/index.php"><area shape="rect" href="http://www.macromedia.com/go/getflash/" alt="FLASH" target="_blank" coords="275,3,510,126" ></map><img src="gfx/main_noflash.jpg" border="0" usemap="#Map"/></div>';
	    document.write(alternateContent);  // Nicht aus Flash stammenden Inhalt einfügen	    
	}
	function writeBandWidthFlash(){
		// start flash movie
		flashStr = "";
		flashStr += '<object id="flashMovie" width="1" height="1"  ';
		flashStr += 'classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  ';
		flashStr += 'codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0">  ';
		flashStr += '<param name="allowScriptAccess" value="sameDomain"> ';
		flashStr += '<param name="movie" value="swf/check_bandwidth.swf">  ';
		flashStr += '<param name="quality" value="high">  ';
		flashStr += '<param name="menu" value="false">  ';
		flashStr += '<param name="scale" value="noscale">  ';
		flashStr += '<param name="bgcolor" value="#e9e9e9">  ';
		flashStr += '<embed src="swf/check_bandwidth.swf"  ';
		flashStr += '  swLiveConnect=true ';
		flashStr += '  name="flashMovie"  ';
		flashStr += '  quality="high"  ';
		flashStr += '  allowScriptAccess="sameDomain" ';
		flashStr += '  menu="false"  ';
		flashStr += '  type="application/x-shockwave-flash"  ';
		flashStr += '  width="1" ';
		flashStr += '  height="1" ';
		flashStr += '  bgcolor="#e9e9e9"  ';
		flashStr += '  align="left"  ';   // ! sonst bleibt bei firefox immer ein scrollbar
		flashStr += '  scale="noscale"  ';

		flashStr += '  pluginspage="https://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">  ';
		flashStr += '</embed>  ';
		flashStr += '</object>';

		document.write(flashStr);


	}

