// JavaScript Document
	var menuIds =  new Array("menu1", "menu2", "menu3");
	function displayMenu(menuId, linkId) {
		for (i = 0; i < menuIds.length; i++) {
			if (menuIds[i] != menuId) {
				document.getElementById(menuIds[i]).style.display='none';
			}	
		}
		menuObj = document.getElementById(menuId);
	
		menuObj.style.display='block';
		posArray = findPos(linkId);
		
		menuObj.style.top = posArray[1] + 1 +"px";
		menuObj.style.left = posArray[0] - 10 +"px";
	}
	function findPos(obj)
	{
		var initialObj = obj;
		var curleft = curtop = 0;
		if (obj.offsetParent)
		{
			curleft = obj.offsetLeft
			curtop = obj.offsetTop
			while (obj = obj.offsetParent)
			{
				curleft += obj.offsetLeft;
				curtop += obj.offsetTop;
			}
		}
			return [curleft,curtop];
	}
	

function MM_openBrWindow(theURL,winName,features) { 
  window.open(theURL,winName,features);
}

function showEpp_1()
{
	mainImg = document.getElementById('eppimage');
	eppRoll = document.getElementById('epproll');
	kia = document.getElementById('div_kia');
 	//content = "EPP<br>• Obligatoire pour tous les médecins <br>Art L4133-1-1 (loi13août2004).<br>• Afin d’améliorer la qualité des soins et le service rendu aux patients.<br>• Collective mono disciplinaire, multidisciplinaire, multiprofessionnelle."
	
	posArray = findPos(mainImg);

	eppRoll.style.display='block';
	kia.style.display='block';
	
	kia.innerHTML = document.getElementById('c1').innerHTML;
	eppRoll.style.top = posArray[1]+30+"px";
	eppRoll.style.left =  posArray[0]+320+"px";
}

function showEpp_2() {
	mainImg = document.getElementById('eppimage');
	eppRoll = document.getElementById('epproll');
	kia = document.getElementById('div_kia');
	posArray = findPos(mainImg);

	eppRoll.style.display='block';
	kia.style.display='block';
	
	kia.innerHTML = document.getElementById('c2').innerHTML;
	
	eppRoll.style.top = posArray[1]+130+ "px";
	eppRoll.style.left = posArray[0]+400+ "px";
}

function showEpp_3() {
	mainImg = document.getElementById('eppimage');
	eppRoll = document.getElementById('epproll');
	kia = document.getElementById('div_kia');
	posArray = findPos(mainImg);

	eppRoll.style.display='block';
	kia.style.display='block';
	
	kia.innerHTML = document.getElementById("c3").innerHTML;
	
	eppRoll.style.top = posArray[1] +130 + "px";
	eppRoll.style.left = posArray[0]+400 + "px";
}

function showEpp_4() {
	mainImg = document.getElementById('eppimage');
	eppRoll = document.getElementById('epproll');
	kia = document.getElementById('div_kia');
	posArray = findPos(mainImg);

	eppRoll.style.display='block';
	kia.style.display='block';
	
	kia.innerHTML = document.getElementById("c4").innerHTML;
	
	eppRoll.style.top = posArray[1] +200 + "px";
	eppRoll.style.left = posArray[0]-150 + "px";
}

function showEpp_5() {
	mainImg = document.getElementById('eppimage');
	eppRoll = document.getElementById('epproll');
	kia = document.getElementById('div_kia');
	posArray = findPos(mainImg);

	eppRoll.style.display='block';
	
	kia.style.display='block';
	kia.innerHTML = document.getElementById("c5").innerHTML;
	
	eppRoll.style.top = posArray[1] +360 + "px";
	eppRoll.style.left = posArray[0] +280+ "px";
}

function window_onbeforeunload()
{
   window.navigate('deconnexion.php');
}
