$(function() {
                $('ul.nav a').bind('click',function(event){
                    var $anchor = $(this);
                    
                    $('html, body').stop().animate({
                        scrollTop: $($anchor.attr('href')).offset().top
                    }, 2000,'easeOutExpo');
                    /*
                    if you don't want to use the easing effects:
                    $('html, body').stop().animate({
                        scrollTop: $($anchor.attr('href')).offset().top
                    }, 1000);
                    */
                    event.preventDefault();
                });
            });
            
            
$(document).ready(function(){
$(".fade img").fadeTo("2000", 0.65); // This sets the opacity of the thumbs to fade down to 60% when the page loads

$(".fade img").hover(function(){
$(this).fadeTo("2000", 1.0); // This should set the opacity to 100% on hover
},function(){
$(this).fadeTo("2000", 0.65); // This should set the opacity back to 60% on mouseout
});
});

