var offset = 0;
var direction = true;//направление движения
var x = 0;

function goLeft(){
		offset = 90;//parseInt(window.frames['product'].document.getElementById('scroll_'+cureent_el).width);
		direction = false;
		go();
return false;
}

function goRight(){
	offset = 90; //parseInt(window.frames['product'].document.getElementById('scroll_'+cureent_el).width);
	direction = true;
	go();
return false;
}

function go(){
	if(x<=offset)
		{
			if(direction)
				window.frames['product'].scrollBy(2, 0);
			else
				window.frames['product'].scrollBy(-2, 0);
			setTimeout("go()", 5);
			x+=2;
		}
	else
		{
			x=0;
			return false;
		}
}