window.onload = function() {
	var b1 = document.documentElement.offsetHeight;
	var b2 = document.body.offsetHeight;
	var b3 = document.getElementById('div_contents').offsetHeight;
	var b4 = document.getElementById('div_menu').offsetHeight;
	
	var h = (b1>b2)?b1:b2;
	h = (b3>h)?b3:h;
	h = (b4>h)?b4:h;
	
	if(document.getElementById)
		document.getElementById('div_menu').style.height = h-154+'px';
}
window.onresize = window.onload;

var myTimer
function ShowHide (metode,id) {
	clearTimeout(myTimer);

	if (!document.all && document.getElementById) {
		menu = document.getElementById(id).style;
	} else if(document.all && document.getElementById) {
		menu = document.all(id).style;
	} else {
		return false;
	}
	if (metode == 'hide'){
	menu.visibility = 'hidden';
	}
	if (metode == 'show'){
	menu.visibility = 'visible';
	}
}
function aktiver(metode,id,interval){
	myTimer = setTimeout("ShowHide('"+metode+"','"+id+"')", interval);
}

