
// Kaldes ved event: body.onload

function centrerMenuer() {
//	w = document.body.clientWidth;
	w = IE4 ? document.body.clientWidth : (innerWidth - 15);
	b = MM_findObj("kanvas").width;
	x = (w > b) ? ((w - b) / 2) : 0;
	if (navigator.platform.indexOf('MacPPC') != -1) {
		x = 0;
	}
	MM_findObj("privatmenu").stil.left = x;
	MM_findObj("teknikermenu").stil.left = x + 85;
	MM_findObj("publikationermenu").stil.left = x + 170;
	MM_findObj("ydelsermenu").stil.left = x + 255;
	MM_findObj("kursermenu").stil.left = x + 340;
	MM_findObj("omdgcmenu").stil.left = x + 425;
}

function dgcOnLoad() {
	opretMenu("privatmenu", "teknikermenu", "publikationermenu" , "ydelsermenu", "kursermenu", "omdgcmenu");
	centrerMenuer();
	with (navigator) { if (!onresize) onresize = centrerMenuer; }
}
