function setupAlbum(){$(".thumbs.lightbox a").fancybox()}function goToByScroll(id){$("html, body").animate({scrollTop:$("#"+id).offset().top},"400",function(){location.hash=id})}function setupSmoothScrolling(){$("nav a[href^=#]").each(function(){$(this).click(function(ev){ev.preventDefault();var target=this.href.replace(/.*#/,"");goToByScroll(target)})})}$(document).ready(function(){setupAlbum();setupSmoothScrolling()});
