function montre(id, act) {
if(id==document.getElementById("idsel").value && act == "clik")
{cache(id); 
colorclear(id);}
else{
if (document.getElementById) {
document.getElementById(id).style.display="block";
document.getElementById("idsel").value=id;
} else if (document.all) {
document.all[id].style.display="block";
document.all["idsel"].style.value=id;
} else if (document.layers) {
document.layers[id].display="block";
document.layers["idsel"].value=id;
}}
}

function cache(id) {
if(id==document.getElementById("idsel").value)
{document.getElementById("idsel").value="";}
if (document.getElementById) {
document.getElementById(id).style.display="none";
} else if (document.all) {
document.all[id].style.display="none";
} else if (document.layers) {
document.layers[id].display="none";
}
}

function colorclear(id) {
document.getElementById("menu-general1").style.background="url(btimg/menu-gauche.png)";
document.getElementById("menu-general1").style.backgroundColor="transparent";
document.getElementById("menu-general2").style.background="url(btimg/menu-centre.png)";
document.getElementById("menu-general3").style.background="url(btimg/menu-droit.png)";
document.getElementById("menu-general3").style.backgroundColor="transparent";
colorOv(id, "dc"); 
}

function color() {
document.getElementById("color").value="#ffb16c";
document.getElementById("color2").value="#ffb16c";
document.getElementById("menu-general1").style.background="none";
document.getElementById("menu-general1").style.backgroundColor="#ffb16c";
document.getElementById("menu-general2").style.background="url(btimg/menu-centre.png)";
document.getElementById("menu-general3").style.background="url(btimg/menu-droit.png)";
document.getElementById("menu-general3").style.backgroundColor="#ffa14e";
}
function color2() {
document.getElementById("color").value="#7ebdff";
document.getElementById("color2").value="#7ebdff";
document.getElementById("menu-general2").style.background="none";
document.getElementById("menu-general2").style.backgroundColor="#7ebdff";
document.getElementById("menu-general1").style.background="url(btimg/menu-gauche.png)";
document.getElementById("menu-general1").style.backgroundColor="#63afff";
document.getElementById("menu-general3").style.background="url(btimg/menu-droit.png)";
document.getElementById("menu-general3").style.backgroundColor="#63afff";
}

function color3() {
document.getElementById("color").value="#ff90eb";
document.getElementById("color2").value="#ff90eb";
document.getElementById("menu-general3").style.background="none";
document.getElementById("menu-general3").style.backgroundColor="#ff90eb";
document.getElementById("menu-general1").style.background="url(btimg/menu-gauche.png)";
document.getElementById("menu-general1").style.backgroundColor="#f678df";
document.getElementById("menu-general2").style.background="url(btimg/menu-centre.png)";
}

function colorOv(id, act) {
if(act=="dc")
{var nb= id.length-1;
var id= "menu-general" + id.charAt(nb);}
var color = document.getElementById(id).style.background;
var color2 = document.getElementById(id).style.backgroundColor;
document.getElementById("color").value=color;
document.getElementById("color2").value=color2;
document.getElementById(id).style.background="none";
if(id=="menu-general1"){
document.getElementById(id).style.backgroundColor="#ffb16c";}
else{if(id=="menu-general2"){
document.getElementById(id).style.backgroundColor="#7ebdff";}
else{if(id=="menu-general3"){
document.getElementById(id).style.backgroundColor="#ff90eb";}}}
}

function colorOu(id) {
var color = document.getElementById("color").value;
var color2 = document.getElementById("color2").value;
document.getElementById(id).style.background=color;
document.getElementById(id).style.backgroundColor=color2;
}

function colorSous(id) {
document.getElementById(id).style.color="#666666";
}

