browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);

        if (browserName == "Netscape" && browserVer >= 3) version = "n3";
        else version = "n2";
        if (browserName == "Microsoft Internet Explorer" && browserVer >= 4) version = "n3";

        if (version == "n3")         {

        toc1on = new Image;
        toc1on.src = "kuvat/netusivu-.jpg";

        toc2on = new Image;
        toc2on.src = "kuvat/nkierros-.jpg";

        toc3on = new Image;
        toc3on.src = "kuvat/nyhteys-.jpg";
        
		toc4on = new Image;
	      toc4on.src = "kuvat/nmain-.jpg";

		toc5on = new Image;
	      toc5on.src = "kuvat/ntour-.jpg";

		toc6on = new Image;
	      toc6on.src = "kuvat/ncontact-.jpg";



        toc1off = new Image;
        toc1off.src = "kuvat/netusivu.jpg";
        
	  toc2off = new Image;
        toc2off.src = "kuvat/nkierros.jpg";
        
	  toc3off = new Image;
        toc3off.src = "kuvat/nyhteys.jpg";

		toc4off = new Image;
	      toc4off.src = "kuvat/nmain.jpg";
        
		toc5off = new Image;
	      toc5off.src = "kuvat/ntour.jpg";
        
		toc6off = new Image;
	      toc6off.src = "kuvat/ncontact.jpg";
}

function img_act(imgName) {
        if (version == "n3") {
        imgOn = eval(imgName + "on.src");
        document [imgName].src = imgOn;
        }
}

function img_inact(imgName) {
        if (version == "n3") {
        imgOff = eval(imgName + "off.src");
        document [imgName].src = imgOff;
        }
}


