<!--

var tellerID = null;
var tellerLoopt = false;
var tellerRand = Math.round(Math.random()*200) + 1;
var teller = 0;
var k1 = '#FFFF00'; // geel
var k2 = '#00FF00'; // groen
var k3 = '#FF6600'; // oranje
var ks = '#BCBDBE'; // grijs van bg vlak
var kr = Math.ceil(Math.random()*3);
var pr = Math.ceil(Math.random()*2);


function wijzigKleur(k) {
	var bg = document.getElementById('bg');
	if (pr == 1) {
		if (k==1) {
			bg.style.backgroundColor = eval("k" + kr);
			bg.style.height = '360px';
			bg.style.width = '726px';
			bg.style.left = '57px';
			bg.style.top = '25px';
		} else if (k==2) {
			bg.style.backgroundColor = ks;
			bg.style.height = '330px';
			bg.style.width = '696px';
			bg.style.left = '72px';
			bg.style.top = '40px';
		}
	} else {
		if (k==1||k==3) {
			bg.style.backgroundColor = eval("k" + kr);
			bg.style.height = '360px';
			bg.style.width = '726px';
			bg.style.left = '57px';
			bg.style.top = '25px';
		} else if (k==2||k==4) {
			bg.style.backgroundColor = ks;
			bg.style.height = '330px';
			bg.style.width = '696px';
			bg.style.left = '72px';
			bg.style.top = '40px';
		}
	}
	
}

function stopTeller() {
	if (tellerLoopt)
		clearTimeout(tellerID);
	tellerLoopt = false;
}

function checkTeller() {
	teller++;	
	if (teller>tellerRand + 10) {
		stopTeller();
	} else {
		if (teller>tellerRand) {
			wijzigKleur(teller-tellerRand);
		}
		tellerID = setTimeout("checkTeller()",100);
		tellerLoopt = true;
	}
}

function startTeller() {
	stopTeller();
	checkTeller();
}
//-->