$(document).ready(function(){slideShow();});function slideShow(){$('#gallery a').css({opacity:0.0});$('#gallery a:first').css({opacity:1.0});$('#gallery .caption').css({opacity:0.6});$('#gallery .caption').css({width:$('#gallery a').find('img').css('width')});$('#gallery .caption').animate({opacity:0.0},30).animate({height:'0px'},0);setInterval('gallery()',6500);}
function gallery(){var current=($('#gallery a.show')?$('#gallery a.show'):$('#gallery a:first'));var next=((current.next().length)?((current.next().hasClass('caption'))?$('#gallery a:first'):current.next()):$('#gallery 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 .content').html(caption);}
