// JavaScript Document
function Change_langage(langage)
{
	document.location="agenda.php?l="+langage;
}
function openPopupCentree(url,name,width,height,options)
{
	if (screen)
	{
		y = (screen.availHeight - height)/2;
		x = (screen.availWidth - width)/2;
	}
	if (screen.availWidth > 1800)
	{ 
		x = ((screen.availWidth/2) - width)/2; 
	} 
	window.open(url,name,'width='+width+',height='+height+',screenX='+x+',screenY='+y+',top='+y+',left='+x,options);
}
function montre(id)
{
		var element_style=null
		if (document.getElementById)
		{element_style=document.getElementById(id).style;}
		else if (document.all)
		{element_style=document.all[id].style;} 
		if(element_style)  {element_style.display="block";}
}
function cache(id)
{
		var element_style=null
		if (document.getElementById)
		{element_style=document.getElementById(id).style;}
		else if (document.all)
		{element_style=document.all[id].style;} 
		if(element_style)  {element_style.display="none";}
}
function Ecouter(num,nom,langue)
{
		var toto1=null

		if (document.getElementById) // Firefox
		{toto1=document.getElementById("Player"+num); }
		else if (document.all) // Explorer
		{toto1=document.all["Player"+num];}
		if(toto1)
		{
			if(!detectReal())
			{
				if(langue=="fr")
				{
					toto1.innerHTML="<div id=\"noReal\">Vous ne disposez pas du plug-in \"Real\" pour &eacute;couter cet extrait.<br><br>Nous vous invitons &agrave; le t&eacute;l&eacute;charger et &agrave; l\'installer en cliquant sur le lien suivant : <br><br><a href=\"http://free-codecs.com/Real_Alternative_download.htm\" target=\"_blank\">T&eacute;l&eacute;charger Real Alternative</a> (installation rapide)<br><br />ou bien :<br><a href=\"http://www.real.com/player/index.html?lang="+langue+"\" target=\"_blank\">T&eacute;l&eacute;charger RealPlayer</a> (installation avanc&eacute;e)<br><br></div><img src=\"images/bastab.gif\">";
				}
				if(langue=="en")
				{
					toto1.innerHTML="<div id=\"noReal\">You do not have the necessary plug-in to listen to this sample.<br><br>If you wish to download and install the Real plug-in, please click this link:<br><br><a href=\"http://free-codecs.com/download_soft.php?d=3770&s=631\" target=\"_blank\">Download Real Alternative</a> (standard installation)<br><br>or:<br><a href=\"http://www.real.com/player/index.html?lang="+langue+"\" target=\"_blank\">Download RealPlayer</a> (advanced installation)<br><br></div><img src=\"images/bastab.gif\">";
				}
				if(langue=="de")
				{
					toto1.innerHTML="<div id=\"noReal\">Sie verfügen nicht über das \"Real\"-Plugin, um diese Datei ansehen/anhören zu können.<br><br>Wir schlagen vor, dieses herunterzuladen und durch Anklicken am folgenden Ort im Verzeichnis zu installieren :<br><br><a href=\"http://free-codecs.com/download_soft.php?d=3770&s=631\" target=\"_blank\">Real Alternative</a> (Schnelle Installation)<br><br>oder :<br><a href=\"http://www.real.com/player/index.html?lang="+langue+"\" target=\"_blank\">RealPlayer</a> (Fortgeschrittene Installation)<br><br></div><img src=\"images/bastab.gif\">";
				}
			}
			else
			{
				toto1.innerHTML="<object classid=\"CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA\" width=\"110\" height=\"25\" hspace=\"0\" id=\"ra"+num+"\"><param name=\"console\" value=\"console"+num+"\" /><param name=\"controls\" value=\"ControlPanel\" /><param name=\"autostart\" value=\"true\" /><param name=\"src\" value=\'"+nom+"\' /><embed src=\'"+nom+"\' width=\"110\" height=\"25\" hspace=\"0\" autostart=\"true\" type=\"audio/x-pn-realaudio-plugin\" controls=\"ControlPanel\" console=\"console"+num+"\" id=\"ra"+num+"\"></embed></object>";
			}
		}
		montre("Player"+num);

		var toto2=null

		if (document.getElementById) // Firefox
		{toto2=document.getElementById("EcouterFermer"+num); }
		else if (document.all) // Explorer
		{toto2=document.all["EcouterFermer"+num];}
		if(toto2){toto2.innerHTML="<a href=\"javascript:Fermer("+num+",'"+nom+"','"+langue+"')\"><img src=\"images/son-fermer_"+langue+".gif\" border=\"0\"></a>";}
}
function Fermer(num,nom,langue)
{
		
		var toto=null
		
		if (document.getElementById) // Firefox
		{toto=document.getElementById("Player"+num);}
		else if (document.all) // Explorer
		{toto=document.all["Player"+num];}
		if(toto){toto.innerHTML="";}
		cache("Player"+num);
		
		if (document.getElementById) // Firefox
		{toto=document.getElementById("EcouterFermer"+num); }
		else if (document.all) // Explorer
		{toto=document.all["EcouterFermer"+num];}
		if(toto){toto.innerHTML="<a href=\"javascript:Ecouter("+num+",'"+nom+"','"+langue+"')\"><img src=\"images/son-barre_"+langue+".gif\" border=\"0\"></a>";}
}
function EcouterGris(num,nom,langue)
{
		var toto1=null

		if (document.getElementById) // Firefox
		{toto1=document.getElementById("Player"+num); }
		else if (document.all) // Explorer
		{toto1=document.all["Player"+num];}
		if(toto1)
		{
			if(!detectReal())
			{
				if(langue=="fr")
				{
					toto1.innerHTML="<div id=\"noReal\">Vous ne disposez pas du plug-in \"Real\" pour &eacute;couter cet extrait.<br><br>Nous vous invitons &agrave; le t&eacute;l&eacute;charger et &agrave; l\'installer en cliquant sur le lien suivant : <br /><br /><a href=\"http://free-codecs.com/Real_Alternative_download.htm\" target=\"_blank\">T&eacute;l&eacute;charger Real Alternative </a>(installation rapide)<br><br />ou bien :<br><a href=\"http://www.real.com/player/index.html?lang="+langue+"\" target=\"_blank\">T&eacute;l&eacute;charger RealPlayer </a>(installation avanc&eacute;e)<br><br></div>";
				}
				if(langue=="en")
				{
					toto1.innerHTML="<div id=\"noReal\">You do not have the necessary plug-in to listen to this sample.<br><br>If you wish to download and install the Real plug-in, please click this link:<br><br><a href=\"http://free-codecs.com/download_soft.php?d=3770&s=631\" target=\"_blank\">Download Real Alternative</a> (standard installation)<br><br>or:<br><a href=\"http://www.real.com/player/index.html?lang="+langue+"\" target=\"_blank\">Download RealPlayer</a> (advanced installation)<br><br></div>";
				}
				if(langue=="de")
				{
					toto1.innerHTML="<div id=\"noReal\">Vous ne disposez pas du plug-in \"Real\" pour &eacute;couter cet extrait.<br /><br />Nous vous invitons &agrave; le t&eacute;l&eacute;charger et &agrave; l\'installer en cliquant sur le lien suivant : <br /><br /><a href=\"http://free-codecs.com/Real_Alternative_download.htm\" target=\"_blank\">T&eacute;l&eacute;charger Real Alternative </a>(installation rapide)<br><br />ou bien :<br><a href=\"http://www.real.com/player/index.html?lang="+langue+"\" target=\"_blank\">T&eacute;l&eacute;charger RealPlayer </a>(installation avanc&eacute;e)<br><br></div>";
				}
			}
			else
			{
				toto1.innerHTML="<object classid=\"CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA\" width=\"110\" height=\"25\" hspace=\"0\" id=\"ra"+num+"\"><param name=\"console\" value=\"console"+num+"\" /><param name=\"controls\" value=\"ControlPanel\" /><param name=\"autostart\" value=\"true\" /><param name=\"src\" value=\'"+nom+"\' /><embed src=\'"+nom+"\' width=\"110\" height=\"25\" hspace=\"0\" autostart=\"true\" type=\"audio/x-pn-realaudio-plugin\" controls=\"ControlPanel\" console=\"console"+num+"\" id=\"ra"+num+"\"></embed></object>";
			}
		}
		montre("Player"+num);

		var toto2=null

		if (document.getElementById) // Firefox
		{toto2=document.getElementById("EcouterFermer"+num); }
		else if (document.all) // Explorer
		{toto2=document.all["EcouterFermer"+num];}
		if(toto2){toto2.innerHTML="<a href=\"javascript:FermerGris("+num+",'"+nom+"','"+langue+"')\"><img src=\"images/son-fermer_gris_"+langue+".gif\" border=\"0\"></a>";}
}
function FermerGris(num,nom,langue)
{
		
		var toto=null
		
		if (document.getElementById) // Firefox
		{toto=document.getElementById("Player"+num);}
		else if (document.all) // Explorer
		{toto=document.all["Player"+num];}
		if(toto){toto.innerHTML="";}
		cache("Player"+num);
		
		if (document.getElementById) // Firefox
		{toto=document.getElementById("EcouterFermer"+num); }
		else if (document.all) // Explorer
		{toto=document.all["EcouterFermer"+num];}
		if(toto){toto.innerHTML="<a href=\"javascript:EcouterGris("+num+",'"+nom+"','"+langue+"')\"><img src=\"images/son-barre_gris_"+langue+".gif\" border=\"0\"></a>";}
}


