var shopper = new Class({
	Implements: Options,
	options: {
		speed: 300
	},
	el: Class.empty,
	sl: Class.empty,
	p: Class.empty,
	n: Class.empty,
	initialize: function(el, slideme, options) {
		this.setOptions(options);
		this.el = $(el);
		this.sl = $(slideme);
		this.sl.setStyle('left','0');
		this.el.getElements('a').each(function(a) {
			if (a.get('rel')=='previous') this.p = a;
			else if (a.get('rel')=='next') this.n = a;
		}, this);
		this.p.addEvent('click', function(e) {
			e = new Event(e).stop();
			this.sl.tween('left', '0');
		}.bind(this));
		this.n.addEvent('click', function(e) {
			e = new Event(e).stop();
			this.sl.tween('left', '-383px');
		}.bind(this));
	}
});
window.addEvent('domready', function() {
	// init shopper
	var oeshop = new shopper('storeflyer', 'storecontent');
});