
//makes sidebar titles popup
function onLoad()
	{
 	browserName = navigator.appName;
 	browserVer = parseInt(navigator.appVersion);

 	userAgent = navigator.userAgent;
   	start = userAgent.indexOf("(");
   	end = userAgent.indexOf(";");
   	platform= userAgent.substring(start +1,end);

        if (browserName == "Netscape" && browserVer >= 3) version = "n3";
        else version = "n2";
        if (browserName == "Microsoft Internet Explorer" && browserVer >= 4) version = "n3";

        if ((version == "n3"))
		{
			// ON Button for MAIN MENU			
        	toc1on = new Image();
        	toc1on.src ="images/pcb_20_2.jpg";
        	toc2on = new Image();
        	toc2on.src ="images/pcb_22_2.jpg";
        	toc3on = new Image();
        	toc3on.src = "images/pcb_24_2.jpg";
        	toc4on = new Image();
        	toc4on.src = "images/pcb_26_2.jpg";
        	toc5on = new Image();
        	toc5on.src = "images/pcb_28_2.jpg";			
        	toc6on = new Image();
        	toc6on.src = "images/pcb_30_2.jpg";						
			// ON Button for SPECS MENU
        	//toc5on = new Image();
        	//toc5on.src ="images/button_tech_b.gif";
        	//toc6on = new Image();
        	//toc6on.src ="images/button_views_b.gif";
        	//toc7on = new Image();
        	//toc7on.src = "images/button_high_b.gif";			
			// OFF Button for Upper Main Menu
        	//toc8on = new Image();
        	//toc8on.src ="images/default_02_b.jpg";
        	//toc9on = new Image();
        	//toc9on.src ="images/default_03_b.jpg";
        	//toc10on = new Image();
        	//toc10on.src ="images/default_04_b.jpg";								
			
			
			// OFF Button for MAIN MENU
        	toc1off = new Image();
        	toc1off.src = "images/pcb_20.jpg";
        	toc2off = new Image();
        	toc2off.src = "images/pcb_22.jpg";
        	toc3off = new Image();
        	toc3off.src = "images/pcb_24.jpg";
        	toc4off = new Image();
        	toc4off.src = "images/pcb_26.jpg";
        	toc5off = new Image();
        	toc5off.src = "images/pcb_28.jpg";
        	toc6off = new Image();
        	toc6off.src = "images/pcb_30.jpg";			
			// OFF Button for SPECS MENU
        	//toc5off = new Image();
        	//toc5off.src ="images/button_tech.gif";
        	//toc6off = new Image();
        	//toc6off.src ="images/button_views.gif";
        	//toc7off = new Image();
        	//toc7off.src = "images/button_high.gif";
			// OFF Button for Upper Main Menu
        	//toc8off = new Image();
        	//toc8off.src ="images/default_02.jpg";
        	//toc9off = new Image();
        	//toc9off.src ="images/default_03.jpg";
        	//toc10off = new Image();
        	//toc10off.src ="images/default_04.jpg";					
			
			
    	}

	}


onLoad();



function img_act(imgName) {

        if ((version == "n3" ||  version == "n4"  )) {

        imgOn = eval(imgName + "on.src");
        document [imgName].src = imgOn;

        }

       else
	return;

}

function img_inact(imgName) {
        if ((version == "n3"  ||  version == "n4" )) {
        imgOff = eval(imgName + "off.src");
        document [imgName].src = imgOff;

        }
       else

	return;

}
