$(document).ready(function()

{$("#intro_button").css({'font-family':'Georgia, serif','color':'#c0bea6','font-style':'italic'});

$(window).scroll(function(){if($(window).scrollTop()<"700"){$("#about_button").css({'font-family':'Georgia, serif','color':'#c0bea6','font-style':'italic'});

$("#resume_button, #projects_button").css({'font-family':'Helvetica, Arial, sans-serif','color':'#4c493d','font-style':'normal'})}else if($(window).scrollTop()>"700"&&$(window).scrollTop()<"1300"){$("#resume_button").css({'font-family':'Georgia, serif','color':'#c0bea6','font-style':'italic'});

$("#intro_button, #projects_button").css({'font-family':'Helvetica, Arial, sans-serif','color':'#4c493d','font-style':'normal'})}else if($(window).scrollTop()>"1000"){$("#projects_button").css({'font-family':'Georgia, serif','color':'#c0bea6','font-style':'italic'});

$("#about_button, #resume_button").css({'font-family':'Helvetica, Arial, sans-serif','color':'#4c493d','font-style':'normal'})}});$('#header').localScroll({duration:2000},{easing:'elasout'});$("li#motion").click(function(){$(this).toggleClass("active");$(this).siblings("a").removeClass("active");$(this).siblings("li").not("#all").animate({height:"15px",backgroundPosition:"0px -56px"},900);$("#all").animate({backgroundPosition:"0px -16px"},900);$(this).animate({height:"56px",backgroundPosition:"0px 0px"},500);$("#projects div").fadeOut(900);$(".motion").fadeIn(900)});$("li#print").click(function(){$(this).toggleClass("active");$(this).siblings("li").removeClass("active");$(this).siblings("li").not("#all").animate({height:"15px",backgroundPosition:"0px -56px"},500);$("#all").animate({backgroundPosition:"0px -16px"},900);$(this).animate({height:"56px",backgroundPosition:"0px 0px"},500);$("#projects div").fadeOut(900);$(".print").fadeIn(900)});$("li#code").click(function(){$(this).toggleClass("active");$(this).siblings("li").removeClass("active");$(this).siblings("li").not("#all").animate({height:"15px",backgroundPosition:"0px -56px"},500);$("#all").animate({backgroundPosition:"0px -16px"},900);$(this).animate({height:"56px",backgroundPosition:"0px 0px"},500);$("#projects div").fadeOut(900);$(".web").fadeIn(900)});$("li#all").click(function(){$(this).toggleClass("active");$(this).siblings("li").removeClass("active");$(this).siblings("li").animate({height:"15px",backgroundPosition:"0px -56px"},500);$(this).animate({height:"15px",backgroundPosition:"0px 0px"},500);$("#projects div").fadeIn(900)})});
