// 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 ouverture / fermeture de div pour la boutique// Emilie function showhide(objet,fleche,image_top,image_bottom,background_produit) {	if (document.getElementById(objet).style.display == 'block') {		document.getElementById(objet).style.display = 'none'		document.getElementById(objet).style.visibility = 'hidden'		document.getElementById(fleche).src = '/images/graphiques/fleche_boutique.gif'		document.getElementById(image_top).src = '/images/tuiles/top_produit.gif'		document.getElementById(image_bottom).src = '/images/tuiles/bottom_produit.gif'		document.getElementById(background_produit).style.backgroundColor = '#E2EFF2'	}	else {		document.getElementById(objet).style.display = 'block'		document.getElementById(objet).style.visibility = 'visible'		document.getElementById(fleche).src = '/images/graphiques/fleche_boutique_ouvert.gif'		document.getElementById(image_top).src = '/images/tuiles/top_sous_produit.gif'		document.getElementById(image_bottom).src = '/images/tuiles/bottom_sous_produit.gif'		document.getElementById(background_produit).style.backgroundColor = '#ECF4F6'	}}// Fonction bulle// Emilie  - egzakt.com// Basee sur la fonction de Patfunction bulle(x,y,texte) {		var largeur_box = 150;		var fin_box = x + largeur_box;	var spacer = 20;				if (fin_box > 748) {		new_x = x - largeur_box - spacer;	}	else {		new_x = x + spacer;	}			document.getElementById("bulle").style.visibility = "visible";	document.getElementById("bulle").style.left = new_x + "px";	document.getElementById("bulle").style.top = y + "px";	document.getElementById("bulle").innerHTML = texte;}function cacher_bulle() {	document.getElementById("bulle").style.visibility = "hidden";}// Fonction ouverture / fermeture de div simple// Emilie function showhide_simple(objet) {	if (document.getElementById(objet).style.display == 'block') {		document.getElementById(objet).style.display = 'none';		document.getElementById(objet).style.visibility = 'hidden';	}	else {		document.getElementById(objet).style.display = 'block';		document.getElementById(objet).style.visibility = 'visible';			}}// unobtrusive JS// Philippe - egzakt.comfunction setupOnglets(_id_onglet, _alert){  if(document.getElementById && document.getElementsByTagName){    if(document.getElementById(_id_onglet)){      var onglets = document.getElementById(_id_onglet);      var links = onglets.getElementsByTagName('a');      for( var i=1; i < links.length; i++ ){        links[i].onclick = function(){			alert(_alert);			return false;        };      }    }  }}
