fx.ElementScroll = Class.create();
fx.ElementScroll.prototype = Object.extend(new fx.Base(), {
	initialize: function(el, options) {
		this.el = el;
		this.iniMarginLeft = this.el.style.marginLeft;
		this.setOptions(options);
	},

	increase: function() {
		this.el.style.marginLeft = this.now + 'px';
	},

	toggle: function(){
		if (this.el.marginLeft > 0) this.custom(this.el.marginLeft, 0);
		else this.custom(0, this.iniMarginLeft);
	}
});