Add callback to this function Jquery
<p>I need to add this function fadeInBoxes();   as a callback to this click function. I cant get the syntax right for the life of me. So after all of this does its job, I want to load my function above. any ideas?</p>

<pre><code>$(".select").click(function(){
     fadeBoxes();
     var num = $(this).attr('rel');
     $("ul").roundabout("animateToChild", num);
     chageDots(num);
  });
</code></pre>

<p>Full Code</p>

<pre><code>$(document).ready(function() {

     function chageDots(dot){
        for (var i = 0; i &lt; 5; i++) {
           $("#dot0"+i).removeClass("active");

        };
        $("#dot0"+dot).addClass("active");
     };

     var images = ["img1.jpg","img1.jpg","img1.jpg","img1.jpg","img1.jpg"];

     for (var j = 0; j &lt; 5; j++) {
        $("#img0"+j).css("background-image","url('"+images[j]+"')");
        $("#img0"+j).css("background-size","cover");
     };

     var fade_start=false;
     chageDots(0);

    $('ul').roundabout({          
        btnNext: '.next',          
        btnPrev: '.back',
        btnNextCallback: function() {
           var data = $(this).data("roundabout");
           var current_num = data.childInFocus;
           chageDots(current_num);
           fadeInBoxes();
        },
        btnPrevCallback: function() {
           var data = $(this).data("roundabout");
           var current_num = data.childInFocus;
           chageDots(current_num);
           fadeInBoxes();
        },
        clickToFocusCallback: function(){
           var data = $(this).data("roundabout");
           var current_num = data.childInFocus;
           chageDots(current_num);
           current_num.click == false;
           fadeInBoxes();
        }
     }); 

  $(".next").click(function() {
     fadeBoxes();
  });
  $(".back").click(function() {
     fadeBoxes();
  });
  $("li").click(function() {
     fadeBoxes();
  });

  $(".select").click(function(){
     fadeBoxes();
     var num = $(this).attr('rel');
     $("ul").roundabout("animateToChild", num);
     chageDots(num);

  });



  function fadeBoxes (){
     if(fade_start != true){
        fade_start = true;
        $("#mainBox").fadeOut("fast",function() {
         // Animation complete.
         fade_start = false;
        });
        $("#leftBox").fadeOut("fast",function() {
         // Animation complete.
         fade_start = false;
        });
        $("#rightBox").fadeOut("fast",function() {
         // Animation complete.
         fade_start = false;
        });
     } 
  };
  function fadeInBoxes (){
     $("#mainBox").fadeIn(200);
     $("#leftBox").fadeIn(100);
     $("#rightBox").fadeIn(100);
  };
</code></pre>

<p>});</p>
