tmmnu1=null; tmmnu2=null; tmmnu3=null; tmmnu4=null; tmmnu5=null;
nume = new Array('', 'Dienstverlening', 'Advies', 'Algemene Informatie', 'Contact');

function showit(thelayer){
		killrest(thelayer);
		eval ('clearTimeout(tmmnu'+thelayer+')');		
		tgbx('mnu'+thelayer, 1);
		eval ('tgbx(\'dmnu'+thelayer+'\', 1)');
		
		if (thelayer<7) eval ('mn'+thelayer+'.src=\'i/m/'+nume[thelayer]+'-2.gif\'');
}
function hideit(thelayer){
		if (thelayer<7) t='mn'+thelayer+'.src=\'i/m/'+nume[thelayer]+'-1.gif\'';
		else t='';
		
		eval ('tmmnu'+thelayer+'=setTimeout("tgbx(\'mnu'+thelayer+'\', 0); tgbx(\'dmnu'+thelayer+'\', 0);" + t,500)');
}
function killrest(nu) {
	if (nu!=7)
	for (x=1; x<8; x++)
		if (x!=nu) {
			tgbx('mnu'+x, 0); 
			tgbx('dmnu'+x, 0);
			if (x!=7) eval ('mn'+x+'.src=\'i/m/'+nume[x]+'-1.gif\'');
		}
}

function tgbx(szDivID, iState) // 1 visible, 0 hidden
{
    if(document.layers)	   //NN4+
    {
       document.layers[szDivID].visibility = iState ? "show" : "hide";
    }
    else if(document.getElementById)	  //gecko(NN6) + IE 5+
    {
        var obj = document.getElementById(szDivID);
        obj.style.visibility = iState ? "visible" : "hidden";
    }
    else if(document.all)	// IE 4
    {
        document.all[szDivID].style.visibility = iState ? "visible" : "hidden";
    }
}

function stf(link){
	win=window.open(link,'send','width=450, height=320, scrollbars=0, location=0, menubar=0, status=0, toolbar=0, addressbar=0, resizable=0');
	win.moveTo(screen.width/2-225,screen.height/2-160);
	win.focus();
}

function popup(href, w, h, r, s) {
	win=window.open(href,'send','width='+w+', height='+h+', scrollbars='+s+', location=0, menubar=0, status=0, toolbar=0, addressbar=0, resizable='+r);
	win.moveTo(screen.width/2-(w/2),screen.height/2-(h/2));
	win.focus();
}

function preload () {
	i1=new Image();   i1.src="images/menu_dienstverlening.gif";
	i2=new Image();   i2.src="images/menu_advies.gif";
	i3=new Image();   i3.src="images/menu_algemeneinformatie.gif";
	i4=new Image();   i4.src="images/menu_contact.gif";
}

function swtch(care) {
	if (eval("this.document.all."+care+".style.display")=="none") {
		eval("this.document.all."+care+".style.display=\"block\"");
		eval("this.document.all.pic"+care+".src='i/minus.gif'");
	}
	else {
		eval("this.document.all."+care+".style.display=\"none\"") ; 
		eval("this.document.all.pic"+care+".src='i/plus.gif'");
	}	
}