function Scroller(){
    //Reference to self
    var self = this;


    //Set Variables for the scroller
    this.holder = $('#indexScroller');
    this.scroller = this.holder.find('.scrollTable');
    this.visibleWidth = this.holder.find('.scrollerHolder').innerWidth();
    this.scrollerWidth = this.scroller.width();
    this.items = this.scroller.find('td').length;
    this.left = 0;
    this.itemWidth = this.scroller.find('td').width();
    this.timeout = null;


    //Functions
    this.setNav = function(){
        this.holder.find('.navLeft').mouseenter(function(){
            self.goLeft();
        });
        this.holder.find('.navLeft').mouseleave(function(){
            clearTimeout(self.timeout);
        });
        this.holder.find('.navRight').mouseenter(function(){
            self.goRight();
        });
        this.holder.find('.navRight').mouseleave(function(){
            clearTimeout(self.timeout);
        });
    }


    this.goLeft = function(){
        if(this.left < 0){
            this.timeout = setTimeout(function(){
                var left = (self.left + 3);
                self.scroller.css({left: left+'px'});
                self.left = left;
                self.goLeft();
            },22);
        }
    }

    this.goRight = function(){
        if(this.left > (this.visibleWidth - this.scrollerWidth - 8)){
            this.timeout = setTimeout(function(){
                var left = (self.left - 3);
                self.scroller.css({left: left+'px'});
                self.left = left;
                self.goRight();
            },22);
        }
    }


    this.setNav();
}
