// Copyleft (C) 2008 Giuseppe Bini
// Distributed under the terms of the GNU Library General Public License

browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
version = "unknown";
if(browserName=="Netscape" && browserVer >= 3) ver = "yes";
	else ver = "yes";
	if(ver == "yes")
		{
                homeon = new Image(); homeon.src = "images/hp_home_on.jpg";
                homeoff = new Image(); homeoff.src = "images/hp_home_off.jpg";

				classon = new Image(); classon.src = "images/hp_classifiche_on.jpg";
                classoff = new Image(); classoff.src = "images/hp_classifiche_off.jpg";
				
				preon = new Image(); preon.src = "images/hp_preiscrizione_on.jpg";
                preoff = new Image(); preoff.src = "images/hp_preiscrizione_off.jpg";

                liston = new Image(); liston.src = "images/hp_lista_on.jpg";
                listoff = new Image(); listoff.src = "images/hp_lista_off.jpg";
				
				regon = new Image(); regon.src = "images/hp_regola_on.jpg";
                regoff = new Image(); regoff.src = "images/hp_regola_off.jpg";
				
				arron = new Image(); arron.src = "images/hp_arriva_on.jpg";
                arroff = new Image(); arroff.src = "images/hp_arriva_off.jpg";
				
				pernon = new Image(); pernon.src = "images/hp_notte_on.jpg";
                pernoff = new Image(); pernoff.src = "images/hp_notte_off.jpg";
				
				fotoon = new Image(); fotoon.src = "images/hp_foto_on.jpg";
                fotooff = new Image(); fotooff.src = "images/hp_foto_off.jpg";
				
				sponon = new Image(); sponon.src = "images/hp_sponsor_on.jpg";
                sponoff = new Image(); sponoff.src = "images/hp_sponsor_off.jpg";
				
				campon = new Image(); campon.src = "images/hp_campo_on.jpg";
                campoff = new Image(); campoff.src = "images/hp_campo_off.jpg";
				
				infron = new Image(); infron.src = "images/hp_infra_on.jpg";
                infroff = new Image(); infroff.src = "images/hp_infra_off.jpg";
	    }
        
function img_act(imgName)
{
	if (ver == "yes")
        { imgOn = eval(imgName + "on.src");
                document [imgName].src = imgOn;
        }
}
function img_inact(imgName)
{
	if (ver == "yes")
        { imgOff = eval(imgName + "off.src");
                document [imgName].src = imgOff;
        }
}
