if(document.images) {
	var buffer_button = '';	//из-за выпадающих менюшек вознюкают кое-какие глюки. навароты с buffer_button принудительно возвращают исходный img застоявшейся кнопке
	b1 = new Image; b1.src = "/img/b1_.gif";
	b2 = new Image; b2.src = "/img/b2_.gif";
	b3 = new Image; b3.src = "/img/b3_.gif";
	b4 = new Image; b4.src = "/img/b4_.gif";
	b5 = new Image; b5.src = "/img/b5_.gif";
	b6 = new Image; b6.src = "/img/b6_.gif";
	b7 = new Image; b7.src = "/img/b7_.gif";
	blt2_1 = new Image; blt2_1.src = "/img/m2_.gif";
	ruseng = new Image; ruseng.src = "/img/eng_rus_.gif";
}

function roll(iName, iPath) {
	if(buffer_button != '' && (iName.charAt(0)=='b') && (iName.charAt(1)!='l')) {
		document.images[buffer_button].src = '/img/'+buffer_button+'.gif';
		buffer_button = '';
	}
	document.images[iName].src = iPath;
	if((iPath.charAt(iPath.length - 5)=='_') && (iName.charAt(0)=='b') && (iName.charAt(1)!='l')) buffer_button = iName;
	else buffer_button = '';
} 

