$(document).ready(function () {

	var wh = $(window).height();
	var ch = $("#container").height();
	
	if(ch < wh) {
		$(".backtotop").hide();
	}
	
	$(".backtotop").click(function() {
		$("body, html").animate({scrollTop:'0'}, 1500);
		return false;
	});
});
