var FlapBuffer = function(wrap, num_lines) {
    this.wrap = wrap;
    this.num_lines = num_lines;
    this.line_buffer = '';
    this.buffers = [[]];
    this.cursor = 0;
};

FlapBuffer.prototype = {

    pushLine: function(line) {

        if (this.buffers[this.cursor].length < this.num_lines) {
           this.buffers[this.cursor].push(line);
        } else {
            this.buffers.push([]);
            this.cursor++;
            this.pushLine(line);
        } 
    },

    pushWord: function(word) {
        if (this.line_buffer.length == 0) {
            this.line_buffer = word;
        } else if ((word.length + this.line_buffer.length + 1) <= this.wrap) {
            this.line_buffer += ' ' + word;
        } else {
            this.pushLine(this.line_buffer);
            this.line_buffer = word;
        }
    },

    flush: function() {
        if (this.line_buffer.length) {
            this.pushLine(this.line_buffer);
            this.line_buffer = '';
        }
    },

};

var FlapDemo = function(display_selector) {
    var _this = this;

    var onAnimStart = function(e) {
        var $display = $(e.target);
        $display.prevUntil('.flapper', '.activity').addClass('active');
    };

    var onAnimEnd = function(e) {
        var $display = $(e.target);
        $display.prevUntil('.flapper', '.activity').removeClass('active');
    };

    this.opts = {
        chars_preset: 'alphanum',
        align: 'left',
        width: 40,
        on_anim_start: onAnimStart,
        on_anim_end: onAnimEnd
    };

    this.timers = [];

    this.$displays = $(display_selector);
    this.num_lines = this.$displays.length;

    this.line_delay = 300;
    this.screen_delay = 7000;

    this.$displays.flapper(this.opts);

    $(click_selector).click(function(e){
        var text = _this.cleanInput(_this.$displays.text());

        var buffers = _this.parseInput(text);

        _this.stopDisplay();
        _this.updateDisplay(buffers);

        e.preventDefault();
    });
};

FlapDemo.prototype = {

    cleanInput: function(text) {
        return text.trim().toUpperCase();
    },

    parseInput: function(text) {
        var buffer = new FlapBuffer(this.opts.width, this.num_lines);
        var lines = text.split(/\n/);

        for (i in lines) {
            var words = lines[i].split(/\s/);
            for (j in words) {
                buffer.pushWord(words[j]);
            }
            buffer.flush();
        }

        buffer.flush();
        return buffer.buffers;
    },

    stopDisplay: function() {
        for (i in this.timers) {
            clearTimeout(this.timers[i]);
        }

        this.timers = [];
    },

    updateDisplay: function(buffers) {
        var _this = this;
        var timeout = 100;

        for (i in buffers) {

            _this.$displays.each(function(j) {

                var $display = $(_this.$displays[j]);

                (function(i,j) {
                    _this.timers.push(setTimeout(function(){
                        if (buffers[i][j]) {
                            $display.val(buffers[i][j]).change();
                        } else {
                            $display.val('').change();
                        }
                    }, timeout));
                } (i, j));

                timeout += _this.line_delay;
            });

            timeout += _this.screen_delay;
        }
    }

};

$(document).ready(function(){
  setTimeout(function(){
      var entry = 0;
      var lineln = 0;
      jQuery(".wrap").css("max-width","100%");

      jQuery("a.badge-wrapper.bar").each(function(){
          jQuery(this).addClass("XS");
          jQuery(this).parent().css("width","120px");
          var a = jQuery(this).attr("href");
          var url = "http://checkpointforarts.com"+a;
          var atag = "<a href='"+url+"' title='' />";
          jQuery(this).parent().wrapAll(atag);
          jQuery(this).flapper({width:8}).change();
      });

      jQuery("a.title").each(function(){
          jQuery(this).addClass("XS");
          jQuery(this).parent().css("width","306px");
          var a = jQuery(this).attr("href");
          var url = "http://checkpointforarts.com"+a;
          var atag = "<a href='"+url+"' title='' />";
          jQuery(this).parent().wrapAll(atag);
          jQuery(this).flapper({width:28}).change();
      });
     jQuery(".num.posts-map").each(function(){
         jQuery(this).addClass("XS").css("width","45px");
         var count = jQuery(this).text().length;
         jQuery(this).flapper({width:2}).change();
     });
      jQuery(".last-post").each(function(){
          jQuery(this).addClass("XS");
          jQuery(this).flapper({width:6}).change();
      });
      jQuery(".editor").parent().each(function(){
          jQuery(this).addClass("XS").css("width","200px");
          jQuery(this).flapper({width:12}).change();
      });

      jQuery("div.last-post").css("width","65px");
  }, 750);
});

function flapperize(element){
  new FlapDemo('.topic-list .main-link a.title');
}
@@ -3922,16 +3922,29 @@
 %7Bwidth:8
+,align:'left'
 %7D).chang
@@ -3940,32 +3940,32 @@
 ft'%7D).change();%0A
-
       %7D);%0A%0A     
@@ -4333,16 +4333,29 @@
 width:28
+,align:'left'
 %7D).chang
@@ -4561,16 +4561,29 @@
 %7Bwidth:2
+,align:'left'
 %7D).chang
@@ -4718,16 +4718,29 @@
 %7Bwidth:6
+,align:'left'
 %7D).chang
@@ -4860,24 +4860,24 @@
 %22,%22200px%22);%0A
-
           jQ
@@ -4904,16 +4904,29 @@
 width:12
+,align:'left'
 %7D).chang

align left setting override