var anm = 1;
function chim(id, i) {
	var str = id;
	if (i == 1) str += '_act';
	str = '/images/' + str + '.png';
	document.getElementById(id).src = str;
}
function chdv(step) {
	var tek;
	var arr = new Array();
	for (i=1; i<=anm; i++) arr[i] = document.getElementById('anons' + i).innerHTML;
	for (i=1; i<=anm; i++) {
		tek = chst(i + step);
		document.getElementById('anons' + i).innerHTML = arr[tek];
	}
}
function chst(step) {
	if (step == 0) step = anm;
	if (step > anm) step = 1;	
	return step;
}

function chLay(id,pos) {
	var lay = 'lay' + id;
	var displ = "block";
	if (pos == 1) displ = "none";
	document.getElementById(lay).style.display = displ;
}
