function showflash(movie)
{

var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if(hasRightVersion) {  // if we've detected an acceptable version
    var oeTags = '<object style="display: block" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
    + 'width="100%" height="100%"'
    + 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
    + '<param name="movie" value="'+movie+'" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#FFFFFF" /><param name="menu" value="false" />'
    + '<embed src="'+movie+'" quality="high" wmode="transparent" bgcolor="#EAEAEA" '
    + 'width="100%" height="100%" name="europa" align="middle"'
    + 'play="true"'
    + 'loop="true"'
    + '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 = '<span style="font-size: 11px; color: #000">Flash plugin versie 8 is vereist.<br>'
  	+ 'Er is geen Flash plugin gevonden.<br>'
   	+ '<a href=http://www.macromedia.com/go/getflash/>Download Flash 8 plugin</a></span>';
    document.write(alternateContent);  // insert non-flash content
  }

}

function ReverseContentDisplay(d) {
if(d.length < 1) { return; }
if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block"; document.getElementById("CloseLink").style.display = "block";document.getElementById("ArchiveLink").style.display = "none";}
else {document.getElementById(d).style.display = "none";document.getElementById("ArchiveLink").style.display = "block";document.getElementById("CloseLink").style.display = "none";}

}


function noshow(){
	document.getElementById('content').style.display = "none";	
	document.getElementById('info').style.display = "none";	
}


function haalop(waarde) {

    myRand=parseInt(Math.random()*99999999);
    myRanda=parseInt(Math.random()*999999999);
    http.open("GET", "haalcontent.php?id="+waarde+"", true); 
    http.onreadystatechange = handleInfo; 
    http.send(null);

}

function haalnieuws(cat, waarde) {

    myRand=parseInt(Math.random()*99999999);
    myRanda=parseInt(Math.random()*999999999);
    http.open("GET", "/actueel/"+cat+"/"+waarde+".html", true); 
    http.onreadystatechange = handleInfo; 
    http.send(null);

}



function handleInfo() { 
	
	if (http.readyState == 2) { 
		document.getElementById('info').innerHTML = "Content wordt geladen...";	
		document.getElementById('content').style.display = "block";	
		document.getElementById('info').style.display = "block";	
	}
	if (http.readyState == 4) { 
		document.getElementById('info').innerHTML = http.responseText;	
	} 
}


function getHTTPObject() {
    var xmlhttp;
    /*@cc_on
    @if (@_jscript_version >= 5)
    try {
    xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
    try {
    xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    } catch (E) {
    xmlhttp = false;
    }
    }
    @else
    xmlhttp = false;
    @end @*/
    
    if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
        try { xmlhttp = new XMLHttpRequest(); } 
        catch (e) { xmlhttp = false; }
    }
    return xmlhttp;
}

var http = getHTTPObject();


