$(document).ready(function() {
	$('a.back_to_top').click(function() {
		$('html, body').animate({
				scrollTop: $("html").offset().top
			}, 2000);
	})

	$('#menu a,div.menu a').click(function() {
		var rel = $(this).attr('rel');

		$('html, body').animate({
				scrollTop: $('#' + rel).offset().top
			}, 2000);
	})
})
