var random_images;

start_random = function() {
	setTimeout('random_slides()', 3500);
}

random_slides = function() {
	var unactive = $$('.unactive');
	
	var next = Math.floor(unactive.length*Math.random());
	var prev = Math.floor(3*Math.random());
	
	var current = $$('.slot_'+prev);
	current = current[0];
	
	current.removeClassName('active');
	current.addClassName('unactive');
	unactive[next].removeClassName('unactive');
	unactive[next].addClassName('active');
	unactive[next].addClassName('slot_'+prev);
	
	current.fade( { duration: 0.75, afterFinish: function() {
			current.removeClassName('slot_'+prev);
			unactive[next].appear({ duration: 0.75 });
		}
	});
	
	setTimeout('random_slides()', 4000);
}