function resize()
{
	getClientRect();
	
	maxHeight = 1000;
	maxWidth = 1800;
	minHeight = 500;
	minWidth = 980;
	fondmargintop = 185;
	dbleredim = 0;
	
	if(clientHeight>=maxHeight){
		$("conteneur").style.height = maxHeight-marge+'px';
		$("conteneur").style.top = '50%';
		$("conteneur").style.marginTop = -maxHeight/2+'px';
		$("fond").style.height = $("conteneur").offsetHeight-fondmargintop+'px';
	}
	else if(clientHeight>=minHeight){
		marge = 10;
		//hack ie6
		if (navigator.appName=="Microsoft Internet Explorer" && navigator.appVersion.substr(22,1)==6)marge=15;
		$("conteneur").style.height = clientHeight-marge+'px';
		//$("conteneur").style.height = clientHeight+'px';
		$("conteneur").style.top = '0%';
		$("conteneur").style.marginTop = 0+'px';
		// fondmargintop = 180;
		$("fond").style.height = $("conteneur").offsetHeight-fondmargintop+'px';
	}
	else {
		$("conteneur").style.height = minHeight-45+'px';
		$("conteneur").style.top = '0%';
		$("conteneur").style.marginTop = 0+'px';
		// fondmargintop = 175;
		$("fond").style.height = $("conteneur").offsetHeight-fondmargintop+'px';
	}
	
	
	if(clientWidth>=maxWidth){
		$("conteneur").style.width = maxWidth+'px';
		$("conteneur").style.left = '50%';
		$("conteneur").style.marginLeft = -maxWidth/2+'px';
	}
	else if(clientWidth>=minWidth){
		$("conteneur").style.width = "100%";
		$("conteneur").style.left = '0px';
		$("conteneur").style.marginLeft = '0px';
	}
	else {
		$("conteneur").style.width = minWidth+'px';
		if (!(navigator.appName=="Microsoft Internet Explorer" && navigator.appVersion.substr(22,1)==7))
			$("conteneur").style.width = $("conteneur").offsetWidth-20+'px';
		
		$("conteneur").style.left = '0px';
		$("conteneur").style.marginLeft = '0px';
	}
	
	
	if($('cadre'))
	{
		//if (!(navigator.appName=="Microsoft Internet Explorer")
			$('cadre').style.height = $("fond").offsetHeight+'px';
	}
	if($('contenu'))
	{
		$('contenu').style.width = $("fond").offsetWidth-10+'px';
		$('contenu').style.height = $("fond").offsetHeight-10+'px';
		$('contenu').style.top = $("fond").offsetTop+5+'px';
		$('contenu').style.left = $("fond").offsetLeft+5+'px';
	}
	
	return false;
}
