// JavaScript Document
function allumeReal(idReal)
{
	document.getElementById("lien_"+idReal).style.color = "FF00FF";
}
function eteintReal(idReal)
{
	document.getElementById("lien_"+idReal).style.color = "333333";
}
function masqueClient(idClient)
{
	for (i=1;i<catArray.length;i++)
	{
		for (j=1;j<catArray[i].length;j++)
		{
			if (catArray[i][j][0] == idClient)
			{
				if (catArray[i][j][1] != 0)
				{
					document.getElementById(catArray[i][j][0]+"_cache_"+catArray[i][j][1]).style.visibility = "visible";
				}
			}
		}
	}
}
function allumeClient(idClient)
{
	for (i=1;i<catArray.length;i++)
	{
		for (j=1;j<catArray[i].length;j++)
		{
			if (catArray[i][j][0] == idClient)
			{
				if ( (catArray[i][j][1] != 0) && (catArray[i][j][4] != 1) )
				{
					document.getElementById(catArray[i][j][0]+"_cache_"+catArray[i][j][1]).style.visibility = "hidden";
				}
			}
		}
	}
}

function allumeCat(idClient,idCat,vuCat)
{
	document.getElementById(idClient+"_cache_"+idCat).style.visibility = "visible";
}

function eteintCat(idClient,idCat,vuCat)
{
	if (vuCat == 0)
	{
		document.getElementById(idClient+"_cache_"+idCat).style.visibility = "hidden";
	}
}


function allumeMenu(idClient)
{
	document.getElementById("lien_"+idClient).style.color = "FF00FF";
}
function eteintMenu(idClient)
{
	document.getElementById("lien_"+idClient).style.color = "333333";
}
function largeur_fenetre()
{
	if (window.innerWidth) return window.innerWidth;
	else if (document.body && document.body.offsetWidth) return document.body.offsetWidth;
	else return 0;
}

function hauteur_fenetre()
{
	if (window.innerHeight) return window.innerHeight  ;
	else if (document.body && document.body.offsetHeight) return document.body.offsetHeight;
	else return 0;
}


function reconstruction()
{
	if (largeur != largeur_fenetre() || hauteur != hauteur_fenetre())
	window.history.go(0);
}

/*initialiser la surveillance de Netscape*/
if(!window.largeur && window.innerWidth)
{
	window.onresize = reconstruction;
	largeur = largeur_fenetre();
	hauteur = hauteur_fenetre();
}
