//smoothScroll
jQuery.fn.extend({
	scrollTo : function(speed, easing) {
		if(!$(this)[0].hash || $(this)[0].hash == "#") {
			return false;
		}
		return this.each(function() {
			var targetOffset = $($(this)[0].hash).offset().top;
			$('html,body').animate({scrollTop: targetOffset}, speed, easing);
		});
	}
});

$(function() {

//smoothScroll
	$('a[href*=#pagetop]').click(function() {
		$(this).scrollTo(250);
		return false;
	});
});
