
var entry_count=0;
var active_entry=0;

$(function(){
	$("table.gallery").hide();
	entry_count=$("table.gallery").length;
	$("table.gallery:eq(0)").show();
	$(".caption").css({'position' : 'absolute', 'bottom' : '8px' , 'left' : '0' , 'opacity' : '0.8'});
	
});

function advance_slideshow(){
	$("table.gallery:eq("+active_entry+")").hide();
	active_entry=active_entry<(entry_count-1)?active_entry+1:0;
	$("table.gallery:eq("+active_entry+")").show().animate({opacity: 1.0}, 1000);
}
setInterval('advance_slideshow();',6000);
