//é
window.onload = function() { resize(); }
window.onresize = function() { resize(); }

function resize()
{
	var doc = document;
	var winheight;
	
	if(doc.all)
	{
		winheight = doc.documentElement.clientHeight;
	}
	else
	{
		winheight = window.innerHeight;
	}
	
	if(doc.getElementById('ombre').offsetHeight < winheight)
	{
		doc.getElementById('ombre').style.height = winheight+"px";
	}
	
	doc.getElementById('centrage').style.height=doc.getElementById('ombre').offsetHeight+"px";
	
	var val = (doc.getElementById('ombre').offsetHeight-doc.getElementById('top').offsetHeight-doc.getElementById('bottom').offsetHeight-40);
	//var bottom = doc.getElementById('ombre').offsetHeight-doc.getElementById('bottom').offsetHeight;
	
	doc.getElementById('corps').style.height = val+"px";
//	doc.getElementById('bottom').style.top = bottom+"px";
	
	
	
	
}

function menu_survol(item, etat)
{
	var item = document.getElementById(item);
	if(etat == 1)
	{
		item.className = item.className+"_sf";
	}
	else
	{
		item.className = item.className.replace("_sf","");
	}
}
