// Showing an element an scroll to it
$.fn.betterSlide = function(destination) {
	// where in px from top is the element?
    var dest = $(destination).offset().top;
	// show the element and as callback scroll it into the viewport (if not animated)
    jQuery(this).show(1, function() {
		$("html:not(:animated),body:not(:animated)").animate({ scrollTop: dest}, 2000, "swing" );
	});
};

$(document).ready(function() {
	$(".betterSlideClick").click(function() {
	    $(".hidden").betterSlide("#clicker");
	});	
});
