$(document).ready(function() {
  $('img.btn').each(function(i) {
    $(this).hover(
      function() { $(this).stop(true, true).fadeTo(250,.3); },
      function() { $(this).stop(true, true).fadeTo(500,1.0); });
  });
    
  $('#pagetop a').click(function () {
		$(this).blur();
        $('html,body').animate({ scrollTop: 0 }, 550, 'easeOutQuart');
		return false;
	});
  });
jQuery.easing.easeOutQuart = function (x, t, b, c, d) {return -c * ((t=t/d-1)*t*t*t - 1) + b;}
