// JavaScript Document
var decompte = false;

function fermer(calque)
{
	decompte = true;
	setTimeout("cacher('"+calque+"')",1000);
}

function cacher(calque)
{
	if (decompte==true)
	{
		decompte = false;
		if ((obj=MM_findObj(calque))!=null)
		{
    		if (obj.style)obj=obj.style;
			obj.visibility='hidden';
		}
	}
}

function popup(id,w,h,langue)
{
	x = (screen.availWidth-w)/2;
	y = (screen.availHeight-h)/2;
	fenetre = window.open("../popup.php?id="+id+"&w="+w+"&h="+h+"&langue="+langue,"photo"+id,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width="+w+",height="+h);
	fenetre.moveTo(x,y);
	fenetre.focus();
}

function article(cible) {
	obj = MM_findObj(cible);
	if (obj.style.display=="block") obj.style.display="none";
	else obj.style.display="block";
}

function opti() {
	var w=250;
	var h=180;
	x = (screen.availWidth-w)/2;
	y = (screen.availHeight-h)/2;
	fenetre = window.open("optienergie.php","opti","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width="+w+",height="+h);
	fenetre.moveTo(x,y);
	fenetre.focus();
}