          var zi=100;

          var t1,t2,t3,t4,t5;

          function next_image(num){
            $('#extra-images-'+num).eq(0).each(fade_image);
            t1=setTimeout('next_image('+num+')',5000);
          }
          
          function fade_image(){
              container=$(this);
                var current_image=container.find('.current');
                if(current_image.hasClass('last')){
                  var next_image=container.find('.first');
                }else{
                  var next_image=container.find('.current').next();
                }
                current_image[0].next_image=next_image;
                current_image[0].container=container;
                //fade the current image out when it's done fade the next one in and move to the next area
                /*current_image.eq(0).find('img').fadeOut(600,function(){
                    var t=$(this).parent();
                    t.removeClass('current');
                    t[0].next_image.css('display','block').addClass('current').find('img').hide().fadeIn(800);
                });*/

                current_image.eq(0).find('img').parent().removeClass('current');
                next_image.css('display','block').addClass('current').find('img').hide().css('zIndex',zi++).fadeIn(1000);
          }

          function follow(){
              var t=$(this);
              t[0].container.next().each(fade_image);
          }

$(document).ready(function(){
          t2=setTimeout('next_image(1)',2000);
          t3=setTimeout('next_image(2)',2100);
          t1=setTimeout('next_image(0)',2400);
          t5=setTimeout('next_image(3)',2700);
          t4=setTimeout('next_image(4)',2800);
});
