jquery: add settime function
===

I found the code by Mary Lou http://tympanus.net/codrops/2010/06/02/smooth-vertical-or-horizontal-page-scrolling-with-jquery
I try to add the animation automatically after 5 seconds. Unfortunately, to no avail.

Can I ask for help, and adding these lines. I am not a programmer and do not really know what else I can odd tricks.

        

    $(function() {
                $('ul.nav a').bind('click',function(event){
                    var $anchor = $(this);
                    	$('html, body').stop().animate({
    			scrollLeft: $($anchor.attr('href')).offset().left
    			}, 1000);
    			event.preventDefault();
                });
           });

THX
dede
