
var inh,acouvintl = document.getElementById("couvintl");
inh = acouvintl.innerHTML;

acouvintl.innerHTML = inh+'<a href="#aide" onclick="aideCouvIntl();return false;">aide</a>';

var alphapopup,aidecouvintl;
function aideCouvIntl(){
	var bc = document.getElementById("bodycontent");
	if(typeof alphapopup=="undefined"){
		alphapopup = document.createElement("div");
		alphapopup.id="alphapopup";
		bc.appendChild(alphapopup);
		aidecouvintl = document.createElement("div");
		aidecouvintl.id="aidecouvintl";
		aidecouvintl.innerHTML='<span>&nbsp;</span><div>&nbsp;</div>';
		aidecouvintl.firstChild.onclick = aideCouvIntl;
		bc.appendChild(aidecouvintl);
	}
	d = alphapopup.style.display;
	if(d!='block'){
		var asimul = document.getElementById("asimul").href;
		alphapopup.style.width = bc.offsetWidth+"px";
		alphapopup.style.height = bc.offsetHeight+"px";
		alphapopup.style.display = 'block';
		aidecouvintl.lastChild.innerHTML='<object type="application/x-shockwave-flash" data="/img/services/aide-couvintl.swf" width="550" height="400" id="simulconso"><param name="movie" value="/img/services/aide-couvintl.swf" /><param name="flashvars" value="lnkURL='+asimul+'" /><param name="allowScriptAccess" value="always" /><param name="wmode" value="transparent" /></object>';
		aidecouvintl.style.display = 'block';
	}
	else{
		alphapopup.style.display = 'none';
		aidecouvintl.style.display = 'none';
	}
};

