
id_accendi = ""
id_pulsante = ""
id_accendi_alto = ""
ric_id_pulsante = ""
ric_id_pulsante_sec = ""
ric_id_pulsante_alto = ""

function dinamicmenuon() {


if (id_pulsante!="") {
document.getElementById("menulaterale").style.zIndex="3"
document.getElementById("contenuto").style.zIndex="2"
if (id_pulsante!=ric_id_pulsante){
document.getElementById(id_pulsante).style.background=" url('imm/prova2.jpg')"
id_pulsante2 = "t" + id_pulsante
document.getElementById(id_pulsante2).style.visibility="visible"
}
}

if (ric_id_pulsante!="" && ric_id_pulsante!=id_pulsante) {
document.getElementById(ric_id_pulsante).style.background=" url('imm/prova.jpg')"
ric_id_pulsante2 = "t" + ric_id_pulsante
document.getElementById(ric_id_pulsante2).style.visibility="hidden"
}
ric_id_pulsante = id_pulsante

}





function riordinamenu() {
if (ric_id_pulsante!="") {
document.getElementById(ric_id_pulsante).style.background=" url('imm/prova.jpg')"
document.getElementById("menulaterale").style.zIndex="2"
document.getElementById("contenuto").style.zIndex="3"
ric_id_pulsante2 = "t" + ric_id_pulsante
document.getElementById(ric_id_pulsante2).style.visibility="hidden"
id_pulsante = ""
ric_id_pulsante = ""
}
}




function accendi() {
document.getElementById(id_accendi).style.background=" url('imm/prova2.jpg')"
	if (ric_id_pulsante_sec!="" && id_accendi!=ric_id_pulsante_sec)
	{
	document.getElementById(ric_id_pulsante_sec).style.background=" url('imm/prova.jpg')"
	}
ric_id_pulsante_sec = id_accendi
}






function accendi_menu_alto() {
document.getElementById(id_accendi_alto).style.background=" url('imm/puls_alto2.jpg') no-repeat"
	if (ric_id_pulsante_alto!="" && id_accendi_alto!=ric_id_pulsante_alto)
	{
	document.getElementById(ric_id_pulsante_alto).style.background=" url('imm/puls_alto.jpg') no-repeat"
	}
ric_id_pulsante_alto = id_accendi_alto
}

function spengi_alto() {

	if (ric_id_pulsante_alto!="")
	{
	document.getElementById(ric_id_pulsante_alto).style.background=" url('imm/puls_alto.jpg') no-repeat"
	ric_id_pulsante_alto = ""
	}
}

