var phones = new Array('20-50-82','39-28-22','39-28-75');
var curind = 0;

function loadphone() {
	phoneTag = document.getElementById('t_tel');
	if (phoneTag) {
		ind = Math.random()*3;
		ind = Math.floor(ind);
		curphone = phones[ind];
		curind = ind;
		phoneTag.innerHTML = curphone;
	}
}

function t_scroll_down() {
	phoneTag = document.getElementById('t_tel');
		if (phoneTag) {
		phl = phones.length;
		if (curind == phl-1) {
			curind = 0;
		} else {
			curind = curind + 1;
		}
		curphone = phones[curind];
		phoneTag.innerHTML = curphone;
	}
}

function t_scroll_up() {
	phoneTag = document.getElementById('t_tel');
		if (phoneTag) {
		phl = phones.length;
		if (curind == 0) {
			curind = phl-1;
		} else {
			curind = curind - 1;
		}
		curphone = phones[curind];
		phoneTag.innerHTML = curphone;
	}
}


function show(id) {
	elm = document.getElementById(id);
	if (elm) {
		elm.style.visibility = "visible";
	}
}

function hide(id) {
	elm = document.getElementById(id);
	if (elm) {
		elm.style.visibility = "hidden";
	}
}

