// Dynamic Image Project
// simple element targeting and animation object which provides the core functionality needed in most DHTML applications
// 2000-01-12

// Copyright (C) 2001 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") {
                ph1on = new Image(); ph1on.src = "img/1-on.jpg";
                ph1off = new Image(); ph1off.src = "img/1-off.jpg";

				ph2on = new Image(); ph2on.src = "img/2-on.jpg";
                ph2off = new Image(); ph2off.src = "img/2-off.jpg";

                ph3on = new Image(); ph3on.src = "img/3-on.jpg";
                ph3off = new Image(); ph3off.src = "img/3-off.jpg";

                ph4on = new Image(); ph4on.src = "img/4-on.jpg";
                ph4off = new Image(); ph4off.src = "img/4-off.jpg";

                ph5on = new Image(); ph5on.src = "img/5-on.jpg";
                ph5off = new Image(); ph5off.src = "img/5-off.jpg";
				
                ph6on = new Image(); ph6on.src = "img/6-on.jpg";
                ph6off = new Image(); ph6off.src = "img/6-off.jpg";
				
				ph7on = new Image(); ph7on.src = "img/7-on.jpg";
                ph7off = new Image(); ph7off.src = "img/7-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;
        }
}
