var int, strw, iw, m
var step = 0

function handleLeft(n) {
	m = (document.getElementById ('stripInner'+n).style.marginLeft)
	int = m.substring (0, m.length-2)
	if (step == 0 && int - 0 < 0) {
		step = 16
		scroll(n)
	}
}

function handleRight(n) {
	m = (document.getElementById ('stripInner'+n).style.marginLeft)
	int = m.substring (0, m.length-2)
	m = (document.getElementById ('stripInner'+n).style.width)
	iw = m.substring (0, m.length-2)
	//длина панели минус отступ меньше ширины внешней панели
	if (step == 0 && (iw - 0) + (int - 0) > (600)) {
		step = -16
		scroll(n)
	}
}

function scroll(n)
{
	if (step > 0) {
		step -= 1
		m = (document.getElementById ('stripInner'+n).style.marginLeft)
		int = m.substring (0, m.length-2)
		int -= (-step)
		document.getElementById('stripInner'+n).style.marginLeft = int
		setTimeout("scroll("+n+")",30)
	}
	if (step < 0) {
		step += 1
		m = (document.getElementById ('stripInner'+n).style.marginLeft)
		int = m.substring (0, m.length-2)
		int -= (-step)
		document.getElementById('stripInner'+n).style.marginLeft = int
		setTimeout("scroll("+n+")",30)
	}
}
