var current=1;       // The current set to start with
var max=3;           // The number of sets
var anim_speed=2000; // The animation speed
var show_speed=4000; // The animation rotation speed

function slideSwitch(){
	$("#set"+current).animate({opacity:'0'},anim_speed)

	if(++current>max)
		current=1;
	$("#set"+current).css("opacity","0");
	$("#set"+current).show();
	$("#set"+current).animate({opacity:'1'},anim_speed)
}
$(function() {
	$(".sets").hide();
	$(".sets").css("opacity","0");
	$("#set"+current).css("opacity","1");
	$("#set"+current).show();
	setInterval( "slideSwitch()", show_speed );
});
