window.onload = big_screen;

var ie_actif = 0;
if (navigator.appName == "Microsoft Internet Explorer")
var ie_actif = 1;

function big_screen()
{
	resize_blog();
	window.onresize = big_blog;
}

function big_blog()
{
	resize_blog();
}

function resize_blog()
{

	var root = document.documentElement;
	var main = document.getElementById('main');
	var menu = document.getElementById('menu');
	var top  = document.getElementById('top');

	var want = parseInt(root.scrollHeight) - parseInt(top.offsetHeight) - 1;

	if (ie_actif)
	{
		main.style.height = want + 'px';
		menu.style.height = want + 'px';
	}
	else
	{
		main.style.minHeight = want + 'px';
		menu.style.minHeight = want + 'px';
	}
}

