
$.fn.typewriter = function(opt) {
  var typeone = function(self, text, content) {
    if (text.length > 0) {
      var next = text.match(/(\s*(<[^>]*>)?)*(&.*?;|.?)/)[0];
      text = text.substr(next.length);
      $(self).html(content+next);
      setTimeout(function(){
        typeone(self, text, content+next);
      }, opt['delay']);
    }
  }
  this.each(function() {
    opt = opt || { 'delay': 90 };
    $(this).height($(this).height());
    $(this).width($(this).width());
    typeone(this, $(this).html(), '');
  });
}

function copyright() {
  $(".copyright").show();
  $(".copyright").typewriter({'delay': 20});
  $(".copyright").removeClass("copyright");
}
    