// Version check for the Flash Player that has the ability to start Player Product Install (6.0r65)
var hasProductInstall = DetectFlashVer(6, 0, 65);

// Version check based upon the values entered above in "Globals"
var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);

// Location visited after installation is complete if installation is required
var MMredirectURL = window.location;

// Stored value of document title used by the installation process to close the window that started the installation process
// This is necessary to remove browser windows that will still be utilizing the older version of the player after installation is complete
// DO NOT MODIFY THE FOLLOWING TWO LINES
document.title = document.title.slice(0, 47) + " -";
var MMdoctitle = document.title;

// Check to see if a player with Flash Product Install is available and the version does not meet the requirements for playback
if ( hasProductInstall && !hasReqestedVersion ) {
	var productInstallOETags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
	+ 'width="100%" height="540px"'
	+ 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
	+ '<param name="movie" value="playerProductInstall.swf?MMredirectURL='+MMredirectURL+'&MMplayerType=ActiveX&MMdoctitle='+MMdoctitle+'" />'
	+ '<param name="quality" value="high" /><param name="bgcolor" value="#873940" />'
	+ '<embed src="playerProductInstall.swf?MMredirectURL='+MMredirectURL+'&MMplayerType=PlugIn" quality="high" bgcolor="#873940" '
	+ 'width="100%" height="540px" name="detectiontest" aligh="middle"'
	+ 'play="true"'
	+ 'loop="false"'
	+ 'quality="high"'
	+ 'allowScriptAccess="sameDomain"'
	+ 'type="application/x-shockwave-flash"'
	+ 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
	+ '<\/embed>'
	+ '<\/object>';
	document.write(productInstallOETags);   // embed the Flash Product Installation SWF
} else if (hasReqestedVersion) {  // if we've detected an acceptable version
	var oeTags = '<object style="margin: auto; margin-top: -1px;" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
	+ 'width="100%" height="650px" align="middle"'
	+ 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
	+ '<param name="movie" value="startpagina.swf" /><param name="menu" value="false" /><param name="quality" value="high" /><param name="bgcolor" value="#873940" /><param name="salign" value="T">'
	+ '<embed src="startpagina.swf" menu="false" quality="high" bgcolor="#873940" '
	+ 'width="100%" height="650px" name="detectiontest" aligh="middle" salign="T"'
	+ '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 Content SWF when all tests are passed
  } else {  // flash is too old or we can't detect the plugin
	var alternateContent = '<div style="position:absolute; left:50%; top:50%; width:225px; height:300px; margin:-150px 0px 0px -112px; background-color:#873940; color: #FFFFFF; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:x-small; text-align:justify;">Deze website maakt  gebruik van Flash. Geen breedband? Geen probleem: de bestanden zijn compact gehouden en zijn in luttele seconden geladen. Heeft u geen flash plugin? Download deze dan <A href="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&amp;Lang=Dutch&amp;P5_Language=Dutch" target="_blank" onFocus="this.blur()">hier</A> (het is gratis en kost slechts enkele minuten tijd).<br><br>Wilt u de tekstversie van deze site bekijken? klik dan <a href="pda.php">hier</a>.<br><br>De folders in de site zijn gemaakt voor Adobe Reader (PDF). Deze plugin kunt u <a href="http://www.adobe.nl/products/acrobat/readstep2.html" target="_blank" onFocus="this.blur()">hier</a> downloaden.</td><br/><br/><img src="img/logo-splash.gif" /></div>';
	document.write(alternateContent);  // insert non-flash content
  }