function agrandirMilieu() {
	gauche = document.getElementById('divDroiteGaucheInt');
	zoom = document.getElementById('divBlocZoomSur');
	publication = document.getElementById('divBlocPublication');
	avis = document.getElementById('divBlocAvis');
	lien = document.getElementById('divBlocLien');

	/* on teste l'existence d'un div de droite : si aucun, on agrandit*/
	if(zoom==null && publication==null && avis==null && lien==null) {
		gauche.style.width = "622px";
	}
}

/*function activerFlash () {
	theObjects = document.getElementsByTagName("object");
	for (var i = 0; i < theObjects.length; i++)
	{
		theObjects[i].outerHTML = theObjects[i].outerHTML;
	}
}*/

if (window.attachEvent) { window.attachEvent("onload", agrandirMilieu); }
else { window.addEventListener('load', agrandirMilieu, false);}



// 20080304 : election : cocher tout
function checkAll () {
	list = document.getElementsByName('checkboxCanton[]');

	tous = document.getElementById('toutcocher');

	if(tous.checked) {
		for(i=0; i<list.length; i++) {
			list[i].checked = 'checked';
		}
	}
	else {
		for(i=0; i<list.length; i++) {
			list[i].checked = '';
		}
	}
}