 

function ge(o) {
	return document.getElementById(o);
}	

/* wordt aangeroepen vanuit Flash */
var previmg = 2;

function changeMenu (img) {
	
	//alert(img);
	
	if (previmg) {
		ge("menuitem"+previmg).style.backgroundColor="#FFFFFF";
		ge("menuitem"+previmg).style.color="#949494";
	}
	
	ge("menuitem"+img).style.backgroundColor="#720223";
	ge("menuitem"+img).style.color="#ebdbd0";
	previmg = img;
	
}

function hlChangeMenu(o, nr, item, total)
{
	
	var obj=ge(o);
	hideOtherFirst(total);
	obj.style.backgroundColor="#720223";
	obj.style.color="#ebdbd0";
	
	var flashmovie = ge('Menu_SIM');
	flashmovie.SetVariable("gotoItem", nr); 
	flashmovie.SetVariable("gotoItemTxt", item); 
	flashmovie.SetVariable("isSim", false); 
	
	//window.document.sim.setVariable("isSim", false);
	
}

function hideOtherFirst(total)
{
	var nr=1;
	for(i=0; i<total; i++) {
		var obj=ge('menuitem'+nr);
		obj.style.backgroundColor="white";
		obj.style.color="#949494";		
		nr++;
	}
}

function setValues()
{
	z_opwoord2=ge('z_opwoord2').value;
	z_thema2=ge('z_thema2').value;
	z_niveau1=ge('z_niveau1').checked;
	z_niveau2=ge('z_niveau2').checked;
	z_niveau3=ge('z_niveau3').checked;
	z_sorteer=ge('z_sorteer2').value;
	alert("z_opwoord2="+z_opwoord2 +
				"\nz_niveau1="+z_niveau1 + "\nz_niveau2="+z_niveau2 + "\nz_niveau3="+z_niveau3 + 
				"\nz_thema2= "+z_thema2 +
				"\nz_sorteer= "+z_sorteer);	
	//alert("z_opwoord="+ge('z_opwoord2').value());								
}
