// Show/Hide archive et date (si nouvelle (hide), si communique (show))// Sylvie - egzakt.com// Param	obj		: groupe d'objets//			etat	: enum('block','none','inline) - valeur du diplay en css//function ch_etat_id (obj,etat) {	if (document.getElementById(obj)) {		document.getElementById(obj).style.display = etat;	} }// Fonction d'ouverture de fenetre popup centree// Simon - egzakt.com// 2004-10-28//function egz_openwindow(lien,cible,w,h) {	var _win;	_win = window.open(lien,cible,'width=' + w + ',height=' + h + ',top=' + (screen.height - 400)/2 + 'left='+ (screen.width - 400)/2);	_win.moveTo((screen.width - w)/2,(screen.height - h)/2);	_win.focus();	return _win;}// Fonction d'ouverture de fenetre popup centree// Simon - egzakt.com// 2004-10-28//function egz_openwindow_param(lien,cible,w,h,param) {	var _win;	_win = window.open(lien,cible,param);	_win.moveTo((screen.width - w)/2,(screen.height - h)/2);	_win.focus();	return _win;}// Fonction de show/hide d'un div// Emilie - egzakt.com// 2005-02-01// Param	objet	: id du div// Modification : Simonfunction showhide(objet,total,path,id,image) {	for (i=1;i<=total;i++) {		if (objet != "id"+i) {			if (document.getElementById("id"+i).style.display == 'block') {				document.getElementById("id"+i).style.display = 'none';			}			if (document.getElementById("img_id"+i)) {				if (image!="")					document.getElementById("img_id"+i).src = path + image + ".gif";				document.getElementById("qr"+i).className = "qr";			}		}	}	if (document.getElementById(objet).style.display == 'block') {		document.getElementById(objet).style.display = 'none';		document.getElementById(objet).style.visibility = 'hidden';		if ((document.getElementById(id)) && (image!=""))			document.getElementById(id).src = path + image + ".gif";	}	else {		document.getElementById(objet).style.visibility = 'visible';		document.getElementById(objet).style.display = 'block';		if ((document.getElementById(id)) && (image!=""))			document.getElementById(id).src = path + image + "_on.gif";	}	return true;}function moveOn(imgNameA,imgA) {	document.images[imgNameA].src= imgA;}function moveOut(imgNameA,imgA) {	document.images[imgNameA].src= imgA;}// Fonctions d'evenements pour capsulesfunction fqrover(obj,idetat) {	obj.className = 'qrover';	return true;}function fqrout(obj,idetat) {	if (document.getElementById(idetat).style.display == 'block') {		obj.className = 'qrover';	} else {		obj.className = 'qr';	}	return true;}function fqrclick(obj,idetat,total,chemin,imgid,imgnom) {	showhide(idetat,total,chemin,imgid,imgnom);	fqrover(obj,idetat);	return true;}