flash_versions = 20;
var flash = new Object();
flash.installed=false;
flash.version='0.0';
if (navigator.plugins && navigator.plugins.length) {
	for (x=0; x < navigator.plugins.length; x++) {
		if (navigator.plugins[x].name.indexOf('Shockwave Flash') != -1) {
			flash.version = navigator.plugins[x].description.split('Shockwave Flash ')[1];
			flash.installed = true;
			break;
		}
	}
}
else if (window.ActiveXObject) {
	for (x = 2; x <= flash_versions; x++) {
		try {
			oFlash = eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash." + x + "');");
			if(oFlash) {
				flash.installed = true;
				flash.version = x + '.0';
			}
		}
	catch(e) {}
	}
}

function nix() {
    }

function rekenhulp(bedrag,base,adult,skipother) {
	var title='targetpay'+Math.round(Math.random()*100000);
	var url='http://www.targetpay.nl/rekenhulp?printview=1&btw=excl&base='+base+'&bedrag='+bedrag+'&adult='+adult+'&skip='+skipother;
	window.open(url, title, 'toolbar=no,location=no,directories=no,'+
		'status=yes,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,'+
		'width=625,height=500,screenX=50,screenY=50,top=50,left=50');
	}

function toggleDiv(ID) {
	if (document.getElementById(ID).style.display == "") {
		document.getElementById(ID).style.display = "none";
		document.images['plus' + ID].src = "/gfx/plus.gif";
		} else {
		document.getElementById(ID).style.display = "";
		document.images['plus' + ID].src = "/gfx/min.gif";
		}
	}


function toggleSimple(ID) {
	if (document.getElementById(ID).style.display == "") {
		document.getElementById(ID).style.display = "none";
		} else {
		document.getElementById(ID).style.display = "";
		}
	}

function mystats(framed,counter,domain,server,p) {
	var rnd=Math.round(Math.random()*100000);
	if (framed)myref = document.referrer;else myref = top.document.referrer;
	document.write('<img src=\"http://www'+server+'.mystats.nl/c/i?c='+counter+'&f='+framed+'&random='+rnd+'&dom='+domain+'&r='+escape(myref)+
		'&p='+escape(document.location)+p+'\" height=1 width=1 border=0 nosave>');
	}
