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

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