function TestFlash()
{
	var myPlugin = navigator.plugins["Flash"];
	var myPlugin = navigator.plugins.name;
	return myPlugin;
}
function Affiche(url,id)
{
	if (document.getElementById(id)!=null)
	{
	var xhr_object = null;
	var position = id;
	   if(window.XMLHttpRequest)  xhr_object = new XMLHttpRequest();
	  else
	    if (window.ActiveXObject)  xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); 
	xhr_object.open("GET", url, true);
	xhr_object.onreadystatechange = function(){
	if ( xhr_object.readyState == 4 )
	{
		document.getElementById(position).innerHTML = xhr_object.responseText;
	}
	}
	xhr_object.send(null);
	}
}
function LoadFlash(id,srcURL,play,x,y,arg) {
	document.writeln(
    '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"' +
'codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0"' +
    'ID="'+id+'" WIDTH="'+x+'" HEIGHT="'+y+'">' +
    '<PARAM NAME="movie" VALUE="flash/' + srcURL + '.swf">' + 
    '<PARAM NAME="quality" VALUE="high">' +
	'<PARAM NAME="wmode" VALUE="transparent">' +
    '<PARAM NAME="autostart" VALUE="'+play+'">'+
    '<PARAM NAME="FlashVars" VALUE="user='+arg+'">'+
    '<embed src="flash/' + srcURL + '.swf" quality="high"' + '"' + 'width="'+x+'" height="'+y+'"'+'wmode="transparent"' +
    'type="application/x-shockwave-flash" NAME="'+id+'"' +'FlashVars="user='+arg+'"'+
 'pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></OBJECT>');
  if (play==false) {eval("document."+id+".stop();");}
}

function Recharge(){
    document.location='';
   }
function ChangeLangue(a){
	if (a!="GR") a = "";
	Affiche("accueil/accueil"+a+".html","News");
	Affiche("accueil/info2"+a+".html","info2");
	Affiche("accueil/logis"+a+".html","logis");
	Affiche("accueil/info1"+a+".php","info1");
}
function Lance()
{
	titre.play();
	pub.play();
}

