/**
 * @author jmagner
 */
function FollowUs(_components){
	this.components = _components;
	this.scrolling = false;
	this.nextop = true;
	this.bind();
}
FollowUs.prototype.bind = function(){
	var self = this;
	$(this.components.up).mousedown(function(e){
		if(self.currentPosition < 0){
			self.currentPosition = parseInt(self.currentPosition) + 150;
			$(self.components.content).animate({
				top: self.currentPosition
			},100);
		}
	});
	$(this.components.down).mousedown(function(e){
		if (Math.abs(self.currentPosition) + 300 < self.contentHeight) {
			self.currentPosition = parseInt(self.currentPosition) - 150;
			$(self.components.content).animate({
				top: self.currentPosition
			}, 100);
		}
	});
}
FollowUs.prototype.show = function(){
	this.contentHeight = $(this.components.content).height();
	this.currentPosition = $(this.components.content).css('top').replace('px','');
}
