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


    //Set Variables for the feature scroller
    this.holder = $('.scrollingContent');
    this.scroller = this.holder.find('table');
    this.items = this.scroller.find('td').length;
    this.left = 0;
    this.current = 0;
    this.itemWidth = this.scroller.find('td').outerWidth();


    //Functions
    this.setNav = function(){
        if(this.items <= 6){
            this.holder.find('.navCell > img').hide();
        }else{
            this.holder.find('.navLeft').click(function(){
				self.prev($(this));
            });
            this.holder.find('.navRight').click(function(){
                self.right($(this));
            });
        }        
    }


    this.prev = function(el){
        if(this.current > 0){
            var left = (this.left + this.itemWidth);
            this.scroller.animate({left: left+'px'},350,function(){
                self.left = left;
                self.current--;
               // setTimeout(function(){self.prev();},700);
            });
        }
    }

    this.right = function(el){
        if(this.current < this.items - 6){
            var left = (this.left - this.itemWidth);
            this.scroller.animate({left: left+'px'},350,function(){
                self.left = left;
                self.current++;
                //setTimeout(function(){self.right();},700);
            });
        }
    }

    this.setNav();
}
