I've still got animation nuances to figure out, but I've got what I'm sure is an inefficient script, and I'm just wondering if somebody can give me an idea how to condense this into something more simple. I'm running the script for four different images, and i'm sure I can set this to a single script that's easier to work on, instead of essentially the same code 4 times over. But I'm a little too new at jquery/javascript to know the tricks involved:

It's a basic mouseover/off that changes and image as well as a separate link in the navigation:
Code:
var $width_one = $("#sq1").width();
var $height_two = $("#sq2").height();
var $height_three = $("#sq3").height();
var $width_four = $("#sq4").width();
var $height_four = $("#sq4").height();

 $(".square.one,#link_nest").mouseenter(function(){
 
	if ($(".the-nest")[0]){
		$("#link_nest").css({color:"#153d53",fontWeight:"400"},100);
		}
	else{

		$(".square.one").stop(true) //removes animation in the queue
		$(".square.one").filter(':not(:animated)').animate({width:"+=10px"},150);
		$("#link_nest").css({color:"#153d53",fontWeight:"400"},100);
		$("#square_caption1").css('visibility','visible');
	} 
 });
  
  
 $(".square.one,#link_nest").mouseleave(function(){
	if ($(".the-nest")[0]){
		$("#link_nest").css({color:"black",fontFamily: "Source Sans Pro",fontWeight:"300"},100);
	}
	else{
	$(".square.one").stop(true) //removes animation in the queue
    	$(".square.one").filter(':not(:animated)').animate({width:$width_one},200);
    	$("#link_nest").css({color:"black",fontFamily: "Source Sans Pro",fontWeight:"300"},100);
    	$("#square_caption1").css('visibility','hidden');
    }

 });
  
  

 $(".square.two,#link_hillcrest").mouseenter(function(){
  	if ($(".the-nest")[0]){
	  	$("#link_hillcrest").css({color:"#153d53",fontWeight:"400"},100);
	 }
	 else{
	 $(".square.one").stop(true) //removes animation in the queue
		 $(".square.two").filter(':not(:animated)').animate({height:"+=10px",top:"-=10px"},150);
		 $("#link_hillcrest").css({color:"#153d53",fontWeight:"400"},100);
		 $("#square_caption2").css('visibility','visible');
     }
 });
  
 $(".square.two,#link_hillcrest").mouseleave(function(){
  	if ($(".the-nest")[0]){
	  $("#link_hillcrest").css({color:"black",fontWeight:"300"},100);
  }
else{

$(".square.one").stop(true) //removes animation in the queue
    	$(".square.two").filter(':not(:animated)').animate({height:$height_two,top:"+=10px"},200);
    	$("#link_hillcrest").css({color:"black",fontWeight:"300"},100);
    	$("#square_caption2").css('visibility','hidden');
     }
  });
  
  

 $(".square.three,#link_3little").mouseenter(function(){
  	if ($(".the-nest")[0]){
	  	$("#link_3little").css({color:"#153d53",fontWeight:"400"},100);
	 }
  	else{
    	$(".square.three").filter(':not(:animated)').animate({height:"+=10px",right:"-=10px"},150);
    	$("#link_3little").css({color:"#153d53",fontWeight:"400"},100);
    	$("#square_caption3").css('visibility','visible');
    }
  });
  
 $(".square.three,#link_3little").mouseleave(function(){
 	if ($(".the-nest")[0]){
	 	$("#link_3little").css({color:"black",fontWeight:"300"},100);
	 }
	 else{
		 $(".square.three").filter(':not(:animated)').animate({height:$height_three,right:"+=10px"},200);
		 $("#link_3little").css({color:"black",fontWeight:"300"},100);
		 $("#square_caption3").css('visibility','hidden');
	}
  });



 $(".square.four,#link_early,.reg3").mouseenter(function(){
 	if ($(".the-nest")[0]){
	 	$("#link_early").css({color:"#153d53",fontWeight:"400"},100);
	 }
	 else{
		 $(".square.four").filter(':not(:animated)').animate({width:"+=10px",height:"+=4px"},150);
		 $("#link_early").css({color:"#153d53",fontWeight:"400"},100);
		 $("#square_caption4").css('visibility','visible');
    }
  });
  
 $(".square.four,#link_early,.reg3").mouseleave(function(){
 	if ($(".the-nest")[0]){
	 	$("#link_early").css({color:"black",fontWeight:"300"},100);
	 	}
 	else{
    	$(".square.four").filter(':not(:animated)').animate({width:$width_four,height:$height_four},200);
    	$("#link_early").css({color:"black",fontWeight:"300"},100);
    	$("#square_caption4").css('visibility','hidden');
    }
  });