jQuery(document).ready(function(){slideShow()});function slideShow(){jQuery("#gallery a").css({opacity:0});jQuery("#gallery a:first").css({opacity:1});setInterval("gallery()",6000)}function gallery(){var current=(jQuery("#gallery a.show")?jQuery("#gallery a.show"):jQuery("#gallery a:first"));var next=((current.next().length)?((current.next().hasClass("caption"))?jQuery("#gallery a:first"):current.next()):jQuery("#gallery a:first"));next.css({opacity:0}).addClass("show").animate({opacity:1},1000);current.animate({opacity:0},1000).removeClass("show")};
