function menuPos(panel) {

if (parseInt(navigator.appVersion)>3) {
 if (navigator.appName=="Netscape") {
  w = window.innerWidth;
 }
 if (navigator.appName.indexOf("Microsoft")!=-1) {
  w = document.body.offsetWidth;
 }
}

var basePos = eval(w)/2 - 389;
// Ajustement...
if (w >= 813) {
	basePos = basePos - 4;
}
else {
	basePos = basePos + (-w/2 + 402);
}

var panelPos = new Array('7','103','188');

document.getElementById('panel'+panel).style.left = eval(basePos) + eval(panelPos[panel]) + "px";
}
function showMenu(panel) {
	obj = document.getElementById('panel'+panel).style;
	obj.visibility = "visible";
}
function hideMenus() {
	hideTimer=setTimeout("hideAll()",500);
}
function stopTimer() {
	if (typeof(hideTimer) != 'undefined') {
		clearTimeout(hideTimer);
	}
}
function hideAll() {
	panelArray = new Array('panel0','panel1','panel2');
	for (var i=0; i<panelArray.length; i++) {
		obj = document.getElementById(panelArray[i]).style;
		obj.visibility = "hidden";
	}
	for (var j=0; j<3; j++) {
		switchImage(j,1);
	}
}
function switchImage(panel,action) {
	butArray = new Array('excel','products','contact');
	if (action == 0) {
		document.getElementById('menu'+panel).background = "../images/menu_"+butArray[panel]+"_over.jpg";
	}
	else {
		document.getElementById('menu'+panel).background = "../images/menu_"+butArray[panel]+".jpg";
	}
}
