//---------------------------------------------------------------------
//alert(navigator.appName); 
//Nom = navigator.appName;
//if (Nom == 'Netscape') {document.write (src=menu_netscape.js) }
//if (Nom == 'Microsoft Internet Explorer') {document.write (src=menu_iexplorer.js) }
//---------------------------------------------------------------------
/*var ns4 = (document.layers)? true:false;	  //NS 4
var ie4 = (document.all)? true:false;	  //IE 4
var dom = (document.getElementById)? true:false;	  //DOM*/
//---------------------------------------------------------------------
/*var timeout         = 500;
var closetimer		= 0;
var ddmenuitem      = 0;
//---------------------------------------------------------------------
// open hidden layer
function mopen(id)
{	
	// cancel close timer
	mcancelclosetime();

	// close old layer
	if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';

	// get new layer and show it
	ddmenuitem = document.getElementById(id);
	ddmenuitem.style.visibility = 'visible';

}
//---------------------------------------------------------------------
// close showed layer
function mclose()
{
	if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
}

// go close timer
function mclosetime()
{
	closetimer = window.setTimeout(mclose, timeout);
}
//---------------------------------------------------------------------
// cancel close timer
function mcancelclosetime()
{
	if(closetimer)
	{
		window.clearTimeout(closetimer);
		closetimer = null;
	}
}

// close layer when click-out
document.onclick = mclose; */
//---------------------------------------------------------------------
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
//--redirection mainetance.html-----------------------------------------------------
function redirection(page){
  {window.location=page;}
setTimeout('redirection("maintenance.html")',1000);
}
//---------------------------------------------------------------------
// on/off div visible
function visibilite(thingId){
	if(document.getElementById(thingId).style.display == "none"){
		document.getElementById(thingId).style.display = "inline" ;
	}else{
		document.getElementById(thingId).style.display = "none" ;
	}
}
// change input value by id
function change_value(thingId,Valeur){
	document.getElementById(thingId).value = Valeur;
}
// id visible
function von(thingId){
	document.getElementById(thingId).style.display = "inline" ;
}
// id INvisible
function voff(thingId){
	document.getElementById(thingId).style.display = "none" ;
}
// auto width id
function widthauto(thingId){
	document.getElementById(thingId).style.width = document.getElementById(thingId).value.length*11+"px";
	//alert(document.getElementById(thingId).value.length);
}
//positionner id en XY mouse
function poswin(thingId){
	var x = (document.body.clientWidth/2) - (100);
	var y = (document.body.clientHeight/2) - (document.getElementById(thingId).style.height/2) -100;
	document.getElementById(thingId).style.left= x+"px";
	document.getElementById(thingId).style.top = y+"px";
}
//---------------------------------------------------------------------
function goto_html(page){
  window.location=page;
}
//---------------------------------------------------------------------
function back_html(){
  history.go(-1);
}