﻿bname = navigator.appName;

bver = parseInt(navigator.appVersion);

if ((bname == "Netscape" && bver >= 3) || (bname == "Microsoft Internet Explorer" && bver >= 4)) br ="n3";
else br = "n2"

if ( br == "n3" ) {

homeon = new Image();
homeon.src = "img/t_home_on.gif";
homeoff = new Image();
homeoff.src = "img/t_home_off.gif";

accession = new Image();
accession.src = "img/t_accessi_on.gif";
accessioff = new Image();
accessioff.src = "img/t_accessi_off.gif";

attivitaon = new Image();
attivitaon.src = "img/t_attivita_on.gif";
attivitaoff = new Image();
attivitaoff.src = "img/t_attivita_off.gif";

rifugioon = new Image();
rifugioon.src = "img/t_rifugio_on.gif";
rifugiooff = new Image();
rifugiooff.src = "img/t_rifugio_off.gif";

cennistoron = new Image();
cennistoron.src = "img/t_cennistor_on.gif";
cennistoroff = new Image();
cennistoroff.src = "img/t_cennistor_off.gif";

linkson = new Image();
linkson.src = "img/t_links_on.gif";
linksoff = new Image();
linksoff.src = "img/t_links_off.gif";

comeraggon = new Image();
comeraggon.src = "img/t_comeragg_on.gif";
comeraggoff = new Image();
comeraggoff.src = "img/t_comeragg_off.gif";

immaginion = new Image();
immaginion.src = "img/t_immagini_on.gif";
immaginioff = new Image();
immaginioff.src = "img/t_immagini_off.gif";

}



function accendi(nome) {

if ( br == "n3" ) {

document[nome].src = eval(nome + "on.src");

        }

}



function spegni(nome) {

if ( br == "n3" ) {

document[nome].src = eval(nome + "off.src");

        }

}
// -->

