// 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" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="600" height="477" id="frontTest" align="right"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="frontTest.swf" /><param name="FlashVars" value="taal='
	+ taal
	+ '" /><param name="quality" value="high" /><param name="salign" value="rt" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#000000" /><embed src="frontTest.swf" FlashVars="taal='
	+ taal
	+ '" quality="high" salign="rt" wmode="transparent" bgcolor="#000000" width="600" height="477" name="frontTest" align="right" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>';
    document.write(oeTags);   // embed the flash movie
  } else {  // flash is too old or we can't detect the plugin
  	//onderscheid maken in verschillende taal
	if (taal==2) {
		//engels
		var redir = "indexNoFlashEng.php";
		var alternateContent = '<div align="center"><b>'
		+ 'This website needs Flash Player 8 or higher.<br/>'
		+ '<a href=http://www.macromedia.com/go/getflash/>Download Flash here</a><br/><br/>'
		+ 'Or go to the <a href="'
		+ redir
		+ '">non-Flash-version of the site</a>.</b></div>';
	}
	else {
		//anders nederlands	
		var redir = "indexNoFlash.php";
		var alternateContent = '<div align="center"><b>'
		+ 'Deze website heeft Flash Player 8 of hoger nodig.<br/>'
		+ '<a href=http://www.macromedia.com/go/getflash/>Download Flash hier</a><br/><br/>'
		+ 'Of ga naar de <a href="'
		+ redir
		+ '">niet-Flash-versie van de site</a>.</b></div>';	
	}
    document.write(alternateContent);  // insert non-flash content
	//en  redirect naar niet-Flash-site
	window.location.href=redir;
  }
