function slideShow() {
    var dur= 7000;
 $('#gallery_list a').css({opacity: 0.0});
 $('#gallery_list a:first').css({opacity: 1.0});
 $('#gallery_list .caption').css({opacity: 0.7});
 $('#gallery_list .caption').css({width: $('#gallery_list a').find('img').css('width')});
 $('#gallery_list .content').html($('#gallery_list a:first').find('img').attr('rel'))
 .animate({opacity: 0.7}, 400);
 setInterval('gallery()', dur);
}
function gallery() {
 var current = ($('#gallery_list a.show')?  $('#gallery_list a.show') : $('#gallery_list a:first'));
 var next = ((current.next().length) ? ((current.next().hasClass('caption'))? $('#gallery_list a:first') :current.next()) : $('#gallery_list a:first')); 
 var caption = next.find('img').attr('rel'); 
 next.css({opacity: 0.0})
 .addClass('show')
 .animate({opacity: 1.0}, 1000);
 current.animate({opacity: 0.0}, 1000)
 .removeClass('show');
 $('#gallery_list .caption').animate({opacity: 0.0}, { queue:false, duration:0 }).animate({height: '1px'}, { queue:true, duration:300 }); 
 $('#gallery_list .caption').animate({opacity: 0.7},100 ).animate({height: '25px'},500 );
 $('#gallery_list .content').html(caption);
}

