var	n = 6;
	na = 6;

if (document.images) {
	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}menu1_1.gif";
	Img[2].src = "{IMG}menu1_2.gif";
	Img[3].src = "{IMG}menu1_3.gif";
	Img[4].src = "{IMG}menu1_4.gif";
	Img[5].src = "{IMG}menu1_5.gif";
	Img[6].src = "{IMG}menu1_6.gif";
 	
	Img_r[1].src = "{IMG}menu1_1r.gif";
	Img_r[2].src = "{IMG}menu1_2r.gif";
	Img_r[3].src = "{IMG}menu1_3r.gif";
	Img_r[4].src = "{IMG}menu1_4r.gif";
	Img_r[5].src = "{IMG}menu1_5r.gif";
	Img_r[6].src = "{IMG}menu1_6r.gif";
	
}

function imgover(trg,imgname) {
	if (document.images[trg]) {
	 document.images[trg].src=Img_r[imgname].src;
	}
}
  
function imgout(trg,imgname)  {
	if (document.images[trg]) {
	 	document.images[trg].src=Img[imgname].src; 
	}
}
function gif_over(src) {
	src.children.tags('IMG')[0].src=src.children.tags('IMG')[0].src.replace('.gif','r.gif');
}
   
function gif_out(src) {
	src.children.tags('IMG')[0].src=src.children.tags('IMG')[0].src.replace('r.gif','.gif');
}