var OS,browser,version,total,thestring;
var detect = navigator.userAgent.toLowerCase();
var parVisible=null;
var paragraphes=new Array();


if (checkIt('konqueror'))
{
	browser = "Konqueror";
	OS = "Linux";
}
else if (checkIt('omniweb')) browser = ""
else if (checkIt('opera')) browser = "Opera"
else if (checkIt('webtv')) browser = "WebTV";
else if (checkIt('icab')) browser = "iCab"
else if (checkIt('msie')) browser = "IE"
else if (!checkIt('compatible'))
{
	version = detect.charAt(8);
	if (version==4 || version==3)
		browser = "Netscape4";
	else if (version==5)
		browser = "Netscape6";
}
else browser = "inconnu";

if (!version) version = detect.charAt(place + thestring.length);

if (!OS)
{
	if (checkIt('linux')) OS = "Linux";
	else if (checkIt('x11')) OS = "Unix";
	else if (checkIt('mac')) OS = "Mac";
	else if (checkIt('win')) OS = "Windows";
	else OS = "inconnu";
}

function checkIt(string)
{
	place = detect.indexOf(string) + 1;
	thestring = string;
	return place;
}

function init(){
	for (var i=0;i<=nb_par;i++) 
	{  
		paragraphes[i]=new paragraphe('paragraphe'+i);
	}
}

function paragraphe(nom) {

 this.nom=nom;
 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];
	
  }
  else if (document.getElementById)
  {
  	this.obj=document.getElementById(nom);
   	this.style=document.getElementById(nom).style;
  }
}

function cache_tout() {

	if (parVisible!=null) {
		parVisible.style.visibility="hidden";		
		parVisible=null;
	}
}

//agence : nom du layer
function contacto(par)
 {
	cache_tout();
	par.style.visibility="visible";
	parVisible=par;	
}




