var popVisible = false;var layerActif = "";// the functions in this file require the supplementary library lib.js// These defaults should be changed the way it best fits your sitevar _POPUP_FEATURES = '';function raw_popup(url, target, features) {    // pops up a window containing url optionally named target, optionally having features    if (isUndefined(features)) features = _POPUP_FEATURES;    if (isUndefined(target  )) target   = '_blank';    var theWindow = window.open(url, target, features);    theWindow.focus();    return theWindow;}function link_popup(src, features) {    // to be used in an html event handler as in: <a href="..." onclick="link_popup(this,...)" ...    // pops up a window grabbing the url from the event source's href    return raw_popup(src.getAttribute('href'), src.getAttribute('target') || '_blank', features);}function event_popup(e) {    // to be passed as an event listener    // pops up a window grabbing the url from the event source's href    link_popup(e.currentTarget);    e.preventDefault();}function event_popup_features(features) {    // generates an event listener similar to event_popup, but allowing window features    return function(e) { link_popup(e.currentTarget, features); e.preventDefault() }}function event_showDhtml(e){//alert(e.currentTarget.getAttribute('target'))	if(popVisible) event_hideDhtml()	popVisible = true;	layerActif = e.currentTarget.getAttribute('rel');		var DivRef = document.getElementById(layerActif);	var IfrRef = document.getElementById('DivShim');	//alert(DivRef)	if(DivRef != null){		//----		DivRef.style.visibility = "visible";		DivRef.style.display = "block";		//----		IfrRef.style.width = DivRef.offsetWidth;		IfrRef.style.height = DivRef.offsetHeight;		IfrRef.style.top = DivRef.style.top;		IfrRef.style.left = DivRef.style.left;		IfrRef.style.zIndex = DivRef.style.zIndex - 1;		IfrRef.style.visibility = "visible";		IfrRef.style.display = "block";	}}function event_hideDhtml(){	var DivRef = document.getElementById(layerActif);	var IfrRef = document.getElementById('DivShim');		//----	DivRef.style.visibility = "hidden";	DivRef.style.display = "none";	//----	IfrRef.style.display = "none";		popVisible = false;	layerActif = "";	}function event_popDhtml(e) {	if(e.currentTarget.getAttribute('target').indexOf("|") != -1){		// Gérer comme popUp DHTML		event_iframe(e.currentTarget);	} else {		// Gérer comme popUp Window		link_popup(e.currentTarget);	}	// Retire le comportement par défault de l'hyperlien	e.preventDefault();}/*  ___ Hack pour faire suivre le lien dans Netscape 4 ___  */function lk(){	if(document.layers) {		return true;	} else {		return false;		}}