//Pulsate opacity
(function($) {
  $.fn.pulsate = function(){
    $(this).each(function() {

      var $pulsateItem = $(this);

      function pulsateRepeat() {
        $pulsateItem.animate({'opacity': 0.5}, 2000).animate({'opacity': 1.0}, 2000);
        setTimeout(pulsateRepeat, 2000);
      }

      setTimeout(pulsateRepeat, 2000);

    });
    return $(this);
  };
})(jQuery);
