/*window.onload = function ResizeDiv() {*/
function ResizeDiv() {
	DivCol1 = document.getElementById('ContentThreeCol1');
	DivCol2 = document.getElementById('ContentThreeCol2');
	DivCol3 = document.getElementById('ContentThreeCol3');
	function ResizePush() { DivCol2.style.width = "238px"; }
	function ResizePub() { DivCol3.style.width = "120px"; }

	// Mode 1 colonne
	if(DivCol1 && !DivCol2 && !DivCol3) {
		DivCol1.style.width = "703px";
		DivCol1.style.marginRight = "10px";
		//DivCol1.style.width = "";
	}

	// Mode 2 colonnes With Push
	if(DivCol1 && DivCol2 && !DivCol3) {
		//alert("2colPush");
		DivCol1.style.width = "455px"; ResizePush();
	}

	// Mode 2 colonnes With Pub
	if(DivCol1 && !DivCol2 && DivCol3) {
		DivCol1.style.width = "573px"; ResizePub();
	}

	// Mode 3 colonnes
	if(DivCol1 && DivCol2 && DivCol3) {
		DivCol1.style.width = "309px"; ResizePush(); ResizePub();
	}
}

function setBackgroundNumber(val, divName)
{
		var nb=Math.floor(Math.random()*val); // 0.999 maxi x 9 = 8.9999 donc nb max 8
		document.write('<div id="'+divName+nb+'"  class="main_page" >');
}