// Dynamic Image Project
// simple element targeting and animation object which provides the core functionality needed in most DHTML applications
// 2000-01-12

// Copyright (C) 2002 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") {
                corsion = new Image(); corsion.src = "img/bt-on.gif";
                corsioff = new Image(); corsioff.src = "img/bt-blink.gif";

				itaon = new Image(); itaon.src = "img/bt-on.gif";
                itaoff = new Image(); itaoff.src = "img/bt-blink.gif";

                newson = new Image(); newson.src = "img/bt-on.gif";
                newsoff = new Image(); newsoff.src = "img/bt-blink.gif";

                meteoon = new Image(); meteoon.src = "img/bt-on.gif";
                meteooff = new Image(); meteooff.src = "img/bt-off.gif";

                parolon = new Image(); parolon.src = "img/bt-on.gif";
                paroloff = new Image(); paroloff.src = "img/bt-off.gif";
				
                maton = new Image(); maton.src = "img/bt-on.gif";
                matoff = new Image(); matoff.src = "img/bt-off.gif";

                faqon = new Image(); faqon.src = "img/bt-on.gif";
                faqoff = new Image(); faqoff.src = "img/bt-off.gif";

                doveon = new Image(); doveon.src = "img/bt-on.gif";
                doveoff = new Image(); doveoff.src = "img/bt-off.gif";

                photoon = new Image(); photoon.src = "img/bt-on.gif";
                photooff = new Image(); photooff.src = "img/bt-off.gif";

                apvton = new Image(); apvton.src = "img/bt-on.gif";
                apvtoff = new Image(); apvtoff.src = "img/bt-off.gif";

                linkson = new Image(); linkson.src = "img/bt-on.gif";
                linksoff = new Image(); linksoff.src = "img/bt-off.gif";
				
                musicon = new Image(); musicon.src = "img/bt-on.gif";
                musicoff = new Image(); musicoff.src = "img/bt-off.gif";

                contaton = new Image(); contaton.src = "img/bt-on.gif";
                contatoff = new Image(); contatoff.src = "img/bt-off.gif";
				
                gioiaon = new Image(); gioiaon.src = "img/bt-on.gif";
                gioiaoff = new Image(); gioiaoff.src = "img/bt-off.gif";
				
                deltaon = new Image(); deltaon.src = "img/bt-on.gif";
                deltaoff = new Image(); deltaoff.src = "img/bt-off.gif";
				
                ierion = new Image(); ierion.src = "img/bt-on.gif";
                ierioff = new Image(); ierioff.src = "img/bt-blink.gif";
												
				tipson = new Image(); tipson.src = "img/bt-on.gif";
                tipsoff = new Image(); tipsoff.src = "img/bt-off.gif";
				
				proveon = new Image(); proveon.src = "img/bt-on.gif";
                proveoff = new Image(); proveoff.src = "img/bt-off.gif";

	     }
        
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;
        }
}
