// Funzione per la determinazione della versione del Browser utilizzato
bName = navigator.appName;
bVer = parseInt(navigator.appVersion);
if      (bName == "Netscape" && bVer == 4) ver = "n4";
else if (bName == "Netscape" && bVer == 3) ver = "n3";
else if (bName == "Netscape" && bVer == 2) ver = "n2";
else if (bName == "Microsoft Internet Explorer" && bVer >= 4) ver = "e4";
else if (bName == "Microsoft Internet Explorer" && bVer >= 2) ver = "e3";

with (document)
{
	if (ver == "n3" || ver == "n4" || ver == "e4")
	{
// Funzioni per i pulsanti sensibili al mouse
		ippoon = new Image(47, 50);
		ippoon.src = "img/ippo_on.gif";
		ippooff = new Image(47, 50);
		ippooff.src = "img/ippo_off.gif";
		
		gingkoon = new Image(47, 50);
		gingkoon.src = "img/gingko_on.gif";
		gingkooff = new Image(47, 50);
		gingkooff.src = "img/gingko_off.gif";

        gelsoon = new Image(47, 50);
		gelsoon.src = "img/gelso_on.gif";
		gelsooff = new Image(47, 50);
		gelsooff.src = "img/gelso_off.gif";

        faggioon = new Image(47, 50);
		faggioon.src = "img/faggio_on.gif";
		faggiooff = new Image(47, 50);
		faggiooff.src = "img/faggio_off.gif";

		aceroon = new Image(47, 50);
		aceroon.src = "img/acero_on.gif";
		acerooff = new Image(47, 50);
		acerooff.src = "img/acero_off.gif";

		magnoon = new Image(47, 50);
		magnoon.src = "img/magno_on.gif";
		magnooff = new Image(47, 50);
		magnooff.src = "img/magno_off.gif";
	}
}

function img_act(imgName)
{
  if (document.images) 
    document[imgName].src = eval(imgName + 'on.src')
}

function img_inact(imgName)
{
  if (document.images)
    document[imgName].src = eval(imgName + 'off.src')
}

