var netscape = 0;
	goodIE = 0;
	 n=20;
     na=20;
browserName = navigator.appName.substring(0,8);
browserVer = parseFloat(navigator.appVersion);

if (browserName == "Netscape" && browserVer >= 3)
{ netscape = 1; }
if (browserName == "Microsof" && browserVer == 4)
{ goodIE = 1; }

if (netscape || goodIE) {
 {
	 Img= new Array(n);
	for(i=1; i<=n; i++) { Img[i] = new Image() };
   Img_r=new Array(n);
	for(i=1; i<=na; i++) { Img_r[i] = new Image() };
	
	Img[1].src = "{IMG}menu2_1.gif";
	Img[2].src = "{IMG}menu2_2.gif";
	Img[3].src = "{IMG}menu2_3.gif";
	Img[4].src = "{IMG}menu2_4.gif";
	
	Img[5].src = "{IMG}menu1_1.gif";
	Img[6].src = "{IMG}menu1_2.gif";
	Img[7].src = "{IMG}menu1_3.gif";

	Img[8].src = "{IMG}menu3_1.gif";
	Img[9].src = "{IMG}menu3_2.gif";
	Img[10].src = "{IMG}menu3_3.gif";
	Img[11].src = "{IMG}menu3_4.gif";
	Img[12].src = "{IMG}menu3_5.gif";
	Img[13].src = "{IMG}left3_2.gif";	

	Img[14].src = "{IMG}left5.gif";		
	
	Img[15].src = "{IMG}back.gif";		
	Img[16].src = "{IMG}eng.gif";
	Img[17].src = "{IMG}rus.gif";
	


	Img_r[1].src = "{IMG}menu2_1r.gif";
	Img_r[2].src = "{IMG}menu2_2r.gif";
	Img_r[3].src = "{IMG}menu2_3r.gif";
	Img_r[4].src = "{IMG}menu2_4r.gif";

	Img_r[5].src = "{IMG}menu1_1r.gif";
	Img_r[6].src = "{IMG}menu1_2r.gif";
	Img_r[7].src = "{IMG}menu1_3r.gif";

	Img_r[8].src = "{IMG}menu3_1r.gif";
	Img_r[9].src = "{IMG}menu3_2r.gif";
	Img_r[10].src = "{IMG}menu3_3r.gif";
	Img_r[11].src = "{IMG}menu3_4r.gif";
	Img_r[12].src = "{IMG}menu3_5r.gif";
	Img_r[13].src = "{IMG}left3_2r.gif";		

	Img_r[14].src = "{IMG}left5_r.gif";	
	
	Img_r[15].src = "{IMG}back_r.gif";
	Img_r[16].src = "{IMG}engr.gif";
	Img_r[17].src = "{IMG}rusr.gif";
	
 }}

function imgover(trg,imgname) {
	document.getElementById(trg).src=document.getElementById(trg).src.replace('.gif','r.gif');
}
  
function imgout(trg,imgname)  {
	document.getElementById(trg).src=document.getElementById(trg).src.replace('r.gif','.gif');
}
