function getTopTxt(step) {
	var txt_l, txt_m, txt_r = '';
		if (step == 0) {
			if (t_counter > 0) {
				t_counter--;
				txt_l = (t_counter == 0) ? services[services.length-1] : services[t_counter-1];
				txt_m = services[t_counter];
				txt_r = services[t_counter+1];
			}
			else 
				if (t_counter == 0) {
					t_counter = services.length-1;
					txt_l = services[t_counter-1];
					txt_m = services[t_counter];
					txt_r+= services[0];
				}
		}
		else 
			if (step == 1) {
				if (t_counter < (services.length - 1)) {
						t_counter++;
						txt_l = (t_counter == 0) ? services[services.length - 1] : services[t_counter-1];
						txt_m = services[t_counter];
						txt_r = (t_counter == services.length - 1) ? services[0] : services[t_counter+1];
				}
				else 
					if (t_counter == (services.length - 1)) {
						txt_l = services[services.length - 1];
						txt_m = services[0];
						txt_r = services[1];
						t_counter = 0;
					}
			}
			else {
				t_counter = 0;
				txt_l = services[services.length - 1];
				txt_m = services[0];
				txt_r = services[1];
			}

	document.getElementById('toptxt_l').innerHTML = txt_l;
	document.getElementById('toptxt_m').innerHTML = txt_m;
	document.getElementById('toptxt_r').innerHTML = txt_r;
}
function getBottomTxt(step) {
	var txt_l, txt_m, txt_r = '';
		if (step == 0) {
			if (counter > 0) {
				counter--;
				txt_l = (counter == 0) ? b[b.length-1] : b[counter-1];
				txt_m = b[counter];
				txt_r = b[counter+1];
			}
			else 
				if (counter == 0) {
					counter = b.length-1;
					txt_l = b[counter-1];
					txt_m = b[counter];
					txt_r = b[0];
				}
		}
		else 
			if (step == 1) {
				if (counter < (b.length - 1)) {
						counter++;
						txt_l = (counter == 0) ? b[b.length - 1] : b[counter-1];
						txt_m = b[counter];
						txt_r = (counter == b.length - 1) ? b[0] : b[counter+1];
				}
				else 
					if (counter == (b.length - 1)) {
						txt_l = b[b.length - 1];
						txt_m = b[0];
						txt_r = b[1];
						counter = 0;
					}
			}
			else {
				counter = 0;
				txt_l = b[b.length - 1];
				txt_m = b[0];
				txt_r = b[1];
			}

	document.getElementById('bottomtxt_l').innerHTML = txt_l;
	document.getElementById('bottomtxt_m').innerHTML = txt_m;
	document.getElementById('bottomtxt_r').innerHTML = txt_r;
}