arrMenu = new Array();
arrMenu[1]	= 'home';
arrMenu[2]	= 'reparatie';
arrMenu[3]	= 'onderhoud';
arrMenu[4]	= 'beglazing';
arrMenu[5]	= 'kassenbouw';
arrMenu[6]	= 'renovatie';
arrMenu[7]	= 'hobbykassen';
arrMenu[8]	= 'kasmaterialen';
arrMenu[9]	= 'aluconstructies';
arrMenu[10]	= 'contact';

intLastMenuId = 1;

function init(p_intMenuId) {
	FNC_changeMenu(p_intMenuId, 'click');
}

function FNC_changeMenu(p_intMenuId, p_strAction) {
	if (p_strAction == 'click') {
		document.getElementById('imgMenu'+intLastMenuId).src = './images-layout/btn-'+arrMenu[intLastMenuId]+'-off.png';
		intLastMenuId = p_intMenuId;
		document.getElementById('imgMenu'+intLastMenuId).src = './images-layout/btn-'+arrMenu[intLastMenuId]+'-on.png';
	}
	else {
		if (p_intMenuId != intLastMenuId) {
			document.getElementById('imgMenu'+p_intMenuId).src = './images-layout/btn-'+arrMenu[p_intMenuId]+'-'+p_strAction+'.png';
		}
	}
}
