(function ($) {
// VERTICALLY ALIGN FUNCTION
$.fn.vAlign = function() {
  return this.each(function(i){
  var ah = $(this).height();
  var ph = $(window).height();
  var mh = (ph - ah) / 2;
  if(mh>0) {
    $(this).css('padding-top', mh);
  } else {
    $(this).css('padding-top', 0);
  }
});
};
})(jQuery);

$(document).ready(function(){
        $(".intro section").vAlign();
      });
      $(window).bind('resize', function(){
        $(".intro section").vAlign();
}); 

