
// 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("Oversigtmenu").stil.left = x + 89;
	MM_findObj("ngmnmenu").stil.left = x + 178;
	MM_findObj("DONGvestmenu").stil.left = x + 267;
	MM_findObj("DONGoestmenu").stil.left = x + 356;
	MM_findObj("ngfmenu").stil.left = x + 445;
	MM_findObj("hngmenu").stil.left = x + 534;
	MM_findObj("gastramenu").stil.left = x + 623; 	MM_findObj("infmenu").stil.left = x + 650;

}

function dgcOnLoad() {
	opretMenu("Oversigtmenu", "ngmnmenu", "DONGvestmenu", "DONGoestmenu", "ngfmenu", "hngmenu","gastramenu","infmenu");
	centrerMenuer();
	with (navigator) { if (!onresize) onresize = centrerMenuer; }
}
