function switchImgs() 
{
	var tbody_actus = document.getElementById('actus');
	var tbody_actus = document.getElementById('actus');
	var children = tbody_actus.childNodes;
	var nbActus = 0;
	var imgSrc;
	var imgDirPath = 'fileadmin/templates/main/images/';
	var bottomBlocksIds = new Array('btmblock_actu_1', 'btmblock_actu_2', 'btmblock_actu_3', 'btmblock_actu_4');
	var imgSources =  new Array(
		new Array('btmblock1_1actu.gif', 'btmblock1_2actu.gif', 'btmblock1_3actu.gif'),
		new Array('btmblock2_1actu.gif', 'btmblock2_2actu.gif', 'btmblock2_3actu.gif'),
		new Array('btmblock3_1actu.gif', 'btmblock3_2actu.gif', 'btmblock3_3actu.gif'),
		new Array('btmblock4_1actu.gif', 'btmblock4_2actu.gif', 'btmblock4_3actu.gif')
	);
		
	var bottomBlocksNb = bottomBlocksIds.length;
	var bottomBlocksHandles = new Array();
	
	for (i = 0; i < bottomBlocksNb; i++)
		bottomBlocksHandles[i] = document.getElementById(bottomBlocksIds[i]);

	nbChildren = children.length;

	for (i = 0; i < nbChildren; i++)
	{	
		if (children[i].nodeName == 'TR')
		nbActus++;
	}

	// alert(nbActus);

		// Si 4 actus, pas de blocs
	if (nbActus == 4)
	{
		for (i = 0; i < bottomBlocksNb; i++)
			bottomBlocksHandles[i].style.display = 'none';
		
		 // On aligne le bloc central sur le bas de page 
		bottomBlocks[1] = new Array('colBrow3block1_outerContainer', 'colBrow3block2_outerContainer');
	}
	else
	{
		for (i = 0; i < bottomBlocksNb; i++)
		{
			imgSrc = imgDirPath + imgSources[i][nbActus - 1];
			bottomBlocksHandles[i].setAttribute('src', imgSrc);
		}
	}
	//return true;
}
