function Init_topfix()
{
	var dimensions = document.viewport.getDimensions();
	var h_topfix = 0;
	var h_footfix = 0;


	if ($('topfix'))
	{
		h_topfix = $('topfix').getHeight();
	}

	if ($('footfix'))
	{
		h_footfix = $('footfix').getHeight();
	}


	if ($('contenu'))
	{
		$('contenu').style.top = h_topfix+'px';
		$('contenu').style.height = (dimensions.height-(h_topfix+h_footfix))+'px';

		var h_contenu = dimensions.height-(h_topfix+h_footfix);
		var h_content = $('content').getHeight();

		if (h_content > h_contenu)
		{
			$('contenu').style.width = (dimensions.width-18)+'px';
			$('contenu').style.paddingLeft = '17px';
		}else
		{
			$('content').style.height = (h_contenu)+'px';
		}

		if ($('footfix'))
		{
			$('footfix').style.top = (h_topfix+$('contenu').getHeight())+'px';
		}
	}else
	{
		if ($('col_degauche'))
		{
			$('col_degauche').style.top = h_topfix+'px';
			$('col_degauche').style.height = (dimensions.height-(h_topfix+h_footfix))+'px';
			$('col_dedroite').style.top = h_topfix+'px';
			$('col_dedroite').style.left = $('col_degauche').getWidth()+'px';
			$('col_dedroite').style.height = (dimensions.height-(h_topfix+h_footfix))+'px';
			$('col_dedroite').style.width = (dimensions.width-$('col_degauche').getWidth())+'px';
		}

		if ($('footfix'))
		{
			$('footfix').style.top = (h_topfix+$('col_degauche').getHeight())+'px';
		}
	}
}

Event.observe(window, 'load', Init_topfix, false);