$(document).ready(function(){$("#about_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'});$("#work_button, #contact_button").css({'font-family':'Helvetica, Arial, sans-serif','color':'#4c493d','font-style':'normal'})}else if($(window).scrollTop()>"700"&&$(window).scrollTop()<"1600"){$("#work_button").css({'font-family':'Georgia, serif','color':'#c0bea6','font-style':'italic'});$("#about_button, #contact_button").css({'font-family':'Helvetica, Arial, sans-serif','color':'#4c493d','font-style':'normal'})}else if($(window).scrollTop()>"1600"){$("#contact_button").css({'font-family':'Georgia, serif','color':'#c0bea6','font-style':'italic'});$("#about_button, #work_button").css({'font-family':'Helvetica, Arial, sans-serif','color':'#4c493d','font-style':'normal'})}});$("a.lightbox").fancybox({'overlayOpacity':0.7,'hideOnContentClick':false});$("#resume").simpletip({fixed:true,content:'<a href="docto_resume.pdf">Download <br/>My Resume</a>',position:["84","102"]});$("#eresumelink").simpletip({fixed:true,content:'<a href="docto_resume.pdf">Download <br/>My Resume</a>',position:["597",477]});$("#sresumelink").simpletip({fixed:true,content:'<a href="docto_resume.pdf">Download <br/>My Resume</a>',position:["304",477]});$('#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)})});