// Set the settings for shadowbox
Shadowbox.init({
	overlayColor: '#000000',
	overlayOpacity: 0.7,
	language: 'nl',
	viewportPadding: 5
});
//
var flashCounter = 0;
var flashInterval = 15;
function Timer(){
	if(flashCounter != <?php echo $KiloIngezameld2; ?>){
		flashCounter++;
		setTimeout("Timer()", flashInterval);
	}
	else{
		clearTimeout(flashInterval);
	}
	document.TestForm.counterEnd.value = flashCounter+"0000";
}
//
function storeCounter(){
	//Make an asynchonous (AJAX) call to a php script that simply stores the CURRENT counter number in session.
	//  pass the current flash counter number to the php page "store counter"
	http.open("GET", "<?php echo GLB_Website; ?>Swf/storeCounter.php?counterEnd="+flashCounter+"0000"  , true);
	http.send(null);
}
//
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();
			xmlhttp.overrideMimeType("text/xml");
		} catch (e) {
			xmlhttp = false;
		}
	}
	return xmlhttp;
}
var http = getHTTPObject();
