var Scrollslider = new Class({
	Implements: [Options, Events],
	
	options: {
		itemclass: 'scroll',
		duration: 1000,
		transition: Fx.Transitions.Quad.easeInOut
	},

	initialize: function(element,options){
		this.setOptions(options);
		this.element = document.id(element);
		this.scrollitems = $$('.'+ this.options.itemclass);
		
		this.scrollimageareaFx = new Fx.Scroll(this.element, {
			offset: {
				'x': 0,
				'y': 0
			},
			transition: this.options.transition,
			duration: this.options.duration
		});
	},
	
	doScrollToElement: function(i) {
		var that = this;
		//console.log(i);
		this.scrollimageareaFx.toElement(that.scrollitems[i]);
	}
});
