mtkeffect = {
    wrap: null,
    pos: 0,
	attach: function() {
		this.wrap = $('#mtk-c-wrap');
		this.reStartTimer();
	},

	reStartTimer: function() {
		me = this;
		
		if (this.trig) {
			clearInterval(this.trig);
		}

		this.trig = setInterval(function(){
			me.slideRight();
		}, 4000);
	},

	move: function() {
		var off = this.pos * 260;
		this.wrap.css('-webkit-transform', 'translate3d('+ off + 'px, 0px, 0px)');
	},

	slideRight: function() {
		this.pos = this.pos - 1;
		if (this.pos < -4) {
			this.pos = 0;
		}
		this.move();
		this.reStartTimer();
	},

	slideLeft: function() {
		this.pos = this.pos + 1;
		if (this.pos > 0) {
			this.pos = -4;
		}
		this.move();
		this.reStartTimer();
	}
}
