var cur_wedstrijd = 0;

function wedstrijd_change (wedstrijd) {
	var obj;
	if (!document.getElementById)
		return true;
	if (cur_wedstrijd != 0) {
		obj = document.getElementById ("wed" + cur_wedstrijd);
		if (!obj.className)
			return true;
		obj.className = "detail";
		document.getElementById ("det" + cur_wedstrijd).innerHTML = "toon";
	}
	if (wedstrijd != cur_wedstrijd) {
		obj = document.getElementById ("wed" + wedstrijd);
		if (!obj.className)
			return true;
		obj.className = "curdetail";
		cur_wedstrijd = wedstrijd;
		document.getElementById ("det" + wedstrijd).innerHTML = "verberg";
	}
	else
		cur_wedstrijd = 0;
	return false;
}
