time = 0;
aktiv = 0;


function shohi(nme,act) {
		
	if(document.getElementById(nme)) {
	
		obj = document.getElementById(nme);
		if(act)obj.style.display="block";
		else obj.style.display="none";
	
	}
}

function ref_click(n) {
	
	for(r=0;r<=7;r++) {
		shohi("r0"+r,0);
	}
	
	shohi("r0"+n,1);
}

function team_click(n) {
	
	for(r=0;r<=3;r++) {
		shohi("ti0"+r,0);
	}
	
	shohi("ti0"+n,1);
}

function init() {
	schleife();
}
