jQuery(document).ready(function($){
	
	jQuery.fn.slideFadeToggle = function(speed, easing, callback) {
  		return this.animate({opacity: 'toggle', height: 'toggle'}, speed, easing, callback);  
	};
 		$("#resume").click(function(){ 
			$(".resume-content").slideFadeToggle(400);
			$(".about-content").fadeOut('fast');
		});
		$("#overlay").click(function(){
			$(".resume-content").fadeOut('fast');
			$(".about-content").fadeOut('fast');
		});
		$("#about").click(function(){ 
			$(".about-content").slideFadeToggle(400);
			$(".resume-content").fadeOut('fast');
		});
		
		$(".ind-content").mouseover(function(){
			$(this).stop().animate({ opacity: 1.0, borderBottomColor: "#b33122" }, 500);		
		});
		$(".ind-content").mouseout(function(){
			$(this).stop().animate({ opacity: 0.6, borderBottomColor: "white" }, 500);		
		});
		$(".grey-link").mouseover(function(){
			$(this).stop().animate({ backgroundColor: "#59636c", color: "white" }, 500);		
		});
		$(".grey-link").mouseout(function(){
			$(this).stop().animate({ backgroundColor: "#e1e1e1", color: "#888" }, 500);		
		});
		$("#resume").mouseover(function(){
			$(this).stop().animate({ backgroundColor: "#6f2121" }, 500);		
		});
		$("#resume").mouseout(function(){
			$(this).stop().animate({ backgroundColor: "#f3473b" }, 500);		
		});
		
		$(".scrollto").click(function() {
				$.scrollTo($($(this).attr("href")), {
					duration: 750
			});
				return false;
		}); 
}); 
