$(document).ready(function() {

var scrollSpeed = 750;
var space = -10;

$("#team").click(function() {
    $('body, html').animate({
        scrollTop: $("#teamNoodle").offset().top + space
    }, scrollSpeed);
    return false;
    });

$("#project").click(function() {
    $('body, html').animate({
        scrollTop: $("#Projects").offset().top
    }, scrollSpeed);
    return false;
    });
    
$("#wiki").click(function() {
    $('body, html').animate({
        scrollTop: $("#splash").offset().top + space
    }, scrollSpeed);
    return false;
    });
    
$("#contact").click(function() {
    $('body, html').animate({
        scrollTop: $("#precontact").offset().top + space
    }, scrollSpeed);
    return false;
    });

$("#future").click(function() {
    $('body, html').animate({
        scrollTop: $("#forecast").offset().top + space
    }, scrollSpeed);
    return false;
    });

$("#wax").click(function() {
    $('body, html').animate({
        scrollTop: $("#esters").offset().top + space
    }, scrollSpeed);
    return false;
    });
    
$("#pics").click(function() {
    $('body, html').animate({
        scrollTop: $("#images").offset().top + space
    }, scrollSpeed);
    return false;
    });

$("#intro").click(function() {
    $('body, html').animate({
        scrollTop: $("#int").offset().top + space
    }, scrollSpeed);
    return false;
    });
    
$("#data").click(function() {
    $('body, html').animate({
        scrollTop: $("#results").offset().top + space
    }, scrollSpeed);
    return false;
    });
    
$("#methods").click(function() {
    $('body, html').animate({
        scrollTop: $("#process").offset().top + space
    }, scrollSpeed);
    return false;
    });
    
$("#links").click(function() {
    $('body, html').animate({
        scrollTop: $("#references").offset().top + space
    }, scrollSpeed);
    return false;
    });

$("#conclude").click(function() {
    $('body, html').animate({
        scrollTop: $("#final").offset().top + space
    }, scrollSpeed);
    return false;
    });

$("#chassis").click(function() {
    $('body, html').animate({
        scrollTop: $("#amberlesschassis").offset().top + space
    }, scrollSpeed);
    return false;
    });

$(".ourLab").click(function() {
    $('body, html').animate({
        scrollTop: $(".ourLab2").offset().top + space
    }, scrollSpeed);
    return false;
    });

$("#moreinfo").click(function() {
    $('body, html').animate({
        scrollTop: $("#linkout").offset().top + space
    }, scrollSpeed);
    return false;
    });

$("#top").click(function() {
    $('body, html').animate({
        scrollTop: $("#header").offset().top - $("#header").height()
    }, scrollSpeed);
    return false;
    });

$("#top2").click(function() {
    $('body, html').animate({
        scrollTop: '0px'}, scrollSpeed);
    return false;
    });

$("#top3").click(function() {
    $('body, html').animate({
        scrollTop: '0px'}, scrollSpeed);
    return false;
    });

$("#contact").click(function() {
    $('body, html').animate({
        scrollTop: $("#test2").offset().top + space
    }, scrollSpeed);
    return false; 
    });
             });