var openNieuws=1;
var HLnieuws=1;
var nieuwsTimer;

function ge(i) {
	return document.getElementById(i);	
}

function hooglichtNieuws(i) {
	clearTimeout(nieuwsTimer);
	if(i!=HLnieuws) {
			if(ge("button"+i)) { 
				ge("button"+i).style.background = "#fff";
				ge("button"+i).style.backgroundImage = "url(home_img/nieuws_pointer.gif)";
				ge("button"+i).style.backgroundRepeat = "no-repeat";
			}
			if(ge("button"+HLnieuws)) ge("button"+HLnieuws).style.background = "transparent";
			HLnieuws = i;
	}
}

function resetNieuws() {
	nieuwsTimer = setTimeout("hooglichtNieuws(openNieuws)",500);
}

function kiesNieuws(i) {
	if(i!=openNieuws){
		if(ge("bericht"+openNieuws)) ge("bericht"+openNieuws).style.visibility = "hidden";	
		if(ge("bericht"+i)) ge("bericht"+i).style.visibility = "visible";			
		openNieuws=i;
	}
}

function haalBannerWeg(){
	if(ge('feestbanner')) ge('feestbanner').style.display = "none";			
}

function bannerTimer(){
	setTimeout("haalBannerWeg()",10000);
}