/* Effet dynamique élargissement des blocs annonces / promos */
var larg = 266;
var gauche = 267;
var ouvre;

function elargir(div) {
	document.getElementById(div).style.width = parseInt(larg) + "px";
	larg = larg + 66;
	if (div == 'acc_promo2') {
		document.getElementById(div).style.left = parseInt(gauche) + "px";
		gauche = gauche - 33.5;
	}
	if (larg >= 800) {
		if (div == 'acc_promo2') { document.getElementById(div).style.left = "0px"; }
		document.getElementById(div).style.width = "800px";
		window.clearInterval(ouvre);
	};
}

function sesame(mot,bloc) {
	var zoom = elargir(bloc);
	if (mot == "ouvre") {
		document.getElementById(bloc).style.zIndex = '20';
		ouvre = window.setInterval(("elargir('" + bloc + "')"),30);
	}
	else {
		window.clearInterval(ouvre);
		document.getElementById(bloc).style.zIndex = '2';
		document.getElementById(bloc).style.width = "266px";
		document.getElementById('acc_promo2').style.left = "267px";
		larg = 266;
		gauche = 267;
	}
}
/* /elargissement des blocs annonces / promos */


/* Affichage - masquage de l'ecran evenementiel */
function evenmt(action) {
	if (action == 'masquer') {
		document.getElementById('parDefaut').style.display = "block";
		document.getElementById('evenement').style.display = "none";
	}
	else {
		document.getElementById('evenement').style.display = "block";
		document.getElementById('parDefaut').style.display = "none";
	}
}
/* /Affichage - masquage de l'ecran evenementiel */

function gotoPromo(id, url)
{
	if ((typeof(url) != 'undefined') && (url != ''))
		window.location = url;
	else
		window.location = '../outils/contact.php?target=promo' + id;
}

function OpenWindow() {
  neo=window.open('./conditions_generales.html','wclose','width=500,height=300,toolbar=no,location=no,directories=no,status=no,left=20,top=30')
}

