var isLoaded = false;

function showLayer(nom) {
	if (!(isLoaded)) return;
    var __obj;
    if (document.getElementById)
        __obj=document.getElementById(nom).style;
    else if (document.layers)
        __obj=document.layers[nom];
    else if (document.all)
        __obj=document.all[nom].style;
    if (__obj)
        __obj.visibility="inherit";
}

function hideLayer(nom) {
	if (!(isLoaded)) return;
    var __obj;
    if (document.getElementById)
        __obj=document.getElementById(nom).style;
    else if (document.layers)
        __obj=document.layers[nom];
    else if (document.all)
        __obj=document.all[nom].style;
    if (__obj)
        __obj.visibility="hidden";
        __obj.zindex="-1";
}

var compteur;
var tabLayers = new Array("news","u-flex","media","distrib","contact");
var tabsLayers = new Array("sub1","sub2","sub3");

var tips= new Array("tip1","tip2","tip3","tip4","tip5","tip6");

function nextback() {
    for (i=0;i<tips.length;i++) {
        hideLayer(tips[i]);
    }
}


function hideAll() {
    for (i=0;i<tabLayers.length;i++) {
        hideLayer(tabLayers[i]);
    }
    for (i=0;i<tabsLayers.length;i++) {
        hideLayer(tabsLayers[i]);
    }
}

function hideAll2() {
    for (i=0;i<tabsLayers.length;i++) {
        hideLayer(tabsLayers[i]);
    }
}

function menuOff() {
    compteur = setTimeout("hideAll()",700);
}

function menuOn(nom) {
    clearTimeout(compteur);
    showLayer(nom);
}

function tipOn(nom) {
    showLayer(nom);
}