KOMPONENTS = function(rootStr){
	this.root = document.getElementById(rootStr);
	this.pos = 1;
}
KOMPONENTS.prototype = {
	ffw:function(){
		this.scroll(this.pos+1);
	},
	rev:function(){
		this.scroll(this.pos-1);
	},
	scroll:function(numb){
		numb = Math.max(1, numb);
		//numb = Math.min(2, numb);
		this.scrollAnn(numb-1);
	},
	scrollAnn:function(numb){
		var sollLeft = parseInt(-378*numb+20);
		if (parseInt(this.root.style.width) - 378 * numb - 20>0) {
			var t = morph(this.root).setStyles([['left', sollLeft + 'px']]).start('', '20', '');
			t.toggle();
			this.pos = numb + 1;
		}
	}
}

