After each 5. element stop slideshow, show another content, fade it it and then return to the slideshow, start it from the stop point

After each 5. element stop slideshow, show another content, fade it it and then return to the slideshow, start it from the stop point

Hello, 

I would like to stop my slideshow after each 5. loaded element, fade the main container out, show another element, fade it out and then return to the slideshow and start it from the stop point again. 

My code seems like this at the moment

  1.  $(document).ready(function() {
  2. // SET AUTOMATIC PAGE RELOAD TIME TO 5000 MILISECONDS (5 SECONDS).
  3.        setInterval('refreshPage()', 3600000);
  4.        
  5. function textShort() {
  6. if ($('#presentation .info').length > 0) {
  7.     var showChar = 160;
  8.     var ellipsestext = "...";
  9.     // var moretext = "more";
  10.     // var lesstext = "less";
  11.     $('.info').each(function() {
  12.         var content = $(this).html();
  13.  
  14.         if(content.length > showChar) {
  15.  
  16.             var c = content.substr(0, showChar);
  17.             var h = content.substr(showChar-1, content.length - showChar);
  18.  
  19.             var html = c + '<span class="moreellipses">' + ellipsestext+ '</span>';
  20.  
  21.             $(this).html(html);
  22.         }
  23.  
  24.     });
  25. }

  26. }
  27.       

  28.   
  29. var url = '';
  30. var num = 0;

  31. if ($('#inhalt .tx-ppamthowitrollhusv2-pi1 .presentation_list').length > 0) {
  32.     $('#inhalt .tx-ppamthowitrollhusv2-pi1').append('<div id="presentation"></div>');
  33.     
  34.     
  35.     setInterval(function(){
  36.             url = $('#inhalt .tx-ppamthowitrollhusv2-pi1 .presentation_list a').eq(num).attr('href');
  37.            
  38.         $('#presentation').load(url + ' #inhalt', textShort);
  39.         $('#presentation #inhalt').fadeOut().delay(5000).fadeIn(2000);
  40.         num++;
  41.         return ($liste.length = 5);
  42.        if ($('#inhalt .tx-ppamthowitrollhusv2-pi1 .presentation_list a').each(function() {
  43.        $.length = 5;
  44.        $('.container').fadeOut;
  45.        $('#bild').fadeIn(2000).delay(5000).fadeOut(2000);
  46.        $('.container').fadeIn;
  47.         
  48.        } 
  49.        )); 
  50.         
  51.                 if (num == $('#inhalt .tx-ppamthowitrollhusv2-pi1 .presentation_list a').length) {
  52.             num = 0;
  53.         }
  54.     }, 8000);
  55. }
  56. });
  57. function refreshPage() { location.reload(); }

I would be thankful for any help. Jan