function stopErrors(){return true;}
window.onerror=stopErrors;
var compNN4, compIE, compNN6;
var coll = "";
var coll2 = "";
var styleObj = "";
var alpha;

if (document.layers) compNN4 = true;
	else if (document.all) {compIE = true; coll = "all."; styleObj = ".style";}
		else if (document.getElementById) {compNN6 = true; coll = 'getElementById(\''; coll2 = '\')'; styleObj = ".style";}
			else;

function getObject(obj) {
var theObj;
if (typeof obj == "string") {theObj = eval("document." + coll + obj + coll2 + styleObj); }
else {theObj = obj;}
return theObj;
}

function show(obj) {
var theObj = getObject(obj);
theObj.visibility = "visible";
}

function hide(obj) {
var theObj = getObject(obj);
theObj.visibility = "hidden";
}

function HideLayerBuffer(a){

A = a;
alpha = window.setTimeout('hide(A)', 50)
}

function MenuShow(b){
if (document.loaded){
	B = b;
	show(listOfLayers[B]);
	for (i=0;i<listOfLayers.length;i++) {if (i!=B) hide(listOfLayers[i])}
	}
else ;
}

var listOfLayers = new Array('submenu2', 'submenu3', 'submenu4');

var bOn, bOff;
if (document.images) {
bOn=new Array();
bOff=new Array();
bOn[1]=new Image();
bOn[1].src= "../images/accueilb.gif";
bOff[1]=new Image();
bOff[1].src= "../images/accueil.gif";
bOn[2]=new Image();
bOn[2].src= "../images/nouveautesb.gif";
bOff[2]=new Image();
bOff[2].src= "../images/nouveautes.gif";
bOn[3]=new Image();
bOn[3].src= "../images/brasserieb.gif";
bOff[3]=new Image();
bOff[3].src= "../images/brasserie.gif";
bOn[4]=new Image();
bOn[4].src= "../images/produitsb.gif";
bOff[4]=new Image();
bOff[4].src= "../images/produits.gif";
bOn[5]=new Image();
bOn[5].src= "../images/divertissementsb.gif";
bOff[5]=new Image();
bOff[5].src= "../images/divertissements.gif";
bOn[6]=new Image();
bOn[6].src= "../images/biere101b.gif";
bOff[6]=new Image();
bOff[6].src= "../images/biere101.gif";
}

function helpWindow(myurl){HelpWindow = window.open(myurl,'HelpWindow','width=300,height=400,screenX=30,screenY=30,left=30,top=30,scrollbars,resizable');}

function helpWindow2(myurl){HelpWindow = window.open(myurl,'HelpWindow','width=620,height=400,screenX=30,screenY=30,left=30,top=30,scrollbars,resizable');}

