<!--
var w3c = document.getElementById;
var ns;
var ie;
if(!w3c) {
	ns = (document.layers) ? true : false;
	ie = (document.all) ? true : false;
}
var timerID;
function getImagePageLeft(img) {
	if(ie || w3c) {
		var x, obj;
		x = 0;
		obj = img;
		while (obj.offsetParent != null) {
			x += obj.offsetLeft;
			obj = obj.offsetParent;
		}
		x += obj.offsetLeft;
		return x;
	}
	if(w3c) return img.offsetLeft;
	if(ns) return img.x;
	return -1;
}
function hideAllMenus() {
	SetStyle('scrollmenu1','visibility','hidden');
	//SetStyle('scrollmenu2','visibility','hidden');
}
function SetStyle(obj,proper,val){
	var objStyle;
	if (w3c)	objStyle = document.getElementById(obj).style;
	else if (ie)	objStyle = document.all[obj].style;
	else if (ns)	objStyle = document.layers[obj];
	eval('objStyle.' + proper + ' = val;');
}
function showMenu(menuId, eventObj ,posId) {
	//hideAllMenus();
	//var newLeft = ( getImagePageLeft(document.images[posId]) + 10) + 'px';
	//SetStyle(menuId,'left',newLeft);
	SetStyle(menuId,'visibility','visible');
	clearTimeout(timerID);
	timerID = setTimeout('hideAllMenus()',5000);
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function change(sel,restore){
	//alert("spip.php?page="+sel.options[sel.selectedIndex].value);
	window.location="spip.php?page="+sel.options[sel.selectedIndex].value;
}

function caddy(e,restore){
	if (e.checked) {
		//alert(e.value);
		date=new Date;
		date.setMonth(date.getMonth()+1);
		liste_caddy=LireCookie("brxlbravo_caddy");
		if (liste_caddy!=null) {
		
			var reg=new RegExp("[ ,;]+", "g");
			var tableau=liste_caddy.split(reg);
			var id_existe=0;
			for (var i=0; i<tableau.length; i++) {
				if (tableau[i]==e.value) {
					id_existe=1;
				}
			}
			if (id_existe==0) {
				liste_caddy += e.value+", ";
				EcrireCookie('brxlbravo_caddy',liste_caddy,date);
			}
		}else {
			liste_caddy = e.value+", ";
			EcrireCookie('brxlbravo_caddy',liste_caddy,date);
		}
	}
}

function remove_caddy(e,restore){
	date=new Date;
	date.setMonth(date.getMonth()+1);
	liste_caddy=LireCookie("brxlbravo_caddy");
	if (liste_caddy!=null) {
		var reg=new RegExp("[ ,;]+", "g");
		var tableau=liste_caddy.split(reg);
		liste_caddy="";
		for (var i=0; i<tableau.length; i++) {
			if (tableau[i]==e.value) {
			
			}else {
				liste_caddy += tableau[i]+", ";
			}
		}
		EcrireCookie('brxlbravo_caddy',liste_caddy,date);
	}
	var toto = window.location.href;
	if (toto.match('_fr')) {
		window.location.replace("spip.php?page=caddy_fr");
	}else if(toto.match('_en')) {
		window.location.replace("spip.php?page=caddy_en");
	}else if(toto.match('_nl')) {
		window.location.replace("spip.php?page=caddy_nl");
	}
}

function EcrireCookie(nom, valeur) {
	var argv=EcrireCookie.arguments;
	var argc=EcrireCookie.arguments.length;
	var expires=(argc > 2) ? argv[2] : null;
	var path=(argc > 3) ? argv[3] : null;
	var domain=(argc > 4) ? argv[4] : null;
	var secure=(argc > 5) ? argv[5] : false;
	document.cookie=nom+"="+escape(valeur)+
	((expires==null) ? "" : ("; expires="+expires.toGMTString()))+
	((path==null) ? "" : ("; path="+path))+
	((domain==null) ? "" : ("; domain="+domain))+
	((secure==true) ? "; secure" : "");
}

function getCookieVal(offset) {
	var endstr=document.cookie.indexOf (";", offset);
	if (endstr==-1) endstr=document.cookie.length;
	return unescape(document.cookie.substring(offset, endstr));
}

function LireCookie(nom) {
	var arg=nom+"=";
	var alen=arg.length;
	var clen=document.cookie.length;
	var i=0;
	while (i<clen) {
		var j=i+alen;
		if (document.cookie.substring(i, j)==arg) return getCookieVal(j);
		i=document.cookie.indexOf(" ",i)+1;
		if (i==0) break;
	}
	return null;
}
-->