var bon = (document.getElementById || document.all);

if (bon)
{
  document.write("<STYLE TYPE='text/css'>");
  document.write(".ssmenu {display: none;}");
  document.write("<\/STYLE>");

  var max = 7;
  var shown = new Array();
  for (var i=1;i<=max;i++)
  {
    shown[i+1] = false;
  }
}

function permut(i)
{
  if (!bon)
  {
    alert('Ce lien ne fonctionne pas avec votre navigateur.');
    return;
  }
  shown[i] = (shown[i]) ? false : true;
  current = (shown[i]) ? 'block' : 'none';
  if (document.getElementById)
  {
    document.getElementById('nmr'+i).style.display = current;
  }
  else if (document.all)
  {
    document.all['nmr'+i].style.display = current;
  }
}
//////////////////////////////////////A valider////////////////
function vob(url) {
var admis = (document.getElementById);
if (admis){
    var str = "screenX=0,left=0,screenY=0,top=0,directories=0,location=0,menubar=0,resizable=1,scrollbars=1,status=1,toolbar=1";
    if (window.screen) {
      var ah = screen.availHeight - 30;
      var aw = screen.availWidth - 10;
      str += ",height=" + ah;
      str += ",innerHeight=" + ah;
      str += ",width=" + aw;
      str += ",innerWidth=" + aw;
    }
    ana=window.open(url, "w", str);
		if (window.focus) {ana.focus()}
}
    else{
		alert('Votre navigateur est trop ancien pour ouvrir ce lien ; utilisez au moins IE5 ou NS6, par exemple.');
		return;
	}
}

var DHTML = (document.getElementById || document.all || document.layers);

function invi(compat)
{
	if (!DHTML) return;
	var x = new ident('text');
	x.style.visibility = (compat) ? 'hidden' : 'visible'
}

function ident(nom)
{
  if (document.getElementById)
  {
  this.obj = document.getElementById(nom);
	this.style = document.getElementById(nom).style;
  }
  else if (document.all)
  {
	this.obj = document.all[nom];
	this.style = document.all[nom].style;
  }
  else if (document.layers)
  {
   	this.obj = document.layers[nom];
   	this.style = document.layers[nom];
  }
}
window.onerror=null;
version4 = false
if(navigator.appVersion.charAt(0) == "4") version4 = true

function att(newURL, newName, newFeatures, orgName) {
  var rem = open(newURL, newName, newFeatures);
  if (rem.opener == null)
    rem.opener = window;
  rem.opener.name = orgName;
  return rem;
}
function attRem() {
  myRem = att("rep/maqu.html","Remote","height=500,width=350,screenX=0,left=0,screenY=0,top=0,directories=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0","orig");
}
function virgile(){
paramstp="screenX=0,left=0,screenY=0,top=0,directories=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0";
virg=window.open('dos/vgi2.html','Virgile',paramstp);
virg.focus();
}
