function mover(iname)
{
	document.images['button_'+iname].src = 'images/button_'+iname+'a.jpg';
}

function mout(iname)
{
	document.images['button_'+iname].src = 'images/button_'+iname+'.jpg';
}

function nieuwvenster(url,w,h)
{
	var l = (screen.availWidth-w)/2;
	var t = (screen.availHeight-h)/2;

	thiswin = window.open(url,'imgpopup','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, left='+l+', top='+t+', width='+w+', height='+h);
	thiswin.focus();
}

function popup(cat,id,ext)
{
	thiswin = window.open('foto_popup.php?cat='+cat+'&id='+id+'&ext='+ext,'showimggroot','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=640, height=480, left = 240, top = 162');
	thiswin.focus();
}

function popupagenda(id,ext)
{
	thiswin = window.open('agenda_popup.php?id='+id+'&ext='+ext,'showimggroot','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=640, height=480, left = 240, top = 162');
	thiswin.focus();
}

function roll_over(img_src)
{
   	document['illu'].src = 'images/home_slide_0'+img_src+'.jpg';
}

sfHover = function() {
	var sfEls = document.getElementById("menu").getElementsByTagName("li");
	
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}

if (window.attachEvent) window.attachEvent("onload", sfHover);


sfHover = function() {
	var sfEls = document.getElementById("menu2").getElementsByTagName("li");
	
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}

if (window.attachEvent) window.attachEvent("onload", sfHover);


sfHover = function() {
	var sfEls = document.getElementById("menu3").getElementsByTagName("li");
	
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}

if (window.attachEvent) window.attachEvent("onload", sfHover);