function initFormChangeMail() {
	if($('formChgmtMail')) {
		var txtChangeMail = Builder.node("p", $$('#formChgmtMail legend')[0].firstChild.nodeValue);
		txtChangeMail.className = "openFormChgmtMail";
		$$('#inscriptionNewsletter .blocInscriptionNewsletter')[0].insertBefore(txtChangeMail,$('formChgmtMail'));
		$('formChgmtMail').className += "closed";
		txtChangeMail.onclick = function() {
			$('formChgmtMail').className = $('formChgmtMail').className.replace(new RegExp("closed\\b"), "opened");
			this.style.display = "none";
		}
	}
}

function effectVousInscrire() {
	$$('#menu_menuInscription li').each(function(s, index) {
		Effect.Shake(s.id);
	});
}


/****************************************************/
/*				INITIALISATION DE LA PAGE			*/
/****************************************************/
function addLoadListenerPage(func) {
	if (window.addEventListener) {
		window.addEventListener("load", func, false);
	} else if (document.addEventListener) {
		document.addEventListener("load", func, false);
	} else if (window.attachEvent) {
		window.attachEvent("onload", func);
	}
}

if (document.getElementById && document.createTextNode) {
	addLoadListenerPage(function() {
		initFormChangeMail();
		if($('menu_menuInscription')) {
			effectVousInscrire();
			setInterval("effectVousInscrire()",3000);			
		}
	});
}