function Blog() {
	this.init();
}

Blog.prototype = {
	
	content : null,
	upArrow : null,
	downArrow : null,
	interval : null,
	isUp : true,
	contentHeight : null,
	speed : 20,
	holderOffset : null,
	self : null,
	
	init : function() {
		//console.log('Blog Initialized');
		this.holderOffset = $('#tumblrScreen').innerHeight();
		this.content = $('#tumblrContent');
		this.upArrow = $('#tumbNavUp');
		this.downArrow = $('#tumbNavDown');
		
		this.contentHeight = this.content.innerHeight();
		
		var thisBlog = this;
		
		this.upArrow.mousedown(function(e) {
				thisBlog.isUp = true;
				thisBlog.setThisInterval();
			})
			.mouseup(function(e) {
				clearInterval(thisBlog.interval);
			})
			.click(function(e) {
				e.preventDefault();
			})
		
		this.downArrow.mousedown(function(e) {
				thisBlog.isUp = false;
				thisBlog.setThisInterval();
			})
			.mouseup(function(e) {
				clearInterval(thisBlog.interval);
			})
			.click(function(e) {
				e.preventDefault();
			})
	},
	
	setThisInterval : function() {
		self = this;
		this.interval = setInterval(this.moveMe,15);
	},
	
	moveMe : function() {
		var initTop = self.content.position().top;
		var endTop = initTop;
		if(self.isUp) {
			if(initTop + self.speed < 0) {
				endTop += self.speed;
			} else {
				endTop = 0;
				clearInterval(self.interval);
			}
		} else {
			if(initTop - self.speed > -self.contentHeight + self.holderOffset) {
				endTop -= self.speed;
				
			} else {
				endTop = -self.contentHeight + self.holderOffset;
				clearInterval(self.interval);
			}
		}
		
		self.content.css('top',endTop+'px');
	}
	
}
