	
	///////////////////////////////////ouverture des popup d'affichage d'image ////////////////////////////////////////////
	/// redimensionne la popup à la taille de l'imgae 
	function pop(fichier)
	{

	LaZiMage = window.open(fichier,'LaZiMage','toolbar=0,location=0,directories=0,status=1,scrollbars=0,resizable=1,copyhistory=0,menuBar=0,width=50,height=50');
		// La fonction qui attend que l'image soit chargée et affichée pour redimensionner la fenêtre à la bonne taille
	LaZiMage.document.write('<SCRIPT language="JavaScript">\nfunction checkSize() { if(document.images && document.images[0].complete) { w = document.images[0].width+50; h = document.images[0].height+100; window.resizeTo(w, h); window.moveTo((screen.width-w)/2, (screen.height-h)/2); document.images[0].style.visibility = "visible"; window.focus(); } else { setTimeout("checkSize()", 250); } }\n</'+'SCRIPT>');
	LaZiMage.document.write('<BODY bgcolor="#FFFFFF" leftMargin="0" topMargin="0" marginWidth="0" marginHeight="0">');
	LaZiMage.document.write('<table width="100%" height="100%" align="center" cellpadding="0" cellspacing="0"><tr valign="middle"><td align="center"><img src="'+fichier+'" border="0" onLoad="checkSize()"  style="visibility:hidden"></td></tr></table>');
	LaZiMage.document.write('</body></html>');
	LaZiMage.document.close();
	LaZiMage.focus();
	}	
	//////////////////////////////////////////////////////////////////////////////////////////////////////////
	
	
	var son_on = true;	
	//////////////////////insertion des differentes sources sonores////////// 6 par defaut  ///////////
	 document.write("<BGSOUND src=\"#\" id=\"enceinte1\" loop=\"1\" autostart=\"true\">");
	 document.write("<BGSOUND src=\"#\" id=\"enceinte2\" loop=\"1\" autostart=\"true\">");
	 document.write("<BGSOUND src=\"#\" id=\"enceinte3\" loop=\"1\" autostart=\"true\">");
	 document.write("<BGSOUND src=\"#\" id=\"enceinte4\" loop=\"1\" autostart=\"true\">");	
	 document.write("<BGSOUND src=\"#\" id=\"enceinte5\" loop=\"1\" autostart=\"true\">");
	 document.write("<BGSOUND src=\"#\" id=\"enceinte6\" loop=\"1\" autostart=\"true\">");	
	////////////////////////////////// 6 mais on peut en mettre plus ...//////////////////////////////////
	
	
	/////////////////////////   lance le son "file" sur l'enceinte "enceinte" /////////////////////////////
		function son_up(file,enceinte,volume_nb,repetition_nb,balance_nb)
	{
	
	if (son_on )
		{
		eval('document.all.'+enceinte+'.src=\''+file+'\'');	
		eval('document.all.'+enceinte+'.loop='+repetition_nb);
		eval('document.all.'+enceinte+'.balance='+balance_nb);//-10000 <-----> 10000
		eval('document.all.'+enceinte+'.volume='+volume_nb);// -10000 <-----> 0
		}
	}
	////////////////////////////////////////////////////////////////////////////////////////////////////////
	
	
	/////////////////////////// stop le son ///////////////////////////////////////////////////////////
	function son_off()
	{
	son_on=false;
	}
	/////////////////////////////////////////////////////////////////////////////////////////////////////
	
	